Thanks to visit codestin.com
Credit goes to secretjs.scrt.network

Options
All
  • Public
  • Public/Protected
  • All
Menu

Secret.js Docs

Index

Namespaces

Enumerations

Classes

Interfaces

Type aliases

Variables

Functions

Type aliases

Account: { @type: "/cosmos.auth.v1beta1.BaseAccount" | "/cosmos.auth.v1beta1.ModuleAccount" | "/cosmos.vesting.v1beta1.ContinuousVestingAccount" | "/cosmos.vesting.v1beta1.DelayedVestingAccount" | "/cosmos.vesting.v1beta1.PeriodicVestingAccount" | "/cosmos.vesting.v1beta1.PermanentLockedAccount" } & (BaseAccount | ModuleAccount | ContinuousVestingAccount | DelayedVestingAccount | PeriodicVestingAccount | PermanentLockedAccount)
AnyJson: { @type: string } & any
ArrayLog: { key: string; msg: number; type: string; value: string }[]
CommissionRates: { max_change_rate: number; max_rate: number; rate: number }

CommissionRates defines the initial commission rates to be used for creating a validator.

Type declaration

  • max_change_rate: number

    max_change_rate defines the maximum daily increase of the validator commission, as a fraction.

  • max_rate: number

    max_rate defines the maximum commission rate which validator can ever charge, as a fraction.

  • rate: number

    rate is the commission rate charged to delegators, as a fraction.

ContractCodeHistoryEntry: { code_id: string; msg: string; operation: ContractCodeHistoryOperationType; updated: AbsoluteTxPosition }

Type declaration

CreateClientOptions: { chainId: string; encryptionSeed?: Uint8Array; encryptionUtils?: EncryptionUtils; url: string; wallet?: Signer; walletAddress?: string }

Type declaration

  • chainId: string

    The chain-id is used in encryption code & when signing txs.

  • Optional encryptionSeed?: Uint8Array

    Passing encryptionSeed will allow tx decryption at a later time. Ignored if encryptionUtils is supplied. Must be 32 bytes.

  • Optional encryptionUtils?: EncryptionUtils

    encryptionUtils overrides the default EncryptionUtilsImpl.

  • url: string

    A URL to the API service, also known as LCD, REST API or gRPC-gateway, by default on port 1317

  • Optional wallet?: Signer

    A wallet for signing transactions & permits. When wallet is supplied, walletAddress & chainId must be supplied too.

  • Optional walletAddress?: string

    walletAddress is the specific account address in the wallet that is permitted to sign transactions & permits.

GenericAuthorization: { msg: MsgGrantAuthorization }

GenericAuthorization gives the grantee unrestricted permissions to execute the provided Msg on behalf of the granter's account. The provided Msg must implement the Authorization interface: https://github.com/cosmos/cosmos-sdk/blob/c44309bc694ea8b6069ae147743f0b25dc8b52c0/x/authz/authorizations.go#L9-L25

Type declaration

Height: { revision_height: string; revision_number: string }

Height is a monotonically increasing data type that can be compared against another Height for the purposes of updating and freezing clients

Normally the RevisionHeight is incremented at each height while keeping RevisionNumber the same. However some consensus algorithms may choose to reset the height in certain conditions e.g. hard forks, state-machine breaking changes In these cases, the RevisionNumber is incremented so that height continues to be monitonically increasing even as the RevisionHeight gets reset

Type declaration

  • revision_height: string

    the height within the given revision

  • revision_number: string

    the revision that the client is currently on

IbcResponse: { tx: TxResponse; type: "ack" | "timeout" }

Type declaration

IbcTxOptions: { resolveResponses?: boolean; resolveResponsesCheckIntervalMs?: number; resolveResponsesTimeoutMs?: number }

Type declaration

  • Optional resolveResponses?: boolean

    If false skip resolving the IBC response txs (acknowledge/timeout).

    Defaults to true when broadcasting a tx or using getTx(). Defaults to false when using txsQuery().

  • Optional resolveResponsesCheckIntervalMs?: number

    When waiting for the IBC response txs (acknowledge/timeout) to commit on-chain, how much time (in milliseconds) to wait between checks.

    Smaller intervals will cause more load on your node provider. Keep in mind that blocks on Secret Network take about 6 seconds to finalize.

    Defaults to 15_000 (15 seconds).

  • Optional resolveResponsesTimeoutMs?: number

    How much time (in milliseconds) to wait for IBC response txs (acknowledge/timeout).

    Defaults to 120_000 (2 minutes).

JsonLog: { events: { attributes: { key: string; value: string }[]; type: string }[]; msg_index: number }[]
MsgDecoder: { decode: any }

Type declaration

  • decode:function
    • decode(input: Uint8Array): any
ParamChange: { key: string; subspace: string; value: string }

Type declaration

  • key: string
  • subspace: string
  • value: string
Permission: "owner" | "history" | "balance" | "allowance"
Querier: { app: AppQuerier; auth: AuthQuerier; authz: AuthzQuerier; autocli: AutoCliQuerier; bank: BankQuerier; compute: ComputeQuerier; consensus: ConsensusQuerier; distribution: DistributionQuerier; emergency_button: EmergencyButtonQuerier; evidence: EvidenceQuerier; feegrant: FeegrantQuerier; gov: GovV1Querier; gov_v1beta1: GovV1Beta1Querier; ibc_channel: IbcChannelQuerier; ibc_client: IbcClientQuerier; ibc_connection: IbcConnectionQuerier; ibc_fee: IbcFeeQuerier; ibc_iterchain_accounts_controller: IbcInterchainAccountsControllerQuerier; ibc_iterchain_accounts_host: IbcInterchainAccountsHostQuerier; ibc_packet_forward: IbcPacketForwardQuerier; ibc_transfer: IbcTransferQuerier; mint: MintQuerier; node: NodeQuerier; orm: OrmQuerier; params: ParamsQuerier; registration: RegistrationQuerier; slashing: SlashingQuerier; snip1155: Snip1155Querier; snip20: Snip20Querier; snip721: Snip721Querier; staking: StakingQuerier; tendermint: TendermintQuerier; upgrade: UpgradeQuerier; getTx: any; txsQuery: any }

Type declaration

QueryContractRequest<T>: { code_hash?: string; contract_address: string; query: T }

Type parameters

  • T

Type declaration

  • Optional code_hash?: string

    The SHA256 hash value of the contract's WASM bytecode, represented as case-insensitive 64 character hex string. This is used to make sure only the contract that's being invoked can decrypt the query data.

    code_hash is an optional parameter but using it will result in way faster execution time.

    Valid examples:

    • "af74387e276be8874f07bec3a87023ee49b0e7ebe08178c49d0a49c3c98ed60e"
    • "0xaf74387e276be8874f07bec3a87023ee49b0e7ebe08178c49d0a49c3c98ed60e"
    • "AF74387E276BE8874F07BEC3A87023EE49B0E7EBE08178C49D0A49C3C98ED60E"
    • "0xAF74387E276BE8874F07BEC3A87023EE49B0E7EBE08178C49D0A49C3C98ED60E"
  • contract_address: string

    The address of the contract

  • query: T

    A JSON object that will be passed to the contract as a query

SingleMsgTx<T>: { simulate: any }

Type parameters

  • T

Type declaration

    • SingleMsgTx is a function that broadcasts a single message transaction. It also has a simulate() method to execute the transaction without committing it on-chain. This is helpful for gas estimation.

      WARNING: tx.compute.instantiateContract() & tx.compute.executeContract() simulation is not supported for security reasons!

      Parameters

      Returns Promise<TxResponse>

  • simulate:function
StakeAuthorization: { allow_list: string[]; authorization_type: StakeAuthorizationType; deny_list: string[]; max_tokens: <internal>.Coin }

StakeAuthorization defines authorization for delegate/undelegate/redelegate.

Type declaration

  • allow_list: string[]

    allow_list specifies list of validator addresses to whom grantee can delegate tokens on behalf of granter's account.

  • authorization_type: StakeAuthorizationType

    authorization_type defines one of AuthorizationType.

  • deny_list: string[]

    deny_list specifies list of validator addresses to whom grantee can not delegate tokens.

  • max_tokens: <internal>.Coin

    max_tokens specifies the maximum amount of tokens can be delegate to a validator. If it is empty, there is no spend limit and any amount of coins can be delegated.

TxOptions: { broadcastCheckIntervalMs?: number; broadcastMode?: BroadcastMode; broadcastTimeoutMs?: number; explicitSignerData?: SignerData; feeDenom?: string; feeGranter?: string; gasLimit?: number; gasPriceInFeeDenom?: number; ibcTxsOptions?: IbcTxOptions; memo?: string; waitForCommit?: boolean }

