Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Tools

Hierarchy

  • Tools

Index

Constructors

constructor

  • Parameters

    Returns Tools

Properties

Readonly client

client: Client

Methods

buildWitnessSetPropertiesOp

call

  • call(method: string, params?: any[] | {}): Promise<any>
  • Convenience for calling condenser_api.

    Parameters

    • method: string
    • Optional params: any[] | {}

    Returns Promise<any>

convertVESTS

getAccountMana

  • getAccountMana(name: string): Promise<{ current_mana: number; max_mana: number }>
  • Get Mana of an account.

    Parameters

    • name: string

    Returns Promise<{ current_mana: number; max_mana: number }>

getAccountVoteValue

  • getAccountVoteValue(voteWeight: number, mana: { current_mana: number; max_mana: number }, net_rshares: string | number, cashout_time: number, DGP: DynamicGlobalProperties, REWARD_FUND: RewardFund): number
  • Get the Vote value of an account for a specific post.

    Parameters

    • voteWeight: number

      % of the vote.

    • mana: { current_mana: number; max_mana: number }
      • current_mana: number
      • max_mana: number
    • net_rshares: string | number

      Net Rshares of the post.

    • cashout_time: number

      Cashout time of the post (in millisecond).

    • DGP: DynamicGlobalProperties
    • REWARD_FUND: RewardFund

    Returns number

serialize

  • serialize(serializer: Serializer, data: any): Buffer
  • Parameters

    Returns Buffer

Generated using TypeDoc