coreum-js 2.16.3 → 2.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/main/client/index.js +15 -16
- package/dist/main/coreum/asset/ft/v1/authz.d.ts +38 -0
- package/dist/main/coreum/asset/ft/v1/authz.js +122 -0
- package/dist/main/coreum/asset/ft/v1/event.d.ts +52 -28
- package/dist/main/coreum/asset/ft/v1/event.js +744 -138
- package/dist/main/coreum/asset/ft/v1/genesis.d.ts +31 -21
- package/dist/main/coreum/asset/ft/v1/genesis.js +273 -62
- package/dist/main/coreum/asset/ft/v1/params.d.ts +12 -11
- package/dist/main/coreum/asset/ft/v1/params.js +37 -33
- package/dist/main/coreum/asset/ft/v1/query.d.ts +87 -127
- package/dist/main/coreum/asset/ft/v1/query.js +697 -217
- package/dist/main/coreum/asset/ft/v1/token.d.ts +17 -51
- package/dist/main/coreum/asset/ft/v1/token.js +276 -200
- package/dist/main/coreum/asset/ft/v1/tx.d.ts +30 -147
- package/dist/main/coreum/asset/ft/v1/tx.js +502 -386
- package/dist/main/coreum/asset/index.d.ts +2 -3
- package/dist/main/coreum/asset/nft/v1/authz.d.ts +33 -0
- package/dist/main/coreum/asset/nft/v1/authz.js +137 -0
- package/dist/main/coreum/asset/nft/v1/event.d.ts +35 -43
- package/dist/main/coreum/asset/nft/v1/event.js +475 -147
- package/dist/main/coreum/asset/nft/v1/genesis.d.ts +27 -36
- package/dist/main/coreum/asset/nft/v1/genesis.js +311 -119
- package/dist/main/coreum/asset/nft/v1/nft.d.ts +20 -26
- package/dist/main/coreum/asset/nft/v1/nft.js +139 -104
- package/dist/main/coreum/asset/nft/v1/params.d.ts +12 -12
- package/dist/main/coreum/asset/nft/v1/params.js +17 -20
- package/dist/main/coreum/asset/nft/v1/query.d.ts +110 -88
- package/dist/main/coreum/asset/nft/v1/query.js +1079 -185
- package/dist/main/coreum/asset/nft/v1/tx.d.ts +96 -70
- package/dist/main/coreum/asset/nft/v1/tx.js +865 -234
- package/dist/main/coreum/asset/nft/v1/types.d.ts +38 -11
- package/dist/main/coreum/asset/nft/v1/types.js +273 -45
- package/dist/main/coreum/customparams/v1/genesis.d.ts +12 -12
- package/dist/main/coreum/customparams/v1/genesis.js +26 -22
- package/dist/main/coreum/customparams/v1/params.d.ts +11 -11
- package/dist/main/coreum/customparams/v1/params.js +23 -20
- package/dist/main/coreum/customparams/v1/query.d.ts +14 -20
- package/dist/main/coreum/customparams/v1/query.js +35 -29
- package/dist/main/coreum/dex/index.d.ts +1 -0
- package/dist/main/coreum/dex/index.js +12 -0
- package/dist/main/coreum/dex/v1/event.d.ts +73 -0
- package/dist/main/coreum/dex/v1/event.js +470 -0
- package/dist/main/coreum/dex/v1/genesis.d.ts +49 -0
- package/dist/main/coreum/dex/v1/genesis.js +318 -0
- package/dist/main/coreum/dex/v1/order.d.ts +172 -0
- package/dist/main/coreum/dex/v1/order.js +1137 -0
- package/dist/main/coreum/dex/v1/params.d.ts +34 -0
- package/dist/main/coreum/dex/v1/params.js +139 -0
- package/dist/main/coreum/dex/v1/query.d.ts +133 -0
- package/dist/main/coreum/dex/v1/query.js +873 -0
- package/dist/main/coreum/dex/v1/tx.d.ts +102 -0
- package/dist/main/coreum/dex/v1/tx.js +521 -0
- package/dist/main/coreum/extensions/dex.d.ts +12 -0
- package/dist/main/coreum/extensions/dex.js +32 -0
- package/dist/main/coreum/extensions/ft.js +2 -1
- package/dist/main/coreum/extensions/nft.js +2 -1
- package/dist/main/coreum/extensions/nftbeta.js +2 -1
- package/dist/main/coreum/feemodel/v1/genesis.d.ts +13 -13
- package/dist/main/coreum/feemodel/v1/genesis.js +23 -24
- package/dist/main/coreum/feemodel/v1/params.d.ts +14 -21
- package/dist/main/coreum/feemodel/v1/params.js +113 -66
- package/dist/main/coreum/feemodel/v1/query.d.ts +30 -37
- package/dist/main/coreum/feemodel/v1/query.js +196 -43
- package/dist/main/coreum/index.d.ts +46 -0
- package/dist/main/coreum/index.js +58 -1
- package/dist/main/coreum/nft/index.d.ts +1 -2
- package/dist/main/coreum/nft/v1beta1/event.d.ts +23 -27
- package/dist/main/coreum/nft/v1beta1/event.js +103 -77
- package/dist/main/coreum/nft/v1beta1/genesis.d.ts +13 -19
- package/dist/main/coreum/nft/v1beta1/genesis.js +50 -52
- package/dist/main/coreum/nft/v1beta1/nft.d.ts +15 -22
- package/dist/main/coreum/nft/v1beta1/nft.js +111 -81
- package/dist/main/coreum/nft/v1beta1/query.d.ts +54 -124
- package/dist/main/coreum/nft/v1beta1/query.js +259 -223
- package/dist/main/coreum/nft/v1beta1/tx.d.ts +13 -19
- package/dist/main/coreum/nft/v1beta1/tx.js +54 -43
- package/dist/main/cosmos/extensions/bank.js +2 -1
- package/dist/main/cosmos/extensions/distribution.d.ts +4 -4
- package/dist/main/cosmos/extensions/distribution.js +11 -10
- package/dist/main/cosmos/extensions/gov.d.ts +13 -13
- package/dist/main/cosmos/extensions/gov.js +16 -9
- package/dist/main/cosmos/index.d.ts +8 -8
- package/dist/main/google/api/http.d.ts +2636 -6
- package/dist/main/google/api/http.js +18 -21
- package/dist/main/google/protobuf/any.d.ts +14 -2
- package/dist/main/google/protobuf/any.js +6 -7
- package/dist/main/google/protobuf/duration.d.ts +14 -2
- package/dist/main/google/protobuf/duration.js +3 -4
- package/dist/main/google/protobuf/timestamp.d.ts +14 -2
- package/dist/main/google/protobuf/timestamp.js +3 -4
- package/dist/main/index.js +7 -17
- package/dist/main/services/cosmostation.js +1 -1
- package/dist/main/tendermint/abci/types.d.ts +6360 -92
- package/dist/main/tendermint/abci/types.js +195 -235
- package/dist/main/tendermint/crypto/keys.d.ts +14 -2
- package/dist/main/tendermint/crypto/keys.js +3 -4
- package/dist/main/tendermint/crypto/proof.d.ts +152 -10
- package/dist/main/tendermint/crypto/proof.js +19 -24
- package/dist/main/tendermint/types/params.d.ts +196 -12
- package/dist/main/tendermint/types/params.js +15 -20
- package/dist/main/tendermint/types/types.d.ts +1744 -26
- package/dist/main/tendermint/types/types.js +62 -73
- package/dist/main/tendermint/types/validator.d.ts +230 -6
- package/dist/main/tendermint/types/validator.js +10 -13
- package/dist/main/tendermint/version/types.d.ts +28 -4
- package/dist/main/tendermint/version/types.js +6 -8
- package/dist/main/types/core.d.ts +2 -1
- package/dist/main/types/core.js +2 -0
- package/dist/main/utils/convertStringToAny.d.ts +0 -1
- package/dist/main/utils/nft.js +2 -1
- package/dist/main/wasm/v1/authz.d.ts +20 -75
- package/dist/main/wasm/v1/authz.js +129 -148
- package/dist/main/wasm/v1/extensions/wasm.js +2 -1
- package/dist/main/wasm/v1/genesis.d.ts +14 -34
- package/dist/main/wasm/v1/genesis.js +169 -140
- package/dist/main/wasm/v1/ibc.d.ts +13 -26
- package/dist/main/wasm/v1/ibc.js +91 -76
- package/dist/main/wasm/v1/index.d.ts +1 -2
- package/dist/main/wasm/v1/pagination.d.ts +40 -4
- package/dist/main/wasm/v1/pagination.js +9 -11
- package/dist/main/wasm/v1/proposal.d.ts +23 -106
- package/dist/main/wasm/v1/proposal.js +634 -465
- package/dist/main/wasm/v1/query.d.ts +35 -187
- package/dist/main/wasm/v1/query.js +370 -363
- package/dist/main/wasm/v1/tx.d.ts +37 -210
- package/dist/main/wasm/v1/tx.js +621 -497
- package/dist/main/wasm/v1/types.d.ts +19 -67
- package/dist/main/wasm/v1/types.js +224 -195
- package/dist/module/client/index.js +2 -1
- package/dist/module/coreum/asset/ft/v1/authz.d.ts +38 -0
- package/dist/module/coreum/asset/ft/v1/authz.js +119 -0
- package/dist/module/coreum/asset/ft/v1/event.d.ts +52 -28
- package/dist/module/coreum/asset/ft/v1/event.js +721 -109
- package/dist/module/coreum/asset/ft/v1/genesis.d.ts +31 -21
- package/dist/module/coreum/asset/ft/v1/genesis.js +266 -50
- package/dist/module/coreum/asset/ft/v1/params.d.ts +12 -11
- package/dist/module/coreum/asset/ft/v1/params.js +35 -27
- package/dist/module/coreum/asset/ft/v1/query.d.ts +87 -127
- package/dist/module/coreum/asset/ft/v1/query.js +672 -180
- package/dist/module/coreum/asset/ft/v1/token.d.ts +17 -51
- package/dist/module/coreum/asset/ft/v1/token.js +236 -152
- package/dist/module/coreum/asset/ft/v1/tx.d.ts +30 -147
- package/dist/module/coreum/asset/ft/v1/tx.js +437 -301
- package/dist/module/coreum/asset/index.d.ts +2 -3
- package/dist/module/coreum/asset/nft/v1/authz.d.ts +33 -0
- package/dist/module/coreum/asset/nft/v1/authz.js +134 -0
- package/dist/module/coreum/asset/nft/v1/event.d.ts +35 -43
- package/dist/module/coreum/asset/nft/v1/event.js +448 -112
- package/dist/module/coreum/asset/nft/v1/genesis.d.ts +27 -36
- package/dist/module/coreum/asset/nft/v1/genesis.js +299 -100
- package/dist/module/coreum/asset/nft/v1/nft.d.ts +20 -26
- package/dist/module/coreum/asset/nft/v1/nft.js +121 -81
- package/dist/module/coreum/asset/nft/v1/params.d.ts +12 -12
- package/dist/module/coreum/asset/nft/v1/params.js +16 -16
- package/dist/module/coreum/asset/nft/v1/query.d.ts +110 -88
- package/dist/module/coreum/asset/nft/v1/query.js +1057 -153
- package/dist/module/coreum/asset/nft/v1/tx.d.ts +96 -70
- package/dist/module/coreum/asset/nft/v1/tx.js +825 -184
- package/dist/module/coreum/asset/nft/v1/types.d.ts +38 -11
- package/dist/module/coreum/asset/nft/v1/types.js +269 -39
- package/dist/module/coreum/customparams/v1/genesis.d.ts +12 -12
- package/dist/module/coreum/customparams/v1/genesis.js +25 -18
- package/dist/module/coreum/customparams/v1/params.d.ts +11 -11
- package/dist/module/coreum/customparams/v1/params.js +21 -14
- package/dist/module/coreum/customparams/v1/query.d.ts +14 -20
- package/dist/module/coreum/customparams/v1/query.js +32 -23
- package/dist/module/coreum/dex/index.d.ts +1 -0
- package/dist/module/coreum/dex/index.js +9 -0
- package/dist/module/coreum/dex/v1/event.d.ts +73 -0
- package/dist/module/coreum/dex/v1/event.js +467 -0
- package/dist/module/coreum/dex/v1/genesis.d.ts +49 -0
- package/dist/module/coreum/dex/v1/genesis.js +315 -0
- package/dist/module/coreum/dex/v1/order.d.ts +172 -0
- package/dist/module/coreum/dex/v1/order.js +1128 -0
- package/dist/module/coreum/dex/v1/params.d.ts +34 -0
- package/dist/module/coreum/dex/v1/params.js +136 -0
- package/dist/module/coreum/dex/v1/query.d.ts +133 -0
- package/dist/module/coreum/dex/v1/query.js +871 -0
- package/dist/module/coreum/dex/v1/tx.d.ts +102 -0
- package/dist/module/coreum/dex/v1/tx.js +519 -0
- package/dist/module/coreum/extensions/dex.d.ts +12 -0
- package/dist/module/coreum/extensions/dex.js +28 -0
- package/dist/module/coreum/feemodel/v1/genesis.d.ts +13 -13
- package/dist/module/coreum/feemodel/v1/genesis.js +22 -20
- package/dist/module/coreum/feemodel/v1/params.d.ts +14 -21
- package/dist/module/coreum/feemodel/v1/params.js +105 -54
- package/dist/module/coreum/feemodel/v1/query.d.ts +30 -37
- package/dist/module/coreum/feemodel/v1/query.js +191 -35
- package/dist/module/coreum/index.d.ts +46 -0
- package/dist/module/coreum/index.js +57 -0
- package/dist/module/coreum/nft/index.d.ts +1 -2
- package/dist/module/coreum/nft/v1beta1/event.d.ts +23 -27
- package/dist/module/coreum/nft/v1beta1/event.js +90 -58
- package/dist/module/coreum/nft/v1beta1/genesis.d.ts +13 -19
- package/dist/module/coreum/nft/v1beta1/genesis.js +44 -41
- package/dist/module/coreum/nft/v1beta1/nft.d.ts +15 -22
- package/dist/module/coreum/nft/v1beta1/nft.js +99 -64
- package/dist/module/coreum/nft/v1beta1/query.d.ts +54 -124
- package/dist/module/coreum/nft/v1beta1/query.js +231 -183
- package/dist/module/coreum/nft/v1beta1/tx.d.ts +13 -19
- package/dist/module/coreum/nft/v1beta1/tx.js +47 -32
- package/dist/module/cosmos/extensions/distribution.d.ts +4 -4
- package/dist/module/cosmos/extensions/gov.d.ts +13 -13
- package/dist/module/cosmos/index.d.ts +8 -8
- package/dist/module/google/api/http.d.ts +2636 -6
- package/dist/module/google/protobuf/any.d.ts +14 -2
- package/dist/module/google/protobuf/duration.d.ts +14 -2
- package/dist/module/google/protobuf/timestamp.d.ts +14 -2
- package/dist/module/services/cosmostation.js +1 -1
- package/dist/module/tendermint/abci/types.d.ts +6360 -92
- package/dist/module/tendermint/crypto/keys.d.ts +14 -2
- package/dist/module/tendermint/crypto/proof.d.ts +152 -10
- package/dist/module/tendermint/types/params.d.ts +196 -12
- package/dist/module/tendermint/types/types.d.ts +1744 -26
- package/dist/module/tendermint/types/validator.d.ts +230 -6
- package/dist/module/tendermint/version/types.d.ts +28 -4
- package/dist/module/types/core.d.ts +2 -1
- package/dist/module/types/core.js +2 -0
- package/dist/module/utils/convertStringToAny.d.ts +0 -1
- package/dist/module/wasm/v1/authz.d.ts +20 -75
- package/dist/module/wasm/v1/authz.js +111 -119
- package/dist/module/wasm/v1/genesis.d.ts +14 -34
- package/dist/module/wasm/v1/genesis.js +161 -125
- package/dist/module/wasm/v1/ibc.d.ts +13 -26
- package/dist/module/wasm/v1/ibc.js +83 -62
- package/dist/module/wasm/v1/index.d.ts +1 -2
- package/dist/module/wasm/v1/pagination.d.ts +40 -4
- package/dist/module/wasm/v1/proposal.d.ts +23 -106
- package/dist/module/wasm/v1/proposal.js +562 -377
- package/dist/module/wasm/v1/query.d.ts +35 -187
- package/dist/module/wasm/v1/query.js +330 -301
- package/dist/module/wasm/v1/tx.d.ts +37 -210
- package/dist/module/wasm/v1/tx.js +551 -404
- package/dist/module/wasm/v1/types.d.ts +19 -67
- package/dist/module/wasm/v1/types.js +196 -156
- package/package.json +11 -10
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
|
|
2
2
|
export declare const protobufPackage = "cosmwasm.wasm.v1";
|
|
3
3
|
/** MsgIBCSend */
|
|
4
4
|
export interface MsgIBCSend {
|
|
@@ -29,32 +29,11 @@ export interface MsgIBCSendResponse {
|
|
|
29
29
|
export interface MsgIBCCloseChannel {
|
|
30
30
|
channel: string;
|
|
31
31
|
}
|
|
32
|
-
export declare const MsgIBCSend:
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
fromJSON(object: any): MsgIBCSend;
|
|
36
|
-
toJSON(message: MsgIBCSend): unknown;
|
|
37
|
-
create<I extends Exact<DeepPartial<MsgIBCSend>, I>>(base?: I): MsgIBCSend;
|
|
38
|
-
fromPartial<I extends Exact<DeepPartial<MsgIBCSend>, I>>(object: I): MsgIBCSend;
|
|
39
|
-
};
|
|
40
|
-
export declare const MsgIBCSendResponse: {
|
|
41
|
-
encode(message: MsgIBCSendResponse, writer?: _m0.Writer): _m0.Writer;
|
|
42
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgIBCSendResponse;
|
|
43
|
-
fromJSON(object: any): MsgIBCSendResponse;
|
|
44
|
-
toJSON(message: MsgIBCSendResponse): unknown;
|
|
45
|
-
create<I extends Exact<DeepPartial<MsgIBCSendResponse>, I>>(base?: I): MsgIBCSendResponse;
|
|
46
|
-
fromPartial<I extends Exact<DeepPartial<MsgIBCSendResponse>, I>>(object: I): MsgIBCSendResponse;
|
|
47
|
-
};
|
|
48
|
-
export declare const MsgIBCCloseChannel: {
|
|
49
|
-
encode(message: MsgIBCCloseChannel, writer?: _m0.Writer): _m0.Writer;
|
|
50
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgIBCCloseChannel;
|
|
51
|
-
fromJSON(object: any): MsgIBCCloseChannel;
|
|
52
|
-
toJSON(message: MsgIBCCloseChannel): unknown;
|
|
53
|
-
create<I extends Exact<DeepPartial<MsgIBCCloseChannel>, I>>(base?: I): MsgIBCCloseChannel;
|
|
54
|
-
fromPartial<I extends Exact<DeepPartial<MsgIBCCloseChannel>, I>>(object: I): MsgIBCCloseChannel;
|
|
55
|
-
};
|
|
32
|
+
export declare const MsgIBCSend: MessageFns<MsgIBCSend>;
|
|
33
|
+
export declare const MsgIBCSendResponse: MessageFns<MsgIBCSendResponse>;
|
|
34
|
+
export declare const MsgIBCCloseChannel: MessageFns<MsgIBCCloseChannel>;
|
|
56
35
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
57
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
36
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
58
37
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
59
38
|
} : Partial<T>;
|
|
60
39
|
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
@@ -63,4 +42,12 @@ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
|
63
42
|
} & {
|
|
64
43
|
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
65
44
|
};
|
|
45
|
+
export interface MessageFns<T> {
|
|
46
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
47
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
48
|
+
fromJSON(object: any): T;
|
|
49
|
+
toJSON(message: T): unknown;
|
|
50
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
51
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
52
|
+
}
|
|
66
53
|
export {};
|
package/dist/main/wasm/v1/ibc.js
CHANGED
|
@@ -1,18 +1,24 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.7.0
|
|
5
|
+
// protoc v3.21.12
|
|
6
|
+
// source: wasmd/proto/cosmwasm/wasm/v1/ibc.proto
|
|
5
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
8
|
exports.MsgIBCCloseChannel = exports.MsgIBCSendResponse = exports.MsgIBCSend = exports.protobufPackage = void 0;
|
|
7
9
|
/* eslint-disable */
|
|
8
|
-
const
|
|
9
|
-
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
10
|
+
const binary_1 = require("cosmjs-types/binary");
|
|
10
11
|
exports.protobufPackage = "cosmwasm.wasm.v1";
|
|
11
12
|
function createBaseMsgIBCSend() {
|
|
12
|
-
return {
|
|
13
|
+
return {
|
|
14
|
+
channel: "",
|
|
15
|
+
timeoutHeight: 0,
|
|
16
|
+
timeoutTimestamp: 0,
|
|
17
|
+
data: new Uint8Array(0),
|
|
18
|
+
};
|
|
13
19
|
}
|
|
14
20
|
exports.MsgIBCSend = {
|
|
15
|
-
encode(message, writer =
|
|
21
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
16
22
|
if (message.channel !== "") {
|
|
17
23
|
writer.uint32(18).string(message.channel);
|
|
18
24
|
}
|
|
@@ -28,71 +34,87 @@ exports.MsgIBCSend = {
|
|
|
28
34
|
return writer;
|
|
29
35
|
},
|
|
30
36
|
decode(input, length) {
|
|
31
|
-
const reader = input instanceof
|
|
37
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
32
38
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
33
39
|
const message = createBaseMsgIBCSend();
|
|
34
40
|
while (reader.pos < end) {
|
|
35
41
|
const tag = reader.uint32();
|
|
36
42
|
switch (tag >>> 3) {
|
|
37
|
-
case 2:
|
|
43
|
+
case 2: {
|
|
38
44
|
if (tag !== 18) {
|
|
39
45
|
break;
|
|
40
46
|
}
|
|
41
47
|
message.channel = reader.string();
|
|
42
48
|
continue;
|
|
43
|
-
|
|
49
|
+
}
|
|
50
|
+
case 4: {
|
|
44
51
|
if (tag !== 32) {
|
|
45
52
|
break;
|
|
46
53
|
}
|
|
47
54
|
message.timeoutHeight = longToNumber(reader.uint64());
|
|
48
55
|
continue;
|
|
49
|
-
|
|
56
|
+
}
|
|
57
|
+
case 5: {
|
|
50
58
|
if (tag !== 40) {
|
|
51
59
|
break;
|
|
52
60
|
}
|
|
53
61
|
message.timeoutTimestamp = longToNumber(reader.uint64());
|
|
54
62
|
continue;
|
|
55
|
-
|
|
63
|
+
}
|
|
64
|
+
case 6: {
|
|
56
65
|
if (tag !== 50) {
|
|
57
66
|
break;
|
|
58
67
|
}
|
|
59
68
|
message.data = reader.bytes();
|
|
60
69
|
continue;
|
|
70
|
+
}
|
|
61
71
|
}
|
|
62
72
|
if ((tag & 7) === 4 || tag === 0) {
|
|
63
73
|
break;
|
|
64
74
|
}
|
|
65
|
-
reader.
|
|
75
|
+
reader.skip(tag & 7);
|
|
66
76
|
}
|
|
67
77
|
return message;
|
|
68
78
|
},
|
|
69
79
|
fromJSON(object) {
|
|
70
80
|
return {
|
|
71
|
-
channel: isSet(object.channel) ? String(object.channel) : "",
|
|
72
|
-
timeoutHeight: isSet(object.timeoutHeight)
|
|
73
|
-
|
|
74
|
-
|
|
81
|
+
channel: isSet(object.channel) ? globalThis.String(object.channel) : "",
|
|
82
|
+
timeoutHeight: isSet(object.timeoutHeight)
|
|
83
|
+
? globalThis.Number(object.timeoutHeight)
|
|
84
|
+
: 0,
|
|
85
|
+
timeoutTimestamp: isSet(object.timeoutTimestamp)
|
|
86
|
+
? globalThis.Number(object.timeoutTimestamp)
|
|
87
|
+
: 0,
|
|
88
|
+
data: isSet(object.data)
|
|
89
|
+
? bytesFromBase64(object.data)
|
|
90
|
+
: new Uint8Array(0),
|
|
75
91
|
};
|
|
76
92
|
},
|
|
77
93
|
toJSON(message) {
|
|
78
94
|
const obj = {};
|
|
79
|
-
message.channel !==
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
message.
|
|
83
|
-
|
|
95
|
+
if (message.channel !== "") {
|
|
96
|
+
obj.channel = message.channel;
|
|
97
|
+
}
|
|
98
|
+
if (message.timeoutHeight !== 0) {
|
|
99
|
+
obj.timeoutHeight = Math.round(message.timeoutHeight);
|
|
100
|
+
}
|
|
101
|
+
if (message.timeoutTimestamp !== 0) {
|
|
102
|
+
obj.timeoutTimestamp = Math.round(message.timeoutTimestamp);
|
|
103
|
+
}
|
|
104
|
+
if (message.data.length !== 0) {
|
|
105
|
+
obj.data = base64FromBytes(message.data);
|
|
106
|
+
}
|
|
84
107
|
return obj;
|
|
85
108
|
},
|
|
86
109
|
create(base) {
|
|
87
|
-
return exports.MsgIBCSend.fromPartial(base
|
|
110
|
+
return exports.MsgIBCSend.fromPartial(base ?? {});
|
|
88
111
|
},
|
|
89
112
|
fromPartial(object) {
|
|
90
|
-
var _a, _b, _c, _d;
|
|
91
113
|
const message = createBaseMsgIBCSend();
|
|
92
|
-
message.channel =
|
|
93
|
-
message.timeoutHeight =
|
|
94
|
-
message.timeoutTimestamp =
|
|
95
|
-
message.data =
|
|
114
|
+
message.channel = object.channel ?? "";
|
|
115
|
+
message.timeoutHeight = object.timeoutHeight ?? 0;
|
|
116
|
+
message.timeoutTimestamp = object.timeoutTimestamp ?? 0;
|
|
117
|
+
message.data = object.data ?? new Uint8Array(0);
|
|
96
118
|
return message;
|
|
97
119
|
},
|
|
98
120
|
};
|
|
@@ -100,48 +122,52 @@ function createBaseMsgIBCSendResponse() {
|
|
|
100
122
|
return { sequence: 0 };
|
|
101
123
|
}
|
|
102
124
|
exports.MsgIBCSendResponse = {
|
|
103
|
-
encode(message, writer =
|
|
125
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
104
126
|
if (message.sequence !== 0) {
|
|
105
127
|
writer.uint32(8).uint64(message.sequence);
|
|
106
128
|
}
|
|
107
129
|
return writer;
|
|
108
130
|
},
|
|
109
131
|
decode(input, length) {
|
|
110
|
-
const reader = input instanceof
|
|
132
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
111
133
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
112
134
|
const message = createBaseMsgIBCSendResponse();
|
|
113
135
|
while (reader.pos < end) {
|
|
114
136
|
const tag = reader.uint32();
|
|
115
137
|
switch (tag >>> 3) {
|
|
116
|
-
case 1:
|
|
138
|
+
case 1: {
|
|
117
139
|
if (tag !== 8) {
|
|
118
140
|
break;
|
|
119
141
|
}
|
|
120
142
|
message.sequence = longToNumber(reader.uint64());
|
|
121
143
|
continue;
|
|
144
|
+
}
|
|
122
145
|
}
|
|
123
146
|
if ((tag & 7) === 4 || tag === 0) {
|
|
124
147
|
break;
|
|
125
148
|
}
|
|
126
|
-
reader.
|
|
149
|
+
reader.skip(tag & 7);
|
|
127
150
|
}
|
|
128
151
|
return message;
|
|
129
152
|
},
|
|
130
153
|
fromJSON(object) {
|
|
131
|
-
return {
|
|
154
|
+
return {
|
|
155
|
+
sequence: isSet(object.sequence) ? globalThis.Number(object.sequence) : 0,
|
|
156
|
+
};
|
|
132
157
|
},
|
|
133
158
|
toJSON(message) {
|
|
134
159
|
const obj = {};
|
|
135
|
-
message.sequence !==
|
|
160
|
+
if (message.sequence !== 0) {
|
|
161
|
+
obj.sequence = Math.round(message.sequence);
|
|
162
|
+
}
|
|
136
163
|
return obj;
|
|
137
164
|
},
|
|
138
165
|
create(base) {
|
|
139
|
-
return exports.MsgIBCSendResponse.fromPartial(base
|
|
166
|
+
return exports.MsgIBCSendResponse.fromPartial(base ?? {});
|
|
140
167
|
},
|
|
141
168
|
fromPartial(object) {
|
|
142
|
-
var _a;
|
|
143
169
|
const message = createBaseMsgIBCSendResponse();
|
|
144
|
-
message.sequence =
|
|
170
|
+
message.sequence = object.sequence ?? 0;
|
|
145
171
|
return message;
|
|
146
172
|
},
|
|
147
173
|
};
|
|
@@ -149,72 +175,61 @@ function createBaseMsgIBCCloseChannel() {
|
|
|
149
175
|
return { channel: "" };
|
|
150
176
|
}
|
|
151
177
|
exports.MsgIBCCloseChannel = {
|
|
152
|
-
encode(message, writer =
|
|
178
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
153
179
|
if (message.channel !== "") {
|
|
154
180
|
writer.uint32(18).string(message.channel);
|
|
155
181
|
}
|
|
156
182
|
return writer;
|
|
157
183
|
},
|
|
158
184
|
decode(input, length) {
|
|
159
|
-
const reader = input instanceof
|
|
185
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
160
186
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
161
187
|
const message = createBaseMsgIBCCloseChannel();
|
|
162
188
|
while (reader.pos < end) {
|
|
163
189
|
const tag = reader.uint32();
|
|
164
190
|
switch (tag >>> 3) {
|
|
165
|
-
case 2:
|
|
191
|
+
case 2: {
|
|
166
192
|
if (tag !== 18) {
|
|
167
193
|
break;
|
|
168
194
|
}
|
|
169
195
|
message.channel = reader.string();
|
|
170
196
|
continue;
|
|
197
|
+
}
|
|
171
198
|
}
|
|
172
199
|
if ((tag & 7) === 4 || tag === 0) {
|
|
173
200
|
break;
|
|
174
201
|
}
|
|
175
|
-
reader.
|
|
202
|
+
reader.skip(tag & 7);
|
|
176
203
|
}
|
|
177
204
|
return message;
|
|
178
205
|
},
|
|
179
206
|
fromJSON(object) {
|
|
180
|
-
return {
|
|
207
|
+
return {
|
|
208
|
+
channel: isSet(object.channel) ? globalThis.String(object.channel) : "",
|
|
209
|
+
};
|
|
181
210
|
},
|
|
182
211
|
toJSON(message) {
|
|
183
212
|
const obj = {};
|
|
184
|
-
message.channel !==
|
|
213
|
+
if (message.channel !== "") {
|
|
214
|
+
obj.channel = message.channel;
|
|
215
|
+
}
|
|
185
216
|
return obj;
|
|
186
217
|
},
|
|
187
218
|
create(base) {
|
|
188
|
-
return exports.MsgIBCCloseChannel.fromPartial(base
|
|
219
|
+
return exports.MsgIBCCloseChannel.fromPartial(base ?? {});
|
|
189
220
|
},
|
|
190
221
|
fromPartial(object) {
|
|
191
|
-
var _a;
|
|
192
222
|
const message = createBaseMsgIBCCloseChannel();
|
|
193
|
-
message.channel =
|
|
223
|
+
message.channel = object.channel ?? "";
|
|
194
224
|
return message;
|
|
195
225
|
},
|
|
196
226
|
};
|
|
197
|
-
var tsProtoGlobalThis = (() => {
|
|
198
|
-
if (typeof globalThis !== "undefined") {
|
|
199
|
-
return globalThis;
|
|
200
|
-
}
|
|
201
|
-
if (typeof self !== "undefined") {
|
|
202
|
-
return self;
|
|
203
|
-
}
|
|
204
|
-
if (typeof window !== "undefined") {
|
|
205
|
-
return window;
|
|
206
|
-
}
|
|
207
|
-
if (typeof global !== "undefined") {
|
|
208
|
-
return global;
|
|
209
|
-
}
|
|
210
|
-
throw "Unable to locate global object";
|
|
211
|
-
})();
|
|
212
227
|
function bytesFromBase64(b64) {
|
|
213
|
-
if (
|
|
214
|
-
return Uint8Array.from(
|
|
228
|
+
if (globalThis.Buffer) {
|
|
229
|
+
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
215
230
|
}
|
|
216
231
|
else {
|
|
217
|
-
const bin =
|
|
232
|
+
const bin = globalThis.atob(b64);
|
|
218
233
|
const arr = new Uint8Array(bin.length);
|
|
219
234
|
for (let i = 0; i < bin.length; ++i) {
|
|
220
235
|
arr[i] = bin.charCodeAt(i);
|
|
@@ -223,26 +238,26 @@ function bytesFromBase64(b64) {
|
|
|
223
238
|
}
|
|
224
239
|
}
|
|
225
240
|
function base64FromBytes(arr) {
|
|
226
|
-
if (
|
|
227
|
-
return
|
|
241
|
+
if (globalThis.Buffer) {
|
|
242
|
+
return globalThis.Buffer.from(arr).toString("base64");
|
|
228
243
|
}
|
|
229
244
|
else {
|
|
230
245
|
const bin = [];
|
|
231
246
|
arr.forEach((byte) => {
|
|
232
|
-
bin.push(String.fromCharCode(byte));
|
|
247
|
+
bin.push(globalThis.String.fromCharCode(byte));
|
|
233
248
|
});
|
|
234
|
-
return
|
|
249
|
+
return globalThis.btoa(bin.join(""));
|
|
235
250
|
}
|
|
236
251
|
}
|
|
237
|
-
function longToNumber(
|
|
238
|
-
|
|
239
|
-
|
|
252
|
+
function longToNumber(int64) {
|
|
253
|
+
const num = globalThis.Number(int64.toString());
|
|
254
|
+
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
255
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
240
256
|
}
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
minimal_1.default.configure();
|
|
257
|
+
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
258
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
259
|
+
}
|
|
260
|
+
return num;
|
|
246
261
|
}
|
|
247
262
|
function isSet(value) {
|
|
248
263
|
return value !== null && value !== undefined;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { GeneratedType } from "@cosmjs/proto-signing";
|
|
2
1
|
import { MsgStoreCode, MsgInstantiateContract, MsgInstantiateContract2, MsgExecuteContract, MsgMigrateContract, MsgUpdateAdmin, MsgClearAdmin, MsgUpdateInstantiateConfig, MsgUpdateParams, MsgSudoContract, MsgPinCodes, MsgUnpinCodes, MsgStoreAndInstantiateContract } from "./tx";
|
|
3
2
|
import { MsgIBCSend, MsgIBCCloseChannel } from "./ibc";
|
|
4
|
-
export declare const cosmwasmRegistry: ReadonlyArray<[string,
|
|
3
|
+
export declare const cosmwasmRegistry: ReadonlyArray<[string, any]>;
|
|
5
4
|
/**
|
|
6
5
|
* Transaction Module for the IBC Module (wasm)
|
|
7
6
|
*/
|
|
@@ -68,16 +68,52 @@ export declare const PageRequest: {
|
|
|
68
68
|
decode(input: _m0.Reader | Uint8Array, length?: number): PageRequest;
|
|
69
69
|
fromJSON(object: any): PageRequest;
|
|
70
70
|
toJSON(message: PageRequest): unknown;
|
|
71
|
-
create<I extends
|
|
72
|
-
|
|
71
|
+
create<I extends {
|
|
72
|
+
key?: Uint8Array;
|
|
73
|
+
offset?: number;
|
|
74
|
+
limit?: number;
|
|
75
|
+
countTotal?: boolean;
|
|
76
|
+
reverse?: boolean;
|
|
77
|
+
} & {
|
|
78
|
+
key?: Uint8Array;
|
|
79
|
+
offset?: number;
|
|
80
|
+
limit?: number;
|
|
81
|
+
countTotal?: boolean;
|
|
82
|
+
reverse?: boolean;
|
|
83
|
+
} & { [K in Exclude<keyof I, keyof PageRequest>]: never; }>(base?: I): PageRequest;
|
|
84
|
+
fromPartial<I_1 extends {
|
|
85
|
+
key?: Uint8Array;
|
|
86
|
+
offset?: number;
|
|
87
|
+
limit?: number;
|
|
88
|
+
countTotal?: boolean;
|
|
89
|
+
reverse?: boolean;
|
|
90
|
+
} & {
|
|
91
|
+
key?: Uint8Array;
|
|
92
|
+
offset?: number;
|
|
93
|
+
limit?: number;
|
|
94
|
+
countTotal?: boolean;
|
|
95
|
+
reverse?: boolean;
|
|
96
|
+
} & { [K_1 in Exclude<keyof I_1, keyof PageRequest>]: never; }>(object: I_1): PageRequest;
|
|
73
97
|
};
|
|
74
98
|
export declare const PageResponse: {
|
|
75
99
|
encode(message: PageResponse, writer?: _m0.Writer): _m0.Writer;
|
|
76
100
|
decode(input: _m0.Reader | Uint8Array, length?: number): PageResponse;
|
|
77
101
|
fromJSON(object: any): PageResponse;
|
|
78
102
|
toJSON(message: PageResponse): unknown;
|
|
79
|
-
create<I extends
|
|
80
|
-
|
|
103
|
+
create<I extends {
|
|
104
|
+
nextKey?: Uint8Array;
|
|
105
|
+
total?: number;
|
|
106
|
+
} & {
|
|
107
|
+
nextKey?: Uint8Array;
|
|
108
|
+
total?: number;
|
|
109
|
+
} & { [K in Exclude<keyof I, keyof PageResponse>]: never; }>(base?: I): PageResponse;
|
|
110
|
+
fromPartial<I_1 extends {
|
|
111
|
+
nextKey?: Uint8Array;
|
|
112
|
+
total?: number;
|
|
113
|
+
} & {
|
|
114
|
+
nextKey?: Uint8Array;
|
|
115
|
+
total?: number;
|
|
116
|
+
} & { [K_1 in Exclude<keyof I_1, keyof PageResponse>]: never; }>(object: I_1): PageResponse;
|
|
81
117
|
};
|
|
82
118
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
83
119
|
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
@@ -95,16 +95,15 @@ exports.PageRequest = {
|
|
|
95
95
|
return obj;
|
|
96
96
|
},
|
|
97
97
|
create(base) {
|
|
98
|
-
return exports.PageRequest.fromPartial(base
|
|
98
|
+
return exports.PageRequest.fromPartial(base ?? {});
|
|
99
99
|
},
|
|
100
100
|
fromPartial(object) {
|
|
101
|
-
var _a, _b, _c, _d, _e;
|
|
102
101
|
const message = createBasePageRequest();
|
|
103
|
-
message.key =
|
|
104
|
-
message.offset =
|
|
105
|
-
message.limit =
|
|
106
|
-
message.countTotal =
|
|
107
|
-
message.reverse =
|
|
102
|
+
message.key = object.key ?? new Uint8Array();
|
|
103
|
+
message.offset = object.offset ?? 0;
|
|
104
|
+
message.limit = object.limit ?? 0;
|
|
105
|
+
message.countTotal = object.countTotal ?? false;
|
|
106
|
+
message.reverse = object.reverse ?? false;
|
|
108
107
|
return message;
|
|
109
108
|
},
|
|
110
109
|
};
|
|
@@ -162,13 +161,12 @@ exports.PageResponse = {
|
|
|
162
161
|
return obj;
|
|
163
162
|
},
|
|
164
163
|
create(base) {
|
|
165
|
-
return exports.PageResponse.fromPartial(base
|
|
164
|
+
return exports.PageResponse.fromPartial(base ?? {});
|
|
166
165
|
},
|
|
167
166
|
fromPartial(object) {
|
|
168
|
-
var _a, _b;
|
|
169
167
|
const message = createBasePageResponse();
|
|
170
|
-
message.nextKey =
|
|
171
|
-
message.total =
|
|
168
|
+
message.nextKey = object.nextKey ?? new Uint8Array();
|
|
169
|
+
message.total = object.total ?? 0;
|
|
172
170
|
return message;
|
|
173
171
|
},
|
|
174
172
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
|
|
2
2
|
import { Coin } from "cosmjs-types/cosmos/base/v1beta1/coin";
|
|
3
3
|
import { AccessConfig } from "./types";
|
|
4
4
|
export declare const protobufPackage = "cosmwasm.wasm.v1";
|
|
@@ -292,112 +292,21 @@ export interface StoreAndInstantiateContractProposal {
|
|
|
292
292
|
*/
|
|
293
293
|
codeHash: Uint8Array;
|
|
294
294
|
}
|
|
295
|
-
export declare const StoreCodeProposal:
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
export declare const
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
create<I extends Exact<DeepPartial<InstantiateContractProposal>, I>>(base?: I): InstantiateContractProposal;
|
|
309
|
-
fromPartial<I extends Exact<DeepPartial<InstantiateContractProposal>, I>>(object: I): InstantiateContractProposal;
|
|
310
|
-
};
|
|
311
|
-
export declare const InstantiateContract2Proposal: {
|
|
312
|
-
encode(message: InstantiateContract2Proposal, writer?: _m0.Writer): _m0.Writer;
|
|
313
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): InstantiateContract2Proposal;
|
|
314
|
-
fromJSON(object: any): InstantiateContract2Proposal;
|
|
315
|
-
toJSON(message: InstantiateContract2Proposal): unknown;
|
|
316
|
-
create<I extends Exact<DeepPartial<InstantiateContract2Proposal>, I>>(base?: I): InstantiateContract2Proposal;
|
|
317
|
-
fromPartial<I extends Exact<DeepPartial<InstantiateContract2Proposal>, I>>(object: I): InstantiateContract2Proposal;
|
|
318
|
-
};
|
|
319
|
-
export declare const MigrateContractProposal: {
|
|
320
|
-
encode(message: MigrateContractProposal, writer?: _m0.Writer): _m0.Writer;
|
|
321
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MigrateContractProposal;
|
|
322
|
-
fromJSON(object: any): MigrateContractProposal;
|
|
323
|
-
toJSON(message: MigrateContractProposal): unknown;
|
|
324
|
-
create<I extends Exact<DeepPartial<MigrateContractProposal>, I>>(base?: I): MigrateContractProposal;
|
|
325
|
-
fromPartial<I extends Exact<DeepPartial<MigrateContractProposal>, I>>(object: I): MigrateContractProposal;
|
|
326
|
-
};
|
|
327
|
-
export declare const SudoContractProposal: {
|
|
328
|
-
encode(message: SudoContractProposal, writer?: _m0.Writer): _m0.Writer;
|
|
329
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): SudoContractProposal;
|
|
330
|
-
fromJSON(object: any): SudoContractProposal;
|
|
331
|
-
toJSON(message: SudoContractProposal): unknown;
|
|
332
|
-
create<I extends Exact<DeepPartial<SudoContractProposal>, I>>(base?: I): SudoContractProposal;
|
|
333
|
-
fromPartial<I extends Exact<DeepPartial<SudoContractProposal>, I>>(object: I): SudoContractProposal;
|
|
334
|
-
};
|
|
335
|
-
export declare const ExecuteContractProposal: {
|
|
336
|
-
encode(message: ExecuteContractProposal, writer?: _m0.Writer): _m0.Writer;
|
|
337
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ExecuteContractProposal;
|
|
338
|
-
fromJSON(object: any): ExecuteContractProposal;
|
|
339
|
-
toJSON(message: ExecuteContractProposal): unknown;
|
|
340
|
-
create<I extends Exact<DeepPartial<ExecuteContractProposal>, I>>(base?: I): ExecuteContractProposal;
|
|
341
|
-
fromPartial<I extends Exact<DeepPartial<ExecuteContractProposal>, I>>(object: I): ExecuteContractProposal;
|
|
342
|
-
};
|
|
343
|
-
export declare const UpdateAdminProposal: {
|
|
344
|
-
encode(message: UpdateAdminProposal, writer?: _m0.Writer): _m0.Writer;
|
|
345
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateAdminProposal;
|
|
346
|
-
fromJSON(object: any): UpdateAdminProposal;
|
|
347
|
-
toJSON(message: UpdateAdminProposal): unknown;
|
|
348
|
-
create<I extends Exact<DeepPartial<UpdateAdminProposal>, I>>(base?: I): UpdateAdminProposal;
|
|
349
|
-
fromPartial<I extends Exact<DeepPartial<UpdateAdminProposal>, I>>(object: I): UpdateAdminProposal;
|
|
350
|
-
};
|
|
351
|
-
export declare const ClearAdminProposal: {
|
|
352
|
-
encode(message: ClearAdminProposal, writer?: _m0.Writer): _m0.Writer;
|
|
353
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): ClearAdminProposal;
|
|
354
|
-
fromJSON(object: any): ClearAdminProposal;
|
|
355
|
-
toJSON(message: ClearAdminProposal): unknown;
|
|
356
|
-
create<I extends Exact<DeepPartial<ClearAdminProposal>, I>>(base?: I): ClearAdminProposal;
|
|
357
|
-
fromPartial<I extends Exact<DeepPartial<ClearAdminProposal>, I>>(object: I): ClearAdminProposal;
|
|
358
|
-
};
|
|
359
|
-
export declare const PinCodesProposal: {
|
|
360
|
-
encode(message: PinCodesProposal, writer?: _m0.Writer): _m0.Writer;
|
|
361
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): PinCodesProposal;
|
|
362
|
-
fromJSON(object: any): PinCodesProposal;
|
|
363
|
-
toJSON(message: PinCodesProposal): unknown;
|
|
364
|
-
create<I extends Exact<DeepPartial<PinCodesProposal>, I>>(base?: I): PinCodesProposal;
|
|
365
|
-
fromPartial<I extends Exact<DeepPartial<PinCodesProposal>, I>>(object: I): PinCodesProposal;
|
|
366
|
-
};
|
|
367
|
-
export declare const UnpinCodesProposal: {
|
|
368
|
-
encode(message: UnpinCodesProposal, writer?: _m0.Writer): _m0.Writer;
|
|
369
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): UnpinCodesProposal;
|
|
370
|
-
fromJSON(object: any): UnpinCodesProposal;
|
|
371
|
-
toJSON(message: UnpinCodesProposal): unknown;
|
|
372
|
-
create<I extends Exact<DeepPartial<UnpinCodesProposal>, I>>(base?: I): UnpinCodesProposal;
|
|
373
|
-
fromPartial<I extends Exact<DeepPartial<UnpinCodesProposal>, I>>(object: I): UnpinCodesProposal;
|
|
374
|
-
};
|
|
375
|
-
export declare const AccessConfigUpdate: {
|
|
376
|
-
encode(message: AccessConfigUpdate, writer?: _m0.Writer): _m0.Writer;
|
|
377
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): AccessConfigUpdate;
|
|
378
|
-
fromJSON(object: any): AccessConfigUpdate;
|
|
379
|
-
toJSON(message: AccessConfigUpdate): unknown;
|
|
380
|
-
create<I extends Exact<DeepPartial<AccessConfigUpdate>, I>>(base?: I): AccessConfigUpdate;
|
|
381
|
-
fromPartial<I extends Exact<DeepPartial<AccessConfigUpdate>, I>>(object: I): AccessConfigUpdate;
|
|
382
|
-
};
|
|
383
|
-
export declare const UpdateInstantiateConfigProposal: {
|
|
384
|
-
encode(message: UpdateInstantiateConfigProposal, writer?: _m0.Writer): _m0.Writer;
|
|
385
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): UpdateInstantiateConfigProposal;
|
|
386
|
-
fromJSON(object: any): UpdateInstantiateConfigProposal;
|
|
387
|
-
toJSON(message: UpdateInstantiateConfigProposal): unknown;
|
|
388
|
-
create<I extends Exact<DeepPartial<UpdateInstantiateConfigProposal>, I>>(base?: I): UpdateInstantiateConfigProposal;
|
|
389
|
-
fromPartial<I extends Exact<DeepPartial<UpdateInstantiateConfigProposal>, I>>(object: I): UpdateInstantiateConfigProposal;
|
|
390
|
-
};
|
|
391
|
-
export declare const StoreAndInstantiateContractProposal: {
|
|
392
|
-
encode(message: StoreAndInstantiateContractProposal, writer?: _m0.Writer): _m0.Writer;
|
|
393
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): StoreAndInstantiateContractProposal;
|
|
394
|
-
fromJSON(object: any): StoreAndInstantiateContractProposal;
|
|
395
|
-
toJSON(message: StoreAndInstantiateContractProposal): unknown;
|
|
396
|
-
create<I extends Exact<DeepPartial<StoreAndInstantiateContractProposal>, I>>(base?: I): StoreAndInstantiateContractProposal;
|
|
397
|
-
fromPartial<I extends Exact<DeepPartial<StoreAndInstantiateContractProposal>, I>>(object: I): StoreAndInstantiateContractProposal;
|
|
398
|
-
};
|
|
295
|
+
export declare const StoreCodeProposal: MessageFns<StoreCodeProposal>;
|
|
296
|
+
export declare const InstantiateContractProposal: MessageFns<InstantiateContractProposal>;
|
|
297
|
+
export declare const InstantiateContract2Proposal: MessageFns<InstantiateContract2Proposal>;
|
|
298
|
+
export declare const MigrateContractProposal: MessageFns<MigrateContractProposal>;
|
|
299
|
+
export declare const SudoContractProposal: MessageFns<SudoContractProposal>;
|
|
300
|
+
export declare const ExecuteContractProposal: MessageFns<ExecuteContractProposal>;
|
|
301
|
+
export declare const UpdateAdminProposal: MessageFns<UpdateAdminProposal>;
|
|
302
|
+
export declare const ClearAdminProposal: MessageFns<ClearAdminProposal>;
|
|
303
|
+
export declare const PinCodesProposal: MessageFns<PinCodesProposal>;
|
|
304
|
+
export declare const UnpinCodesProposal: MessageFns<UnpinCodesProposal>;
|
|
305
|
+
export declare const AccessConfigUpdate: MessageFns<AccessConfigUpdate>;
|
|
306
|
+
export declare const UpdateInstantiateConfigProposal: MessageFns<UpdateInstantiateConfigProposal>;
|
|
307
|
+
export declare const StoreAndInstantiateContractProposal: MessageFns<StoreAndInstantiateContractProposal>;
|
|
399
308
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
400
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
309
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
401
310
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
402
311
|
} : Partial<T>;
|
|
403
312
|
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
@@ -406,4 +315,12 @@ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
|
406
315
|
} & {
|
|
407
316
|
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
408
317
|
};
|
|
318
|
+
export interface MessageFns<T> {
|
|
319
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
320
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
321
|
+
fromJSON(object: any): T;
|
|
322
|
+
toJSON(message: T): unknown;
|
|
323
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
324
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
325
|
+
}
|
|
409
326
|
export {};
|