@lumera/sdk-js
    Preparing search index...

    Type Alias SuperNode

    SuperNode

    lumera.supernode.v1

    proto type: lumera.supernode.v1.SuperNode

    type SuperNode = {
        typeUrl: string;
        decode(
            input: Uint8Array<ArrayBufferLike> | BinaryReader,
            length?: number,
        ): SuperNode;
        encode(message: SuperNode, writer?: BinaryWriter): BinaryWriter;
        fromAmino(object: SuperNodeAmino): SuperNode;
        fromAminoMsg(object: SuperNodeAminoMsg): SuperNode;
        fromPartial(
            object: {
                evidence?: {
                    actionId?: string;
                    description?: string;
                    evidenceType?: string;
                    height?: number;
                    reporterAddress?: string;
                    severity?: bigint;
                    validatorAddress?: string;
                }[];
                metrics?: {
                    height?: bigint;
                    metrics?: { [key: string]: number
                    | undefined };
                    reportCount?: bigint;
                };
                note?: string;
                p2pPort?: string;
                prevIpAddresses?: { address?: string; height?: bigint }[];
                prevSupernodeAccounts?: { account?: string; height?: bigint }[];
                states?: { height?: bigint; state?: SuperNodeState }[];
                supernodeAccount?: string;
                validatorAddress?: string;
            },
        ): SuperNode;
        fromProtoMsg(message: SuperNodeProtoMsg): SuperNode;
        is(o: any): o is SuperNode;
        isAmino(o: any): o is SuperNodeAmino;
        registerTypeUrl(): void;
        toAmino(message: SuperNode): SuperNodeAmino;
        toProto(message: SuperNode): Uint8Array;
        toProtoMsg(message: SuperNode): SuperNodeProtoMsg;
    }
    Index

    Properties

    typeUrl: string = "/lumera.supernode.v1.SuperNode"

    Methods

    • Parameters

      • object: {
            evidence?: {
                actionId?: string;
                description?: string;
                evidenceType?: string;
                height?: number;
                reporterAddress?: string;
                severity?: bigint;
                validatorAddress?: string;
            }[];
            metrics?: {
                height?: bigint;
                metrics?: { [key: string]: number
                | undefined };
                reportCount?: bigint;
            };
            note?: string;
            p2pPort?: string;
            prevIpAddresses?: { address?: string; height?: bigint }[];
            prevSupernodeAccounts?: { account?: string; height?: bigint }[];
            states?: { height?: bigint; state?: SuperNodeState }[];
            supernodeAccount?: string;
            validatorAddress?: string;
        }

      Returns SuperNode