Type declaration

  • Optional broadcastCheckIntervalMs?: number

    When waiting for the tx to commit on-chain, how much time (in milliseconds) to wait between checks.

    Smaller intervals will cause more load on your node provider. Keep in mind that blocks on Secret Network take about 6 seconds to finalize.

    Defaults to 6_000. Ignored if waitForCommit = false.

  • Optional broadcastMode?: BroadcastMode

    If BroadcastMode.Sync - Broadcast transaction to mempool and wait for CheckTx response.

    see

    https://docs.tendermint.com/master/rpc/#/Tx/broadcast_tx_sync

    If BroadcastMode.Async Broadcast transaction to mempool and do not wait for CheckTx response.

    see

    https://docs.tendermint.com/master/rpc/#/Tx/broadcast_tx_async

  • Optional broadcastTimeoutMs?: number

    How much time (in milliseconds) to wait for tx to commit on-chain.

    Defaults to 60_000. Ignored if waitForCommit = false.

  • Optional explicitSignerData?: SignerData

    explicitSignerData can be used to override chainId, accountNumber & accountSequence. This is useful when using BroadcastMode.Async or when you don't want secretjs to query for accountNumber & accountSequence from the chain. (smoother in UIs, less load on your node provider).

  • Optional feeDenom?: string

    Defaults to "uscrt".

  • Optional feeGranter?: string

    Address of the fee granter from which to charge gas fees.

  • Optional gasLimit?: number

    Defaults to 25_000.

  • Optional gasPriceInFeeDenom?: number

    E.g. gasPriceInFeeDenom=0.1 & feeDenom="uscrt" => Total fee for tx is 0.1 * gasLimituscrt. Defaults to 0.1.

  • Optional ibcTxsOptions?: IbcTxOptions

    Options for resolving IBC ack/timeout txs that resulted from this tx.

  • Optional memo?: string

    Defaults to "".

  • Optional waitForCommit?: boolean

    If false returns immediately with only the transactionHash field set. Defaults to true.

TxResponse: { arrayLog?: ArrayLog; code: TxResultCode; codespace: string; data: Uint8Array[]; events: "/opt/buildhome/repo/src/grpc_gateway/tendermint/abci/types.pb"[]; gasUsed: number; gasWanted: number; height: number; ibcResponses: Promise<IbcResponse>[]; info: string; jsonLog?: JsonLog; rawLog: string; timestamp: string; transactionHash: string; tx: <internal>.Tx }

A transaction that is indexed as part of the transaction history

Type declaration

  • Optional Readonly arrayLog?: ArrayLog

    If code = 0, arrayLog is a flattened jsonLog. Values are decrypted if possible.

  • Readonly code: TxResultCode

    Transaction execution error code. 0 on success. See TxResultCode.

  • Readonly codespace: string

    Namespace for the Code

  • Readonly data: Uint8Array[]

    Return value (if there's any) for each input message

  • Readonly events: "/opt/buildhome/repo/src/grpc_gateway/tendermint/abci/types.pb"[]

    Events defines all the events emitted by processing a transaction. Note, these events include those emitted by processing all the messages and those emitted from the ante handler. Whereas Logs contains the events, with additional metadata, emitted only by processing the messages.

    Note: events are not decrypted.

  • Readonly gasUsed: number

    Amount of gas that was actually used by the transaction.

  • Readonly gasWanted: number

    Gas limit that was originaly set by the transaction.

  • Readonly height: number

    Block height in which the tx was committed on-chain

  • Readonly ibcResponses: Promise<IbcResponse>[]

    If code = 0 and the tx resulted in sending IBC packets, ibcAckTxs is a list of IBC acknowledgement or timeout transactions which signal whether the original IBC packet was accepted, rejected or timed-out on the receiving chain.

  • Readonly info: string

    Additional information. May be non-deterministic.

  • Optional Readonly jsonLog?: JsonLog

    If code = 0, jsonLog = JSON.parse(rawLow). Values are decrypted if possible.

  • Readonly rawLog: string

    If code != 0, rawLog contains the error.

    If code = 0 you'll probably want to use jsonLog or arrayLog. Values are not decrypted.

  • Readonly timestamp: string

    An RFC 3339 timestamp of when the tx was committed on-chain. The format is {year}-{month}-{day}T{hour}:{min}:{sec}[.{frac_sec}]Z.

  • Readonly transactionHash: string

    Transaction hash (might be used as transaction ID). Guaranteed to be non-empty upper-case hex

  • Readonly tx: <internal>.Tx

    Decoded transaction input.

TxSender: { authz: { exec: SingleMsgTx<MsgExecParams>; grant: SingleMsgTx<MsgGrantParams>; revoke: SingleMsgTx<MsgRevokeParams> }; bank: { multiSend: SingleMsgTx<MsgMultiSendParams>; send: SingleMsgTx<MsgSendParams>; setSendEnabled: SingleMsgTx<MsgSetSendEnabledParams> }; compute: { clearAdmin: SingleMsgTx<MsgClearAdminParams>; executeContract: SingleMsgTx<MsgExecuteContractParams<object>>; instantiateContract: SingleMsgTx<MsgInstantiateContractParams>; migrateContract: SingleMsgTx<MsgMigrateContractParams<object>>; storeCode: SingleMsgTx<MsgStoreCodeParams>; updateAdmin: SingleMsgTx<MsgUpdateAdminParams> }; distribution: { communityPoolSpend: SingleMsgTx<MsgCommunityPoolSpendParams>; depositValidatorRewardsPool: SingleMsgTx<MsgDepositValidatorRewardsPoolParams>; fundCommunityPool: SingleMsgTx<MsgFundCommunityPoolParams>; setAutoRestake: SingleMsgTx<MsgSetAutoRestakeParams>; setWithdrawAddress: SingleMsgTx<MsgSetWithdrawAddressParams>; withdrawDelegatorReward: SingleMsgTx<MsgWithdrawDelegatorRewardParams>; withdrawValidatorCommission: SingleMsgTx<MsgWithdrawValidatorCommissionParams> }; emergency_button: { toggleIbcSwitch: SingleMsgTx<MsgToggleIbcSwitchParams> }; evidence: { submitEvidence: SingleMsgTx<MsgSubmitEvidenceParams> }; feegrant: { grantAllowance: SingleMsgTx<MsgGrantAllowanceParams>; pruneAllowances: SingleMsgTx<MsgPruneAllowancesParams>; revokeAllowance: SingleMsgTx<MsgRevokeAllowanceParams> }; gov: { cancelProposal: SingleMsgTx<MsgCancelProposalParams>; deposit: SingleMsgTx<MsgDepositParams>; execLegacyContent: SingleMsgTx<MsgExecLegacyContentParams>; submitProposal: SingleMsgTx<MsgSubmitProposalParams>; vote: SingleMsgTx<MsgVoteParams>; voteWeighted: SingleMsgTx<MsgVoteWeightedParams> }; ibc: { transfer: SingleMsgTx<MsgTransferParams> }; ibc_fee: { payPacketFee: SingleMsgTx<MsgPayPacketFeeParams>; payPacketFeeAsync: SingleMsgTx<MsgPayPacketFeeAsyncParams>; registerCounterpartyPayee: SingleMsgTx<MsgRegisterCounterpartyPayeeParams>; registerPayee: SingleMsgTx<MsgRegisterPayeeParams> }; ibc_interchain_accounts: { registerInterchainAccount: SingleMsgTx<MsgRegisterInterchainAccountParams>; sendTx: SingleMsgTx<MsgSendTxParams> }; registration: { register: SingleMsgTx<RaAuthenticateParams> }; slashing: { unjail: SingleMsgTx<MsgUnjailParams> }; snip1155: { addCurator: SingleMsgTx<MsgExecuteContractParams<Snip1155AddCuratorOptions>>; addMinter: SingleMsgTx<MsgExecuteContractParams<Snip1155AddMinterOptions>>; batchSend: SingleMsgTx<MsgExecuteContractParams<Snip1155BatchSendOptions>>; batchTransfer: SingleMsgTx<MsgExecuteContractParams<Snip1155BatchTransferOptions>>; burn: SingleMsgTx<MsgExecuteContractParams<Snip1155BurnTokensOptions>>; changeAdmin: SingleMsgTx<MsgExecuteContractParams<Snip1155ChangeAdminOptions>>; changeMetaData: SingleMsgTx<MsgExecuteContractParams<Snip1155ChangeMetaDataOptions>>; createViewingKey: SingleMsgTx<CreateViewingKeyContractParams>; curate: SingleMsgTx<MsgExecuteContractParams<Snip1155CurateTokensOptions>>; mint: SingleMsgTx<MsgExecuteContractParams<Snip1155MintTokensOptions>>; removeAdmin: SingleMsgTx<MsgExecuteContractParams<Snip1155RemoveAdminOptions>>; removeCurator: SingleMsgTx<MsgExecuteContractParams<Snip1155RemoveCuratorOptions>>; removeMinter: SingleMsgTx<MsgExecuteContractParams<Snip1155RemoveMinterOptions>>; send: SingleMsgTx<MsgExecuteContractParams<Snip1155SendOptions>>; setViewingKey: SingleMsgTx<SetViewingKeyContractParams>; transfer: SingleMsgTx<MsgExecuteContractParams<Snip1155TransferOptions>> }; snip20: { createViewingKey: SingleMsgTx<CreateViewingKeyContractParams>; decreaseAllowance: SingleMsgTx<MsgExecuteContractParams<Snip20DecreaseAllowanceOptions>>; increaseAllowance: SingleMsgTx<MsgExecuteContractParams<Snip20IncreaseAllowanceOptions>>; send: SingleMsgTx<MsgExecuteContractParams<Snip20SendOptions>>; setViewingKey: SingleMsgTx<SetViewingKeyContractParams>; transfer: SingleMsgTx<MsgExecuteContractParams<Snip20TransferOptions>> }; snip721: { addMinter: SingleMsgTx<MsgExecuteContractParams<Snip721AddMinterOptions>>; createViewingKey: SingleMsgTx<CreateViewingKeyContractParams>; mint: SingleMsgTx<MsgExecuteContractParams<Snip721MintOptions>>; send: SingleMsgTx<MsgExecuteContractParams<Snip721SendOptions>>; setViewingKey: SingleMsgTx<SetViewingKeyContractParams> }; staking: { beginRedelegate: SingleMsgTx<MsgBeginRedelegateParams>; cancelUnbondingDelegation: SingleMsgTx<MsgCancelUnbondingDelegationParams>; createValidator: SingleMsgTx<MsgCreateValidatorParams>; delegate: SingleMsgTx<MsgDelegateParams>; editValidator: SingleMsgTx<MsgEditValidatorParams>; undelegate: SingleMsgTx<MsgUndelegateParams> }; upgrade: { cancelUpgrade: SingleMsgTx<MsgCancelUpgradeParams>; softwareUpgrade: SingleMsgTx<MsgSoftwareUpgradeParams> }; vesting: { createPeriodicVestingAccount: SingleMsgTx<MsgCreatePeriodicVestingAccountParams>; createPermanentLockedAccount: SingleMsgTx<MsgCreatePermanentLockedAccountParams>; createVestingAccount: SingleMsgTx<MsgCreateVestingAccountParams> }; broadcast: any; broadcastSignedTx: any; signTx: any; simulate: any }

Type declaration

ViewingKey: string
WalletOptions: { bech32Prefix?: string; coinType?: number; hdAccountIndex?: number }

Type declaration

  • Optional bech32Prefix?: string
  • Optional coinType?: number
  • Optional hdAccountIndex?: number

Variables

EmergencyButtonParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgAcknowledgementParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • create:function
    • create(base?: { acknowledgement?: Uint8Array; packet?: { sequence?: string | undefined; source_port?: string | undefined; source_channel?: string | undefined; destination_port?: string | undefined; destination_channel?: string | undefined; data?: Uint8Array | undefined; timeout_height?: { ...; } | undefined; timeout_timestamp?: string | undefined; }; proof_acked?: Uint8Array; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; signer?: string }): MsgAcknowledgementParams
    • Parameters

      • Optional base: { acknowledgement?: Uint8Array; packet?: { sequence?: string | undefined; source_port?: string | undefined; source_channel?: string | undefined; destination_port?: string | undefined; destination_channel?: string | undefined; data?: Uint8Array | undefined; timeout_height?: { ...; } | undefined; timeout_timestamp?: string | undefined; }; proof_acked?: Uint8Array; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; signer?: string }
        • Optional acknowledgement?: Uint8Array
        • Optional packet?: { sequence?: string | undefined; source_port?: string | undefined; source_channel?: string | undefined; destination_port?: string | undefined; destination_channel?: string | undefined; data?: Uint8Array | undefined; timeout_height?: { ...; } | undefined; timeout_timestamp?: string | undefined; }
        • Optional proof_acked?: Uint8Array
        • Optional proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }
        • Optional signer?: string

      Returns MsgAcknowledgementParams

  • decode:function
  • encode:function
  • fromJSON:function
  • fromPartial:function
    • fromPartial(object: { acknowledgement?: Uint8Array; packet?: { sequence?: string | undefined; source_port?: string | undefined; source_channel?: string | undefined; destination_port?: string | undefined; destination_channel?: string | undefined; data?: Uint8Array | undefined; timeout_height?: { ...; } | undefined; timeout_timestamp?: string | undefined; }; proof_acked?: Uint8Array; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; signer?: string }): MsgAcknowledgementParams
    • Parameters

      • object: { acknowledgement?: Uint8Array; packet?: { sequence?: string | undefined; source_port?: string | undefined; source_channel?: string | undefined; destination_port?: string | undefined; destination_channel?: string | undefined; data?: Uint8Array | undefined; timeout_height?: { ...; } | undefined; timeout_timestamp?: string | undefined; }; proof_acked?: Uint8Array; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; signer?: string }
        • Optional acknowledgement?: Uint8Array
        • Optional packet?: { sequence?: string | undefined; source_port?: string | undefined; source_channel?: string | undefined; destination_port?: string | undefined; destination_channel?: string | undefined; data?: Uint8Array | undefined; timeout_height?: { ...; } | undefined; timeout_timestamp?: string | undefined; }
        • Optional proof_acked?: Uint8Array
        • Optional proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }
        • Optional signer?: string

      Returns MsgAcknowledgementParams

  • toJSON:function
MsgBeginRedelegateParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgCancelProposalParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgCancelUnbondingDelegationParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgCancelUpgradeParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgChannelCloseConfirmParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgChannelCloseInitParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgChannelOpenAckParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgChannelOpenConfirmParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgChannelOpenInitParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • create:function
    • create(base?: { channel?: { state?: State | undefined; ordering?: Order | undefined; counterparty?: { port_id?: string | undefined; channel_id?: string | undefined; } | undefined; connection_hops?: string[] | undefined; version?: string | undefined; upgrade_sequence?: string | undefined; }; port_id?: string; signer?: string }): MsgChannelOpenInitParams
    • Parameters

      • Optional base: { channel?: { state?: State | undefined; ordering?: Order | undefined; counterparty?: { port_id?: string | undefined; channel_id?: string | undefined; } | undefined; connection_hops?: string[] | undefined; version?: string | undefined; upgrade_sequence?: string | undefined; }; port_id?: string; signer?: string }
        • Optional channel?: { state?: State | undefined; ordering?: Order | undefined; counterparty?: { port_id?: string | undefined; channel_id?: string | undefined; } | undefined; connection_hops?: string[] | undefined; version?: string | undefined; upgrade_sequence?: string | undefined; }
        • Optional port_id?: string
        • Optional signer?: string

      Returns MsgChannelOpenInitParams

  • decode:function
  • encode:function
  • fromJSON:function
  • fromPartial:function
    • fromPartial(object: { channel?: { state?: State | undefined; ordering?: Order | undefined; counterparty?: { port_id?: string | undefined; channel_id?: string | undefined; } | undefined; connection_hops?: string[] | undefined; version?: string | undefined; upgrade_sequence?: string | undefined; }; port_id?: string; signer?: string }): MsgChannelOpenInitParams
    • Parameters

      • object: { channel?: { state?: State | undefined; ordering?: Order | undefined; counterparty?: { port_id?: string | undefined; channel_id?: string | undefined; } | undefined; connection_hops?: string[] | undefined; version?: string | undefined; upgrade_sequence?: string | undefined; }; port_id?: string; signer?: string }
        • Optional channel?: { state?: State | undefined; ordering?: Order | undefined; counterparty?: { port_id?: string | undefined; channel_id?: string | undefined; } | undefined; connection_hops?: string[] | undefined; version?: string | undefined; upgrade_sequence?: string | undefined; }
        • Optional port_id?: string
        • Optional signer?: string

      Returns MsgChannelOpenInitParams

  • toJSON:function
MsgChannelOpenTryParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • create:function
    • create(base?: { channel?: { state?: State | undefined; ordering?: Order | undefined; counterparty?: { port_id?: string | undefined; channel_id?: string | undefined; } | undefined; connection_hops?: string[] | undefined; version?: string | undefined; upgrade_sequence?: string | undefined; }; counterparty_version?: string; port_id?: string; previous_channel_id?: string; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; proof_init?: Uint8Array; signer?: string }): MsgChannelOpenTryParams
    • Parameters

      • Optional base: { channel?: { state?: State | undefined; ordering?: Order | undefined; counterparty?: { port_id?: string | undefined; channel_id?: string | undefined; } | undefined; connection_hops?: string[] | undefined; version?: string | undefined; upgrade_sequence?: string | undefined; }; counterparty_version?: string; port_id?: string; previous_channel_id?: string; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; proof_init?: Uint8Array; signer?: string }
        • Optional channel?: { state?: State | undefined; ordering?: Order | undefined; counterparty?: { port_id?: string | undefined; channel_id?: string | undefined; } | undefined; connection_hops?: string[] | undefined; version?: string | undefined; upgrade_sequence?: string | undefined; }

          NOTE: the version field within the channel has been deprecated. Its value will be ignored by core IBC.

        • Optional counterparty_version?: string
        • Optional port_id?: string
        • Optional previous_channel_id?: string

          Deprecated: this field is unused. Crossing hello's are no longer supported in core IBC.

          deprecated
        • Optional proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }
        • Optional proof_init?: Uint8Array
        • Optional signer?: string

      Returns MsgChannelOpenTryParams

  • decode:function
  • encode:function
  • fromJSON:function
  • fromPartial:function
    • fromPartial(object: { channel?: { state?: State | undefined; ordering?: Order | undefined; counterparty?: { port_id?: string | undefined; channel_id?: string | undefined; } | undefined; connection_hops?: string[] | undefined; version?: string | undefined; upgrade_sequence?: string | undefined; }; counterparty_version?: string; port_id?: string; previous_channel_id?: string; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; proof_init?: Uint8Array; signer?: string }): MsgChannelOpenTryParams
    • Parameters

      • object: { channel?: { state?: State | undefined; ordering?: Order | undefined; counterparty?: { port_id?: string | undefined; channel_id?: string | undefined; } | undefined; connection_hops?: string[] | undefined; version?: string | undefined; upgrade_sequence?: string | undefined; }; counterparty_version?: string; port_id?: string; previous_channel_id?: string; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; proof_init?: Uint8Array; signer?: string }
        • Optional channel?: { state?: State | undefined; ordering?: Order | undefined; counterparty?: { port_id?: string | undefined; channel_id?: string | undefined; } | undefined; connection_hops?: string[] | undefined; version?: string | undefined; upgrade_sequence?: string | undefined; }

          NOTE: the version field within the channel has been deprecated. Its value will be ignored by core IBC.

        • Optional counterparty_version?: string
        • Optional port_id?: string
        • Optional previous_channel_id?: string

          Deprecated: this field is unused. Crossing hello's are no longer supported in core IBC.

          deprecated
        • Optional proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }
        • Optional proof_init?: Uint8Array
        • Optional signer?: string

      Returns MsgChannelOpenTryParams

  • toJSON:function
MsgChannelUpgradeAckParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • create:function
    • create(base?: { channel_id?: string; counterparty_upgrade?: { fields?: { ordering?: Order | undefined; connection_hops?: string[] | undefined; version?: string | undefined; } | undefined; timeout?: { height?: { revision_number?: string | undefined; revision_height?: string | undefined; } | undefined; timestamp?: string | undefined; } | undefined; next_sequence_send?: string ...; port_id?: string; proof_channel?: Uint8Array; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; proof_upgrade?: Uint8Array; signer?: string }): MsgChannelUpgradeAckParams
    • Parameters

      • Optional base: { channel_id?: string; counterparty_upgrade?: { fields?: { ordering?: Order | undefined; connection_hops?: string[] | undefined; version?: string | undefined; } | undefined; timeout?: { height?: { revision_number?: string | undefined; revision_height?: string | undefined; } | undefined; timestamp?: string | undefined; } | undefined; next_sequence_send?: string ...; port_id?: string; proof_channel?: Uint8Array; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; proof_upgrade?: Uint8Array; signer?: string }
        • Optional channel_id?: string
        • Optional counterparty_upgrade?: { fields?: { ordering?: Order | undefined; connection_hops?: string[] | undefined; version?: string | undefined; } | undefined; timeout?: { height?: { revision_number?: string | undefined; revision_height?: string | undefined; } | undefined; timestamp?: string | undefined; } | undefined; next_sequence_send?: string ...
        • Optional port_id?: string
        • Optional proof_channel?: Uint8Array
        • Optional proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }
        • Optional proof_upgrade?: Uint8Array
        • Optional signer?: string

      Returns MsgChannelUpgradeAckParams

  • decode:function
  • encode:function
  • fromJSON:function
  • fromPartial:function
    • fromPartial(object: { channel_id?: string; counterparty_upgrade?: { fields?: { ordering?: Order | undefined; connection_hops?: string[] | undefined; version?: string | undefined; } | undefined; timeout?: { height?: { revision_number?: string | undefined; revision_height?: string | undefined; } | undefined; timestamp?: string | undefined; } | undefined; next_sequence_send?: string ...; port_id?: string; proof_channel?: Uint8Array; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; proof_upgrade?: Uint8Array; signer?: string }): MsgChannelUpgradeAckParams
    • Parameters

      • object: { channel_id?: string; counterparty_upgrade?: { fields?: { ordering?: Order | undefined; connection_hops?: string[] | undefined; version?: string | undefined; } | undefined; timeout?: { height?: { revision_number?: string | undefined; revision_height?: string | undefined; } | undefined; timestamp?: string | undefined; } | undefined; next_sequence_send?: string ...; port_id?: string; proof_channel?: Uint8Array; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; proof_upgrade?: Uint8Array; signer?: string }
        • Optional channel_id?: string
        • Optional counterparty_upgrade?: { fields?: { ordering?: Order | undefined; connection_hops?: string[] | undefined; version?: string | undefined; } | undefined; timeout?: { height?: { revision_number?: string | undefined; revision_height?: string | undefined; } | undefined; timestamp?: string | undefined; } | undefined; next_sequence_send?: string ...
        • Optional port_id?: string
        • Optional proof_channel?: Uint8Array
        • Optional proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }
        • Optional proof_upgrade?: Uint8Array
        • Optional signer?: string

      Returns MsgChannelUpgradeAckParams

  • toJSON:function
MsgChannelUpgradeCancelParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgChannelUpgradeInitParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgChannelUpgradeOpenParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgChannelUpgradeTimeoutParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • create:function
    • create(base?: { channel_id?: string; counterparty_channel?: { state?: State | undefined; ordering?: Order | undefined; counterparty?: { port_id?: string | undefined; channel_id?: string | undefined; } | undefined; connection_hops?: string[] | undefined; version?: string | undefined; upgrade_sequence?: string | undefined; }; port_id?: string; proof_channel?: Uint8Array; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; signer?: string }): MsgChannelUpgradeTimeoutParams
    • Parameters

      • Optional base: { channel_id?: string; counterparty_channel?: { state?: State | undefined; ordering?: Order | undefined; counterparty?: { port_id?: string | undefined; channel_id?: string | undefined; } | undefined; connection_hops?: string[] | undefined; version?: string | undefined; upgrade_sequence?: string | undefined; }; port_id?: string; proof_channel?: Uint8Array; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; signer?: string }
        • Optional channel_id?: string
        • Optional counterparty_channel?: { state?: State | undefined; ordering?: Order | undefined; counterparty?: { port_id?: string | undefined; channel_id?: string | undefined; } | undefined; connection_hops?: string[] | undefined; version?: string | undefined; upgrade_sequence?: string | undefined; }
        • Optional port_id?: string
        • Optional proof_channel?: Uint8Array
        • Optional proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }
        • Optional signer?: string

      Returns MsgChannelUpgradeTimeoutParams

  • decode:function
  • encode:function
  • fromJSON:function
  • fromPartial:function
    • fromPartial(object: { channel_id?: string; counterparty_channel?: { state?: State | undefined; ordering?: Order | undefined; counterparty?: { port_id?: string | undefined; channel_id?: string | undefined; } | undefined; connection_hops?: string[] | undefined; version?: string | undefined; upgrade_sequence?: string | undefined; }; port_id?: string; proof_channel?: Uint8Array; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; signer?: string }): MsgChannelUpgradeTimeoutParams
    • Parameters

      • object: { channel_id?: string; counterparty_channel?: { state?: State | undefined; ordering?: Order | undefined; counterparty?: { port_id?: string | undefined; channel_id?: string | undefined; } | undefined; connection_hops?: string[] | undefined; version?: string | undefined; upgrade_sequence?: string | undefined; }; port_id?: string; proof_channel?: Uint8Array; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; signer?: string }
        • Optional channel_id?: string
        • Optional counterparty_channel?: { state?: State | undefined; ordering?: Order | undefined; counterparty?: { port_id?: string | undefined; channel_id?: string | undefined; } | undefined; connection_hops?: string[] | undefined; version?: string | undefined; upgrade_sequence?: string | undefined; }
        • Optional port_id?: string
        • Optional proof_channel?: Uint8Array
        • Optional proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }
        • Optional signer?: string

      Returns MsgChannelUpgradeTimeoutParams

  • toJSON:function
MsgChannelUpgradeTryParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • create:function
    • create(base?: { channel_id?: string; counterparty_upgrade_fields?: { ordering?: Order | undefined; connection_hops?: string[] | undefined; version?: string | undefined; }; counterparty_upgrade_sequence?: string; port_id?: string; proof_channel?: Uint8Array; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; proof_upgrade?: Uint8Array; proposed_upgrade_connection_hops?: string[]; signer?: string }): MsgChannelUpgradeTryParams
    • Parameters

      • Optional base: { channel_id?: string; counterparty_upgrade_fields?: { ordering?: Order | undefined; connection_hops?: string[] | undefined; version?: string | undefined; }; counterparty_upgrade_sequence?: string; port_id?: string; proof_channel?: Uint8Array; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; proof_upgrade?: Uint8Array; proposed_upgrade_connection_hops?: string[]; signer?: string }
        • Optional channel_id?: string
        • Optional counterparty_upgrade_fields?: { ordering?: Order | undefined; connection_hops?: string[] | undefined; version?: string | undefined; }
        • Optional counterparty_upgrade_sequence?: string
        • Optional port_id?: string
        • Optional proof_channel?: Uint8Array
        • Optional proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }
        • Optional proof_upgrade?: Uint8Array
        • Optional proposed_upgrade_connection_hops?: string[]
        • Optional signer?: string

      Returns MsgChannelUpgradeTryParams

  • decode:function
  • encode:function
  • fromJSON:function
  • fromPartial:function
    • fromPartial(object: { channel_id?: string; counterparty_upgrade_fields?: { ordering?: Order | undefined; connection_hops?: string[] | undefined; version?: string | undefined; }; counterparty_upgrade_sequence?: string; port_id?: string; proof_channel?: Uint8Array; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; proof_upgrade?: Uint8Array; proposed_upgrade_connection_hops?: string[]; signer?: string }): MsgChannelUpgradeTryParams
    • Parameters

      • object: { channel_id?: string; counterparty_upgrade_fields?: { ordering?: Order | undefined; connection_hops?: string[] | undefined; version?: string | undefined; }; counterparty_upgrade_sequence?: string; port_id?: string; proof_channel?: Uint8Array; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; proof_upgrade?: Uint8Array; proposed_upgrade_connection_hops?: string[]; signer?: string }
        • Optional channel_id?: string
        • Optional counterparty_upgrade_fields?: { ordering?: Order | undefined; connection_hops?: string[] | undefined; version?: string | undefined; }
        • Optional counterparty_upgrade_sequence?: string
        • Optional port_id?: string
        • Optional proof_channel?: Uint8Array
        • Optional proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }
        • Optional proof_upgrade?: Uint8Array
        • Optional proposed_upgrade_connection_hops?: string[]
        • Optional signer?: string

      Returns MsgChannelUpgradeTryParams

  • toJSON:function
MsgCommunityPoolSpendParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgConnectionOpenAckParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • create:function
    • create(base?: { client_state?: { type_url?: string | undefined; value?: Uint8Array | undefined; }; connection_id?: string; consensus_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; counterparty_connection_id?: string; host_consensus_state_proof?: Uint8Array; proof_client?: Uint8Array; proof_consensus?: Uint8Array; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; proof_try?: Uint8Array; signer?: string; version?: { identifier?: string | undefined; features?: string[] | undefined; } }): MsgConnectionOpenAckParams
    • Parameters

      • Optional base: { client_state?: { type_url?: string | undefined; value?: Uint8Array | undefined; }; connection_id?: string; consensus_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; counterparty_connection_id?: string; host_consensus_state_proof?: Uint8Array; proof_client?: Uint8Array; proof_consensus?: Uint8Array; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; proof_try?: Uint8Array; signer?: string; version?: { identifier?: string | undefined; features?: string[] | undefined; } }
        • Optional client_state?: { type_url?: string | undefined; value?: Uint8Array | undefined; }
        • Optional connection_id?: string
        • Optional consensus_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }
        • Optional counterparty_connection_id?: string
        • Optional host_consensus_state_proof?: Uint8Array

          optional proof data for host state machines that are unable to introspect their own consensus state

        • Optional proof_client?: Uint8Array

          proof of client state included in message

        • Optional proof_consensus?: Uint8Array

          proof of client consensus state

        • Optional proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }
        • Optional proof_try?: Uint8Array

          proof of the initialization the connection on Chain B: UNITIALIZED -> TRYOPEN

        • Optional signer?: string
        • Optional version?: { identifier?: string | undefined; features?: string[] | undefined; }

      Returns MsgConnectionOpenAckParams

  • decode:function
  • encode:function
  • fromJSON:function
  • fromPartial:function
    • fromPartial(object: { client_state?: { type_url?: string | undefined; value?: Uint8Array | undefined; }; connection_id?: string; consensus_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; counterparty_connection_id?: string; host_consensus_state_proof?: Uint8Array; proof_client?: Uint8Array; proof_consensus?: Uint8Array; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; proof_try?: Uint8Array; signer?: string; version?: { identifier?: string | undefined; features?: string[] | undefined; } }): MsgConnectionOpenAckParams
    • Parameters

      • object: { client_state?: { type_url?: string | undefined; value?: Uint8Array | undefined; }; connection_id?: string; consensus_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; counterparty_connection_id?: string; host_consensus_state_proof?: Uint8Array; proof_client?: Uint8Array; proof_consensus?: Uint8Array; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; proof_try?: Uint8Array; signer?: string; version?: { identifier?: string | undefined; features?: string[] | undefined; } }
        • Optional client_state?: { type_url?: string | undefined; value?: Uint8Array | undefined; }
        • Optional connection_id?: string
        • Optional consensus_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }
        • Optional counterparty_connection_id?: string
        • Optional host_consensus_state_proof?: Uint8Array

          optional proof data for host state machines that are unable to introspect their own consensus state

        • Optional proof_client?: Uint8Array

          proof of client state included in message

        • Optional proof_consensus?: Uint8Array

          proof of client consensus state

        • Optional proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }
        • Optional proof_try?: Uint8Array

          proof of the initialization the connection on Chain B: UNITIALIZED -> TRYOPEN

        • Optional signer?: string
        • Optional version?: { identifier?: string | undefined; features?: string[] | undefined; }

      Returns MsgConnectionOpenAckParams

  • toJSON:function
MsgConnectionOpenConfirmParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgConnectionOpenInitParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgConnectionOpenTryParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • create:function
    • create(base?: { client_id?: string; client_state?: { type_url?: string | undefined; value?: Uint8Array | undefined; }; consensus_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; counterparty?: { client_id?: string | undefined; connection_id?: string | undefined; prefix?: { key_prefix?: Uint8Array | undefined; } | undefined; }; counterparty_versions?: { identifier?: string | undefined; features?: string[] | undefined; }[]; delay_period?: string; host_consensus_state_proof?: Uint8Array; previous_connection_id?: string; proof_client?: Uint8Array; proof_consensus?: Uint8Array; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; proof_init?: Uint8Array; signer?: string }): MsgConnectionOpenTryParams
    • Parameters

      • Optional base: { client_id?: string; client_state?: { type_url?: string | undefined; value?: Uint8Array | undefined; }; consensus_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; counterparty?: { client_id?: string | undefined; connection_id?: string | undefined; prefix?: { key_prefix?: Uint8Array | undefined; } | undefined; }; counterparty_versions?: { identifier?: string | undefined; features?: string[] | undefined; }[]; delay_period?: string; host_consensus_state_proof?: Uint8Array; previous_connection_id?: string; proof_client?: Uint8Array; proof_consensus?: Uint8Array; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; proof_init?: Uint8Array; signer?: string }
        • Optional client_id?: string
        • Optional client_state?: { type_url?: string | undefined; value?: Uint8Array | undefined; }
        • Optional consensus_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }
        • Optional counterparty?: { client_id?: string | undefined; connection_id?: string | undefined; prefix?: { key_prefix?: Uint8Array | undefined; } | undefined; }
        • Optional counterparty_versions?: { identifier?: string | undefined; features?: string[] | undefined; }[]
        • Optional delay_period?: string
        • Optional host_consensus_state_proof?: Uint8Array

          optional proof data for host state machines that are unable to introspect their own consensus state

        • Optional previous_connection_id?: string

          Deprecated: this field is unused. Crossing hellos are no longer supported in core IBC.

          deprecated
        • Optional proof_client?: Uint8Array

          proof of client state included in message

        • Optional proof_consensus?: Uint8Array

          proof of client consensus state

        • Optional proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }
        • Optional proof_init?: Uint8Array

          proof of the initialization the connection on Chain A: UNITIALIZED -> INIT

        • Optional signer?: string

      Returns MsgConnectionOpenTryParams

  • decode:function
  • encode:function
  • fromJSON:function
  • fromPartial:function
    • fromPartial(object: { client_id?: string; client_state?: { type_url?: string | undefined; value?: Uint8Array | undefined; }; consensus_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; counterparty?: { client_id?: string | undefined; connection_id?: string | undefined; prefix?: { key_prefix?: Uint8Array | undefined; } | undefined; }; counterparty_versions?: { identifier?: string | undefined; features?: string[] | undefined; }[]; delay_period?: string; host_consensus_state_proof?: Uint8Array; previous_connection_id?: string; proof_client?: Uint8Array; proof_consensus?: Uint8Array; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; proof_init?: Uint8Array; signer?: string }): MsgConnectionOpenTryParams
    • Parameters

      • object: { client_id?: string; client_state?: { type_url?: string | undefined; value?: Uint8Array | undefined; }; consensus_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; counterparty?: { client_id?: string | undefined; connection_id?: string | undefined; prefix?: { key_prefix?: Uint8Array | undefined; } | undefined; }; counterparty_versions?: { identifier?: string | undefined; features?: string[] | undefined; }[]; delay_period?: string; host_consensus_state_proof?: Uint8Array; previous_connection_id?: string; proof_client?: Uint8Array; proof_consensus?: Uint8Array; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; proof_init?: Uint8Array; signer?: string }
        • Optional client_id?: string
        • Optional client_state?: { type_url?: string | undefined; value?: Uint8Array | undefined; }
        • Optional consensus_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }
        • Optional counterparty?: { client_id?: string | undefined; connection_id?: string | undefined; prefix?: { key_prefix?: Uint8Array | undefined; } | undefined; }
        • Optional counterparty_versions?: { identifier?: string | undefined; features?: string[] | undefined; }[]
        • Optional delay_period?: string
        • Optional host_consensus_state_proof?: Uint8Array

          optional proof data for host state machines that are unable to introspect their own consensus state

        • Optional previous_connection_id?: string

          Deprecated: this field is unused. Crossing hellos are no longer supported in core IBC.

          deprecated
        • Optional proof_client?: Uint8Array

          proof of client state included in message

        • Optional proof_consensus?: Uint8Array

          proof of client consensus state

        • Optional proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }
        • Optional proof_init?: Uint8Array

          proof of the initialization the connection on Chain A: UNITIALIZED -> INIT

        • Optional signer?: string

      Returns MsgConnectionOpenTryParams

  • toJSON:function
MsgCreateClientParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgCreatePeriodicVestingAccountParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgCreatePermanentLockedAccountParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgCreateVestingAccountParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgDelegateParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgDepositParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgDepositValidatorRewardsPoolParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgExecuteContractResponse: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgFundCommunityPoolParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgIBCSoftwareUpgradeParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • create:function
    • create(base?: { plan?: { name?: string | undefined; time?: { seconds?: string | undefined; nanos?: number | undefined; } | undefined; height?: string | undefined; info?: string | undefined; upgraded_client_state?: { ...; } | undefined; }; signer?: string; upgraded_client_state?: { type_url?: string | undefined; value?: Uint8Array | undefined; } }): MsgIBCSoftwareUpgradeParams
    • Parameters

      • Optional base: { plan?: { name?: string | undefined; time?: { seconds?: string | undefined; nanos?: number | undefined; } | undefined; height?: string | undefined; info?: string | undefined; upgraded_client_state?: { ...; } | undefined; }; signer?: string; upgraded_client_state?: { type_url?: string | undefined; value?: Uint8Array | undefined; } }
        • Optional plan?: { name?: string | undefined; time?: { seconds?: string | undefined; nanos?: number | undefined; } | undefined; height?: string | undefined; info?: string | undefined; upgraded_client_state?: { ...; } | undefined; }
        • Optional signer?: string

          signer address

        • Optional upgraded_client_state?: { type_url?: string | undefined; value?: Uint8Array | undefined; }

          An UpgradedClientState must be provided to perform an IBC breaking upgrade. This will make the chain commit to the correct upgraded (self) client state before the upgrade occurs, so that connecting chains can verify that the new upgraded client is valid by verifying a proof on the previous version of the chain. This will allow IBC connections to persist smoothly across planned chain upgrades. Correspondingly, the UpgradedClientState field has been deprecated in the Cosmos SDK to allow for this logic to exist solely in the 02-client module.

      Returns MsgIBCSoftwareUpgradeParams

  • decode:function
  • encode:function
  • fromJSON:function
  • fromPartial:function
    • fromPartial(object: { plan?: { name?: string | undefined; time?: { seconds?: string | undefined; nanos?: number | undefined; } | undefined; height?: string | undefined; info?: string | undefined; upgraded_client_state?: { ...; } | undefined; }; signer?: string; upgraded_client_state?: { type_url?: string | undefined; value?: Uint8Array | undefined; } }): MsgIBCSoftwareUpgradeParams
    • Parameters

      • object: { plan?: { name?: string | undefined; time?: { seconds?: string | undefined; nanos?: number | undefined; } | undefined; height?: string | undefined; info?: string | undefined; upgraded_client_state?: { ...; } | undefined; }; signer?: string; upgraded_client_state?: { type_url?: string | undefined; value?: Uint8Array | undefined; } }
        • Optional plan?: { name?: string | undefined; time?: { seconds?: string | undefined; nanos?: number | undefined; } | undefined; height?: string | undefined; info?: string | undefined; upgraded_client_state?: { ...; } | undefined; }
        • Optional signer?: string

          signer address

        • Optional upgraded_client_state?: { type_url?: string | undefined; value?: Uint8Array | undefined; }

          An UpgradedClientState must be provided to perform an IBC breaking upgrade. This will make the chain commit to the correct upgraded (self) client state before the upgrade occurs, so that connecting chains can verify that the new upgraded client is valid by verifying a proof on the previous version of the chain. This will allow IBC connections to persist smoothly across planned chain upgrades. Correspondingly, the UpgradedClientState field has been deprecated in the Cosmos SDK to allow for this logic to exist solely in the 02-client module.

      Returns MsgIBCSoftwareUpgradeParams

  • toJSON:function
MsgInstantiateContractResponse: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgMultiSendParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • create:function
    • create(base?: { inputs?: { address?: string | undefined; coins?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; }[]; outputs?: { address?: string | undefined; coins?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; }[] }): MsgMultiSendParams
    • Parameters

      • Optional base: { inputs?: { address?: string | undefined; coins?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; }[]; outputs?: { address?: string | undefined; coins?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; }[] }
        • Optional inputs?: { address?: string | undefined; coins?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; }[]

          Inputs, despite being repeated, only allows one sender input. This is checked in MsgMultiSend's ValidateBasic.

        • Optional outputs?: { address?: string | undefined; coins?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; }[]

      Returns MsgMultiSendParams

  • decode:function
  • encode:function
  • fromJSON:function
  • fromPartial:function
    • fromPartial(object: { inputs?: { address?: string | undefined; coins?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; }[]; outputs?: { address?: string | undefined; coins?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; }[] }): MsgMultiSendParams
    • Parameters

      • object: { inputs?: { address?: string | undefined; coins?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; }[]; outputs?: { address?: string | undefined; coins?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; }[] }
        • Optional inputs?: { address?: string | undefined; coins?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; }[]

          Inputs, despite being repeated, only allows one sender input. This is checked in MsgMultiSend's ValidateBasic.

        • Optional outputs?: { address?: string | undefined; coins?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; }[]

      Returns MsgMultiSendParams

  • toJSON:function
MsgPayPacketFeeAsyncParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • create:function
    • create(base?: { packet_fee?: { fee?: { recv_fee?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; ack_fee?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; timeout_fee?: { ...; }[] | undefined; } | undefined; refund_address?: string | undefined; relayers?: string[] | undefined; }; packet_id?: { port_id?: string | undefined; channel_id?: string | undefined; sequence?: string | undefined; } }): MsgPayPacketFeeAsyncParams
    • Parameters

      • Optional base: { packet_fee?: { fee?: { recv_fee?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; ack_fee?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; timeout_fee?: { ...; }[] | undefined; } | undefined; refund_address?: string | undefined; relayers?: string[] | undefined; }; packet_id?: { port_id?: string | undefined; channel_id?: string | undefined; sequence?: string | undefined; } }
        • Optional packet_fee?: { fee?: { recv_fee?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; ack_fee?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; timeout_fee?: { ...; }[] | undefined; } | undefined; refund_address?: string | undefined; relayers?: string[] | undefined; }

          the packet fee associated with a particular IBC packet

        • Optional packet_id?: { port_id?: string | undefined; channel_id?: string | undefined; sequence?: string | undefined; }

          unique packet identifier comprised of the channel ID, port ID and sequence

      Returns MsgPayPacketFeeAsyncParams

  • decode:function
  • encode:function
  • fromJSON:function
  • fromPartial:function
    • fromPartial(object: { packet_fee?: { fee?: { recv_fee?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; ack_fee?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; timeout_fee?: { ...; }[] | undefined; } | undefined; refund_address?: string | undefined; relayers?: string[] | undefined; }; packet_id?: { port_id?: string | undefined; channel_id?: string | undefined; sequence?: string | undefined; } }): MsgPayPacketFeeAsyncParams
    • Parameters

      • object: { packet_fee?: { fee?: { recv_fee?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; ack_fee?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; timeout_fee?: { ...; }[] | undefined; } | undefined; refund_address?: string | undefined; relayers?: string[] | undefined; }; packet_id?: { port_id?: string | undefined; channel_id?: string | undefined; sequence?: string | undefined; } }
        • Optional packet_fee?: { fee?: { recv_fee?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; ack_fee?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; timeout_fee?: { ...; }[] | undefined; } | undefined; refund_address?: string | undefined; relayers?: string[] | undefined; }

          the packet fee associated with a particular IBC packet

        • Optional packet_id?: { port_id?: string | undefined; channel_id?: string | undefined; sequence?: string | undefined; }

          unique packet identifier comprised of the channel ID, port ID and sequence

      Returns MsgPayPacketFeeAsyncParams

  • toJSON:function
MsgPayPacketFeeParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • create:function
    • create(base?: { fee?: { recv_fee?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; ack_fee?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; timeout_fee?: { ...; }[] | undefined; }; relayers?: string[]; signer?: string; source_channel_id?: string; source_port_id?: string }): MsgPayPacketFeeParams
    • Parameters

      • Optional base: { fee?: { recv_fee?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; ack_fee?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; timeout_fee?: { ...; }[] | undefined; }; relayers?: string[]; signer?: string; source_channel_id?: string; source_port_id?: string }
        • Optional fee?: { recv_fee?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; ack_fee?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; timeout_fee?: { ...; }[] | undefined; }

          fee encapsulates the recv, ack and timeout fees associated with an IBC packet

        • Optional relayers?: string[]

          optional list of relayers permitted to the receive packet fees

        • Optional signer?: string

          account address to refund fee if necessary

        • Optional source_channel_id?: string

          the source channel unique identifer

        • Optional source_port_id?: string

          the source port unique identifier

      Returns MsgPayPacketFeeParams

  • decode:function
  • encode:function
  • fromJSON:function
  • fromPartial:function
    • fromPartial(object: { fee?: { recv_fee?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; ack_fee?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; timeout_fee?: { ...; }[] | undefined; }; relayers?: string[]; signer?: string; source_channel_id?: string; source_port_id?: string }): MsgPayPacketFeeParams
    • Parameters

      • object: { fee?: { recv_fee?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; ack_fee?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; timeout_fee?: { ...; }[] | undefined; }; relayers?: string[]; signer?: string; source_channel_id?: string; source_port_id?: string }
        • Optional fee?: { recv_fee?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; ack_fee?: { denom?: string | undefined; amount?: string | undefined; }[] | undefined; timeout_fee?: { ...; }[] | undefined; }

          fee encapsulates the recv, ack and timeout fees associated with an IBC packet

        • Optional relayers?: string[]

          optional list of relayers permitted to the receive packet fees

        • Optional signer?: string

          account address to refund fee if necessary

        • Optional source_channel_id?: string

          the source channel unique identifer

        • Optional source_port_id?: string

          the source port unique identifier

      Returns MsgPayPacketFeeParams

  • toJSON:function
MsgPruneAcknowledgementsParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgPruneAllowancesParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgRecoverClientParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgRecvPacketParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • create:function
    • create(base?: { packet?: { sequence?: string | undefined; source_port?: string | undefined; source_channel?: string | undefined; destination_port?: string | undefined; destination_channel?: string | undefined; data?: Uint8Array | undefined; timeout_height?: { ...; } | undefined; timeout_timestamp?: string | undefined; }; proof_commitment?: Uint8Array; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; signer?: string }): MsgRecvPacketParams
    • Parameters

      • Optional base: { packet?: { sequence?: string | undefined; source_port?: string | undefined; source_channel?: string | undefined; destination_port?: string | undefined; destination_channel?: string | undefined; data?: Uint8Array | undefined; timeout_height?: { ...; } | undefined; timeout_timestamp?: string | undefined; }; proof_commitment?: Uint8Array; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; signer?: string }
        • Optional packet?: { sequence?: string | undefined; source_port?: string | undefined; source_channel?: string | undefined; destination_port?: string | undefined; destination_channel?: string | undefined; data?: Uint8Array | undefined; timeout_height?: { ...; } | undefined; timeout_timestamp?: string | undefined; }
        • Optional proof_commitment?: Uint8Array
        • Optional proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }
        • Optional signer?: string

      Returns MsgRecvPacketParams

  • decode:function
  • encode:function
  • fromJSON:function
  • fromPartial:function
    • fromPartial(object: { packet?: { sequence?: string | undefined; source_port?: string | undefined; source_channel?: string | undefined; destination_port?: string | undefined; destination_channel?: string | undefined; data?: Uint8Array | undefined; timeout_height?: { ...; } | undefined; timeout_timestamp?: string | undefined; }; proof_commitment?: Uint8Array; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; signer?: string }): MsgRecvPacketParams
    • Parameters

      • object: { packet?: { sequence?: string | undefined; source_port?: string | undefined; source_channel?: string | undefined; destination_port?: string | undefined; destination_channel?: string | undefined; data?: Uint8Array | undefined; timeout_height?: { ...; } | undefined; timeout_timestamp?: string | undefined; }; proof_commitment?: Uint8Array; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; signer?: string }
        • Optional packet?: { sequence?: string | undefined; source_port?: string | undefined; source_channel?: string | undefined; destination_port?: string | undefined; destination_channel?: string | undefined; data?: Uint8Array | undefined; timeout_height?: { ...; } | undefined; timeout_timestamp?: string | undefined; }
        • Optional proof_commitment?: Uint8Array
        • Optional proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }
        • Optional signer?: string

      Returns MsgRecvPacketParams

  • toJSON:function
MsgRegisterCounterpartyPayeeParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgRegisterInterchainAccountParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgRegisterPayeeParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgRegistry: Map<string, MsgDecoder> = ...
MsgRevokeAllowanceParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgSendParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgSendTxParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgSetAutoRestakeParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgSetSendEnabledParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgSetWithdrawAddressParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgSoftwareUpgradeParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgStoreCodeResponse: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgSubmitEvidenceParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgSubmitMisbehaviourParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgTimeoutOnCloseParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • create:function
    • create(base?: { counterparty_upgrade_sequence?: string; next_sequence_recv?: string; packet?: { sequence?: string | undefined; source_port?: string | undefined; source_channel?: string | undefined; destination_port?: string | undefined; destination_channel?: string | undefined; data?: Uint8Array | undefined; timeout_height?: { ...; } | undefined; timeout_timestamp?: string | undefined; }; proof_close?: Uint8Array; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; proof_unreceived?: Uint8Array; signer?: string }): MsgTimeoutOnCloseParams
    • Parameters

      • Optional base: { counterparty_upgrade_sequence?: string; next_sequence_recv?: string; packet?: { sequence?: string | undefined; source_port?: string | undefined; source_channel?: string | undefined; destination_port?: string | undefined; destination_channel?: string | undefined; data?: Uint8Array | undefined; timeout_height?: { ...; } | undefined; timeout_timestamp?: string | undefined; }; proof_close?: Uint8Array; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; proof_unreceived?: Uint8Array; signer?: string }
        • Optional counterparty_upgrade_sequence?: string
        • Optional next_sequence_recv?: string
        • Optional packet?: { sequence?: string | undefined; source_port?: string | undefined; source_channel?: string | undefined; destination_port?: string | undefined; destination_channel?: string | undefined; data?: Uint8Array | undefined; timeout_height?: { ...; } | undefined; timeout_timestamp?: string | undefined; }
        • Optional proof_close?: Uint8Array
        • Optional proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }
        • Optional proof_unreceived?: Uint8Array
        • Optional signer?: string

      Returns MsgTimeoutOnCloseParams

  • decode:function
  • encode:function
  • fromJSON:function
  • fromPartial:function
    • fromPartial(object: { counterparty_upgrade_sequence?: string; next_sequence_recv?: string; packet?: { sequence?: string | undefined; source_port?: string | undefined; source_channel?: string | undefined; destination_port?: string | undefined; destination_channel?: string | undefined; data?: Uint8Array | undefined; timeout_height?: { ...; } | undefined; timeout_timestamp?: string | undefined; }; proof_close?: Uint8Array; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; proof_unreceived?: Uint8Array; signer?: string }): MsgTimeoutOnCloseParams
    • Parameters

      • object: { counterparty_upgrade_sequence?: string; next_sequence_recv?: string; packet?: { sequence?: string | undefined; source_port?: string | undefined; source_channel?: string | undefined; destination_port?: string | undefined; destination_channel?: string | undefined; data?: Uint8Array | undefined; timeout_height?: { ...; } | undefined; timeout_timestamp?: string | undefined; }; proof_close?: Uint8Array; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; proof_unreceived?: Uint8Array; signer?: string }
        • Optional counterparty_upgrade_sequence?: string
        • Optional next_sequence_recv?: string
        • Optional packet?: { sequence?: string | undefined; source_port?: string | undefined; source_channel?: string | undefined; destination_port?: string | undefined; destination_channel?: string | undefined; data?: Uint8Array | undefined; timeout_height?: { ...; } | undefined; timeout_timestamp?: string | undefined; }
        • Optional proof_close?: Uint8Array
        • Optional proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }
        • Optional proof_unreceived?: Uint8Array
        • Optional signer?: string

      Returns MsgTimeoutOnCloseParams

  • toJSON:function
MsgTimeoutParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • create:function
    • create(base?: { next_sequence_recv?: string; packet?: { sequence?: string | undefined; source_port?: string | undefined; source_channel?: string | undefined; destination_port?: string | undefined; destination_channel?: string | undefined; data?: Uint8Array | undefined; timeout_height?: { ...; } | undefined; timeout_timestamp?: string | undefined; }; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; proof_unreceived?: Uint8Array; signer?: string }): MsgTimeoutParams
    • Parameters

      • Optional base: { next_sequence_recv?: string; packet?: { sequence?: string | undefined; source_port?: string | undefined; source_channel?: string | undefined; destination_port?: string | undefined; destination_channel?: string | undefined; data?: Uint8Array | undefined; timeout_height?: { ...; } | undefined; timeout_timestamp?: string | undefined; }; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; proof_unreceived?: Uint8Array; signer?: string }
        • Optional next_sequence_recv?: string
        • Optional packet?: { sequence?: string | undefined; source_port?: string | undefined; source_channel?: string | undefined; destination_port?: string | undefined; destination_channel?: string | undefined; data?: Uint8Array | undefined; timeout_height?: { ...; } | undefined; timeout_timestamp?: string | undefined; }
        • Optional proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }
        • Optional proof_unreceived?: Uint8Array
        • Optional signer?: string

      Returns MsgTimeoutParams

  • decode:function
  • encode:function
  • fromJSON:function
  • fromPartial:function
    • fromPartial(object: { next_sequence_recv?: string; packet?: { sequence?: string | undefined; source_port?: string | undefined; source_channel?: string | undefined; destination_port?: string | undefined; destination_channel?: string | undefined; data?: Uint8Array | undefined; timeout_height?: { ...; } | undefined; timeout_timestamp?: string | undefined; }; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; proof_unreceived?: Uint8Array; signer?: string }): MsgTimeoutParams
    • Parameters

      • object: { next_sequence_recv?: string; packet?: { sequence?: string | undefined; source_port?: string | undefined; source_channel?: string | undefined; destination_port?: string | undefined; destination_channel?: string | undefined; data?: Uint8Array | undefined; timeout_height?: { ...; } | undefined; timeout_timestamp?: string | undefined; }; proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }; proof_unreceived?: Uint8Array; signer?: string }
        • Optional next_sequence_recv?: string
        • Optional packet?: { sequence?: string | undefined; source_port?: string | undefined; source_channel?: string | undefined; destination_port?: string | undefined; destination_channel?: string | undefined; data?: Uint8Array | undefined; timeout_height?: { ...; } | undefined; timeout_timestamp?: string | undefined; }
        • Optional proof_height?: { revision_number?: string | undefined; revision_height?: string | undefined; }
        • Optional proof_unreceived?: Uint8Array
        • Optional signer?: string

      Returns MsgTimeoutParams

  • toJSON:function
MsgToggleIbcSwitchParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgUndelegateParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgUnjailParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgUpdateClientParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgUpdateParamsParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgUpgradeClientParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

  • create:function
    • create(base?: { client_id?: string; client_state?: { type_url?: string | undefined; value?: Uint8Array | undefined; }; consensus_state?: { type_url?: string | undefined; value?: Uint8Array | undefined; }; proof_upgrade_client?: Uint8Array; proof_upgrade_consensus_state?: Uint8Array; signer?: string }): MsgUpgradeClientParams
    • Parameters

      • Optional base: { client_id?: string; client_state?: { type_url?: string | undefined; value?: Uint8Array | undefined; }; consensus_state?: { type_url?: string | undefined; value?: Uint8Array | undefined; }; proof_upgrade_client?: Uint8Array; proof_upgrade_consensus_state?: Uint8Array; signer?: string }
        • Optional client_id?: string

          client unique identifier

        • Optional client_state?: { type_url?: string | undefined; value?: Uint8Array | undefined; }

          upgraded client state

        • Optional consensus_state?: { type_url?: string | undefined; value?: Uint8Array | undefined; }

          upgraded consensus state, only contains enough information to serve as a basis of trust in update logic

        • Optional proof_upgrade_client?: Uint8Array

          proof that old chain committed to new client

        • Optional proof_upgrade_consensus_state?: Uint8Array

          proof that old chain committed to new consensus state

        • Optional signer?: string

          signer address

      Returns MsgUpgradeClientParams

  • decode:function
  • encode:function
  • fromJSON:function
  • fromPartial:function
    • fromPartial(object: { client_id?: string; client_state?: { type_url?: string | undefined; value?: Uint8Array | undefined; }; consensus_state?: { type_url?: string | undefined; value?: Uint8Array | undefined; }; proof_upgrade_client?: Uint8Array; proof_upgrade_consensus_state?: Uint8Array; signer?: string }): MsgUpgradeClientParams
    • Parameters

      • object: { client_id?: string; client_state?: { type_url?: string | undefined; value?: Uint8Array | undefined; }; consensus_state?: { type_url?: string | undefined; value?: Uint8Array | undefined; }; proof_upgrade_client?: Uint8Array; proof_upgrade_consensus_state?: Uint8Array; signer?: string }
        • Optional client_id?: string

          client unique identifier

        • Optional client_state?: { type_url?: string | undefined; value?: Uint8Array | undefined; }

          upgraded client state

        • Optional consensus_state?: { type_url?: string | undefined; value?: Uint8Array | undefined; }

          upgraded consensus state, only contains enough information to serve as a basis of trust in update logic

        • Optional proof_upgrade_client?: Uint8Array

          proof that old chain committed to new client

        • Optional proof_upgrade_consensus_state?: Uint8Array

          proof that old chain committed to new consensus state

        • Optional signer?: string

          signer address

      Returns MsgUpgradeClientParams

  • toJSON:function
MsgVoteParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgVoteWeightedParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgWithdrawDelegatorRewardParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

MsgWithdrawValidatorCommissionParams: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

ValidatorDescription: { create: any; decode: any; encode: any; fromJSON: any; fromPartial: any; toJSON: any }

Type declaration

Functions

  • addressToBytes(address: string): Uint8Array
  • Converts an address from a bech32 string to the bytes representation.

    Parameters

    • address: string

      The address bech32 string to convert.

    Returns Uint8Array

    • The resulting bytes address.
  • base64PubkeyToAddress(pubkey: string, prefix?: string): string
  • Convert a secp256k1 compressed public key to an address

    Parameters

    • pubkey: string

      The account's pubkey as base64 string, should be 33 bytes (compressed secp256k1)

    • prefix: string = "secret"

    Returns string

    the account's address

  • base64TendermintPubkeyToValconsAddress(pubkey: string, prefix?: string): string
  • Convert a secp256k1 compressed public key to an address

    Parameters

    • pubkey: string

      The account's pubkey as base64 string, should be 33 bytes (compressed secp256k1)

    • prefix: string = "secret"

    Returns string

    the account's address

  • bytesToAddress(bytes: Uint8Array, prefix?: string): string
  • Converts an address from bytes to the strong representation.

    Parameters

    • bytes: Uint8Array

      The address bytes to convert.

    • prefix: string = "secret"

      The bech32 prefix to use.

    Returns string

    • The resulting bech32 string address.
  • E.g. "1uscrt,1uatom,1uosmo" => [{amount:"1",denom:"uscrt"},{amount:"1",denom:"uatom"},{amount:"1",denom:"uosmo"}]

    Parameters

    • coinsAsString: string

    Returns <internal>.Coin[]

  • fromAscii(data: Uint8Array): string
  • Parameters

    • data: Uint8Array

    Returns string

  • fromBase64(base64String: string): Uint8Array
  • Parameters

    • base64String: string

    Returns Uint8Array

  • fromBech32(address: string, limit?: number): { data: Uint8Array; prefix: string }
  • Parameters

    • address: string
    • Optional limit: number

    Returns { data: Uint8Array; prefix: string }

    • Readonly data: Uint8Array
    • Readonly prefix: string
  • fromHex(hexstring: string): Uint8Array
  • Parameters

    • hexstring: string

    Returns Uint8Array

  • fromRfc3339(str: string): Date
  • Parameters

    • str: string

    Returns Date

  • fromUtf8(data: Uint8Array, lossy?: boolean): string
  • Takes UTF-8 data and decodes it to a string.

    In lossy mode, the REPLACEMENT CHARACTER is used to substitude invalid encodings. By default lossy mode is off and invalid data will lead to exceptions.

    Parameters

    • data: Uint8Array
    • Optional lossy: boolean

    Returns string

  • gasToFee(gasLimit: number, gasPrice: number): number
  • getMissingCodeHashWarning(method: string): string
  • ibcDenom(paths: { incomingChannelId: string; incomingPortId: string }[], coinMinimalDenom: string): string
  • Compute the IBC denom of a token that was sent over IBC.

    For example, to get the IBC denom of SCRT on mainnet Osmosis:

    ibcDenom([{incomingPortId: "transfer", incomingChannelId: "channel-88"}], "uscrt")
    

    Parameters

    • paths: { incomingChannelId: string; incomingPortId: string }[]
    • coinMinimalDenom: string

    Returns string

  • Copied here to avoid unnecessary deps

    MIT License

    Copyright (c) Kevin MÃ¥rtensson [email protected] (github.com/kevva)

    Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

    The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

    THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

    Parameters

    Returns boolean

  • newPermit(signer: AminoSigner, owner: string, chainId: string, permitName: string, allowedTokens: string[], permissions: Permission[], keplr: boolean): Promise<Permit>
  • newSignDoc(chainId: string, permit_name: string, allowed_tokens: string[], permissions: Permission[]): StdSignDoc
  • normalizeBech32(address: string): string
  • Takes a bech32 address and returns a normalized (i.e. lower case) representation of it.

    The input is validated along the way, which makes this significantly safer than using address.toLowerCase().

    Parameters

    • address: string

    Returns string

  • pubkeyToAddress(pubkey: Uint8Array, prefix?: string): string
  • Convert a secp256k1 compressed public key to an address

    Parameters

    • pubkey: Uint8Array

      The account's pubkey, should be 33 bytes (compressed secp256k1)

    • prefix: string = "secret"

    Returns string

    the account's address

  • selfDelegatorAddressToValidatorAddress(selfDelegator: string, prefix?: string): string
  • Convert self delegator address to validator address

    Parameters

    • selfDelegator: string

      The self delegator toBech32d address

    • prefix: string = "secret"

    Returns string

    the account's address

  • E.g. "1uscrt,1uatom,1uosmo" => [{amount:"1",denom:"uscrt"},{amount:"1",denom:"uatom"},{amount:"1",denom:"uosmo"}]

    Parameters

    • coinsAsString: string

    Returns <internal>.Coin[]

  • tendermintPubkeyToValconsAddress(pubkey: Uint8Array, prefix?: string): string
  • Convert a Tendermint ed25519 public key to a consensus address

    Parameters

    • pubkey: Uint8Array

      The tendermint pubkey, should be 32 bytes (ed25519)

    • prefix: string = "secret"

    Returns string

    the valcons account's address

  • toAscii(input: string): Uint8Array
  • Parameters

    • input: string

    Returns Uint8Array

  • toBase64(data: Uint8Array): string
  • Parameters

    • data: Uint8Array

    Returns string

  • toBech32(prefix: string, data: Uint8Array, limit?: number): string
  • Parameters

    • prefix: string
    • data: Uint8Array
    • Optional limit: number

    Returns string

  • toHex(data: Uint8Array): string
  • Parameters

    • data: Uint8Array

    Returns string

  • Parameters

    Returns string

  • toUtf8(str: string): Uint8Array
  • Parameters

    • str: string

    Returns Uint8Array

  • validateAddress(address: string, prefix?: string): { isValid: boolean; reason?: string }
  • validateAddress checks if a given address is a valid address

    Parameters

    • address: string

      the address to check

    • prefix: string = "secret"

      the address prefix, defaults to "secret"

    Returns { isValid: boolean; reason?: string }

    { isValid: true } if valid, { isValid: false, reason: "..." } if not valid

    • isValid: boolean
    • Optional reason?: string
  • validatePermit(permit: Permit, address: string, contract: string, permissions: Permission[], exceptions?: boolean): boolean
  • validatorAddressToSelfDelegatorAddress(validator: string, prefix?: string): string
  • Convert self delegator address to validator address

    Parameters

    • validator: string

      The validator toBech32d address

    • prefix: string = "secret"

    Returns string

    the account's address