Crate z4_engine

source ·

Modules§

Macros§

  • Construct a serde_json::Value from a JSON literal.

Structs§

  • Container type for all input parameters for the acceptRoom function with signature acceptRoom(uint256,bytes) and selector 0x03e2b051
  • Container type for all input parameters for the acceptRoom function with signature acceptRoom(uint256,bytes) and selector 0x03e2b051
  • Container type for all input parameters for the allowance function with signature allowance(address,address) and selector 0xdd62ed3e
  • Container type for all return fields from the allowance function with signature allowance(address,address) and selector 0xdd62ed3e
  • Container type for all input parameters for the approve function with signature approve(address,uint256) and selector 0x095ea7b3
  • Container type for all return fields from the approve function with signature approve(address,uint256) and selector 0x095ea7b3
  • Container type for all input parameters for the balanceOf function with signature balanceOf(address) and selector 0x70a08231
  • Container type for all return fields from the balanceOf function with signature balanceOf(address) and selector 0x70a08231
  • Container type for all input parameters for the claimRoom function with signature claimRoom(uint256) and selector 0x6c078f30
  • Container type for all input parameters for the claimRoom function with signature claimRoom(uint256) and selector 0x6c078f30
  • config of engine
  • Container type for all input parameters for the createRoom function with signature createRoom(uint256,bool,address,bytes32,bytes32) and selector 0x35520a98
  • Container type for all input parameters for the createRoom function with signature createRoom(uint256,bool,address,bytes32,bytes32) and selector 0x35520a98
  • Container type for all return fields from the createRoom function with signature createRoom(uint256,bool,address,bytes32,bytes32) and selector 0x35520a98
  • Container type for all return fields from the createRoom function with signature createRoom(uint256,bool,address,bytes32,bytes32) and selector 0x35520a98
  • Container type for all input parameters for the decimals function with signature decimals() and selector 0x313ce567
  • Container type for all return fields from the decimals function with signature decimals() and selector 0x313ce567
  • Default vector json values for Param
  • Custom Error type ERC20InsufficientAllowance with signature ERC20InsufficientAllowance(address,uint256,uint256) and selector 0xfb8f41b2
  • Custom Error type ERC20InsufficientBalance with signature ERC20InsufficientBalance(address,uint256,uint256) and selector 0xe450d38c
  • Custom Error type ERC20InvalidApprover with signature ERC20InvalidApprover(address) and selector 0xe602df05
  • Custom Error type ERC20InvalidReceiver with signature ERC20InvalidReceiver(address) and selector 0xec442f05
  • Custom Error type ERC20InvalidSender with signature ERC20InvalidSender(address) and selector 0x96c6fd1e
  • Custom Error type ERC20InvalidSpender with signature ERC20InvalidSpender(address) and selector 0x94280d62
  • Engine
  • Fixed-size uninterpreted hash type with 20 bytes (160 bits) size.
  • The result when after handling the message or task.
  • Container type for all input parameters for the isSequencer function with signature isSequencer(address) and selector 0x6d46e987
  • Container type for all input parameters for the isSequencer function with signature isSequencer(address) and selector 0x6d46e987
  • Container type for all return fields from the isSequencer function with signature isSequencer(address) and selector 0x6d46e987
  • Container type for all return fields from the isSequencer function with signature isSequencer(address) and selector 0x6d46e987
  • Container type for all input parameters for the joinRoom function with signature joinRoom(uint256,address,bytes32) and selector 0x69174de2
  • Container type for all input parameters for the joinRoom function with signature joinRoom(uint256,address,bytes32) and selector 0x69174de2
  • Container type for all return fields from the joinRoom function with signature joinRoom(uint256,address,bytes32) and selector 0x69174de2
  • Container type for all return fields from the joinRoom function with signature joinRoom(uint256,address,bytes32) and selector 0x69174de2
  • Container type for all input parameters for the minStaking function with signature minStaking() and selector 0x0564534c
  • Container type for all input parameters for the minStaking function with signature minStaking() and selector 0x0564534c
  • Container type for all return fields from the minStaking function with signature minStaking() and selector 0x0564534c
  • Container type for all return fields from the minStaking function with signature minStaking() and selector 0x0564534c
  • Container type for all input parameters for the name function with signature name() and selector 0x06fdde03
  • Container type for all return fields from the name function with signature name() and selector 0x06fdde03
  • Network config informato, use EIP-3085
  • Container type for all input parameters for the nextRoomId function with signature nextRoomId() and selector 0x07a52cab
  • Container type for all input parameters for the nextRoomId function with signature nextRoomId() and selector 0x07a52cab
  • Container type for all return fields from the nextRoomId function with signature nextRoomId() and selector 0x07a52cab
  • Container type for all return fields from the nextRoomId function with signature nextRoomId() and selector 0x07a52cab
  • Container type for all input parameters for the overRoomWithThreshold function with signature overRoomWithThreshold(uint256,bytes,bytes) and selector 0xcd93b80c
  • Container type for all input parameters for the overRoomWithThreshold function with signature overRoomWithThreshold(uint256,bytes,bytes) and selector 0xcd93b80c
  • Container type for all input parameters for the overRoomWithZk function with signature overRoomWithZk(uint256,bytes,bytes) and selector 0x1a53a56b
  • Container type for all input parameters for the overRoomWithZk function with signature overRoomWithZk(uint256,bytes,bytes) and selector 0x1a53a56b
  • Custom Error type OwnableInvalidOwner with signature OwnableInvalidOwner(address) and selector 0x1e4fbdf7
  • Custom Error type OwnableInvalidOwner with signature OwnableInvalidOwner(address) and selector 0x1e4fbdf7
  • Custom Error type OwnableUnauthorizedAccount with signature OwnableUnauthorizedAccount(address) and selector 0x118cdaa7
  • Custom Error type OwnableUnauthorizedAccount with signature OwnableUnauthorizedAccount(address) and selector 0x118cdaa7
  • Container type for all input parameters for the owner function with signature owner() and selector 0x8da5cb5b
  • Container type for all input parameters for the owner function with signature owner() and selector 0x8da5cb5b
  • Container type for all return fields from the owner function with signature owner() and selector 0x8da5cb5b
  • Container type for all return fields from the owner function with signature owner() and selector 0x8da5cb5b
  • peer’s network id.
  • The keypair, include pk, sk, address
  • Container type for all input parameters for the playerLimit function with signature playerLimit() and selector 0xf8bb7ec2
  • Container type for all input parameters for the playerLimit function with signature playerLimit() and selector 0xf8bb7ec2
  • Container type for all return fields from the playerLimit function with signature playerLimit() and selector 0xf8bb7ec2
  • Container type for all return fields from the playerLimit function with signature playerLimit() and selector 0xf8bb7ec2
  • Container type for all input parameters for the playerRoomLock function with signature playerRoomLock() and selector 0xe20f7570
  • Container type for all input parameters for the playerRoomLock function with signature playerRoomLock() and selector 0xe20f7570
  • Container type for all return fields from the playerRoomLock function with signature playerRoomLock() and selector 0xe20f7570
  • Container type for all return fields from the playerRoomLock function with signature playerRoomLock() and selector 0xe20f7570
  • Container type for all input parameters for the renounceOwnership function with signature renounceOwnership() and selector 0x715018a6
  • Container type for all input parameters for the renounceOwnership function with signature renounceOwnership() and selector 0x715018a6
  • Container type for all input parameters for the restartRoom function with signature restartRoom(uint256) and selector 0xdc391789
  • Container type for all input parameters for the restartRoom function with signature restartRoom(uint256) and selector 0xdc391789
  • Container type for all input parameters for the roomInfo function with signature roomInfo(uint256) and selector 0xa55c780e
  • Container type for all input parameters for the roomInfo function with signature roomInfo(uint256) and selector 0xa55c780e
  • Container type for all return fields from the roomInfo function with signature roomInfo(uint256) and selector 0xa55c780e
  • Container type for all return fields from the roomInfo function with signature roomInfo(uint256) and selector 0xa55c780e
  • Container type for all input parameters for the rooms function with signature rooms(uint256) and selector 0x1bae0ac8
  • Container type for all input parameters for the rooms function with signature rooms(uint256) and selector 0x1bae0ac8
  • Container type for all return fields from the rooms function with signature rooms(uint256) and selector 0x1bae0ac8
  • Container type for all return fields from the rooms function with signature rooms(uint256) and selector 0x1bae0ac8
  • Container type for all input parameters for the sequencers function with signature sequencers(address) and selector 0x1c7a07ee
  • Container type for all input parameters for the sequencers function with signature sequencers(address) and selector 0x1c7a07ee
  • Container type for all return fields from the sequencers function with signature sequencers(address) and selector 0x1c7a07ee
  • Container type for all return fields from the sequencers function with signature sequencers(address) and selector 0x1c7a07ee
  • Container type for all input parameters for the setMinStaking function with signature setMinStaking(uint256) and selector 0x17e18f03
  • Container type for all input parameters for the setMinStaking function with signature setMinStaking(uint256) and selector 0x17e18f03
  • Container type for all input parameters for the setPlayerLimit function with signature setPlayerLimit(uint256) and selector 0xbf15e64c
  • Container type for all input parameters for the setPlayerLimit function with signature setPlayerLimit(uint256) and selector 0xbf15e64c
  • Container type for all input parameters for the setPlayerRoomLock function with signature setPlayerRoomLock(uint256) and selector 0x67b2b31f
  • Container type for all input parameters for the setPlayerRoomLock function with signature setPlayerRoomLock(uint256) and selector 0x67b2b31f
  • Container type for all input parameters for the setToken function with signature setToken(address) and selector 0x144fa6d7
  • Container type for all input parameters for the setToken function with signature setToken(address) and selector 0x144fa6d7
  • Container type for all input parameters for the stakeSequencer function with signature stakeSequencer(string,string,uint256) and selector 0xc079e9cb
  • Container type for all input parameters for the stakeSequencer function with signature stakeSequencer(string,string,uint256) and selector 0xc079e9cb
  • Container type for all input parameters for the startRoom function with signature startRoom(uint256) and selector 0x79fb2b72
  • Container type for all input parameters for the startRoom function with signature startRoom(uint256) and selector 0x79fb2b72
  • Container type for all input parameters for the symbol function with signature symbol() and selector 0x95d89b41
  • Container type for all return fields from the symbol function with signature symbol() and selector 0x95d89b41
  • Container type for all input parameters for the token function with signature token() and selector 0xfc0c546a
  • Container type for all input parameters for the token function with signature token() and selector 0xfc0c546a
  • Container type for all return fields from the token function with signature token() and selector 0xfc0c546a
  • Container type for all return fields from the token function with signature token() and selector 0xfc0c546a
  • Container type for all input parameters for the totalSupply function with signature totalSupply() and selector 0x18160ddd
  • Container type for all return fields from the totalSupply function with signature totalSupply() and selector 0x18160ddd
  • Container type for all input parameters for the transfer function with signature transfer(address,uint256) and selector 0xa9059cbb
  • Container type for all input parameters for the transferFrom function with signature transferFrom(address,address,uint256) and selector 0x23b872dd
  • Container type for all return fields from the transferFrom function with signature transferFrom(address,address,uint256) and selector 0x23b872dd
  • Container type for all input parameters for the transferOwnership function with signature transferOwnership(address) and selector 0xf2fde38b
  • Container type for all input parameters for the transferOwnership function with signature transferOwnership(address) and selector 0xf2fde38b
  • Container type for all return fields from the transfer function with signature transfer(address,uint256) and selector 0xa9059cbb
  • Container type for all input parameters for the unstakeSequencer function with signature unstakeSequencer(uint256) and selector 0x490f2670
  • Container type for all input parameters for the unstakeSequencer function with signature unstakeSequencer(uint256) and selector 0x490f2670

Enums§

Constants§

Statics§

Traits§

  • Handle message received from players
  • serialize & deserialize for params
  • Timer tasks when game room started

Functions§

Type Aliases§