[ { "type": "function", "name": "ACK_PACKAGE", "inputs": [], "outputs": [ { "name": "", "type": "uint8", "internalType": "uint8" } ], "stateMutability": "view" }, { "type": "function", "name": "BC_FUSION_CHANNELID", "inputs": [], "outputs": [ { "name": "", "type": "uint8", "internalType": "uint8" } ], "stateMutability": "view" }, { "type": "function", "name": "BIND_CHANNELID", "inputs": [], "outputs": [ { "name": "", "type": "uint8", "internalType": "uint8" } ], "stateMutability": "view" }, { "type": "function", "name": "CANCEL_TRANSFER_PROPOSAL", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "CODE_OK", "inputs": [], "outputs": [ { "name": "", "type": "uint32", "internalType": "uint32" } ], "stateMutability": "view" }, { "type": "function", "name": "CROSS_CHAIN_CONTRACT_ADDR", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "CROSS_CHAIN_KEY_PREFIX", "inputs": [], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "CROSS_STAKE_CHANNELID", "inputs": [], "outputs": [ { "name": "", "type": "uint8", "internalType": "uint8" } ], "stateMutability": "view" }, { "type": "function", "name": "EMERGENCY_PROPOSAL_EXPIRE_PERIOD", "inputs": [], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "EMPTY_CONTENT_HASH", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "ERROR_FAIL_DECODE", "inputs": [], "outputs": [ { "name": "", "type": "uint32", "internalType": "uint32" } ], "stateMutability": "view" }, { "type": "function", "name": "FAIL_ACK_PACKAGE", "inputs": [], "outputs": [ { "name": "", "type": "uint8", "internalType": "uint8" } ], "stateMutability": "view" }, { "type": "function", "name": "GOVERNOR_ADDR", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "GOV_CHANNELID", "inputs": [], "outputs": [ { "name": "", "type": "uint8", "internalType": "uint8" } ], "stateMutability": "view" }, { "type": "function", "name": "GOV_HUB_ADDR", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "GOV_TOKEN_ADDR", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "INCENTIVIZE_ADDR", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "INIT_BATCH_SIZE", "inputs": [], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "INIT_CANCEL_TRANSFER_QUORUM", "inputs": [], "outputs": [ { "name": "", "type": "uint16", "internalType": "uint16" } ], "stateMutability": "view" }, { "type": "function", "name": "INIT_REOPEN_QUORUM", "inputs": [], "outputs": [ { "name": "", "type": "uint16", "internalType": "uint16" } ], "stateMutability": "view" }, { "type": "function", "name": "INIT_SUSPEND_QUORUM", "inputs": [], "outputs": [ { "name": "", "type": "uint16", "internalType": "uint16" } ], "stateMutability": "view" }, { "type": "function", "name": "LIGHT_CLIENT_ADDR", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "RELAYERHUB_CONTRACT_ADDR", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "REOPEN_PROPOSAL", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "SLASH_CHANNELID", "inputs": [], "outputs": [ { "name": "", "type": "uint8", "internalType": "uint8" } ], "stateMutability": "view" }, { "type": "function", "name": "SLASH_CONTRACT_ADDR", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "STAKE_CREDIT_ADDR", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "STAKE_HUB_ADDR", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "STAKING_CHANNELID", "inputs": [], "outputs": [ { "name": "", "type": "uint8", "internalType": "uint8" } ], "stateMutability": "view" }, { "type": "function", "name": "STAKING_CONTRACT_ADDR", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "STORE_NAME", "inputs": [], "outputs": [ { "name": "", "type": "string", "internalType": "string" } ], "stateMutability": "view" }, { "type": "function", "name": "SUSPEND_PROPOSAL", "inputs": [], "outputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "SYN_PACKAGE", "inputs": [], "outputs": [ { "name": "", "type": "uint8", "internalType": "uint8" } ], "stateMutability": "view" }, { "type": "function", "name": "SYSTEM_REWARD_ADDR", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "TIMELOCK_ADDR", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "TOKEN_HUB_ADDR", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "TOKEN_MANAGER_ADDR", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "TOKEN_RECOVER_PORTAL_ADDR", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "TRANSFER_IN_CHANNELID", "inputs": [], "outputs": [ { "name": "", "type": "uint8", "internalType": "uint8" } ], "stateMutability": "view" }, { "type": "function", "name": "TRANSFER_OUT_CHANNELID", "inputs": [], "outputs": [ { "name": "", "type": "uint8", "internalType": "uint8" } ], "stateMutability": "view" }, { "type": "function", "name": "VALIDATOR_CONTRACT_ADDR", "inputs": [], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "alreadyInit", "inputs": [], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "batchSizeForOracle", "inputs": [], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "bscChainID", "inputs": [], "outputs": [ { "name": "", "type": "uint16", "internalType": "uint16" } ], "stateMutability": "view" }, { "type": "function", "name": "cancelTransfer", "inputs": [ { "name": "tokenAddr", "type": "address", "internalType": "address" }, { "name": "attacker", "type": "address", "internalType": "address" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "challenge", "inputs": [ { "name": "params", "type": "uint64[4]", "internalType": "uint64[4]" }, { "name": "payload0", "type": "bytes", "internalType": "bytes" }, { "name": "payload1", "type": "bytes", "internalType": "bytes" }, { "name": "proof0", "type": "bytes", "internalType": "bytes" }, { "name": "proof1", "type": "bytes", "internalType": "bytes" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "challenged", "inputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "channelHandlerContractMap", "inputs": [ { "name": "", "type": "uint8", "internalType": "uint8" } ], "outputs": [ { "name": "", "type": "address", "internalType": "address" } ], "stateMutability": "view" }, { "type": "function", "name": "channelReceiveSequenceMap", "inputs": [ { "name": "", "type": "uint8", "internalType": "uint8" } ], "outputs": [ { "name": "", "type": "uint64", "internalType": "uint64" } ], "stateMutability": "view" }, { "type": "function", "name": "channelSendSequenceMap", "inputs": [ { "name": "", "type": "uint8", "internalType": "uint8" } ], "outputs": [ { "name": "", "type": "uint64", "internalType": "uint64" } ], "stateMutability": "view" }, { "type": "function", "name": "channelSyncedHeaderMap", "inputs": [ { "name": "", "type": "uint8", "internalType": "uint8" } ], "outputs": [ { "name": "", "type": "uint64", "internalType": "uint64" } ], "stateMutability": "view" }, { "type": "function", "name": "emergencyProposals", "inputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "outputs": [ { "name": "quorum", "type": "uint16", "internalType": "uint16" }, { "name": "expiredAt", "type": "uint128", "internalType": "uint128" }, { "name": "contentHash", "type": "bytes32", "internalType": "bytes32" } ], "stateMutability": "view" }, { "type": "function", "name": "encodePayload", "inputs": [ { "name": "packageType", "type": "uint8", "internalType": "uint8" }, { "name": "relayFee", "type": "uint256", "internalType": "uint256" }, { "name": "msgBytes", "type": "bytes", "internalType": "bytes" } ], "outputs": [ { "name": "", "type": "bytes", "internalType": "bytes" } ], "stateMutability": "pure" }, { "type": "function", "name": "handlePackage", "inputs": [ { "name": "payload", "type": "bytes", "internalType": "bytes" }, { "name": "proof", "type": "bytes", "internalType": "bytes" }, { "name": "height", "type": "uint64", "internalType": "uint64" }, { "name": "packageSequence", "type": "uint64", "internalType": "uint64" }, { "name": "channelId", "type": "uint8", "internalType": "uint8" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "init", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "isRelayRewardFromSystemReward", "inputs": [ { "name": "", "type": "uint8", "internalType": "uint8" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "isSuspended", "inputs": [], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "oracleSequence", "inputs": [], "outputs": [ { "name": "", "type": "int64", "internalType": "int64" } ], "stateMutability": "view" }, { "type": "function", "name": "previousTxHeight", "inputs": [], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "quorumMap", "inputs": [ { "name": "", "type": "bytes32", "internalType": "bytes32" } ], "outputs": [ { "name": "", "type": "uint16", "internalType": "uint16" } ], "stateMutability": "view" }, { "type": "function", "name": "registeredContractChannelMap", "inputs": [ { "name": "", "type": "address", "internalType": "address" }, { "name": "", "type": "uint8", "internalType": "uint8" } ], "outputs": [ { "name": "", "type": "bool", "internalType": "bool" } ], "stateMutability": "view" }, { "type": "function", "name": "reopen", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "sendSynPackage", "inputs": [ { "name": "channelId", "type": "uint8", "internalType": "uint8" }, { "name": "msgBytes", "type": "bytes", "internalType": "bytes" }, { "name": "relayFee", "type": "uint256", "internalType": "uint256" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "suspend", "inputs": [], "outputs": [], "stateMutability": "nonpayable" }, { "type": "function", "name": "txCounter", "inputs": [], "outputs": [ { "name": "", "type": "uint256", "internalType": "uint256" } ], "stateMutability": "view" }, { "type": "function", "name": "updateParam", "inputs": [ { "name": "key", "type": "string", "internalType": "string" }, { "name": "value", "type": "bytes", "internalType": "bytes" } ], "outputs": [], "stateMutability": "nonpayable" }, { "type": "event", "name": "ProposalSubmitted", "inputs": [ { "name": "proposalTypeHash", "type": "bytes32", "indexed": true, "internalType": "bytes32" }, { "name": "proposer", "type": "address", "indexed": true, "internalType": "address" }, { "name": "quorum", "type": "uint128", "indexed": false, "internalType": "uint128" }, { "name": "expiredAt", "type": "uint128", "indexed": false, "internalType": "uint128" }, { "name": "contentHash", "type": "bytes32", "indexed": false, "internalType": "bytes32" } ], "anonymous": false }, { "type": "event", "name": "Reopened", "inputs": [ { "name": "executor", "type": "address", "indexed": true, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "SuccessChallenge", "inputs": [ { "name": "challenger", "type": "address", "indexed": true, "internalType": "address" }, { "name": "packageSequence", "type": "uint64", "indexed": false, "internalType": "uint64" }, { "name": "channelId", "type": "uint8", "indexed": false, "internalType": "uint8" } ], "anonymous": false }, { "type": "event", "name": "Suspended", "inputs": [ { "name": "executor", "type": "address", "indexed": true, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "addChannel", "inputs": [ { "name": "channelId", "type": "uint8", "indexed": true, "internalType": "uint8" }, { "name": "contractAddr", "type": "address", "indexed": true, "internalType": "address" } ], "anonymous": false }, { "type": "event", "name": "crossChainPackage", "inputs": [ { "name": "chainId", "type": "uint16", "indexed": false, "internalType": "uint16" }, { "name": "oracleSequence", "type": "uint64", "indexed": true, "internalType": "uint64" }, { "name": "packageSequence", "type": "uint64", "indexed": true, "internalType": "uint64" }, { "name": "channelId", "type": "uint8", "indexed": true, "internalType": "uint8" }, { "name": "payload", "type": "bytes", "indexed": false, "internalType": "bytes" } ], "anonymous": false }, { "type": "event", "name": "enableOrDisableChannel", "inputs": [ { "name": "channelId", "type": "uint8", "indexed": true, "internalType": "uint8" }, { "name": "isEnable", "type": "bool", "indexed": false, "internalType": "bool" } ], "anonymous": false }, { "type": "event", "name": "paramChange", "inputs": [ { "name": "key", "type": "string", "indexed": false, "internalType": "string" }, { "name": "value", "type": "bytes", "indexed": false, "internalType": "bytes" } ], "anonymous": false }, { "type": "event", "name": "receivedPackage", "inputs": [ { "name": "packageType", "type": "uint8", "indexed": false, "internalType": "uint8" }, { "name": "packageSequence", "type": "uint64", "indexed": true, "internalType": "uint64" }, { "name": "channelId", "type": "uint8", "indexed": true, "internalType": "uint8" } ], "anonymous": false }, { "type": "event", "name": "unexpectedFailureAssertionInPackageHandler", "inputs": [ { "name": "contractAddr", "type": "address", "indexed": true, "internalType": "address" }, { "name": "lowLevelData", "type": "bytes", "indexed": false, "internalType": "bytes" } ], "anonymous": false }, { "type": "event", "name": "unexpectedRevertInPackageHandler", "inputs": [ { "name": "contractAddr", "type": "address", "indexed": true, "internalType": "address" }, { "name": "reason", "type": "string", "indexed": false, "internalType": "string" } ], "anonymous": false }, { "type": "event", "name": "unsupportedPackage", "inputs": [ { "name": "packageSequence", "type": "uint64", "indexed": true, "internalType": "uint64" }, { "name": "channelId", "type": "uint8", "indexed": true, "internalType": "uint8" }, { "name": "payload", "type": "bytes", "indexed": false, "internalType": "bytes" } ], "anonymous": false } ]