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,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
import _m0 from "protobufjs/minimal";
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
|
|
3
2
|
export declare const protobufPackage = "cosmos.nft.v1beta1";
|
|
4
3
|
/** MsgSend represents a message to send a nft from one account to another account. */
|
|
5
4
|
export interface MsgSend {
|
|
@@ -15,27 +14,14 @@ export interface MsgSend {
|
|
|
15
14
|
/** MsgSendResponse defines the Msg/Send response type. */
|
|
16
15
|
export interface MsgSendResponse {
|
|
17
16
|
}
|
|
18
|
-
export declare const MsgSend:
|
|
19
|
-
|
|
20
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSend;
|
|
21
|
-
fromJSON(object: any): MsgSend;
|
|
22
|
-
toJSON(message: MsgSend): unknown;
|
|
23
|
-
create<I extends Exact<DeepPartial<MsgSend>, I>>(base?: I): MsgSend;
|
|
24
|
-
fromPartial<I extends Exact<DeepPartial<MsgSend>, I>>(object: I): MsgSend;
|
|
25
|
-
};
|
|
26
|
-
export declare const MsgSendResponse: {
|
|
27
|
-
encode(_: MsgSendResponse, writer?: _m0.Writer): _m0.Writer;
|
|
28
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): MsgSendResponse;
|
|
29
|
-
fromJSON(_: any): MsgSendResponse;
|
|
30
|
-
toJSON(_: MsgSendResponse): unknown;
|
|
31
|
-
create<I extends Exact<DeepPartial<MsgSendResponse>, I>>(base?: I): MsgSendResponse;
|
|
32
|
-
fromPartial<I extends Exact<DeepPartial<MsgSendResponse>, I>>(_: I): MsgSendResponse;
|
|
33
|
-
};
|
|
17
|
+
export declare const MsgSend: MessageFns<MsgSend>;
|
|
18
|
+
export declare const MsgSendResponse: MessageFns<MsgSendResponse>;
|
|
34
19
|
/** Msg defines the nft Msg service. */
|
|
35
20
|
export interface Msg {
|
|
36
21
|
/** Send defines a method to send a nft from one account to another account. */
|
|
37
22
|
Send(request: MsgSend): Promise<MsgSendResponse>;
|
|
38
23
|
}
|
|
24
|
+
export declare const MsgServiceName = "cosmos.nft.v1beta1.Msg";
|
|
39
25
|
export declare class MsgClientImpl implements Msg {
|
|
40
26
|
private readonly rpc;
|
|
41
27
|
private readonly service;
|
|
@@ -48,7 +34,7 @@ interface Rpc {
|
|
|
48
34
|
request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
|
|
49
35
|
}
|
|
50
36
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
51
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends
|
|
37
|
+
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 {} ? {
|
|
52
38
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
53
39
|
} : Partial<T>;
|
|
54
40
|
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
@@ -57,4 +43,12 @@ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
|
57
43
|
} & {
|
|
58
44
|
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
59
45
|
};
|
|
46
|
+
export interface MessageFns<T> {
|
|
47
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
48
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
49
|
+
fromJSON(object: any): T;
|
|
50
|
+
toJSON(message: T): unknown;
|
|
51
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
52
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
53
|
+
}
|
|
60
54
|
export {};
|
|
@@ -1,18 +1,19 @@
|
|
|
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: cosmos-sdk/proto/cosmos/nft/v1beta1/tx.proto
|
|
5
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.MsgClientImpl = exports.MsgSendResponse = exports.MsgSend = exports.protobufPackage = void 0;
|
|
8
|
+
exports.MsgClientImpl = exports.MsgServiceName = exports.MsgSendResponse = exports.MsgSend = 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 = "cosmos.nft.v1beta1";
|
|
11
12
|
function createBaseMsgSend() {
|
|
12
13
|
return { classId: "", id: "", sender: "", receiver: "" };
|
|
13
14
|
}
|
|
14
15
|
exports.MsgSend = {
|
|
15
|
-
encode(message, writer =
|
|
16
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
16
17
|
if (message.classId !== "") {
|
|
17
18
|
writer.uint32(10).string(message.classId);
|
|
18
19
|
}
|
|
@@ -28,70 +29,83 @@ exports.MsgSend = {
|
|
|
28
29
|
return writer;
|
|
29
30
|
},
|
|
30
31
|
decode(input, length) {
|
|
31
|
-
const reader = input instanceof
|
|
32
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
32
33
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
33
34
|
const message = createBaseMsgSend();
|
|
34
35
|
while (reader.pos < end) {
|
|
35
36
|
const tag = reader.uint32();
|
|
36
37
|
switch (tag >>> 3) {
|
|
37
|
-
case 1:
|
|
38
|
-
if (tag
|
|
38
|
+
case 1: {
|
|
39
|
+
if (tag !== 10) {
|
|
39
40
|
break;
|
|
40
41
|
}
|
|
41
42
|
message.classId = reader.string();
|
|
42
43
|
continue;
|
|
43
|
-
|
|
44
|
-
|
|
44
|
+
}
|
|
45
|
+
case 2: {
|
|
46
|
+
if (tag !== 18) {
|
|
45
47
|
break;
|
|
46
48
|
}
|
|
47
49
|
message.id = reader.string();
|
|
48
50
|
continue;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
+
}
|
|
52
|
+
case 3: {
|
|
53
|
+
if (tag !== 26) {
|
|
51
54
|
break;
|
|
52
55
|
}
|
|
53
56
|
message.sender = reader.string();
|
|
54
57
|
continue;
|
|
55
|
-
|
|
56
|
-
|
|
58
|
+
}
|
|
59
|
+
case 4: {
|
|
60
|
+
if (tag !== 34) {
|
|
57
61
|
break;
|
|
58
62
|
}
|
|
59
63
|
message.receiver = reader.string();
|
|
60
64
|
continue;
|
|
65
|
+
}
|
|
61
66
|
}
|
|
62
|
-
if ((tag & 7)
|
|
67
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
63
68
|
break;
|
|
64
69
|
}
|
|
65
|
-
reader.
|
|
70
|
+
reader.skip(tag & 7);
|
|
66
71
|
}
|
|
67
72
|
return message;
|
|
68
73
|
},
|
|
69
74
|
fromJSON(object) {
|
|
70
75
|
return {
|
|
71
|
-
classId: isSet(object.classId) ? String(object.classId) : "",
|
|
72
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
73
|
-
sender: isSet(object.sender) ? String(object.sender) : "",
|
|
74
|
-
receiver: isSet(object.receiver)
|
|
76
|
+
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
77
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
78
|
+
sender: isSet(object.sender) ? globalThis.String(object.sender) : "",
|
|
79
|
+
receiver: isSet(object.receiver)
|
|
80
|
+
? globalThis.String(object.receiver)
|
|
81
|
+
: "",
|
|
75
82
|
};
|
|
76
83
|
},
|
|
77
84
|
toJSON(message) {
|
|
78
85
|
const obj = {};
|
|
79
|
-
message.classId !==
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
message.
|
|
86
|
+
if (message.classId !== "") {
|
|
87
|
+
obj.classId = message.classId;
|
|
88
|
+
}
|
|
89
|
+
if (message.id !== "") {
|
|
90
|
+
obj.id = message.id;
|
|
91
|
+
}
|
|
92
|
+
if (message.sender !== "") {
|
|
93
|
+
obj.sender = message.sender;
|
|
94
|
+
}
|
|
95
|
+
if (message.receiver !== "") {
|
|
96
|
+
obj.receiver = message.receiver;
|
|
97
|
+
}
|
|
83
98
|
return obj;
|
|
84
99
|
},
|
|
85
100
|
create(base) {
|
|
86
|
-
return exports.MsgSend.fromPartial(base
|
|
101
|
+
return exports.MsgSend.fromPartial(base ?? {});
|
|
87
102
|
},
|
|
88
103
|
fromPartial(object) {
|
|
89
|
-
var _a, _b, _c, _d;
|
|
90
104
|
const message = createBaseMsgSend();
|
|
91
|
-
message.classId =
|
|
92
|
-
message.id =
|
|
93
|
-
message.sender =
|
|
94
|
-
message.receiver =
|
|
105
|
+
message.classId = object.classId ?? "";
|
|
106
|
+
message.id = object.id ?? "";
|
|
107
|
+
message.sender = object.sender ?? "";
|
|
108
|
+
message.receiver = object.receiver ?? "";
|
|
95
109
|
return message;
|
|
96
110
|
},
|
|
97
111
|
};
|
|
@@ -99,21 +113,21 @@ function createBaseMsgSendResponse() {
|
|
|
99
113
|
return {};
|
|
100
114
|
}
|
|
101
115
|
exports.MsgSendResponse = {
|
|
102
|
-
encode(_, writer =
|
|
116
|
+
encode(_, writer = new binary_1.BinaryWriter()) {
|
|
103
117
|
return writer;
|
|
104
118
|
},
|
|
105
119
|
decode(input, length) {
|
|
106
|
-
const reader = input instanceof
|
|
120
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
107
121
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
108
122
|
const message = createBaseMsgSendResponse();
|
|
109
123
|
while (reader.pos < end) {
|
|
110
124
|
const tag = reader.uint32();
|
|
111
125
|
switch (tag >>> 3) {
|
|
112
126
|
}
|
|
113
|
-
if ((tag & 7)
|
|
127
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
114
128
|
break;
|
|
115
129
|
}
|
|
116
|
-
reader.
|
|
130
|
+
reader.skip(tag & 7);
|
|
117
131
|
}
|
|
118
132
|
return message;
|
|
119
133
|
},
|
|
@@ -125,30 +139,27 @@ exports.MsgSendResponse = {
|
|
|
125
139
|
return obj;
|
|
126
140
|
},
|
|
127
141
|
create(base) {
|
|
128
|
-
return exports.MsgSendResponse.fromPartial(base
|
|
142
|
+
return exports.MsgSendResponse.fromPartial(base ?? {});
|
|
129
143
|
},
|
|
130
144
|
fromPartial(_) {
|
|
131
145
|
const message = createBaseMsgSendResponse();
|
|
132
146
|
return message;
|
|
133
147
|
},
|
|
134
148
|
};
|
|
149
|
+
exports.MsgServiceName = "cosmos.nft.v1beta1.Msg";
|
|
135
150
|
class MsgClientImpl {
|
|
136
151
|
constructor(rpc, opts) {
|
|
137
|
-
this.service =
|
|
152
|
+
this.service = opts?.service || exports.MsgServiceName;
|
|
138
153
|
this.rpc = rpc;
|
|
139
154
|
this.Send = this.Send.bind(this);
|
|
140
155
|
}
|
|
141
156
|
Send(request) {
|
|
142
157
|
const data = exports.MsgSend.encode(request).finish();
|
|
143
158
|
const promise = this.rpc.request(this.service, "Send", data);
|
|
144
|
-
return promise.then((data) => exports.MsgSendResponse.decode(
|
|
159
|
+
return promise.then((data) => exports.MsgSendResponse.decode(new binary_1.BinaryReader(data)));
|
|
145
160
|
}
|
|
146
161
|
}
|
|
147
162
|
exports.MsgClientImpl = MsgClientImpl;
|
|
148
|
-
if (minimal_1.default.util.Long !== long_1.default) {
|
|
149
|
-
minimal_1.default.util.Long = long_1.default;
|
|
150
|
-
minimal_1.default.configure();
|
|
151
|
-
}
|
|
152
163
|
function isSet(value) {
|
|
153
164
|
return value !== null && value !== undefined;
|
|
154
165
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.setupBankExtension =
|
|
3
|
+
exports.setupBankExtension = void 0;
|
|
4
4
|
const query_1 = require("cosmjs-types/cosmos/bank/v1beta1/query");
|
|
5
5
|
const query_2 = require("cosmjs-types/cosmos/bank/v1beta1/query");
|
|
6
6
|
const stargate_1 = require("@cosmjs/stargate");
|
|
@@ -39,3 +39,4 @@ function setupBankExtension(base) {
|
|
|
39
39
|
},
|
|
40
40
|
};
|
|
41
41
|
}
|
|
42
|
+
exports.setupBankExtension = setupBankExtension;
|
|
@@ -19,15 +19,15 @@ export declare function setupDistributionExtension(base: QueryClient): {
|
|
|
19
19
|
withdrawAddress: string;
|
|
20
20
|
}>;
|
|
21
21
|
params: () => Promise<{
|
|
22
|
-
params
|
|
22
|
+
params: import("cosmjs-types/cosmos/distribution/v1beta1/distribution").Params;
|
|
23
23
|
}>;
|
|
24
24
|
validatorCommission: (validator: string) => Promise<{
|
|
25
|
-
commission
|
|
25
|
+
commission: import("cosmjs-types/cosmos/distribution/v1beta1/distribution").ValidatorAccumulatedCommission;
|
|
26
26
|
}>;
|
|
27
27
|
validatorOutstandingRewards: (validator: string) => Promise<{
|
|
28
|
-
rewards
|
|
28
|
+
rewards: import("cosmjs-types/cosmos/distribution/v1beta1/distribution").ValidatorOutstandingRewards;
|
|
29
29
|
}>;
|
|
30
|
-
validatorSlashes: (validator: string, starting_height:
|
|
30
|
+
validatorSlashes: (validator: string, starting_height: bigint, ending_height: bigint, pagination?: PageRequest) => Promise<{
|
|
31
31
|
slashes: import("cosmjs-types/cosmos/distribution/v1beta1/distribution").ValidatorSlashEvent[];
|
|
32
32
|
pagination?: import("cosmjs-types/cosmos/base/query/v1beta1/pagination").PageResponse;
|
|
33
33
|
}>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.setupDistributionExtension =
|
|
3
|
+
exports.setupDistributionExtension = void 0;
|
|
4
4
|
const query_1 = require("cosmjs-types/cosmos/distribution/v1beta1/query");
|
|
5
5
|
const stargate_1 = require("@cosmjs/stargate");
|
|
6
6
|
function setupDistributionExtension(base) {
|
|
@@ -10,48 +10,48 @@ function setupDistributionExtension(base) {
|
|
|
10
10
|
distribution: {
|
|
11
11
|
communityPool: async () => {
|
|
12
12
|
const response = await queryService.CommunityPool({});
|
|
13
|
-
return
|
|
13
|
+
return { ...response };
|
|
14
14
|
},
|
|
15
15
|
delegationRewards: async (delegator, validator) => {
|
|
16
16
|
const response = await queryService.DelegationRewards({
|
|
17
17
|
delegatorAddress: delegator,
|
|
18
18
|
validatorAddress: validator,
|
|
19
19
|
});
|
|
20
|
-
return
|
|
20
|
+
return { ...response };
|
|
21
21
|
},
|
|
22
22
|
delegationTotalRewards: async (delegator) => {
|
|
23
23
|
const response = await queryService.DelegationTotalRewards({
|
|
24
24
|
delegatorAddress: delegator,
|
|
25
25
|
});
|
|
26
|
-
return
|
|
26
|
+
return { ...response };
|
|
27
27
|
},
|
|
28
28
|
delegatorValidators: async (delegator) => {
|
|
29
29
|
const response = await queryService.DelegatorValidators({
|
|
30
30
|
delegatorAddress: delegator,
|
|
31
31
|
});
|
|
32
|
-
return
|
|
32
|
+
return { ...response };
|
|
33
33
|
},
|
|
34
34
|
delegatorWithdrawAddress: async (delegator) => {
|
|
35
35
|
const response = await queryService.DelegatorWithdrawAddress({
|
|
36
36
|
delegatorAddress: delegator,
|
|
37
37
|
});
|
|
38
|
-
return
|
|
38
|
+
return { ...response };
|
|
39
39
|
},
|
|
40
40
|
params: async () => {
|
|
41
41
|
const response = await queryService.Params({});
|
|
42
|
-
return
|
|
42
|
+
return { ...response };
|
|
43
43
|
},
|
|
44
44
|
validatorCommission: async (validator) => {
|
|
45
45
|
const response = await queryService.ValidatorCommission({
|
|
46
46
|
validatorAddress: validator,
|
|
47
47
|
});
|
|
48
|
-
return
|
|
48
|
+
return { ...response };
|
|
49
49
|
},
|
|
50
50
|
validatorOutstandingRewards: async (validator) => {
|
|
51
51
|
const response = await queryService.ValidatorOutstandingRewards({
|
|
52
52
|
validatorAddress: validator,
|
|
53
53
|
});
|
|
54
|
-
return
|
|
54
|
+
return { ...response };
|
|
55
55
|
},
|
|
56
56
|
validatorSlashes: async (validator, starting_height, ending_height, pagination) => {
|
|
57
57
|
const response = await queryService.ValidatorSlashes({
|
|
@@ -60,8 +60,9 @@ function setupDistributionExtension(base) {
|
|
|
60
60
|
endingHeight: ending_height,
|
|
61
61
|
pagination,
|
|
62
62
|
});
|
|
63
|
-
return
|
|
63
|
+
return { ...response };
|
|
64
64
|
},
|
|
65
65
|
},
|
|
66
66
|
};
|
|
67
67
|
}
|
|
68
|
+
exports.setupDistributionExtension = setupDistributionExtension;
|
|
@@ -4,33 +4,33 @@ import { QueryClient } from "@cosmjs/stargate";
|
|
|
4
4
|
export declare function setupGovExtension(base: QueryClient): {
|
|
5
5
|
gov: {
|
|
6
6
|
params: (parametersType: "deposit" | "tallying" | "voting") => Promise<{
|
|
7
|
-
votingParams
|
|
8
|
-
depositParams
|
|
9
|
-
tallyParams
|
|
7
|
+
votingParams: import("cosmjs-types/cosmos/gov/v1beta1/gov").VotingParams;
|
|
8
|
+
depositParams: import("cosmjs-types/cosmos/gov/v1beta1/gov").DepositParams;
|
|
9
|
+
tallyParams: import("cosmjs-types/cosmos/gov/v1beta1/gov").TallyParams;
|
|
10
10
|
}>;
|
|
11
11
|
proposals: (proposalStatus: ProposalStatus, depositor: string, voter: string, pagination?: PageRequest) => Promise<{
|
|
12
12
|
proposals: import("cosmjs-types/cosmos/gov/v1beta1/gov").Proposal[];
|
|
13
13
|
pagination?: import("cosmjs-types/cosmos/base/query/v1beta1/pagination").PageResponse;
|
|
14
14
|
}>;
|
|
15
|
-
proposal: (proposal_id:
|
|
16
|
-
proposal
|
|
15
|
+
proposal: (proposal_id: bigint) => Promise<{
|
|
16
|
+
proposal: import("cosmjs-types/cosmos/gov/v1beta1/gov").Proposal;
|
|
17
17
|
}>;
|
|
18
|
-
deposits: (proposal_id:
|
|
18
|
+
deposits: (proposal_id: bigint, pagination?: PageRequest) => Promise<{
|
|
19
19
|
deposits: import("cosmjs-types/cosmos/gov/v1beta1/gov").Deposit[];
|
|
20
20
|
pagination?: import("cosmjs-types/cosmos/base/query/v1beta1/pagination").PageResponse;
|
|
21
21
|
}>;
|
|
22
|
-
deposit: (proposal_id:
|
|
23
|
-
deposit
|
|
22
|
+
deposit: (proposal_id: bigint, depositor: string) => Promise<{
|
|
23
|
+
deposit: import("cosmjs-types/cosmos/gov/v1beta1/gov").Deposit;
|
|
24
24
|
}>;
|
|
25
|
-
tally: (proposal_id:
|
|
26
|
-
tally
|
|
25
|
+
tally: (proposal_id: bigint) => Promise<{
|
|
26
|
+
tally: import("cosmjs-types/cosmos/gov/v1beta1/gov").TallyResult;
|
|
27
27
|
}>;
|
|
28
|
-
votes: (proposal_id:
|
|
28
|
+
votes: (proposal_id: bigint, pagination?: PageRequest) => Promise<{
|
|
29
29
|
votes: import("cosmjs-types/cosmos/gov/v1beta1/gov").Vote[];
|
|
30
30
|
pagination?: import("cosmjs-types/cosmos/base/query/v1beta1/pagination").PageResponse;
|
|
31
31
|
}>;
|
|
32
|
-
vote: (proposal_id:
|
|
33
|
-
vote
|
|
32
|
+
vote: (proposal_id: bigint, voter: string) => Promise<{
|
|
33
|
+
vote: import("cosmjs-types/cosmos/gov/v1beta1/gov").Vote;
|
|
34
34
|
}>;
|
|
35
35
|
};
|
|
36
36
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.setupGovExtension =
|
|
3
|
+
exports.setupGovExtension = void 0;
|
|
4
4
|
const query_1 = require("cosmjs-types/cosmos/gov/v1beta1/query");
|
|
5
5
|
const stargate_1 = require("@cosmjs/stargate");
|
|
6
6
|
function setupGovExtension(base) {
|
|
@@ -12,7 +12,9 @@ function setupGovExtension(base) {
|
|
|
12
12
|
const response = await queryService.Params({
|
|
13
13
|
paramsType: parametersType,
|
|
14
14
|
});
|
|
15
|
-
return
|
|
15
|
+
return {
|
|
16
|
+
...response,
|
|
17
|
+
};
|
|
16
18
|
},
|
|
17
19
|
proposals: async (proposalStatus, depositor, voter, pagination) => {
|
|
18
20
|
const response = await queryService.Proposals({
|
|
@@ -21,48 +23,53 @@ function setupGovExtension(base) {
|
|
|
21
23
|
voter,
|
|
22
24
|
pagination,
|
|
23
25
|
});
|
|
24
|
-
return
|
|
26
|
+
return {
|
|
27
|
+
...response,
|
|
28
|
+
};
|
|
25
29
|
},
|
|
26
30
|
proposal: async (proposal_id) => {
|
|
27
31
|
const response = await queryService.Proposal({
|
|
28
32
|
proposalId: proposal_id,
|
|
29
33
|
});
|
|
30
|
-
return
|
|
34
|
+
return { ...response };
|
|
31
35
|
},
|
|
32
36
|
deposits: async (proposal_id, pagination) => {
|
|
33
37
|
const response = await queryService.Deposits({
|
|
34
38
|
proposalId: proposal_id,
|
|
35
39
|
pagination,
|
|
36
40
|
});
|
|
37
|
-
return
|
|
41
|
+
return {
|
|
42
|
+
...response,
|
|
43
|
+
};
|
|
38
44
|
},
|
|
39
45
|
deposit: async (proposal_id, depositor) => {
|
|
40
46
|
const response = await queryService.Deposit({
|
|
41
47
|
proposalId: proposal_id,
|
|
42
48
|
depositor,
|
|
43
49
|
});
|
|
44
|
-
return
|
|
50
|
+
return { ...response };
|
|
45
51
|
},
|
|
46
52
|
tally: async (proposal_id) => {
|
|
47
53
|
const response = await queryService.TallyResult({
|
|
48
54
|
proposalId: proposal_id,
|
|
49
55
|
});
|
|
50
|
-
return
|
|
56
|
+
return { ...response };
|
|
51
57
|
},
|
|
52
58
|
votes: async (proposal_id, pagination) => {
|
|
53
59
|
const response = await queryService.Votes({
|
|
54
60
|
proposalId: proposal_id,
|
|
55
61
|
pagination,
|
|
56
62
|
});
|
|
57
|
-
return
|
|
63
|
+
return { ...response };
|
|
58
64
|
},
|
|
59
65
|
vote: async (proposal_id, voter) => {
|
|
60
66
|
const response = await queryService.Vote({
|
|
61
67
|
proposalId: proposal_id,
|
|
62
68
|
voter,
|
|
63
69
|
});
|
|
64
|
-
return
|
|
70
|
+
return { ...response };
|
|
65
71
|
},
|
|
66
72
|
},
|
|
67
73
|
};
|
|
68
74
|
}
|
|
75
|
+
exports.setupGovExtension = setupGovExtension;
|
|
@@ -5,7 +5,7 @@ import { MsgCreatePeriodicVestingAccount, MsgCreatePermanentLockedAccount, MsgCr
|
|
|
5
5
|
import { MsgBeginRedelegate, MsgCancelUnbondingDelegation, MsgCreateValidator, MsgDelegate, MsgEditValidator, MsgUndelegate, MsgUpdateParams as SMsgUpdateParams } from "cosmjs-types/cosmos/staking/v1beta1/tx";
|
|
6
6
|
import { MsgExec, MsgGrant, MsgRevoke } from "cosmjs-types/cosmos/authz/v1beta1/tx";
|
|
7
7
|
import { MsgMultiSend, MsgSend, MsgSetSendEnabled, MsgUpdateParams } from "cosmjs-types/cosmos/bank/v1beta1/tx";
|
|
8
|
-
import { StakingMsgs, DistributionMsgs, BankMsgs, FeegrantMsgs,
|
|
8
|
+
import { StakingMsgs, DistributionMsgs, BankMsgs, FeegrantMsgs, GovMsgs } from "../types/msgs";
|
|
9
9
|
export * from "cosmjs-types/cosmos/tx/v1beta1/tx";
|
|
10
10
|
/**
|
|
11
11
|
* Module to generate the Messages related to the Authz module of the Blockchain
|
|
@@ -61,7 +61,7 @@ export declare namespace Staking {
|
|
|
61
61
|
* @param object Represents the properties available for this MsgCancelUnbondingDelegation message.
|
|
62
62
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
63
63
|
*/
|
|
64
|
-
const CancelUnbondingDelegation: (object:
|
|
64
|
+
const CancelUnbondingDelegation: (object: MsgCancelUnbondingDelegation) => {
|
|
65
65
|
typeUrl: string;
|
|
66
66
|
value: MsgCancelUnbondingDelegation;
|
|
67
67
|
};
|
|
@@ -125,7 +125,7 @@ export declare namespace Governance {
|
|
|
125
125
|
* @param object Represents the properties available for this MsgDeposit message.
|
|
126
126
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
127
127
|
*/
|
|
128
|
-
const Deposit: (object:
|
|
128
|
+
const Deposit: (object: MsgDeposit) => {
|
|
129
129
|
typeUrl: string;
|
|
130
130
|
value: MsgDeposit;
|
|
131
131
|
};
|
|
@@ -145,7 +145,7 @@ export declare namespace Governance {
|
|
|
145
145
|
* @param object Represents the properties available for this MsgVote message.
|
|
146
146
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
147
147
|
*/
|
|
148
|
-
const Vote: (object:
|
|
148
|
+
const Vote: (object: MsgVote) => {
|
|
149
149
|
typeUrl: string;
|
|
150
150
|
value: MsgVote;
|
|
151
151
|
};
|
|
@@ -155,7 +155,7 @@ export declare namespace Governance {
|
|
|
155
155
|
* @param object Represents the properties available for this MsgVoteWeighted message.
|
|
156
156
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
157
157
|
*/
|
|
158
|
-
const VoteWeighted: (object:
|
|
158
|
+
const VoteWeighted: (object: MsgVoteWeighted) => {
|
|
159
159
|
typeUrl: string;
|
|
160
160
|
value: MsgVoteWeighted;
|
|
161
161
|
};
|
|
@@ -301,15 +301,15 @@ export declare namespace Vesting {
|
|
|
301
301
|
* @param object Represents the properties available for this MsgCreateVestingAccount message.
|
|
302
302
|
* @returns A Msg object with the typeUrl and value object for the proper message
|
|
303
303
|
*/
|
|
304
|
-
const CreateVestingAccount: (object:
|
|
304
|
+
const CreateVestingAccount: (object: MsgCreateVestingAccount) => {
|
|
305
305
|
typeUrl: string;
|
|
306
306
|
value: MsgCreateVestingAccount;
|
|
307
307
|
};
|
|
308
|
-
const CreatePeriodicVestingAccount: (object:
|
|
308
|
+
const CreatePeriodicVestingAccount: (object: MsgCreatePeriodicVestingAccount) => {
|
|
309
309
|
typeUrl: string;
|
|
310
310
|
value: MsgCreatePeriodicVestingAccount;
|
|
311
311
|
};
|
|
312
|
-
const CreatePermanentLockedAccount: (object:
|
|
312
|
+
const CreatePermanentLockedAccount: (object: MsgCreatePermanentLockedAccount) => {
|
|
313
313
|
typeUrl: string;
|
|
314
314
|
value: MsgCreatePermanentLockedAccount;
|
|
315
315
|
};
|