Skip to Content

@cfxdevkit/protocol


@cfxdevkit/protocol / posRegisterAbi

Variable: posRegisterAbi

const posRegisterAbi: 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"; }]

Defined in: precompiles.ts:416

PoSRegister — Core Space internal contract. Manages PoS validator registration and provides staking/reward queries.

Address: 0x0888000000000000000000000000000000000005 Access: Core Space only (use cive client).