UNPKG

@avalabs/avalanchejs

Version:
24 lines 1.21 kB
import type { Codec } from '../../codec'; import { BigIntPr, Bytes } from '../../primitives'; import { TypeSymbols } from '../../constants'; import { ProofOfPossession } from '../../pvm/proofOfPossession'; import { PChainOwner } from './pChainOwner'; export declare class L1Validator { readonly nodeId: Bytes; readonly weight: BigIntPr; readonly balance: BigIntPr; readonly signer: ProofOfPossession; readonly remainingBalanceOwner: PChainOwner; readonly deactivationOwner: PChainOwner; _type: TypeSymbols; constructor(nodeId: Bytes, weight: BigIntPr, balance: BigIntPr, signer: ProofOfPossession, remainingBalanceOwner: PChainOwner, deactivationOwner: PChainOwner); getBalance(): BigIntPr; getNodeId(): Bytes; getWeight(): bigint; getRemainingBalanceOwner(): PChainOwner; getDeactivationOwner(): PChainOwner; static fromNative(nodeId: string, weight: bigint, balance: bigint, signer: ProofOfPossession, remainingBalanceOwner: PChainOwner, deactivationOwner: PChainOwner): L1Validator; static fromBytes(bytes: Uint8Array, codec: Codec): [L1Validator, Uint8Array]; toBytes(codec: Codec): Uint8Array; } //# sourceMappingURL=L1Validator.d.ts.map