Options
All
  • Public
  • Public/Protected
  • All
Menu

Hierarchy

  • LinkTransactionGenericFactory

Index

Constructors

constructor

Methods

Private addTransaction

  • addTransaction<A, T>(alreadyLinkedAccount: undefined | A, transactionFactory: (transaction: A, action: LinkAction) => T, nodeName: string, accountName: string, accountTobeLinked: A, print: (account: A) => string): Promise<T[]>
  • Type parameters

    Parameters

    • alreadyLinkedAccount: undefined | A
    • transactionFactory: (transaction: A, action: LinkAction) => T
        • (transaction: A, action: LinkAction): T
        • Parameters

          • transaction: A
          • action: LinkAction

          Returns T

    • nodeName: string
    • accountName: string
    • accountTobeLinked: A
    • print: (account: A) => string
        • (account: A): string
        • Parameters

          • account: A

          Returns string

    Returns Promise<T[]>

addVotingKeyLinkTransactions

addVotingKeyUnlinkTransactions

Private confirmUnlink

  • confirmUnlink<T>(accountName: string, alreadyLinkedAccount: T, print: (account: T) => string): Promise<boolean>
  • Type parameters

    • T

    Parameters

    • accountName: string
    • alreadyLinkedAccount: T
    • print: (account: T) => string
        • (account: T): string
        • Parameters

          • account: T

          Returns string

    Returns Promise<boolean>

createGenericTransactions

  • createGenericTransactions<AccountKL, VRFKL, VotingKL>(nodeName: string, currentMainAccountKeys: GenericNodeAccount, nodeAccount: GenericNodeAccount, latestFinalizedBlockEpoch: number, remoteTransactionFactory: (keyAccount: KeyAccount, action: LinkAction) => AccountKL, vrfTransactionFactory: (keyAccount: KeyAccount, action: LinkAction) => VRFKL, votingKeyTransactionFactory: (account: VotingKeyAccount, action: LinkAction) => VotingKL): Promise<(AccountKL | VRFKL | VotingKL)[]>
  • Type parameters

    • AccountKL

    • VRFKL

    • VotingKL

    Parameters

    • nodeName: string
    • currentMainAccountKeys: GenericNodeAccount
    • nodeAccount: GenericNodeAccount
    • latestFinalizedBlockEpoch: number
    • remoteTransactionFactory: (keyAccount: KeyAccount, action: LinkAction) => AccountKL
        • (keyAccount: KeyAccount, action: LinkAction): AccountKL
        • Parameters

          Returns AccountKL

    • vrfTransactionFactory: (keyAccount: KeyAccount, action: LinkAction) => VRFKL
        • (keyAccount: KeyAccount, action: LinkAction): VRFKL
        • Parameters

          Returns VRFKL

    • votingKeyTransactionFactory: (account: VotingKeyAccount, action: LinkAction) => VotingKL

    Returns Promise<(AccountKL | VRFKL | VotingKL)[]>

Static overlapsVotingAccounts

Generated using TypeDoc