diff --git a/docs/contract/system_contacts.md b/docs/contract/system_contacts.md index 0615ab1e..f8b39f0c 100644 --- a/docs/contract/system_contacts.md +++ b/docs/contract/system_contacts.md @@ -55,7 +55,7 @@ The Metadata Contract records the metadata of the chain, such as validator ident "type": "uint64" } ], - "internalType": "struct MetadataManager.MetadataVersion", + "internalType": "struct MetadataType.MetadataVersion", "name": "version", "type": "tuple" }, @@ -64,21 +64,6 @@ The Metadata Contract records the metadata of the chain, such as validator ident "name": "epoch", "type": "uint64" }, - { - "internalType": "uint64", - "name": "gas_limit", - "type": "uint64" - }, - { - "internalType": "uint64", - "name": "gas_price", - "type": "uint64" - }, - { - "internalType": "uint64", - "name": "interval", - "type": "uint64" - }, { "components": [ { @@ -107,214 +92,193 @@ The Metadata Contract records the metadata of the chain, such as validator ident "type": "uint32" } ], - "internalType": "struct MetadataManager.ValidatorExtend[]", + "internalType": "struct MetadataType.ValidatorExtend[]", "name": "verifier_list", "type": "tuple[]" }, { - "internalType": "uint64", - "name": "propose_ratio", - "type": "uint64" + "components": [ + { + "internalType": "address", + "name": "address_", + "type": "address" + }, + { + "internalType": "uint64", + "name": "count", + "type": "uint64" + } + ], + "internalType": "struct MetadataType.ProposeCount[]", + "name": "propose_counter", + "type": "tuple[]" }, { - "internalType": "uint64", - "name": "prevote_ratio", - "type": "uint64" + "components": [ + { + "internalType": "uint64", + "name": "propose_ratio", + "type": "uint64" + }, + { + "internalType": "uint64", + "name": "prevote_ratio", + "type": "uint64" + }, + { + "internalType": "uint64", + "name": "precommit_ratio", + "type": "uint64" + }, + { + "internalType": "uint64", + "name": "brake_ratio", + "type": "uint64" + }, + { + "internalType": "uint64", + "name": "tx_num_limit", + "type": "uint64" + }, + { + "internalType": "uint64", + "name": "max_tx_size", + "type": "uint64" + }, + { + "internalType": "uint64", + "name": "gas_limit", + "type": "uint64" + }, + { + "internalType": "uint64", + "name": "interval", + "type": "uint64" + }, + { + "internalType": "uint64", + "name": "max_contract_limit", + "type": "uint64" + } + ], + "internalType": "struct MetadataType.ConsensusConfig", + "name": "consensus_config", + "type": "tuple" + } + ], + "internalType": "struct MetadataType.Metadata", + "name": "metadata", + "type": "tuple" + } + ], + "name": "appendMetadata", + "outputs": [], + "stateMutability": "nonpayable", + "type": "function" + }, + { + "inputs": [ + { + "components": [ + { + "internalType": "bytes32", + "name": "metadata_type_id", + "type": "bytes32" }, { - "internalType": "uint64", - "name": "precommit_ratio", - "type": "uint64" + "internalType": "bytes32", + "name": "checkpoint_type_id", + "type": "bytes32" }, { - "internalType": "uint64", - "name": "brake_ratio", - "type": "uint64" + "internalType": "bytes32", + "name": "xudt_args", + "type": "bytes32" }, { - "internalType": "uint64", - "name": "tx_num_limit", - "type": "uint64" + "internalType": "bytes32", + "name": "stake_smt_type_id", + "type": "bytes32" }, { - "internalType": "uint64", - "name": "max_tx_size", - "type": "uint64" + "internalType": "bytes32", + "name": "delegate_smt_type_id", + "type": "bytes32" + }, + { + "internalType": "bytes32", + "name": "reward_smt_type_id", + "type": "bytes32" } ], - "internalType": "struct MetadataManager.Metadata", - "name": "metadata", + "internalType": "struct MetadataType.CkbRelatedInfo", + "name": "info", "type": "tuple" } ], - "name": "appendMetadata", - "outputs": [], - "stateMutability": "nonpayable", - "type": "function" - }, - { - "inputs": [], - "name": "construct", + "name": "setCkbRelatedInfo", "outputs": [], "stateMutability": "nonpayable", "type": "function" }, { "inputs": [ - { - "internalType": "uint64", - "name": "epoch", - "type": "uint64" - } - ], - "name": "getMetadata", - "outputs": [ { "components": [ - { - "components": [ - { - "internalType": "uint64", - "name": "start", - "type": "uint64" - }, - { - "internalType": "uint64", - "name": "end", - "type": "uint64" - } - ], - "internalType": "struct MetadataManager.MetadataVersion", - "name": "version", - "type": "tuple" - }, { "internalType": "uint64", - "name": "epoch", - "type": "uint64" - }, - { - "internalType": "uint64", - "name": "gas_limit", + "name": "propose_ratio", "type": "uint64" }, { "internalType": "uint64", - "name": "gas_price", + "name": "prevote_ratio", "type": "uint64" }, { "internalType": "uint64", - "name": "interval", + "name": "precommit_ratio", "type": "uint64" }, - { - "components": [ - { - "internalType": "bytes", - "name": "bls_pub_key", - "type": "bytes" - }, - { - "internalType": "bytes", - "name": "pub_key", - "type": "bytes" - }, - { - "internalType": "address", - "name": "address_", - "type": "address" - }, - { - "internalType": "uint32", - "name": "propose_weight", - "type": "uint32" - }, - { - "internalType": "uint32", - "name": "vote_weight", - "type": "uint32" - } - ], - "internalType": "struct MetadataManager.ValidatorExtend[]", - "name": "verifier_list", - "type": "tuple[]" - }, { "internalType": "uint64", - "name": "propose_ratio", + "name": "brake_ratio", "type": "uint64" }, { "internalType": "uint64", - "name": "prevote_ratio", + "name": "tx_num_limit", "type": "uint64" }, { "internalType": "uint64", - "name": "precommit_ratio", + "name": "max_tx_size", "type": "uint64" }, { "internalType": "uint64", - "name": "brake_ratio", + "name": "gas_limit", "type": "uint64" }, { "internalType": "uint64", - "name": "tx_num_limit", + "name": "interval", "type": "uint64" }, { "internalType": "uint64", - "name": "max_tx_size", + "name": "max_contract_limit", "type": "uint64" } ], - "internalType": "struct MetadataManager.Metadata", - "name": "", + "internalType": "struct MetadataType.ConsensusConfig", + "name": "config", "type": "tuple" } ], - "stateMutability": "view", - "type": "function" - }, - - { - "inputs": [ - { - "internalType": "address", - "name": "relayer", - "type": "address" - } - ], - "name": "isVerifier", - "outputs": [ - { - "internalType": "bool", - "name": "", - "type": "bool" - } - ], - "stateMutability": "view", - "type": "function" - }, - { - "inputs": [], - "name": "verifierList", - "outputs": [ - { - "internalType": "address[]", - "name": "", - "type": "address[]" - }, - { - "internalType": "uint256", - "name": "", - "type": "uint256" - } - ], - "stateMutability": "view", + "name": "updateConsensusConfig", + "outputs": [], + "stateMutability": "nonpayable", "type": "function" } ] @@ -341,13 +305,13 @@ The CKB Light Client Contract is the light client on Axon for CKB Layer 1. It re "inputs": [ { "internalType": "bytes32[]", - "name": "blockHashs", + "name": "blockHashes", "type": "bytes32[]" } ], "name": "rollback", "outputs": [], - "stateMutability": "view", + "stateMutability": "nonpayable", "type": "function" }, { @@ -360,7 +324,7 @@ The CKB Light Client Contract is the light client on Axon for CKB Layer 1. It re ], "name": "setState", "outputs": [], - "stateMutability": "view", + "stateMutability": "nonpayable", "type": "function" }, { @@ -409,7 +373,7 @@ The CKB Light Client Contract is the light client on Axon for CKB Layer 1. It re }, { "internalType": "bytes32", - "name": "unclesHash", + "name": "extraHash", "type": "bytes32" }, { @@ -422,6 +386,11 @@ The CKB Light Client Contract is the light client on Axon for CKB Layer 1. It re "name": "nonce", "type": "uint128" }, + { + "internalType": "bytes", + "name": "extension", + "type": "bytes" + }, { "internalType": "bytes32", "name": "blockHash", @@ -435,7 +404,7 @@ The CKB Light Client Contract is the light client on Axon for CKB Layer 1. It re ], "name": "update", "outputs": [], - "stateMutability": "view", + "stateMutability": "nonpayable", "type": "function" } ] @@ -504,7 +473,7 @@ The Image Cell Contract stores the CKB Layer 1 cells in Axon, allowing applicati ], "name": "rollback", "outputs": [], - "stateMutability": "view", + "stateMutability": "nonpayable", "type": "function" }, { @@ -517,7 +486,7 @@ The Image Cell Contract stores the CKB Layer 1 cells in Axon, allowing applicati ], "name": "setState", "outputs": [], - "stateMutability": "view", + "stateMutability": "nonpayable", "type": "function" }, { @@ -639,7 +608,7 @@ The Image Cell Contract stores the CKB Layer 1 cells in Axon, allowing applicati ], "name": "update", "outputs": [], - "stateMutability": "view", + "stateMutability": "nonpayable", "type": "function" } ]