Base Token
https://rinkeby.etherscan.io/address/0xe21C494B21a5E42D64C5a2a4eEE6098e67aaCeEC#code
Trade Token
https://rinkeby.etherscan.io/address/0x145551EBadAc72132bb562084596567BB497A1c4#code
Order Book
https://rinkeby.etherscan.io/address/0xcc6977FE97542BFEA4202Bf1a9017314E3d67dd9#code
The following structs are defined in the contract and used as parameters for some methods:
// Order
struct Order {
address maker;
uint256 amount;
}
// Step
struct Step {
uint256 higherPrice;
uint256 lowerPrice;
uint256 amount;
}
| Name | Type | Description |
| ----------- | ----------- | --------------------------------------------------------------------------------------- |
| price
| uint256
| Price of trade token in order. |
| amountOfBaseToken
| uint256
| Amount of base token to buy. |
| Name | Type | Description |
| --------- | --------- | -------------------------------------- |
| tokenId
| uint256
| Price of trade token in order. |
| amountOfTradeToken
| uint256
| Amount of trade token to sell. |
The following assumes node >= 12
yarn
yarn build
yarn test