State
Last updated
Last updated
The x/feesplit
module keeps the following objects in state:
State Object | Description | Key | Value | Store |
---|---|---|---|---|
A FeeSplit defines an instance that organizes fee distribution conditions for the owner of a given smart contract
ContractAddress
defines the contract address that has been registered for fee distribution.
A DeployerAddress
is the EOA address for a registered contract.
The WithdrawerAddress
is the address that receives transaction fees for a registered contract.
The x/feesplit
module's GenesisState
defines the state necessary for initializing the chain from a previous exported height. It contains the module parameters and the feesplits for registered contracts:
FeeSplit
Fee split bytecode
[]byte{1} + []byte(contract_address)
[]byte{feeSplit}
KV
DeployerFeeSplits
Contract by deployer address bytecode
[]byte{2} + []byte(deployer_address) + []byte(contract_address)
[]byte{1}
KV
WithdrawerFeeSplits
Contract by withdraw address bytecode
[]byte{3} + []byte(withdraw_address) + []byte(contract_address)
[]byte{1}
KV