Skip to Content

@cfxdevkit/protocol


@cfxdevkit/protocol / POS_REGISTER_ABI

Variable: POS_REGISTER_ABI

const POS_REGISTER_ABI: readonly [{ inputs: readonly [{ internalType: "bytes32"; name: "indentifier"; type: "bytes32"; }, { internalType: "uint64"; name: "votePower"; type: "uint64"; }, { internalType: "bytes"; name: "blsPubKey"; type: "bytes"; }, { internalType: "bytes"; name: "vrfPubKey"; type: "bytes"; }, { internalType: "bytes[2]"; name: "blsPubKeyProof"; type: "bytes[2]"; }]; name: "register"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "uint64"; name: "votePower"; type: "uint64"; }]; name: "increaseStake"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "uint64"; name: "votePower"; type: "uint64"; }]; name: "retire"; outputs: readonly []; stateMutability: "nonpayable"; type: "function"; }, { inputs: readonly [{ internalType: "bytes32"; name: "identifier"; type: "bytes32"; }]; name: "getVotes"; outputs: readonly [{ internalType: "uint256"; name: "totalVotes"; type: "uint256"; }, { internalType: "uint256"; name: "unlockedVotes"; type: "uint256"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "bytes32"; name: "identifier"; type: "bytes32"; }]; name: "identifierToAddress"; outputs: readonly [{ internalType: "address"; name: ""; type: "address"; }]; stateMutability: "view"; type: "function"; }, { inputs: readonly [{ internalType: "address"; name: "addr"; type: "address"; }]; name: "addressToIdentifier"; outputs: readonly [{ internalType: "bytes32"; name: ""; type: "bytes32"; }]; stateMutability: "view"; type: "function"; }, { anonymous: false; inputs: readonly [{ indexed: true; name: "identifier"; type: "bytes32"; }, { indexed: false; name: "blsPubKey"; type: "bytes"; }, { indexed: false; name: "vrfPubKey"; type: "bytes"; }]; name: "Register"; type: "event"; }, { anonymous: false; inputs: readonly [{ indexed: true; name: "identifier"; type: "bytes32"; }, { indexed: false; name: "votePower"; type: "uint64"; }]; name: "IncreaseStake"; type: "event"; }, { anonymous: false; inputs: readonly [{ indexed: true; name: "identifier"; type: "bytes32"; }, { indexed: false; name: "votePower"; type: "uint64"; }]; name: "Retire"; type: "event"; }] = posRegisterAbi

Defined in: precompiles.ts:498