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
|
@@ -50,7 +50,7 @@ exports.Http = {
|
|
|
50
50
|
},
|
|
51
51
|
fromJSON(object) {
|
|
52
52
|
return {
|
|
53
|
-
rules: Array.isArray(object
|
|
53
|
+
rules: Array.isArray(object?.rules) ? object.rules.map((e) => exports.HttpRule.fromJSON(e)) : [],
|
|
54
54
|
fullyDecodeReservedExpansion: isSet(object.fullyDecodeReservedExpansion)
|
|
55
55
|
? Boolean(object.fullyDecodeReservedExpansion)
|
|
56
56
|
: false,
|
|
@@ -69,13 +69,12 @@ exports.Http = {
|
|
|
69
69
|
return obj;
|
|
70
70
|
},
|
|
71
71
|
create(base) {
|
|
72
|
-
return exports.Http.fromPartial(base
|
|
72
|
+
return exports.Http.fromPartial(base ?? {});
|
|
73
73
|
},
|
|
74
74
|
fromPartial(object) {
|
|
75
|
-
var _a, _b;
|
|
76
75
|
const message = createBaseHttp();
|
|
77
|
-
message.rules =
|
|
78
|
-
message.fullyDecodeReservedExpansion =
|
|
76
|
+
message.rules = object.rules?.map((e) => exports.HttpRule.fromPartial(e)) || [];
|
|
77
|
+
message.fullyDecodeReservedExpansion = object.fullyDecodeReservedExpansion ?? false;
|
|
79
78
|
return message;
|
|
80
79
|
},
|
|
81
80
|
};
|
|
@@ -213,7 +212,7 @@ exports.HttpRule = {
|
|
|
213
212
|
custom: isSet(object.custom) ? exports.CustomHttpPattern.fromJSON(object.custom) : undefined,
|
|
214
213
|
body: isSet(object.body) ? String(object.body) : "",
|
|
215
214
|
responseBody: isSet(object.responseBody) ? String(object.responseBody) : "",
|
|
216
|
-
additionalBindings: Array.isArray(object
|
|
215
|
+
additionalBindings: Array.isArray(object?.additionalBindings)
|
|
217
216
|
? object.additionalBindings.map((e) => exports.HttpRule.fromJSON(e))
|
|
218
217
|
: [],
|
|
219
218
|
};
|
|
@@ -239,23 +238,22 @@ exports.HttpRule = {
|
|
|
239
238
|
return obj;
|
|
240
239
|
},
|
|
241
240
|
create(base) {
|
|
242
|
-
return exports.HttpRule.fromPartial(base
|
|
241
|
+
return exports.HttpRule.fromPartial(base ?? {});
|
|
243
242
|
},
|
|
244
243
|
fromPartial(object) {
|
|
245
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j;
|
|
246
244
|
const message = createBaseHttpRule();
|
|
247
|
-
message.selector =
|
|
248
|
-
message.get =
|
|
249
|
-
message.put =
|
|
250
|
-
message.post =
|
|
251
|
-
message.delete =
|
|
252
|
-
message.patch =
|
|
245
|
+
message.selector = object.selector ?? "";
|
|
246
|
+
message.get = object.get ?? undefined;
|
|
247
|
+
message.put = object.put ?? undefined;
|
|
248
|
+
message.post = object.post ?? undefined;
|
|
249
|
+
message.delete = object.delete ?? undefined;
|
|
250
|
+
message.patch = object.patch ?? undefined;
|
|
253
251
|
message.custom = (object.custom !== undefined && object.custom !== null)
|
|
254
252
|
? exports.CustomHttpPattern.fromPartial(object.custom)
|
|
255
253
|
: undefined;
|
|
256
|
-
message.body =
|
|
257
|
-
message.responseBody =
|
|
258
|
-
message.additionalBindings =
|
|
254
|
+
message.body = object.body ?? "";
|
|
255
|
+
message.responseBody = object.responseBody ?? "";
|
|
256
|
+
message.additionalBindings = object.additionalBindings?.map((e) => exports.HttpRule.fromPartial(e)) || [];
|
|
259
257
|
return message;
|
|
260
258
|
},
|
|
261
259
|
};
|
|
@@ -309,13 +307,12 @@ exports.CustomHttpPattern = {
|
|
|
309
307
|
return obj;
|
|
310
308
|
},
|
|
311
309
|
create(base) {
|
|
312
|
-
return exports.CustomHttpPattern.fromPartial(base
|
|
310
|
+
return exports.CustomHttpPattern.fromPartial(base ?? {});
|
|
313
311
|
},
|
|
314
312
|
fromPartial(object) {
|
|
315
|
-
var _a, _b;
|
|
316
313
|
const message = createBaseCustomHttpPattern();
|
|
317
|
-
message.kind =
|
|
318
|
-
message.path =
|
|
314
|
+
message.kind = object.kind ?? "";
|
|
315
|
+
message.path = object.path ?? "";
|
|
319
316
|
return message;
|
|
320
317
|
},
|
|
321
318
|
};
|
|
@@ -120,8 +120,20 @@ export declare const Any: {
|
|
|
120
120
|
decode(input: _m0.Reader | Uint8Array, length?: number): Any;
|
|
121
121
|
fromJSON(object: any): Any;
|
|
122
122
|
toJSON(message: Any): unknown;
|
|
123
|
-
create<I extends
|
|
124
|
-
|
|
123
|
+
create<I extends {
|
|
124
|
+
typeUrl?: string;
|
|
125
|
+
value?: Uint8Array;
|
|
126
|
+
} & {
|
|
127
|
+
typeUrl?: string;
|
|
128
|
+
value?: Uint8Array;
|
|
129
|
+
} & { [K in Exclude<keyof I, keyof Any>]: never; }>(base?: I): Any;
|
|
130
|
+
fromPartial<I_1 extends {
|
|
131
|
+
typeUrl?: string;
|
|
132
|
+
value?: Uint8Array;
|
|
133
|
+
} & {
|
|
134
|
+
typeUrl?: string;
|
|
135
|
+
value?: Uint8Array;
|
|
136
|
+
} & { [K_1 in Exclude<keyof I_1, keyof Any>]: never; }>(object: I_1): Any;
|
|
125
137
|
};
|
|
126
138
|
export declare function bytesFromBase64(b64: string): Uint8Array;
|
|
127
139
|
export declare function base64FromBytes(arr: Uint8Array): string;
|
|
@@ -3,9 +3,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
3
3
|
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.Any = exports.protobufPackage = void 0;
|
|
7
|
-
exports.bytesFromBase64 = bytesFromBase64;
|
|
8
|
-
exports.base64FromBytes = base64FromBytes;
|
|
6
|
+
exports.base64FromBytes = exports.bytesFromBase64 = exports.Any = exports.protobufPackage = void 0;
|
|
9
7
|
/* eslint-disable */
|
|
10
8
|
const long_1 = __importDefault(require("long"));
|
|
11
9
|
const minimal_1 = __importDefault(require("protobufjs/minimal"));
|
|
@@ -66,13 +64,12 @@ exports.Any = {
|
|
|
66
64
|
return obj;
|
|
67
65
|
},
|
|
68
66
|
create(base) {
|
|
69
|
-
return exports.Any.fromPartial(base
|
|
67
|
+
return exports.Any.fromPartial(base ?? {});
|
|
70
68
|
},
|
|
71
69
|
fromPartial(object) {
|
|
72
|
-
var _a, _b;
|
|
73
70
|
const message = createBaseAny();
|
|
74
|
-
message.typeUrl =
|
|
75
|
-
message.value =
|
|
71
|
+
message.typeUrl = object.typeUrl ?? "";
|
|
72
|
+
message.value = object.value ?? new Uint8Array();
|
|
76
73
|
return message;
|
|
77
74
|
},
|
|
78
75
|
};
|
|
@@ -104,6 +101,7 @@ function bytesFromBase64(b64) {
|
|
|
104
101
|
return arr;
|
|
105
102
|
}
|
|
106
103
|
}
|
|
104
|
+
exports.bytesFromBase64 = bytesFromBase64;
|
|
107
105
|
function base64FromBytes(arr) {
|
|
108
106
|
if (tsProtoGlobalThis.Buffer) {
|
|
109
107
|
return tsProtoGlobalThis.Buffer.from(arr).toString("base64");
|
|
@@ -116,6 +114,7 @@ function base64FromBytes(arr) {
|
|
|
116
114
|
return tsProtoGlobalThis.btoa(bin.join(""));
|
|
117
115
|
}
|
|
118
116
|
}
|
|
117
|
+
exports.base64FromBytes = base64FromBytes;
|
|
119
118
|
if (minimal_1.default.util.Long !== long_1.default) {
|
|
120
119
|
minimal_1.default.util.Long = long_1.default;
|
|
121
120
|
minimal_1.default.configure();
|
|
@@ -82,8 +82,20 @@ export declare const Duration: {
|
|
|
82
82
|
decode(input: _m0.Reader | Uint8Array, length?: number): Duration;
|
|
83
83
|
fromJSON(object: any): Duration;
|
|
84
84
|
toJSON(message: Duration): unknown;
|
|
85
|
-
create<I extends
|
|
86
|
-
|
|
85
|
+
create<I extends {
|
|
86
|
+
seconds?: number;
|
|
87
|
+
nanos?: number;
|
|
88
|
+
} & {
|
|
89
|
+
seconds?: number;
|
|
90
|
+
nanos?: number;
|
|
91
|
+
} & { [K in Exclude<keyof I, keyof Duration>]: never; }>(base?: I): Duration;
|
|
92
|
+
fromPartial<I_1 extends {
|
|
93
|
+
seconds?: number;
|
|
94
|
+
nanos?: number;
|
|
95
|
+
} & {
|
|
96
|
+
seconds?: number;
|
|
97
|
+
nanos?: number;
|
|
98
|
+
} & { [K_1 in Exclude<keyof I_1, keyof Duration>]: never; }>(object: I_1): Duration;
|
|
87
99
|
};
|
|
88
100
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
89
101
|
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 {} ? {
|
|
@@ -61,13 +61,12 @@ exports.Duration = {
|
|
|
61
61
|
return obj;
|
|
62
62
|
},
|
|
63
63
|
create(base) {
|
|
64
|
-
return exports.Duration.fromPartial(base
|
|
64
|
+
return exports.Duration.fromPartial(base ?? {});
|
|
65
65
|
},
|
|
66
66
|
fromPartial(object) {
|
|
67
|
-
var _a, _b;
|
|
68
67
|
const message = createBaseDuration();
|
|
69
|
-
message.seconds =
|
|
70
|
-
message.nanos =
|
|
68
|
+
message.seconds = object.seconds ?? 0;
|
|
69
|
+
message.nanos = object.nanos ?? 0;
|
|
71
70
|
return message;
|
|
72
71
|
},
|
|
73
72
|
};
|
|
@@ -111,8 +111,20 @@ export declare const Timestamp: {
|
|
|
111
111
|
decode(input: _m0.Reader | Uint8Array, length?: number): Timestamp;
|
|
112
112
|
fromJSON(object: any): Timestamp;
|
|
113
113
|
toJSON(message: Timestamp): unknown;
|
|
114
|
-
create<I extends
|
|
115
|
-
|
|
114
|
+
create<I extends {
|
|
115
|
+
seconds?: number;
|
|
116
|
+
nanos?: number;
|
|
117
|
+
} & {
|
|
118
|
+
seconds?: number;
|
|
119
|
+
nanos?: number;
|
|
120
|
+
} & { [K in Exclude<keyof I, keyof Timestamp>]: never; }>(base?: I): Timestamp;
|
|
121
|
+
fromPartial<I_1 extends {
|
|
122
|
+
seconds?: number;
|
|
123
|
+
nanos?: number;
|
|
124
|
+
} & {
|
|
125
|
+
seconds?: number;
|
|
126
|
+
nanos?: number;
|
|
127
|
+
} & { [K_1 in Exclude<keyof I_1, keyof Timestamp>]: never; }>(object: I_1): Timestamp;
|
|
116
128
|
};
|
|
117
129
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
118
130
|
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 {} ? {
|
|
@@ -61,13 +61,12 @@ exports.Timestamp = {
|
|
|
61
61
|
return obj;
|
|
62
62
|
},
|
|
63
63
|
create(base) {
|
|
64
|
-
return exports.Timestamp.fromPartial(base
|
|
64
|
+
return exports.Timestamp.fromPartial(base ?? {});
|
|
65
65
|
},
|
|
66
66
|
fromPartial(object) {
|
|
67
|
-
var _a, _b;
|
|
68
67
|
const message = createBaseTimestamp();
|
|
69
|
-
message.seconds =
|
|
70
|
-
message.nanos =
|
|
68
|
+
message.seconds = object.seconds ?? 0;
|
|
69
|
+
message.nanos = object.nanos ?? 0;
|
|
71
70
|
return message;
|
|
72
71
|
},
|
|
73
72
|
};
|
package/dist/main/index.js
CHANGED
|
@@ -18,23 +18,13 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|
|
18
18
|
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
19
19
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
20
20
|
};
|
|
21
|
-
var __importStar = (this && this.__importStar) ||
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
return ownKeys(o);
|
|
29
|
-
};
|
|
30
|
-
return function (mod) {
|
|
31
|
-
if (mod && mod.__esModule) return mod;
|
|
32
|
-
var result = {};
|
|
33
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
34
|
-
__setModuleDefault(result, mod);
|
|
35
|
-
return result;
|
|
36
|
-
};
|
|
37
|
-
})();
|
|
21
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
22
|
+
if (mod && mod.__esModule) return mod;
|
|
23
|
+
var result = {};
|
|
24
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
25
|
+
__setModuleDefault(result, mod);
|
|
26
|
+
return result;
|
|
27
|
+
};
|
|
38
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
29
|
exports.Stargate = exports.Client = void 0;
|
|
40
30
|
var index_1 = require("./client/index");
|
|
@@ -33,7 +33,7 @@ const connectCosmostation = async (config) => {
|
|
|
33
33
|
exports.connectCosmostation = connectCosmostation;
|
|
34
34
|
const getCosmosOfflineSigner = async (chain_id) => {
|
|
35
35
|
try {
|
|
36
|
-
return await (0, cosmos_client_1.getOfflineSigner)(chain_id);
|
|
36
|
+
return (await (0, cosmos_client_1.getOfflineSigner)(chain_id));
|
|
37
37
|
}
|
|
38
38
|
catch (e) {
|
|
39
39
|
throw {
|