4.0.0 • Published 5 years ago

zocr v4.0.0

Weekly downloads
3
License
ISC
Repository
github
Last release
5 years ago

Zocr: On-Chain Relay

Author: GuildCrypt

abi | bytecode | runtime bytecode

Documentation generated by @GuildCrypt/solspecdown

NameType
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
TypeNameDescription
0bytes4pairIdA unique pair id. SHA256(baseAssetAddress XOR quoteAssetAddress)252, 256
1bytes32[5]orderSplitEncodingsThe split encodings

computePairId(bytes20,bytes20)

Inputs
TypeNameDescription
0bytes20base
1bytes20quote
Outputs
TypeNameDescription
0bytes4

Order(bytes4,bytes32[5])

Inputs
TypeNameDescriptionIndexed?
0bytes4pairIdtrue
1bytes32[5]orderSplitEncodingsfalse

orders(bytes4,uint32,uint256)

Inputs
TypeNameDescription
0bytes4
1uint32
2uint256
Outputs
TypeNameDescription
0bytes32

ordersCount(bytes4)

Inputs
TypeNameDescription
0bytes4
Outputs
TypeNameDescription
0uint32

orderSplitEncodings(bytes4,uint32)

Inputs
TypeNameDescription
0bytes4pairId
1uint32_orderIndex
Outputs
TypeNameDescription
0bytes32[5]