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,12 +1,16 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.7.0
|
|
4
|
+
// protoc v3.21.12
|
|
5
|
+
// source: cosmos-sdk/proto/cosmos/nft/v1beta1/event.proto
|
|
1
6
|
/* eslint-disable */
|
|
2
|
-
import
|
|
3
|
-
import _m0 from "protobufjs/minimal";
|
|
7
|
+
import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
|
|
4
8
|
export const protobufPackage = "cosmos.nft.v1beta1";
|
|
5
9
|
function createBaseEventSend() {
|
|
6
10
|
return { classId: "", id: "", sender: "", receiver: "" };
|
|
7
11
|
}
|
|
8
12
|
export const EventSend = {
|
|
9
|
-
encode(message, writer =
|
|
13
|
+
encode(message, writer = new BinaryWriter()) {
|
|
10
14
|
if (message.classId !== "") {
|
|
11
15
|
writer.uint32(10).string(message.classId);
|
|
12
16
|
}
|
|
@@ -22,58 +26,72 @@ export const EventSend = {
|
|
|
22
26
|
return writer;
|
|
23
27
|
},
|
|
24
28
|
decode(input, length) {
|
|
25
|
-
const reader = input instanceof
|
|
29
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
26
30
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
27
31
|
const message = createBaseEventSend();
|
|
28
32
|
while (reader.pos < end) {
|
|
29
33
|
const tag = reader.uint32();
|
|
30
34
|
switch (tag >>> 3) {
|
|
31
|
-
case 1:
|
|
32
|
-
if (tag
|
|
35
|
+
case 1: {
|
|
36
|
+
if (tag !== 10) {
|
|
33
37
|
break;
|
|
34
38
|
}
|
|
35
39
|
message.classId = reader.string();
|
|
36
40
|
continue;
|
|
37
|
-
|
|
38
|
-
|
|
41
|
+
}
|
|
42
|
+
case 2: {
|
|
43
|
+
if (tag !== 18) {
|
|
39
44
|
break;
|
|
40
45
|
}
|
|
41
46
|
message.id = reader.string();
|
|
42
47
|
continue;
|
|
43
|
-
|
|
44
|
-
|
|
48
|
+
}
|
|
49
|
+
case 3: {
|
|
50
|
+
if (tag !== 26) {
|
|
45
51
|
break;
|
|
46
52
|
}
|
|
47
53
|
message.sender = reader.string();
|
|
48
54
|
continue;
|
|
49
|
-
|
|
50
|
-
|
|
55
|
+
}
|
|
56
|
+
case 4: {
|
|
57
|
+
if (tag !== 34) {
|
|
51
58
|
break;
|
|
52
59
|
}
|
|
53
60
|
message.receiver = reader.string();
|
|
54
61
|
continue;
|
|
62
|
+
}
|
|
55
63
|
}
|
|
56
|
-
if ((tag & 7)
|
|
64
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
57
65
|
break;
|
|
58
66
|
}
|
|
59
|
-
reader.
|
|
67
|
+
reader.skip(tag & 7);
|
|
60
68
|
}
|
|
61
69
|
return message;
|
|
62
70
|
},
|
|
63
71
|
fromJSON(object) {
|
|
64
72
|
return {
|
|
65
|
-
classId: isSet(object.classId) ? String(object.classId) : "",
|
|
66
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
67
|
-
sender: isSet(object.sender) ? String(object.sender) : "",
|
|
68
|
-
receiver: isSet(object.receiver)
|
|
73
|
+
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
74
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
75
|
+
sender: isSet(object.sender) ? globalThis.String(object.sender) : "",
|
|
76
|
+
receiver: isSet(object.receiver)
|
|
77
|
+
? globalThis.String(object.receiver)
|
|
78
|
+
: "",
|
|
69
79
|
};
|
|
70
80
|
},
|
|
71
81
|
toJSON(message) {
|
|
72
82
|
const obj = {};
|
|
73
|
-
message.classId !==
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
message.
|
|
83
|
+
if (message.classId !== "") {
|
|
84
|
+
obj.classId = message.classId;
|
|
85
|
+
}
|
|
86
|
+
if (message.id !== "") {
|
|
87
|
+
obj.id = message.id;
|
|
88
|
+
}
|
|
89
|
+
if (message.sender !== "") {
|
|
90
|
+
obj.sender = message.sender;
|
|
91
|
+
}
|
|
92
|
+
if (message.receiver !== "") {
|
|
93
|
+
obj.receiver = message.receiver;
|
|
94
|
+
}
|
|
77
95
|
return obj;
|
|
78
96
|
},
|
|
79
97
|
create(base) {
|
|
@@ -92,7 +110,7 @@ function createBaseEventMint() {
|
|
|
92
110
|
return { classId: "", id: "", owner: "" };
|
|
93
111
|
}
|
|
94
112
|
export const EventMint = {
|
|
95
|
-
encode(message, writer =
|
|
113
|
+
encode(message, writer = new BinaryWriter()) {
|
|
96
114
|
if (message.classId !== "") {
|
|
97
115
|
writer.uint32(10).string(message.classId);
|
|
98
116
|
}
|
|
@@ -105,50 +123,59 @@ export const EventMint = {
|
|
|
105
123
|
return writer;
|
|
106
124
|
},
|
|
107
125
|
decode(input, length) {
|
|
108
|
-
const reader = input instanceof
|
|
126
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
109
127
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
110
128
|
const message = createBaseEventMint();
|
|
111
129
|
while (reader.pos < end) {
|
|
112
130
|
const tag = reader.uint32();
|
|
113
131
|
switch (tag >>> 3) {
|
|
114
|
-
case 1:
|
|
115
|
-
if (tag
|
|
132
|
+
case 1: {
|
|
133
|
+
if (tag !== 10) {
|
|
116
134
|
break;
|
|
117
135
|
}
|
|
118
136
|
message.classId = reader.string();
|
|
119
137
|
continue;
|
|
120
|
-
|
|
121
|
-
|
|
138
|
+
}
|
|
139
|
+
case 2: {
|
|
140
|
+
if (tag !== 18) {
|
|
122
141
|
break;
|
|
123
142
|
}
|
|
124
143
|
message.id = reader.string();
|
|
125
144
|
continue;
|
|
126
|
-
|
|
127
|
-
|
|
145
|
+
}
|
|
146
|
+
case 3: {
|
|
147
|
+
if (tag !== 26) {
|
|
128
148
|
break;
|
|
129
149
|
}
|
|
130
150
|
message.owner = reader.string();
|
|
131
151
|
continue;
|
|
152
|
+
}
|
|
132
153
|
}
|
|
133
|
-
if ((tag & 7)
|
|
154
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
134
155
|
break;
|
|
135
156
|
}
|
|
136
|
-
reader.
|
|
157
|
+
reader.skip(tag & 7);
|
|
137
158
|
}
|
|
138
159
|
return message;
|
|
139
160
|
},
|
|
140
161
|
fromJSON(object) {
|
|
141
162
|
return {
|
|
142
|
-
classId: isSet(object.classId) ? String(object.classId) : "",
|
|
143
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
144
|
-
owner: isSet(object.owner) ? String(object.owner) : "",
|
|
163
|
+
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
164
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
165
|
+
owner: isSet(object.owner) ? globalThis.String(object.owner) : "",
|
|
145
166
|
};
|
|
146
167
|
},
|
|
147
168
|
toJSON(message) {
|
|
148
169
|
const obj = {};
|
|
149
|
-
message.classId !==
|
|
150
|
-
|
|
151
|
-
|
|
170
|
+
if (message.classId !== "") {
|
|
171
|
+
obj.classId = message.classId;
|
|
172
|
+
}
|
|
173
|
+
if (message.id !== "") {
|
|
174
|
+
obj.id = message.id;
|
|
175
|
+
}
|
|
176
|
+
if (message.owner !== "") {
|
|
177
|
+
obj.owner = message.owner;
|
|
178
|
+
}
|
|
152
179
|
return obj;
|
|
153
180
|
},
|
|
154
181
|
create(base) {
|
|
@@ -166,7 +193,7 @@ function createBaseEventBurn() {
|
|
|
166
193
|
return { classId: "", id: "", owner: "" };
|
|
167
194
|
}
|
|
168
195
|
export const EventBurn = {
|
|
169
|
-
encode(message, writer =
|
|
196
|
+
encode(message, writer = new BinaryWriter()) {
|
|
170
197
|
if (message.classId !== "") {
|
|
171
198
|
writer.uint32(10).string(message.classId);
|
|
172
199
|
}
|
|
@@ -179,50 +206,59 @@ export const EventBurn = {
|
|
|
179
206
|
return writer;
|
|
180
207
|
},
|
|
181
208
|
decode(input, length) {
|
|
182
|
-
const reader = input instanceof
|
|
209
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
183
210
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
184
211
|
const message = createBaseEventBurn();
|
|
185
212
|
while (reader.pos < end) {
|
|
186
213
|
const tag = reader.uint32();
|
|
187
214
|
switch (tag >>> 3) {
|
|
188
|
-
case 1:
|
|
189
|
-
if (tag
|
|
215
|
+
case 1: {
|
|
216
|
+
if (tag !== 10) {
|
|
190
217
|
break;
|
|
191
218
|
}
|
|
192
219
|
message.classId = reader.string();
|
|
193
220
|
continue;
|
|
194
|
-
|
|
195
|
-
|
|
221
|
+
}
|
|
222
|
+
case 2: {
|
|
223
|
+
if (tag !== 18) {
|
|
196
224
|
break;
|
|
197
225
|
}
|
|
198
226
|
message.id = reader.string();
|
|
199
227
|
continue;
|
|
200
|
-
|
|
201
|
-
|
|
228
|
+
}
|
|
229
|
+
case 3: {
|
|
230
|
+
if (tag !== 26) {
|
|
202
231
|
break;
|
|
203
232
|
}
|
|
204
233
|
message.owner = reader.string();
|
|
205
234
|
continue;
|
|
235
|
+
}
|
|
206
236
|
}
|
|
207
|
-
if ((tag & 7)
|
|
237
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
208
238
|
break;
|
|
209
239
|
}
|
|
210
|
-
reader.
|
|
240
|
+
reader.skip(tag & 7);
|
|
211
241
|
}
|
|
212
242
|
return message;
|
|
213
243
|
},
|
|
214
244
|
fromJSON(object) {
|
|
215
245
|
return {
|
|
216
|
-
classId: isSet(object.classId) ? String(object.classId) : "",
|
|
217
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
218
|
-
owner: isSet(object.owner) ? String(object.owner) : "",
|
|
246
|
+
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
247
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
248
|
+
owner: isSet(object.owner) ? globalThis.String(object.owner) : "",
|
|
219
249
|
};
|
|
220
250
|
},
|
|
221
251
|
toJSON(message) {
|
|
222
252
|
const obj = {};
|
|
223
|
-
message.classId !==
|
|
224
|
-
|
|
225
|
-
|
|
253
|
+
if (message.classId !== "") {
|
|
254
|
+
obj.classId = message.classId;
|
|
255
|
+
}
|
|
256
|
+
if (message.id !== "") {
|
|
257
|
+
obj.id = message.id;
|
|
258
|
+
}
|
|
259
|
+
if (message.owner !== "") {
|
|
260
|
+
obj.owner = message.owner;
|
|
261
|
+
}
|
|
226
262
|
return obj;
|
|
227
263
|
},
|
|
228
264
|
create(base) {
|
|
@@ -236,10 +272,6 @@ export const EventBurn = {
|
|
|
236
272
|
return message;
|
|
237
273
|
},
|
|
238
274
|
};
|
|
239
|
-
if (_m0.util.Long !== Long) {
|
|
240
|
-
_m0.util.Long = Long;
|
|
241
|
-
_m0.configure();
|
|
242
|
-
}
|
|
243
275
|
function isSet(value) {
|
|
244
276
|
return value !== null && value !== undefined;
|
|
245
277
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import _m0 from "protobufjs/minimal";
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
|
|
3
2
|
import { Class, NFT } from "./nft";
|
|
4
3
|
export declare const protobufPackage = "cosmos.nft.v1beta1";
|
|
5
4
|
/** GenesisState defines the nft module's genesis state. */
|
|
6
5
|
export interface GenesisState {
|
|
7
6
|
/** class defines the class of the nft type. */
|
|
8
7
|
classes: Class[];
|
|
8
|
+
/** entry defines all nft owned by a person. */
|
|
9
9
|
entries: Entry[];
|
|
10
10
|
}
|
|
11
11
|
/** Entry Defines all nft owned by a person */
|
|
@@ -15,24 +15,10 @@ export interface Entry {
|
|
|
15
15
|
/** nfts is a group of nfts of the same owner */
|
|
16
16
|
nfts: NFT[];
|
|
17
17
|
}
|
|
18
|
-
export declare const GenesisState:
|
|
19
|
-
|
|
20
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): GenesisState;
|
|
21
|
-
fromJSON(object: any): GenesisState;
|
|
22
|
-
toJSON(message: GenesisState): unknown;
|
|
23
|
-
create<I extends Exact<DeepPartial<GenesisState>, I>>(base?: I): GenesisState;
|
|
24
|
-
fromPartial<I extends Exact<DeepPartial<GenesisState>, I>>(object: I): GenesisState;
|
|
25
|
-
};
|
|
26
|
-
export declare const Entry: {
|
|
27
|
-
encode(message: Entry, writer?: _m0.Writer): _m0.Writer;
|
|
28
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): Entry;
|
|
29
|
-
fromJSON(object: any): Entry;
|
|
30
|
-
toJSON(message: Entry): unknown;
|
|
31
|
-
create<I extends Exact<DeepPartial<Entry>, I>>(base?: I): Entry;
|
|
32
|
-
fromPartial<I extends Exact<DeepPartial<Entry>, I>>(object: I): Entry;
|
|
33
|
-
};
|
|
18
|
+
export declare const GenesisState: MessageFns<GenesisState>;
|
|
19
|
+
export declare const Entry: MessageFns<Entry>;
|
|
34
20
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
35
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends
|
|
21
|
+
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 {} ? {
|
|
36
22
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
37
23
|
} : Partial<T>;
|
|
38
24
|
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
@@ -41,4 +27,12 @@ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
|
41
27
|
} & {
|
|
42
28
|
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
43
29
|
};
|
|
30
|
+
export interface MessageFns<T> {
|
|
31
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
32
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
33
|
+
fromJSON(object: any): T;
|
|
34
|
+
toJSON(message: T): unknown;
|
|
35
|
+
create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
|
|
36
|
+
fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
|
|
37
|
+
}
|
|
44
38
|
export {};
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
2
|
+
// versions:
|
|
3
|
+
// protoc-gen-ts_proto v2.7.0
|
|
4
|
+
// protoc v3.21.12
|
|
5
|
+
// source: cosmos-sdk/proto/cosmos/nft/v1beta1/genesis.proto
|
|
1
6
|
/* eslint-disable */
|
|
2
|
-
import
|
|
3
|
-
import _m0 from "protobufjs/minimal";
|
|
7
|
+
import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
|
|
4
8
|
import { Class, NFT } from "./nft";
|
|
5
9
|
export const protobufPackage = "cosmos.nft.v1beta1";
|
|
6
10
|
function createBaseGenesisState() {
|
|
7
11
|
return { classes: [], entries: [] };
|
|
8
12
|
}
|
|
9
13
|
export const GenesisState = {
|
|
10
|
-
encode(message, writer =
|
|
14
|
+
encode(message, writer = new BinaryWriter()) {
|
|
11
15
|
for (const v of message.classes) {
|
|
12
16
|
Class.encode(v, writer.uint32(10).fork()).ldelim();
|
|
13
17
|
}
|
|
@@ -17,51 +21,51 @@ export const GenesisState = {
|
|
|
17
21
|
return writer;
|
|
18
22
|
},
|
|
19
23
|
decode(input, length) {
|
|
20
|
-
const reader = input instanceof
|
|
24
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
21
25
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
22
26
|
const message = createBaseGenesisState();
|
|
23
27
|
while (reader.pos < end) {
|
|
24
28
|
const tag = reader.uint32();
|
|
25
29
|
switch (tag >>> 3) {
|
|
26
|
-
case 1:
|
|
27
|
-
if (tag
|
|
30
|
+
case 1: {
|
|
31
|
+
if (tag !== 10) {
|
|
28
32
|
break;
|
|
29
33
|
}
|
|
30
34
|
message.classes.push(Class.decode(reader, reader.uint32()));
|
|
31
35
|
continue;
|
|
32
|
-
|
|
33
|
-
|
|
36
|
+
}
|
|
37
|
+
case 2: {
|
|
38
|
+
if (tag !== 18) {
|
|
34
39
|
break;
|
|
35
40
|
}
|
|
36
41
|
message.entries.push(Entry.decode(reader, reader.uint32()));
|
|
37
42
|
continue;
|
|
43
|
+
}
|
|
38
44
|
}
|
|
39
|
-
if ((tag & 7)
|
|
45
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
40
46
|
break;
|
|
41
47
|
}
|
|
42
|
-
reader.
|
|
48
|
+
reader.skip(tag & 7);
|
|
43
49
|
}
|
|
44
50
|
return message;
|
|
45
51
|
},
|
|
46
52
|
fromJSON(object) {
|
|
47
53
|
return {
|
|
48
|
-
classes: Array.isArray(object?.classes)
|
|
49
|
-
|
|
54
|
+
classes: globalThis.Array.isArray(object?.classes)
|
|
55
|
+
? object.classes.map((e) => Class.fromJSON(e))
|
|
56
|
+
: [],
|
|
57
|
+
entries: globalThis.Array.isArray(object?.entries)
|
|
58
|
+
? object.entries.map((e) => Entry.fromJSON(e))
|
|
59
|
+
: [],
|
|
50
60
|
};
|
|
51
61
|
},
|
|
52
62
|
toJSON(message) {
|
|
53
63
|
const obj = {};
|
|
54
|
-
if (message.classes) {
|
|
55
|
-
obj.classes = message.classes.map((e) =>
|
|
64
|
+
if (message.classes?.length) {
|
|
65
|
+
obj.classes = message.classes.map((e) => Class.toJSON(e));
|
|
56
66
|
}
|
|
57
|
-
|
|
58
|
-
obj.
|
|
59
|
-
}
|
|
60
|
-
if (message.entries) {
|
|
61
|
-
obj.entries = message.entries.map((e) => e ? Entry.toJSON(e) : undefined);
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
obj.entries = [];
|
|
67
|
+
if (message.entries?.length) {
|
|
68
|
+
obj.entries = message.entries.map((e) => Entry.toJSON(e));
|
|
65
69
|
}
|
|
66
70
|
return obj;
|
|
67
71
|
},
|
|
@@ -79,7 +83,7 @@ function createBaseEntry() {
|
|
|
79
83
|
return { owner: "", nfts: [] };
|
|
80
84
|
}
|
|
81
85
|
export const Entry = {
|
|
82
|
-
encode(message, writer =
|
|
86
|
+
encode(message, writer = new BinaryWriter()) {
|
|
83
87
|
if (message.owner !== "") {
|
|
84
88
|
writer.uint32(10).string(message.owner);
|
|
85
89
|
}
|
|
@@ -89,46 +93,49 @@ export const Entry = {
|
|
|
89
93
|
return writer;
|
|
90
94
|
},
|
|
91
95
|
decode(input, length) {
|
|
92
|
-
const reader = input instanceof
|
|
96
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
93
97
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
94
98
|
const message = createBaseEntry();
|
|
95
99
|
while (reader.pos < end) {
|
|
96
100
|
const tag = reader.uint32();
|
|
97
101
|
switch (tag >>> 3) {
|
|
98
|
-
case 1:
|
|
99
|
-
if (tag
|
|
102
|
+
case 1: {
|
|
103
|
+
if (tag !== 10) {
|
|
100
104
|
break;
|
|
101
105
|
}
|
|
102
106
|
message.owner = reader.string();
|
|
103
107
|
continue;
|
|
104
|
-
|
|
105
|
-
|
|
108
|
+
}
|
|
109
|
+
case 2: {
|
|
110
|
+
if (tag !== 18) {
|
|
106
111
|
break;
|
|
107
112
|
}
|
|
108
113
|
message.nfts.push(NFT.decode(reader, reader.uint32()));
|
|
109
114
|
continue;
|
|
115
|
+
}
|
|
110
116
|
}
|
|
111
|
-
if ((tag & 7)
|
|
117
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
112
118
|
break;
|
|
113
119
|
}
|
|
114
|
-
reader.
|
|
120
|
+
reader.skip(tag & 7);
|
|
115
121
|
}
|
|
116
122
|
return message;
|
|
117
123
|
},
|
|
118
124
|
fromJSON(object) {
|
|
119
125
|
return {
|
|
120
|
-
owner: isSet(object.owner) ? String(object.owner) : "",
|
|
121
|
-
nfts: Array.isArray(object?.nfts)
|
|
126
|
+
owner: isSet(object.owner) ? globalThis.String(object.owner) : "",
|
|
127
|
+
nfts: globalThis.Array.isArray(object?.nfts)
|
|
128
|
+
? object.nfts.map((e) => NFT.fromJSON(e))
|
|
129
|
+
: [],
|
|
122
130
|
};
|
|
123
131
|
},
|
|
124
132
|
toJSON(message) {
|
|
125
133
|
const obj = {};
|
|
126
|
-
message.owner !==
|
|
127
|
-
|
|
128
|
-
obj.nfts = message.nfts.map((e) => e ? NFT.toJSON(e) : undefined);
|
|
134
|
+
if (message.owner !== "") {
|
|
135
|
+
obj.owner = message.owner;
|
|
129
136
|
}
|
|
130
|
-
|
|
131
|
-
obj.nfts =
|
|
137
|
+
if (message.nfts?.length) {
|
|
138
|
+
obj.nfts = message.nfts.map((e) => NFT.toJSON(e));
|
|
132
139
|
}
|
|
133
140
|
return obj;
|
|
134
141
|
},
|
|
@@ -142,10 +149,6 @@ export const Entry = {
|
|
|
142
149
|
return message;
|
|
143
150
|
},
|
|
144
151
|
};
|
|
145
|
-
if (_m0.util.Long !== Long) {
|
|
146
|
-
_m0.util.Long = Long;
|
|
147
|
-
_m0.configure();
|
|
148
|
-
}
|
|
149
152
|
function isSet(value) {
|
|
150
153
|
return value !== null && value !== undefined;
|
|
151
154
|
}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import { Any } from "../../../google/protobuf/any";
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "cosmjs-types/binary";
|
|
2
|
+
import { Any } from "cosmjs-types/google/protobuf/any";
|
|
4
3
|
export declare const protobufPackage = "cosmos.nft.v1beta1";
|
|
5
4
|
/** Class defines the class of the nft type. */
|
|
6
5
|
export interface Class {
|
|
@@ -17,7 +16,7 @@ export interface Class {
|
|
|
17
16
|
/** uri_hash is a hash of the document pointed by uri. Optional */
|
|
18
17
|
uriHash: string;
|
|
19
18
|
/** data is the app specific metadata of the NFT class. Optional */
|
|
20
|
-
data
|
|
19
|
+
data: Any | undefined;
|
|
21
20
|
}
|
|
22
21
|
/** NFT defines the NFT. */
|
|
23
22
|
export interface NFT {
|
|
@@ -30,26 +29,12 @@ export interface NFT {
|
|
|
30
29
|
/** uri_hash is a hash of the document pointed by uri */
|
|
31
30
|
uriHash: string;
|
|
32
31
|
/** data is an app specific data of the NFT. Optional */
|
|
33
|
-
data
|
|
32
|
+
data: Any | undefined;
|
|
34
33
|
}
|
|
35
|
-
export declare const Class:
|
|
36
|
-
|
|
37
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): Class;
|
|
38
|
-
fromJSON(object: any): Class;
|
|
39
|
-
toJSON(message: Class): unknown;
|
|
40
|
-
create<I extends Exact<DeepPartial<Class>, I>>(base?: I): Class;
|
|
41
|
-
fromPartial<I extends Exact<DeepPartial<Class>, I>>(object: I): Class;
|
|
42
|
-
};
|
|
43
|
-
export declare const NFT: {
|
|
44
|
-
encode(message: NFT, writer?: _m0.Writer): _m0.Writer;
|
|
45
|
-
decode(input: _m0.Reader | Uint8Array, length?: number): NFT;
|
|
46
|
-
fromJSON(object: any): NFT;
|
|
47
|
-
toJSON(message: NFT): unknown;
|
|
48
|
-
create<I extends Exact<DeepPartial<NFT>, I>>(base?: I): NFT;
|
|
49
|
-
fromPartial<I extends Exact<DeepPartial<NFT>, I>>(object: I): NFT;
|
|
50
|
-
};
|
|
34
|
+
export declare const Class: MessageFns<Class>;
|
|
35
|
+
export declare const NFT: MessageFns<NFT>;
|
|
51
36
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
52
|
-
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 {} ? {
|
|
53
38
|
[K in keyof T]?: DeepPartial<T[K]>;
|
|
54
39
|
} : Partial<T>;
|
|
55
40
|
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
@@ -58,4 +43,12 @@ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
|
58
43
|
} & {
|
|
59
44
|
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
60
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
|
+
}
|
|
61
54
|
export {};
|