Options
All
  • Public
  • Public/Protected
  • All
Menu

Class AnnounceService

Hierarchy

  • AnnounceService

Index

Constructors

Properties

flags: { customPreset: IOptionFlag<undefined | string>; maxFee: IOptionFlag<undefined | number>; noPassword: IBooleanFlag<boolean>; password: IOptionFlag<undefined | string>; ready: IBooleanFlag<boolean>; serviceProviderPublicKey: IOptionFlag<undefined | string>; url: IOptionFlag<string>; useKnownRestGateways: IBooleanFlag<boolean> } = ...

Type declaration

  • customPreset: IOptionFlag<undefined | string>
  • maxFee: IOptionFlag<undefined | number>
  • noPassword: IBooleanFlag<boolean>
  • password: IOptionFlag<undefined | string>
  • ready: IBooleanFlag<boolean>
  • serviceProviderPublicKey: IOptionFlag<undefined | string>
  • url: IOptionFlag<string>
  • useKnownRestGateways: IBooleanFlag<boolean>

Methods

  • announce(providedUrl: string, providedMaxFee: undefined | number, useKnownRestGateways: boolean, ready: undefined | boolean, target: string, presetData: ConfigPreset, addresses: Addresses, transactionFactory: TransactionFactory, tokenAmount?: string, serviceProviderPublicKey?: string): Promise<void>
  • announceAggregateBonded(signerAccount: Account, transactionFactory: () => Transaction[], requiredCosignatures: number, deadline: Deadline, networkType: NetworkType, defaultMaxFee: UInt64, providedMaxFee: undefined | number, minFeeMultiplier: number, cosigners: Account[], generationHash: string, currency: Currency, transactionService: TransactionService, listener: IListener, ready: undefined | boolean, nodeName: string): Promise<boolean>
  • Parameters

    • signerAccount: Account
    • transactionFactory: () => Transaction[]
        • (): Transaction[]
        • Returns Transaction[]

    • requiredCosignatures: number
    • deadline: Deadline
    • networkType: NetworkType
    • defaultMaxFee: UInt64
    • providedMaxFee: undefined | number
    • minFeeMultiplier: number
    • cosigners: Account[]
    • generationHash: string
    • currency: Currency
    • transactionService: TransactionService
    • listener: IListener
    • ready: undefined | boolean
    • nodeName: string

    Returns Promise<boolean>

  • announceAggregateComplete(signer: Account, transactionFactory: () => Transaction[], deadline: Deadline, networkType: NetworkType, defaultMaxFee: UInt64, providedMaxFee: undefined | number, minFeeMultiplier: number, generationHash: string, currency: Currency, transactionService: TransactionService, listener: IListener, ready: undefined | boolean, nodeName: string, requiredCosignatures?: number, cosigners?: Account[]): Promise<boolean>
  • Parameters

    • signer: Account
    • transactionFactory: () => Transaction[]
        • (): Transaction[]
        • Returns Transaction[]

    • deadline: Deadline
    • networkType: NetworkType
    • defaultMaxFee: UInt64
    • providedMaxFee: undefined | number
    • minFeeMultiplier: number
    • generationHash: string
    • currency: Currency
    • transactionService: TransactionService
    • listener: IListener
    • ready: undefined | boolean
    • nodeName: string
    • Optional requiredCosignatures: number
    • Optional cosigners: Account[]

    Returns Promise<boolean>

  • announceSimple(signer: Account, transaction: Transaction, providedMaxFee: undefined | number, minFeeMultiplier: number, generationHash: string, currency: Currency, transactionService: TransactionService, listener: IListener, ready: undefined | boolean, nodeName: string): Promise<boolean>
  • Parameters

    • signer: Account
    • transaction: Transaction
    • providedMaxFee: undefined | number
    • minFeeMultiplier: number
    • generationHash: string
    • currency: Currency
    • transactionService: TransactionService
    • listener: IListener
    • ready: undefined | boolean
    • nodeName: string

    Returns Promise<boolean>

  • getAccountInfo(repositoryFactory: RepositoryFactory, mainAccountAddress: Address): Promise<undefined | AccountInfo>
  • getBestCosigner(repositoryFactory: RepositoryFactory, cosigners: Account[], currencyMosaicId: undefined | MosaicId): Promise<undefined | Account>
  • Parameters

    • repositoryFactory: RepositoryFactory
    • cosigners: Account[]
    • currencyMosaicId: undefined | MosaicId

    Returns Promise<undefined | Account>

  • getMultisigBestCosigner(msigAccountInfo: MultisigAccountInfo, cosigners: Account[], accountName: string, networkType: NetworkType, repositoryFactory: RepositoryFactory, currencyMosaicId: undefined | MosaicId): Promise<undefined | Account>
  • Parameters

    • msigAccountInfo: MultisigAccountInfo
    • cosigners: Account[]
    • accountName: string
    • networkType: NetworkType
    • repositoryFactory: RepositoryFactory
    • currencyMosaicId: undefined | MosaicId

    Returns Promise<undefined | Account>

  • getTransactionDescription(transaction: Transaction, signedTransaction: SignedTransaction, currency: Currency): string
  • isAccountEmpty(mainAccountInfo: AccountInfo, currencyMosaicId: undefined | MosaicId): boolean
  • promptAccounts(networkType: NetworkType, expectedAddresses: Address[], minApproval: number): Promise<Account[]>
  • shouldAnnounce(transaction: Transaction, signedTransaction: SignedTransaction, ready: undefined | boolean, currency: Currency, nodeName: string): Promise<boolean>
  • Parameters

    • transaction: Transaction
    • signedTransaction: SignedTransaction
    • ready: undefined | boolean
    • currency: Currency
    • nodeName: string

    Returns Promise<boolean>

  • onProcessListener(): void

Generated using TypeDoc