-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1129 from oceanprotocol/post-audit-contract-updates
Post audit contract updates
- Loading branch information
Showing
15 changed files
with
850 additions
and
390 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
export interface Operation { | ||
/** | ||
* used only for FixedRate or Dispenser, but needs to be filled even for pool | ||
* @type {string} | ||
*/ | ||
exchangeIds: string | ||
/** | ||
* pool Address | ||
* @type {string} | ||
*/ | ||
source: string | ||
/** | ||
* operation: | ||
* 0 - swapExactAmountIn | ||
* 1 - swapExactAmountOut | ||
* 2 - FixedRateExchange | ||
* 3 - Dispenser | ||
* @type {number} | ||
*/ | ||
operation: number | ||
/** | ||
* token in address | ||
* @type {string} | ||
*/ | ||
tokenIn: string | ||
/** | ||
* when swapExactAmountIn is EXACT amount IN | ||
* expressed in Wei | ||
* @type {string | number} | ||
*/ | ||
amountsIn: string | number | ||
/** | ||
* token out address | ||
* @type {string} | ||
*/ | ||
tokenOut: string | ||
/** | ||
* when swapExactAmountIn is MIN amount OUT | ||
* expressed in Wei | ||
* @type {string | number} | ||
*/ | ||
amountsOut: string | number | ||
/** | ||
* max price (only for pools) | ||
* expressed in Wei | ||
* @type {string | number} | ||
*/ | ||
maxPrice: string | number | ||
/** | ||
* swap fee amount | ||
* @type {string} | ||
*/ | ||
swapMarketFee: string | ||
/** | ||
* market fee address to receive fees | ||
* @type {string} | ||
*/ | ||
marketFeeAddress: string | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.