mirror of
https://github.com/cosmos/cosmjs.git
synced 2025-03-11 14:09:15 +00:00
fix: fixed the cosmwasm msg types
This commit is contained in:
parent
e51ef1108b
commit
5f508c40d0
@ -50,6 +50,7 @@ import pako from "pako";
|
|||||||
import { CosmWasmClient } from "./cosmwasmclient";
|
import { CosmWasmClient } from "./cosmwasmclient";
|
||||||
import {
|
import {
|
||||||
createWasmAminoConverters,
|
createWasmAminoConverters,
|
||||||
|
JsonObject,
|
||||||
MsgClearAdminEncodeObject,
|
MsgClearAdminEncodeObject,
|
||||||
MsgExecuteContractEncodeObject,
|
MsgExecuteContractEncodeObject,
|
||||||
MsgInstantiateContractEncodeObject,
|
MsgInstantiateContractEncodeObject,
|
||||||
@ -137,7 +138,7 @@ export interface MigrateResult {
|
|||||||
|
|
||||||
export interface ExecuteInstruction {
|
export interface ExecuteInstruction {
|
||||||
contractAddress: string;
|
contractAddress: string;
|
||||||
msg: Record<string, unknown>;
|
msg: JsonObject;
|
||||||
funds?: readonly Coin[];
|
funds?: readonly Coin[];
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -278,7 +279,7 @@ export class SigningCosmWasmClient extends CosmWasmClient {
|
|||||||
public async instantiate(
|
public async instantiate(
|
||||||
senderAddress: string,
|
senderAddress: string,
|
||||||
codeId: number,
|
codeId: number,
|
||||||
msg: Record<string, unknown>,
|
msg: JsonObject,
|
||||||
label: string,
|
label: string,
|
||||||
fee: StdFee | "auto" | number,
|
fee: StdFee | "auto" | number,
|
||||||
options: InstantiateOptions = {},
|
options: InstantiateOptions = {},
|
||||||
@ -368,7 +369,7 @@ export class SigningCosmWasmClient extends CosmWasmClient {
|
|||||||
senderAddress: string,
|
senderAddress: string,
|
||||||
contractAddress: string,
|
contractAddress: string,
|
||||||
codeId: number,
|
codeId: number,
|
||||||
migrateMsg: Record<string, unknown>,
|
migrateMsg: JsonObject,
|
||||||
fee: StdFee | "auto" | number,
|
fee: StdFee | "auto" | number,
|
||||||
memo = "",
|
memo = "",
|
||||||
): Promise<MigrateResult> {
|
): Promise<MigrateResult> {
|
||||||
@ -397,7 +398,7 @@ export class SigningCosmWasmClient extends CosmWasmClient {
|
|||||||
public async execute(
|
public async execute(
|
||||||
senderAddress: string,
|
senderAddress: string,
|
||||||
contractAddress: string,
|
contractAddress: string,
|
||||||
msg: Record<string, unknown>,
|
msg: JsonObject,
|
||||||
fee: StdFee | "auto" | number,
|
fee: StdFee | "auto" | number,
|
||||||
memo = "",
|
memo = "",
|
||||||
funds?: readonly Coin[],
|
funds?: readonly Coin[],
|
||||||
|
Loading…
x
Reference in New Issue
Block a user