4.0.0 • Published 5 years ago
Zocr: On-Chain Relay
Author: GuildCrypt
abi | bytecode | runtime bytecode
Documentation generated by @GuildCrypt/solspecdown
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 | |
Outputs
| Type | Name | Description |
---|
0 | bytes32[5] | | |