预编译合约地址查询
Credibility
"internalType": "bytes32",
"name": "_requestId",
"type": "bytes32"
},
{
"internalType": "bytes",
"name": "_input",
"type": "bytes"
},
{
"internalType": "string",
"name": "_data",
"type": "string"
}
],
"name": "responseOracle",
"outputs": [
{
"internalType": "bool",
"name": "",
"type": "bool"
},
{
"internalType": "bytes",
"name": "data",
"type": "bytes"
}
],
"stateMutability": "nonpayable",
"type": "function"
}
]
Identity
[
{
"inputs": [
{
"internalType": "address",
"name": "_oldAddress",
"type": "address"
},
{
"internalType": "address",
"name": "_newAddress",
"type": "address"
},
{
"internalType": "string",
"name": "_data",
"type": "string"
}
],
"name": "changeIdentity",
"outputs": [],
"stateMutability": "pure",
"type": "function"
}
]
Peekaboo
[
{
"inputs": [
{
"internalType": "bytes32",
"name": "_hash",
"type": "bytes32"
}
],
"name": "addHash",
"outputs": [],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "bytes32",
"name": "_hash",
"type": "bytes32"
}
],
"name": "delHash",
"outputs": [],
"stateMutability": "pure",
"type": "function"
}
]
ContractInnerManagerProposal
json
[
{
"inputs": [
{
"internalType": "address",
"name": "Address",
"type": "address"
},
{
"internalType": "string",
"name": "operation",
"type": "string"
}
],
"name": "launch",
"outputs": [
{
"internalType": "string",
"name": "",
"type": "string"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "Address",
"type": "address"
},
{
"components": [
{
"internalType": "uint8",
"name": "permissionMode",
"type": "uint8"
},
{
"internalType": "uint64",
"name": "threshold",
"type": "uint64"
},
{
"internalType": "address[]",
"name": "blackList",
"type": "address[]"
},
{
"internalType": "address[]",
"name": "whiteList",
"type": "address[]"
},
{
"components": [
{
"internalType": "address",
"name": "Address",
"type": "address"
},
{
"internalType": "uint8",
"name": "weight",
"type": "uint8"
}
],
"internalType": "struct chainbychain.Manager[]",
"name": "managerList",
"type": "tuple[]"
}
],
"internalType": "struct chainbychain.Args",
"name": "permissionList",
"type": "tuple"
}
],
"name": "init",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
ContractLifecycleProposal
json
[
{
"inputs": [
{
"internalType": "address",
"name": "Address",
"type": "address"
},
{
"internalType": "uint8",
"name": "IsRevoke",
"type": "uint8"
}
],
"name": "launch",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "pure",
"type": "function"
}
]
ModifyConfigProposal
json
[
{
"inputs": [
{
"internalType": "address[]",
"name": "LatcSaint",
"type": "address[]"
}
],
"name": "addLatcSaint",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256",
"name": "Period",
"type": "uint256"
}
],
"name": "changePeriod",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "address[]",
"name": "LatcSaint",
"type": "address[]"
}
],
"name": "delLatcSaint",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "oldSaint",
"type": "address"
},
{
"internalType": "address",
"name": "newSaint",
"type": "address"
}
],
"name": "replaceLatcSaint",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "oldSaint",
"type": "address"
},
{
"internalType": "address",
"name": "newSaint",
"type": "address"
}
],
"name": "replacePreacher",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "bool",
"name": "IsDictatorship",
"type": "bool"
}
],
"name": "isDictatorship",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "bool",
"name": "isContractVote",
"type": "bool"
}
],
"name": "switchIsContractVote",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "bool",
"name": "contractPermission",
"type": "bool"
}
],
"name": "switchContractPermission",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "Consensus",
"type": "string"
}
],
"name": "switchConsensus",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "deployRule",
"type": "uint8"
}
],
"name": "switchDeployRule",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "bool",
"name": "noEmptyAnchor",
"type": "bool"
}
],
"name": "switchNoEmptyAnchor",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "address",
"name": "preacher",
"type": "address"
}
],
"name": "changePreacher",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint64",
"name": "emptyAnchorPeriodMul",
"type": "uint64"
}
],
"name": "changeEmptyAnchorPeriodMul",
"outputs": [],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint64",
"name": "proposalExpireTime",
"type": "uint64"
}
],
"name": "changeProposalExpireTime",
"outputs": [],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint8",
"name": "chainByChainVote",
"type": "uint8"
}
],
"name": "changeChainByChainVote",
"outputs": [],
"stateMutability": "pure",
"type": "function"
}
]
ProposalVote
json
[
{
"inputs": [
{
"internalType": "string",
"name": "ProposalId",
"type": "string"
},
{
"internalType": "uint8",
"name": "VoteSuggestion",
"type": "uint8"
}
],
"name": "vote",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "pure",
"type": "function"
},{
"inputs": [
{
"internalType": "string",
"name": "ProposalId",
"type": "string"
},
{
"internalType": "bytes",
"name": "sign",
"type": "bytes"
},
{
"internalType": "address",
"name": "from",
"type": "address"
}
],
"name": "signVote",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "pure",
"type": "function"
},{
"inputs": [
{
"internalType": "string",
"name": "ProposalId",
"type": "string"
}
],
"name": "refresh",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "string[]",
"name": "proposalIds",
"type": "string[]"
}
],
"name": "batchRefresh",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "string",
"name": "proposalId",
"type": "string"
}
],
"name": "cancel",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "pure",
"type": "function"
}
]
ChainByChainProposal
json
[
{
"inputs": [
{
"internalType": "uint64",
"name": "chainId",
"type": "uint64"
}
],
"name": "delChain",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "uint8",
"name": "consensus",
"type": "uint8"
},
{
"internalType": "bool",
"name": "tokenless",
"type": "bool"
},
{
"internalType": "uint256",
"name": "godAmount",
"type": "uint256"
},
{
"internalType": "uint64",
"name": "period",
"type": "uint64"
},
{
"internalType": "bool",
"name": "noEmptyAnchor",
"type": "bool"
},
{
"internalType": "uint64",
"name": "emptyAnchorPeriodMul",
"type": "uint64"
},
{
"internalType": "bool",
"name": "isContractVote",
"type": "bool"
},
{
"internalType": "bool",
"name": "isDictatorship",
"type": "bool"
},
{
"internalType": "uint8",
"name": "deployRule",
"type": "uint8"
},
{
"internalType": "string",
"name": "name",
"type": "string"
},
{
"internalType": "string",
"name": "chainId",
"type": "string"
},
{
"internalType": "address",
"name": "preacher",
"type": "address"
},
{
"internalType": "string",
"name": "bootStrap",
"type": "string"
},
{
"components": [
{
"internalType": "address",
"name": "member",
"type": "address"
},
{
"internalType": "uint8",
"name": "memberType",
"type": "uint8"
}
],
"internalType": "struct chainbychain.ChainMember[]",
"name": "chainMemberGroup",
"type": "tuple[]"
}
],
"internalType": "struct chainbychain.Args",
"name": "args",
"type": "tuple"
}
],
"name": "newChain",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint64",
"name": "chainId",
"type": "uint64"
},
{
"internalType": "uint64",
"name": "networkId",
"type": "uint64"
},
{
"internalType": "string",
"name": "nodeInfo",
"type": "string"
},
{
"internalType": "address[]",
"name": "accessMembers",
"type": "address[]"
}
],
"name": "oldChain",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint64",
"name": "chainId",
"type": "uint64"
}
],
"name": "stopChain",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint64",
"name": "chainId",
"type": "uint64"
}
],
"name": "startChain",
"outputs": [],
"stateMutability": "nonpayable",
"type": "function"
}
]
NodeCertContract
json
[
{
"inputs": [
{
"internalType": "uint8",
"name": "certType",
"type": "uint8"
},
{
"internalType": "string",
"name": "orgName",
"type": "string"
},
{
"components": [
{
"internalType": "address",
"name": "address",
"type": "address"
}
],
"internalType": "struct ApplyCert[]",
"name": "nodes",
"type": "tuple[]"
}
],
"name": "apply",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "pure",
"type": "function"
},{
"inputs": [
{
"internalType": "uint8",
"name": "certType",
"type": "uint8"
},
{
"internalType": "string",
"name": "orgName",
"type": "string"
},
{
"components": [
{
"internalType": "address",
"name": "address",
"type": "address"
}
],
"internalType": "struct ApplyCert[]",
"name": "nodes",
"type": "tuple[]"
}
],
"name": "apply",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"internalType": "uint256[]",
"name": "serialNumber",
"type": "uint256[]"
}
],
"name": "revoke",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "bytes",
"name": "publicKey",
"type": "bytes"
}
],
"internalType": "struct UploadKeyParam[]",
"name": "nodes",
"type": "tuple[]"
}
],
"name": "uploadKey",
"outputs": [
{
"internalType": "bytes",
"name": "",
"type": "bytes"
}
],
"stateMutability": "pure",
"type": "function"
},
{
"inputs": [
{
"components": [
{
"internalType": "string",
"name": "OrgName",
"type": "string"
},
{
"internalType": "uint8",
"name": "CertType",
"type": "uint8"
},
{
"components": [
{
"internalType": "bytes",
"name": "PublicKey",
"type": "bytes"
}
],
"internalType": "struct nodeCert.UploadKeyParam[]",
"name": "Applies",
"type": "tuple[]"
}
],
"internalType": "struct nodeCert.UpAndApplyParam",
"name": "param",
"type": "tuple"
}
],
"name": "upAndApply",
"outputs": [],
"stateMutability": "pure",
"type": "function"
}
]