Interfaces
create
Message for limit order contract deployment from limit pool contract.
| Path | Mnemonic | Type | Description |
|---|
| op | uint32 | 0x26f4c35f |
| query_id | uint64 | query id |
execute
Message for limit order execution from limit pool contract.
| Path | Mnemonic | Type | Description |
|---|
| op | uint32 | 0x2e71550c |
| query_id | uint64 | query id |
| executor | address | address of executor. |
| amount | coins | amount of asset for execution of an order. |
| reject_payload | maybe_cell | reject payload for execution of limit order. Sender recieves it if execution was not successful. |
| forward_payload | maybe_cell | forward payload for execution of limit order. Sender recieves it if execution was successful. |
cancel
Message for limit order contract cancel from owner.
| Path | Mnemonic | Type | Description |
|---|
| op | uint32 | 0xff34e6d6 |
| query_id | uint64 | query id |
Get-methods
get_sale_data
Return
| Path | Mnemonic | Type | Description |
|---|
| x_to_y | number | if order for swapping token_x to token_y? |
| from_amount | number | amount of token to swap. |
| to_amount | number | amount of token to receive from swap. |
| price_base | number | |
| price_factor | number | |
get_limit_order_data
Return
| Path | Mnemonic | Type | Description |
|---|
| limpool_address | slice | |
| owner_address | slice | creator's address. |
| index | number | index of limit order contract. |
| salt | number | arbitrary number for shard optimization (legacy). |