-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dex,client/asset: add token primitives
dex: Token and Gases are used to specify token info in higher-level packages, where lgpl builds are not suitable. Add a test token ID. client/asset: The Token type embeds dex.Token and adds a WalletDefinition. This type is used to register tokens with the package-level RegisterToken method. client/asset/eth: The test token is registered with it's WalletDefinition. The definition has 1 ConfigOption, limitAllowance, that allows the user to keep a limited allowance for the swap contract, but with extra transactions = more fees.
- Loading branch information
Showing
9 changed files
with
825 additions
and
612 deletions.
There are no files selected for viewing
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
Oops, something went wrong.