zocr
v4.0.0
Published
An On-Chain Relay for 0x v2
Readme
Zocr: On-Chain Relay
Author: GuildCrypt
abi | bytecode | runtime bytecode
Documentation generated by @GuildCrypt/solspecdown
| Name | Type |
|---|---|
| add(bytes4,bytes32[5]) | function (non-constant) |
| computePairId(bytes20,bytes20) | function (constant) |
| Order(bytes4,bytes32[5]) | event |
| orders(bytes4,uint32,uint256) | function (constant) |
| ordersCount(bytes4) | function (constant) |
| orderSplitEncodings(bytes4,uint32) | function (constant) |
add(bytes4,bytes32[5])
Add an order. Only the owner may add an order.
Inputs
| | Type | Name | Description |
|---|---|---|---|
| 0 | bytes4 | pairId | A unique pair id. SHA256(baseAssetAddress XOR quoteAssetAddress)[252, 256] |
| 1 | bytes32[5] | orderSplitEncodings | The split encodings |
computePairId(bytes20,bytes20)
Inputs
| | Type | Name | Description |
|---|---|---|---|
| 0 | bytes20 | base | |
| 1 | bytes20 | quote | |
Outputs
| | Type | Name | Description |
|---|---|---|---|
| 0 | bytes4 | | |
Order(bytes4,bytes32[5])
Inputs
| | Type | Name | Description | Indexed? |
|---|---|---|---|---|
| 0 | bytes4 | pairId | | true |
| 1 | bytes32[5] | orderSplitEncodings | | false |
orders(bytes4,uint32,uint256)
Inputs
| | Type | Name | Description |
|---|---|---|---|
| 0 | bytes4 | | |
| 1 | uint32 | | |
| 2 | uint256 | | |
Outputs
| | Type | Name | Description |
|---|---|---|---|
| 0 | bytes32 | | |
ordersCount(bytes4)
Inputs
| | Type | Name | Description |
|---|---|---|---|
| 0 | bytes4 | | |
Outputs
| | Type | Name | Description |
|---|---|---|---|
| 0 | uint32 | | |
orderSplitEncodings(bytes4,uint32)
Inputs
| | Type | Name | Description |
|---|---|---|---|
| 0 | bytes4 | pairId | |
| 1 | uint32 | _orderIndex | |
