Documentation ¶
Index ¶
Constants ¶
View Source
const ( // MaxOrderSizeInBytes is the maximum number of bytes allowed for encoded // orders. It allows for MultiAssetProxy orders with roughly 45 total ERC20 // assets or roughly 36 total ERC721 assets (combined between both maker and // taker; depends on the other fields of the order). MaxOrderSizeInBytes = 16000 // MaxMessageSizeInBytes is the maximum size for messages sent through // GossipSub. It is the max order size plus some overhead for the message // format. MaxMessageSizeInBytes = MaxOrderSizeInBytes + messageOverhead )
View Source
const MaxBlocksStoredInNonArchiveNode = 128
MaxBlocksStoredInNonArchiveNode is the max number of historical blocks for which a regular Klaytn node stores archive-level state. One cannot make `klay_call` requests specifying blocks earlier than 128 blocks ago on non-archive nodes.
Variables ¶
View Source
var ( // ErrMaxMessageSize is returned or emitted when a GossipSub message exceeds // the max size. ErrMaxMessageSize = fmt.Errorf("message exceeds maximum size of %d bytes", MaxMessageSizeInBytes) // ErrMaxOrderSize is returned or emitted when a signed order encoded as JSON // exceeds the max size. ErrMaxOrderSize = fmt.Errorf("order exceeds maximum size of %d bytes", MaxOrderSizeInBytes) )
View Source
var ErrInternal = errors.New("internal error")
ErrInternal is used whenever we don't wish to expose internal errors to a client
View Source
var NullAddress = common.HexToAddress("0x0000000000000000000000000000000000000000")
NullAddress is an Klaytn address with all zeroes.
View Source
var NullBytes = common.FromHex("0x")
NullBytes is an empty byte array
View Source
var UnlimitedExpirationTime *big.Int
UnlimitedExpirationTime is the maximum value for uint256 (2^256-1), which means there is effectively no limit on the maximum expiration time for orders.
Functions ¶
This section is empty.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.