Methods
Token Operations
| Returns the total supply of a specified token Input:
Output: Total supply as an unsigned 256-bit integer |
| Retrieves the balance of a specific address for a given token Inputs:
Output: Balance as an unsigned 256-bit integer |
| Obtains the balances of multiple addresses and tokens. Inputs:
Output: 2D array of balances. |
Contract Utilities
| Returns the contract address of the wrapped native token used in the contract, which is used by default for gas payments |
| Fetches the latest gas price used in the contract. This contract property gets updated on each rollup performed Output: Gas price as an unsigned 256-bit integer |
| Retrieves the contract address of the fee recipient in the contract both for gas fees and trade fees (maker and taker fixed fees) |
Nonce Operations
| Retrieves the nonce value for a given address (maker) Inputs:
Output: Nonce value(s) for inputted address(s) |
| Applies an increase to the nonce value for a specific maker. This can be performed only by whitelisted addresses that are responsible for executing rollups Inputs:
|
Router Operations
| Returns the contract address of the Router associated with a given signer. Input:
|
| Retrieves the amount associated with routing. Output: Amount as an unsigned 256-bit integer. |
| Enables a Router to deposit a specified amount of a specific coin into the contract. Inputs:
|
| Allows a Router to withdraw a specified amount of a specific coin from the contract to a receiver's address. Inputs:
|
| Registers a Router in the contract |
| Manages Router bindings
Inputs:
|
| Validates that a message was signed by a signer associated with a specific Router. Inputs:
|
| Retrieves the punishment factor in basis points (bps) used in the contract. |
| Checks if a Router is registered in the contract. Input:
|
| Verifies if a Router has sufficient funds to perform routing. Input:
|
| Retrieves the balance of a Router for a specific coin Inputs:
|
Trade Information
| Provides information on order fill info trades. Output: Details like the amount filled, last traded price, and number of trades that have happened. |
Withdrawal Operations
| Retrieves information about pending withdrawals. Inputs:
Output:
|
| Handles the on-chain withdrawal process.
Inputs:
|
Signer Operations
| Binds a caller contract address to a signer. Inputs:
|
| Validates that a given message was correctly signed by the trader's signer. Inputs:
|
| Returns the signer address for a given trader.
Inputs:
|
Miscellaneous Operations
| Allows depositing a specified amount of a token to a receiver's address. Inputs:
|
| Executes a withdrawal based on a signed withdrawal request and the current gas price. (for Exchange's internal use) Inputs:
|
| Execute ecosystem and router trades respectively (for Exchange's internal use) Inputs:
|
Last updated