Options
All
  • Public
  • Public/Protected
  • All
Menu

Terra.js

Index

Namespaces

Enumerations

Classes

Interfaces

Type aliases

Variables

Functions

Object literals

Type aliases

BasePool

BasePool: Type<"market", "basepool", Dec>

BaseProposerReward

BaseProposerReward: Type<"distribution", "baseproposerreward", Dec>

BlocksPerYear

BlocksPerYear: Type<"mint", "BlocksPerYear", number>

BondDenom

BondDenom: Type<"staking", "BondDenom", Denom>

BonusProposerReward

BonusProposerReward: Type<"distribution", "bonusproposerreward", Dec>

CommunityTax

CommunityTax: Type<"distribution", "communitytax", Dec>

DepositParamsParamChange

DepositParamsParamChange: Type<"gov", "depositparams", DepositParams>

DowntimeJailDuration

DowntimeJailDuration: Type<"slashing", "DowntimeJailDuration", number>

GoalBonded

GoalBonded: Type<"mint", "GoalBonded", Dec>

IlliquidTobinTaxList

IlliquidTobinTaxList: Type<"market", "illiquidtobintaxlist", TaxRate[]>

InflationMax

InflationMax: Type<"mint", "InflationMax", Dec>

InflationMin

InflationMin: Type<"mint", "InflationMin", Dec>

InflationRateChange

InflationRateChange: Type<"mint", "InflationRateChange", Dec>

MaxContractGas

MaxContractGas: Type<"wasm", "maxcontractgas", number>

MaxContractMsgSize

MaxContractMsgSize: Type<"wasm", "maxcontractmsgsize", number>

MaxContractSize

MaxContractSize: Type<"wasm", "maxcontractsize", number>

MaxEntries

MaxEntries: Type<"staking", "KeyMaxEntries", number>

MaxEvidenceAge

MaxEvidenceAge: Type<"slashing", "MaxEvidenceAge", number>

MaxValidators

MaxValidators: Type<"staking", "MaxValidators", number>

MinSignedPerWindow

MinSignedPerWindow: Type<"slashing", "MinSignedPerWindow", Dec>

MinSpread

MinSpread: Type<"market", "minspread", Dec>

MinValidPerWindow

MinValidPerWindow: Type<"oracle", "minvalidperwindow", Dec>

MiningIncrement

MiningIncrement: Type<"treasury", "miningincrement", Dec>

MintDenom

MintDenom: Type<"mint", "MintDenom", Denom>

OracleWhitelist

OracleWhitelist: { name: Denom; tobin_tax: Dec }[]

PoolRecoveryPeriod

PoolRecoveryPeriod: Type<"market", "poolrecoveryperiod", number>

RewardBand

RewardBand: Type<"oracle", "rewardband", Dec>

RewardDistributionWindow

RewardDistributionWindow: Type<"oracle", "rewarddistributionwindow", number>

RewardPolicy

RewardPolicy: Type<"treasury", "rewardpolicy", PolicyConstraints>

SeigniorageBurdenTarget

SeigniorageBurdenTarget: Type<"treasury", "seigniorageburdentarget", Dec>

SignedBlocksWindow

SignedBlocksWindow: Type<"slashing", "SignedBlocksWindow", number>

SlashFraction

SlashFraction: Type<"oracle", "slashfraction", Dec>

SlashFractionDoubleSign

SlashFractionDoubleSign: Type<"slashing", "SlashFractionDoubleSign", Dec>

SlashFractionDowntime

SlashFractionDowntime: Type<"slashing", "SlashFractionDowntime", Dec>

SlashWindow

SlashWindow: Type<"oracle", "slashwindow", number>

TallyParamsParamChange

TallyParamsParamChange: Type<"gov", "tallyparams", TallyParams>

TaxPolicy

TaxPolicy: Type<"treasury", "taxpolicy", PolicyConstraints>

UnbondingTime

UnbondingTime: Type<"staking", "UnbondingTime", number>

VotePeriod

VotePeriod: Type<"oracle", "voteperiod", number>

VoteThreshold

VoteThreshold: Type<"oracle", "votethreshold", Dec>

VotingParamsParamChange

VotingParamsParamChange: Type<"gov", "votingparams", VotingParams>

Whitelist

Whitelist: Type<"oracle", "whitelist", Denom[]>

WindowLong

WindowLong: Type<"treasury", "windowlong", number>

WindowProbation

WindowProbation: Type<"treasury", "windowprobation", number>

WindowShort

WindowShort: Type<"treasury", "windowshort", number>

WithdrawAddrEnabled

WithdrawAddrEnabled: Type<"distribution", "withdrawaddrenabled", boolean>

Variables

Const BECH32_PUBKEY_DATA_PREFIX

BECH32_PUBKEY_DATA_PREFIX: "eb5ae98721" = "eb5ae98721"

Const DEC_PRECISION

DEC_PRECISION: 18 = 18

Const LUNA_COIN_TYPE

LUNA_COIN_TYPE: 330 = 330

Const _Dec

_Dec: Decimal = Decimal.clone()

Const _Int

_Int: Decimal = Decimal.clone()

Functions

addressFromPublicKey

  • addressFromPublicKey(publicKey: Buffer): Buffer
  • Gets a raw address from a compressed bytes public key.

    Parameters

    • publicKey: Buffer

      raw public key

    Returns Buffer

aggregateVoteHash

  • aggregateVoteHash(exchangeRates: Coins, salt: string, validator: ValAddress): string

checkPrefixAndLength

  • checkPrefixAndLength(prefix: string, data: string, length: number): boolean

hashAmino

  • hashAmino(txData: string): string
  • Calculates the transaction hash from Amino-encoded string.

    Parameters

    • txData: string

      Amino-encoded string (base64)

    Returns string

prepareSignBytes

  • prepareSignBytes(obj: any): any

pubKeyFromPublicKey

  • pubKeyFromPublicKey(publicKey: Buffer): Buffer
  • Gets a bech32-words pubkey from a compressed bytes public key.

    Parameters

    • publicKey: Buffer

      raw public key

    Returns Buffer

voteHash

  • voteHash(exchangeRate: string, denom: Denom, salt: string, validator: ValAddress): string

Object literals

Const DEFAULT_GAS_PRICES_BY_CHAIN_ID

DEFAULT_GAS_PRICES_BY_CHAIN_ID: object

columbus-3

columbus-3: object

uluna

uluna: number = 0.015

default

default: object

uluna

uluna: number = 0.00506

tequila-0004

tequila-0004: object

uluna

uluna: number = 0.15

Const DEFAULT_LCD_OPTIONS

DEFAULT_LCD_OPTIONS: object

gasAdjustment

gasAdjustment: number = 1.4

Const DEFAULT_OPTIONS

DEFAULT_OPTIONS: object

account

account: number = 0

coinType

coinType: number = LUNA_COIN_TYPE

index

index: number = 0