import type { Wallet } from '@tendermint/sig'; import type { Bytes } from '@tendermint/types'; import * as google_protobuf_any_pb from 'google-protobuf/google/protobuf/any_pb'; import { Message } from 'google-protobuf'; import { AtsMessage, CoinAsObject, MsgDepositDisplay, MsgFundCommunityPoolDisplay, MsgSendDisplay, MsgSetWithdrawAddressDisplay, MsgSubmitProposalDisplay, MsgUnjailDisplay, MsgVerifyInvariantDisplay, MsgVoteDisplay, MsgVoteWeightedDisplay, MsgWithdrawDelegatorRewardDisplay, MsgWithdrawValidatorCommissionDisplay, SupportedDenoms, MsgEditValidatorDisplay, MsgDelegateDisplay, MsgBeginRedelegateDisplay, MsgUndelegateDisplay, MsgCreateVestingAccountDisplay, MsgGrantDisplay } from '../types'; import type { ExecuteMsg as DigitalCurrencyConsortiumExecuteMsg } from '../types/schema/digital-currency-consortium/execute_msg'; import { AuthInfo, SignDoc, SignerInfo, TxBody, TxRaw } from '../proto/cosmos/tx/v1beta1/tx_pb'; import { BroadcastTxRequest, SimulateRequest } from '../proto/cosmos/tx/v1beta1/service_pb'; import { BaseAccount } from '../proto/cosmos/auth/v1beta1/auth_pb'; import { PubKey } from '../proto/cosmos/crypto/secp256k1/keys_pb'; import { MsgExecuteContract } from '../proto/cosmwasm/wasm/v1/tx_pb'; import { MsgSubmitEvidence } from '../proto/cosmos/evidence/v1beta1/tx_pb'; import { MsgVoteWeighted } from '../proto/cosmos/gov/v1beta1/tx_pb'; import { MsgCreateValidator } from '../proto/cosmos/staking/v1beta1/tx_pb'; import { Evidence } from '../proto/tendermint/abci/types_pb'; import { CalculateTxFeesRequest } from '../proto/provenance/msgfees/v1/query_pb'; export declare type ReadableMessageNames = 'MsgGrant' | 'MsgSend' | 'MsgVerifyInvariant' | 'PubKey' | 'MsgFundCommunityPool' | 'MsgSetWithdrawAddress' | 'MsgWithdrawDelegatorReward' | 'MsgWithdrawValidatorCommission' | 'MsgSubmitEvidence' | 'MsgDeposit' | 'MsgSubmitProposal' | 'TextProposal' | 'SoftwareUpgradeProposal' | 'CancelSoftwareUpgradeProposal' | 'Plan' | 'StoreCodeProposal' | 'InstantiateCodeProposal' | 'AccessConfig' | 'ParameterChangeProposal' | 'ParamChange' | 'MsgVote' | 'MsgVoteWeighted' | 'Proposal' | 'MsgUnjail' | 'MsgBeginRedelegate' | 'MsgCreateValidator' | 'MsgDelegate' | 'MsgEditValidator' | 'MsgUndelegate' | 'MsgCreateVestingAccount' | 'MsgExecuteContract' | 'MsgAddAttributeRequest' | 'MsgDeleteAttributeRequest' | 'MsgDeleteDistinctAttributeRequest' | 'MsgUpdateAttributeRequest' | 'MarkerTransferAuthorization' | 'MsgActivateRequest' | 'MsgAddAccessRequest' | 'MsgAddMarkerRequest' | 'MsgBurnRequest' | 'MsgCancelRequest' | 'MsgDeleteAccessRequest' | 'MsgDeleteRequest' | 'MsgFinalizeRequest' | 'MsgMintRequest' | 'MsgSetDenomMetadataRequest' | 'MsgTransferRequest' | 'MsgWithdrawRequest' | 'MsgAddContractSpecToScopeSpecRequest' | 'MsgAddScopeDataAccessRequest' | 'MsgAddScopeOwnerRequest' | 'MsgBindOSLocatorRequest' | 'MsgDeleteContractSpecFromScopeSpecRequest' | 'MsgDeleteContractSpecificationRequest' | 'MsgDeleteOSLocatorRequest' | 'MsgDeleteRecordRequest' | 'MsgDeleteRecordSpecificationRequest' | 'MsgDeleteScopeDataAccessRequest' | 'MsgDeleteScopeOwnerRequest' | 'MsgDeleteScopeRequest' | 'MsgDeleteScopeSpecificationRequest' | 'MsgModifyOSLocatorRequest' | 'MsgP8eMemorializeContractRequest' | 'MsgWriteContractSpecificationRequest' | 'MsgWriteP8eContractSpecRequest' | 'MsgWriteRecordRequest' | 'MsgWriteRecordSpecificationRequest' | 'MsgWriteScopeRequest' | 'MsgWriteScopeSpecificationRequest' | 'MsgWriteSessionRequest' | 'MsgBindNameRequest' | 'MsgDeleteNameRequest' | 'Evidence'; export declare type FallbackGenericMessageName = 'MsgGeneric' | 'MsgExecuteContractGeneric'; declare type UnknownContract = { msg: any; }; export declare type MsgExecuteContractParams = (Omit & UnknownContract) | (Omit & AtsMessage) | (Omit & { msg: DigitalCurrencyConsortiumExecuteMsg; }); export declare type MsgExecuteContractDisplay = { sender: string; msg: any; fundsList: CoinAsObject[]; }; export declare type MsgSubmitEvidenceDisplay = Omit & { evidence: Evidence.AsObject; }; export declare type MsgCreateValidatorDisplay = Omit & { pubkey: PubKey.AsObject; }; export declare type GenericDisplay = { [key: string]: any; }; export declare class MessageService { encoder: TextEncoder; decoder: TextDecoder; msgAnyB64toAny(msgAnyB64: string): google_protobuf_any_pb.Any; buildMessage(type: ReadableMessageNames, params: MsgSendDisplay | MsgExecuteContractParams | MsgGrantDisplay | MsgVerifyInvariantDisplay | MsgSetWithdrawAddressDisplay | MsgWithdrawDelegatorRewardDisplay | MsgWithdrawValidatorCommissionDisplay | MsgFundCommunityPoolDisplay | MsgSubmitEvidenceDisplay | MsgSubmitProposalDisplay | MsgVoteDisplay | MsgVoteWeightedDisplay | MsgDepositDisplay | MsgUnjailDisplay | MsgCreateValidatorDisplay | MsgEditValidatorDisplay | MsgDelegateDisplay | MsgBeginRedelegateDisplay | MsgUndelegateDisplay | MsgCreateVestingAccountDisplay): Message; createAnyMessageBase64(type: ReadableMessageNames, msg: Message): string; unpackDisplayObjectFromWalletMessage(anyMsgBase64: string): (MsgSendDisplay | MsgVoteWeighted | MsgSubmitProposalDisplay | MsgExecuteContractDisplay | GenericDisplay) & { typeName: ReadableMessageNames | FallbackGenericMessageName; }; buildCalculateTxFeeRequest(msgAny: google_protobuf_any_pb.Any | google_protobuf_any_pb.Any[], account: BaseAccount, chainId: string, wallet: Wallet, memo: string | undefined, feeDenom: SupportedDenoms | undefined, gasPrice: number, gasAdjustment?: number): CalculateTxFeesRequest; /** * @deprecated use buildCalculateTxFeeRequest instead */ buildSimulateRequest(msgAny: google_protobuf_any_pb.Any | google_protobuf_any_pb.Any[], account: BaseAccount, chainId: string, wallet: Wallet, memo: string | undefined, feeDenom: SupportedDenoms | undefined, gasPrice: number): SimulateRequest; buildBroadcastTxRequest(msgAny: google_protobuf_any_pb.Any | google_protobuf_any_pb.Any[], account: BaseAccount, chainId: string, wallet: Wallet, feeEstimate: number, memo: string | undefined, feeDenom: SupportedDenoms | undefined, gasEstimate: number): BroadcastTxRequest; buildSignerInfo(baseAccount: BaseAccount, pubKeyBytes: Bytes): SignerInfo; buildAuthInfo(signerInfo: SignerInfo, feeDenom: SupportedDenoms, feeEstimate: number | undefined, gasEstimate: number): AuthInfo; buildTxBody(msgAny: google_protobuf_any_pb.Any | google_protobuf_any_pb.Any[], memo: string): TxBody; buildSignDoc(accNumber: number, chainId: string, txRaw: TxRaw): SignDoc; signBytes(bytes: Uint8Array, privateKey: Bytes): Uint8Array; sha256(bytes: Bytes): Bytes; } export {};