pipx install eth-ape
ape plugins install infura vyper etherscan
ape test
ape accounts import deployer_account
Edit Compass-EVM contract address in scripts/deploy.py
.
ape run deploy --network :mainnet:infura
Deposit WETH token with expected price information(tick in Uniswap V3, SqrtPriceX96, etc) and deadline. This emits event and Paloma will collect events from this smart contract and register information to CosmWasm smart contract on Paloma.
Key | Type | Description |
---|---|---|
depositor | address | Orderer address who already approved WETH to this contract |
amount | uint256 | Ordering amount |
lower_tick | int24 | tick of expected price in Uniswap V3 |
lower_sqrt_price_x96 | uint256 | sqrtpricex96 of expected price in Uniswap V3 |
deadline | uint256 | deadline of limit-order |
Withdraw WETH and USDC of the order which reaches to the expected price.
Key | Type | Description |
---|---|---|
tokenId | uint256 | Uniswap V3 token ID of the order to withdraw |
Withdraw WETH and USDC of the order which reaches to the expected price.
Key | Type | Description |
---|---|---|
tokenIds | uint256[] | Uniswap V3 token IDs of the orders to withdraw |
Cancel order.
Key | Type | Description |
---|---|---|
tokenId | uint256 | Uniswap V3 token ID of the order to cancel |
Cancel orders
Key | Type | Description |
---|---|---|
tokenIds | uint256[] | Uniswap V3 token IDs of the orders to withdraw |
Update admin address.
Key | Type | Description |
---|---|---|
new_admin | address | New admin address |
Update Compass-EVM address.
Key | Type | Description |
---|---|---|
new_compass_evm | address | New admin address |