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,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/event.proto
|
|
5
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
8
|
exports.EventBurn = exports.EventMint = exports.EventSend = 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 createBaseEventSend() {
|
|
12
13
|
return { classId: "", id: "", sender: "", receiver: "" };
|
|
13
14
|
}
|
|
14
15
|
exports.EventSend = {
|
|
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.EventSend = {
|
|
|
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 = createBaseEventSend();
|
|
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.EventSend.fromPartial(base
|
|
101
|
+
return exports.EventSend.fromPartial(base ?? {});
|
|
87
102
|
},
|
|
88
103
|
fromPartial(object) {
|
|
89
|
-
var _a, _b, _c, _d;
|
|
90
104
|
const message = createBaseEventSend();
|
|
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,7 +113,7 @@ function createBaseEventMint() {
|
|
|
99
113
|
return { classId: "", id: "", owner: "" };
|
|
100
114
|
}
|
|
101
115
|
exports.EventMint = {
|
|
102
|
-
encode(message, writer =
|
|
116
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
103
117
|
if (message.classId !== "") {
|
|
104
118
|
writer.uint32(10).string(message.classId);
|
|
105
119
|
}
|
|
@@ -112,61 +126,69 @@ exports.EventMint = {
|
|
|
112
126
|
return writer;
|
|
113
127
|
},
|
|
114
128
|
decode(input, length) {
|
|
115
|
-
const reader = input instanceof
|
|
129
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
116
130
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
117
131
|
const message = createBaseEventMint();
|
|
118
132
|
while (reader.pos < end) {
|
|
119
133
|
const tag = reader.uint32();
|
|
120
134
|
switch (tag >>> 3) {
|
|
121
|
-
case 1:
|
|
122
|
-
if (tag
|
|
135
|
+
case 1: {
|
|
136
|
+
if (tag !== 10) {
|
|
123
137
|
break;
|
|
124
138
|
}
|
|
125
139
|
message.classId = reader.string();
|
|
126
140
|
continue;
|
|
127
|
-
|
|
128
|
-
|
|
141
|
+
}
|
|
142
|
+
case 2: {
|
|
143
|
+
if (tag !== 18) {
|
|
129
144
|
break;
|
|
130
145
|
}
|
|
131
146
|
message.id = reader.string();
|
|
132
147
|
continue;
|
|
133
|
-
|
|
134
|
-
|
|
148
|
+
}
|
|
149
|
+
case 3: {
|
|
150
|
+
if (tag !== 26) {
|
|
135
151
|
break;
|
|
136
152
|
}
|
|
137
153
|
message.owner = reader.string();
|
|
138
154
|
continue;
|
|
155
|
+
}
|
|
139
156
|
}
|
|
140
|
-
if ((tag & 7)
|
|
157
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
141
158
|
break;
|
|
142
159
|
}
|
|
143
|
-
reader.
|
|
160
|
+
reader.skip(tag & 7);
|
|
144
161
|
}
|
|
145
162
|
return message;
|
|
146
163
|
},
|
|
147
164
|
fromJSON(object) {
|
|
148
165
|
return {
|
|
149
|
-
classId: isSet(object.classId) ? String(object.classId) : "",
|
|
150
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
151
|
-
owner: isSet(object.owner) ? String(object.owner) : "",
|
|
166
|
+
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
167
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
168
|
+
owner: isSet(object.owner) ? globalThis.String(object.owner) : "",
|
|
152
169
|
};
|
|
153
170
|
},
|
|
154
171
|
toJSON(message) {
|
|
155
172
|
const obj = {};
|
|
156
|
-
message.classId !==
|
|
157
|
-
|
|
158
|
-
|
|
173
|
+
if (message.classId !== "") {
|
|
174
|
+
obj.classId = message.classId;
|
|
175
|
+
}
|
|
176
|
+
if (message.id !== "") {
|
|
177
|
+
obj.id = message.id;
|
|
178
|
+
}
|
|
179
|
+
if (message.owner !== "") {
|
|
180
|
+
obj.owner = message.owner;
|
|
181
|
+
}
|
|
159
182
|
return obj;
|
|
160
183
|
},
|
|
161
184
|
create(base) {
|
|
162
|
-
return exports.EventMint.fromPartial(base
|
|
185
|
+
return exports.EventMint.fromPartial(base ?? {});
|
|
163
186
|
},
|
|
164
187
|
fromPartial(object) {
|
|
165
|
-
var _a, _b, _c;
|
|
166
188
|
const message = createBaseEventMint();
|
|
167
|
-
message.classId =
|
|
168
|
-
message.id =
|
|
169
|
-
message.owner =
|
|
189
|
+
message.classId = object.classId ?? "";
|
|
190
|
+
message.id = object.id ?? "";
|
|
191
|
+
message.owner = object.owner ?? "";
|
|
170
192
|
return message;
|
|
171
193
|
},
|
|
172
194
|
};
|
|
@@ -174,7 +196,7 @@ function createBaseEventBurn() {
|
|
|
174
196
|
return { classId: "", id: "", owner: "" };
|
|
175
197
|
}
|
|
176
198
|
exports.EventBurn = {
|
|
177
|
-
encode(message, writer =
|
|
199
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
178
200
|
if (message.classId !== "") {
|
|
179
201
|
writer.uint32(10).string(message.classId);
|
|
180
202
|
}
|
|
@@ -187,68 +209,72 @@ exports.EventBurn = {
|
|
|
187
209
|
return writer;
|
|
188
210
|
},
|
|
189
211
|
decode(input, length) {
|
|
190
|
-
const reader = input instanceof
|
|
212
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
191
213
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
192
214
|
const message = createBaseEventBurn();
|
|
193
215
|
while (reader.pos < end) {
|
|
194
216
|
const tag = reader.uint32();
|
|
195
217
|
switch (tag >>> 3) {
|
|
196
|
-
case 1:
|
|
197
|
-
if (tag
|
|
218
|
+
case 1: {
|
|
219
|
+
if (tag !== 10) {
|
|
198
220
|
break;
|
|
199
221
|
}
|
|
200
222
|
message.classId = reader.string();
|
|
201
223
|
continue;
|
|
202
|
-
|
|
203
|
-
|
|
224
|
+
}
|
|
225
|
+
case 2: {
|
|
226
|
+
if (tag !== 18) {
|
|
204
227
|
break;
|
|
205
228
|
}
|
|
206
229
|
message.id = reader.string();
|
|
207
230
|
continue;
|
|
208
|
-
|
|
209
|
-
|
|
231
|
+
}
|
|
232
|
+
case 3: {
|
|
233
|
+
if (tag !== 26) {
|
|
210
234
|
break;
|
|
211
235
|
}
|
|
212
236
|
message.owner = reader.string();
|
|
213
237
|
continue;
|
|
238
|
+
}
|
|
214
239
|
}
|
|
215
|
-
if ((tag & 7)
|
|
240
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
216
241
|
break;
|
|
217
242
|
}
|
|
218
|
-
reader.
|
|
243
|
+
reader.skip(tag & 7);
|
|
219
244
|
}
|
|
220
245
|
return message;
|
|
221
246
|
},
|
|
222
247
|
fromJSON(object) {
|
|
223
248
|
return {
|
|
224
|
-
classId: isSet(object.classId) ? String(object.classId) : "",
|
|
225
|
-
id: isSet(object.id) ? String(object.id) : "",
|
|
226
|
-
owner: isSet(object.owner) ? String(object.owner) : "",
|
|
249
|
+
classId: isSet(object.classId) ? globalThis.String(object.classId) : "",
|
|
250
|
+
id: isSet(object.id) ? globalThis.String(object.id) : "",
|
|
251
|
+
owner: isSet(object.owner) ? globalThis.String(object.owner) : "",
|
|
227
252
|
};
|
|
228
253
|
},
|
|
229
254
|
toJSON(message) {
|
|
230
255
|
const obj = {};
|
|
231
|
-
message.classId !==
|
|
232
|
-
|
|
233
|
-
|
|
256
|
+
if (message.classId !== "") {
|
|
257
|
+
obj.classId = message.classId;
|
|
258
|
+
}
|
|
259
|
+
if (message.id !== "") {
|
|
260
|
+
obj.id = message.id;
|
|
261
|
+
}
|
|
262
|
+
if (message.owner !== "") {
|
|
263
|
+
obj.owner = message.owner;
|
|
264
|
+
}
|
|
234
265
|
return obj;
|
|
235
266
|
},
|
|
236
267
|
create(base) {
|
|
237
|
-
return exports.EventBurn.fromPartial(base
|
|
268
|
+
return exports.EventBurn.fromPartial(base ?? {});
|
|
238
269
|
},
|
|
239
270
|
fromPartial(object) {
|
|
240
|
-
var _a, _b, _c;
|
|
241
271
|
const message = createBaseEventBurn();
|
|
242
|
-
message.classId =
|
|
243
|
-
message.id =
|
|
244
|
-
message.owner =
|
|
272
|
+
message.classId = object.classId ?? "";
|
|
273
|
+
message.id = object.id ?? "";
|
|
274
|
+
message.owner = object.owner ?? "";
|
|
245
275
|
return message;
|
|
246
276
|
},
|
|
247
277
|
};
|
|
248
|
-
if (minimal_1.default.util.Long !== long_1.default) {
|
|
249
|
-
minimal_1.default.util.Long = long_1.default;
|
|
250
|
-
minimal_1.default.configure();
|
|
251
|
-
}
|
|
252
278
|
function isSet(value) {
|
|
253
279
|
return value !== null && value !== undefined;
|
|
254
280
|
}
|
|
@@ -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,19 +1,20 @@
|
|
|
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/genesis.proto
|
|
5
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
8
|
exports.Entry = exports.GenesisState = 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
|
const nft_1 = require("./nft");
|
|
11
12
|
exports.protobufPackage = "cosmos.nft.v1beta1";
|
|
12
13
|
function createBaseGenesisState() {
|
|
13
14
|
return { classes: [], entries: [] };
|
|
14
15
|
}
|
|
15
16
|
exports.GenesisState = {
|
|
16
|
-
encode(message, writer =
|
|
17
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
17
18
|
for (const v of message.classes) {
|
|
18
19
|
nft_1.Class.encode(v, writer.uint32(10).fork()).ldelim();
|
|
19
20
|
}
|
|
@@ -23,62 +24,61 @@ exports.GenesisState = {
|
|
|
23
24
|
return writer;
|
|
24
25
|
},
|
|
25
26
|
decode(input, length) {
|
|
26
|
-
const reader = input instanceof
|
|
27
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
27
28
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
28
29
|
const message = createBaseGenesisState();
|
|
29
30
|
while (reader.pos < end) {
|
|
30
31
|
const tag = reader.uint32();
|
|
31
32
|
switch (tag >>> 3) {
|
|
32
|
-
case 1:
|
|
33
|
-
if (tag
|
|
33
|
+
case 1: {
|
|
34
|
+
if (tag !== 10) {
|
|
34
35
|
break;
|
|
35
36
|
}
|
|
36
37
|
message.classes.push(nft_1.Class.decode(reader, reader.uint32()));
|
|
37
38
|
continue;
|
|
38
|
-
|
|
39
|
-
|
|
39
|
+
}
|
|
40
|
+
case 2: {
|
|
41
|
+
if (tag !== 18) {
|
|
40
42
|
break;
|
|
41
43
|
}
|
|
42
44
|
message.entries.push(exports.Entry.decode(reader, reader.uint32()));
|
|
43
45
|
continue;
|
|
46
|
+
}
|
|
44
47
|
}
|
|
45
|
-
if ((tag & 7)
|
|
48
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
46
49
|
break;
|
|
47
50
|
}
|
|
48
|
-
reader.
|
|
51
|
+
reader.skip(tag & 7);
|
|
49
52
|
}
|
|
50
53
|
return message;
|
|
51
54
|
},
|
|
52
55
|
fromJSON(object) {
|
|
53
56
|
return {
|
|
54
|
-
classes: Array.isArray(object
|
|
55
|
-
|
|
57
|
+
classes: globalThis.Array.isArray(object?.classes)
|
|
58
|
+
? object.classes.map((e) => nft_1.Class.fromJSON(e))
|
|
59
|
+
: [],
|
|
60
|
+
entries: globalThis.Array.isArray(object?.entries)
|
|
61
|
+
? object.entries.map((e) => exports.Entry.fromJSON(e))
|
|
62
|
+
: [],
|
|
56
63
|
};
|
|
57
64
|
},
|
|
58
65
|
toJSON(message) {
|
|
59
66
|
const obj = {};
|
|
60
|
-
if (message.classes) {
|
|
61
|
-
obj.classes = message.classes.map((e) =>
|
|
62
|
-
}
|
|
63
|
-
else {
|
|
64
|
-
obj.classes = [];
|
|
65
|
-
}
|
|
66
|
-
if (message.entries) {
|
|
67
|
-
obj.entries = message.entries.map((e) => e ? exports.Entry.toJSON(e) : undefined);
|
|
67
|
+
if (message.classes?.length) {
|
|
68
|
+
obj.classes = message.classes.map((e) => nft_1.Class.toJSON(e));
|
|
68
69
|
}
|
|
69
|
-
|
|
70
|
-
obj.entries =
|
|
70
|
+
if (message.entries?.length) {
|
|
71
|
+
obj.entries = message.entries.map((e) => exports.Entry.toJSON(e));
|
|
71
72
|
}
|
|
72
73
|
return obj;
|
|
73
74
|
},
|
|
74
75
|
create(base) {
|
|
75
|
-
return exports.GenesisState.fromPartial(base
|
|
76
|
+
return exports.GenesisState.fromPartial(base ?? {});
|
|
76
77
|
},
|
|
77
78
|
fromPartial(object) {
|
|
78
|
-
var _a, _b;
|
|
79
79
|
const message = createBaseGenesisState();
|
|
80
|
-
message.classes =
|
|
81
|
-
message.entries =
|
|
80
|
+
message.classes = object.classes?.map((e) => nft_1.Class.fromPartial(e)) || [];
|
|
81
|
+
message.entries = object.entries?.map((e) => exports.Entry.fromPartial(e)) || [];
|
|
82
82
|
return message;
|
|
83
83
|
},
|
|
84
84
|
};
|
|
@@ -86,7 +86,7 @@ function createBaseEntry() {
|
|
|
86
86
|
return { owner: "", nfts: [] };
|
|
87
87
|
}
|
|
88
88
|
exports.Entry = {
|
|
89
|
-
encode(message, writer =
|
|
89
|
+
encode(message, writer = new binary_1.BinaryWriter()) {
|
|
90
90
|
if (message.owner !== "") {
|
|
91
91
|
writer.uint32(10).string(message.owner);
|
|
92
92
|
}
|
|
@@ -96,64 +96,62 @@ exports.Entry = {
|
|
|
96
96
|
return writer;
|
|
97
97
|
},
|
|
98
98
|
decode(input, length) {
|
|
99
|
-
const reader = input instanceof
|
|
99
|
+
const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
|
|
100
100
|
let end = length === undefined ? reader.len : reader.pos + length;
|
|
101
101
|
const message = createBaseEntry();
|
|
102
102
|
while (reader.pos < end) {
|
|
103
103
|
const tag = reader.uint32();
|
|
104
104
|
switch (tag >>> 3) {
|
|
105
|
-
case 1:
|
|
106
|
-
if (tag
|
|
105
|
+
case 1: {
|
|
106
|
+
if (tag !== 10) {
|
|
107
107
|
break;
|
|
108
108
|
}
|
|
109
109
|
message.owner = reader.string();
|
|
110
110
|
continue;
|
|
111
|
-
|
|
112
|
-
|
|
111
|
+
}
|
|
112
|
+
case 2: {
|
|
113
|
+
if (tag !== 18) {
|
|
113
114
|
break;
|
|
114
115
|
}
|
|
115
116
|
message.nfts.push(nft_1.NFT.decode(reader, reader.uint32()));
|
|
116
117
|
continue;
|
|
118
|
+
}
|
|
117
119
|
}
|
|
118
|
-
if ((tag & 7)
|
|
120
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
119
121
|
break;
|
|
120
122
|
}
|
|
121
|
-
reader.
|
|
123
|
+
reader.skip(tag & 7);
|
|
122
124
|
}
|
|
123
125
|
return message;
|
|
124
126
|
},
|
|
125
127
|
fromJSON(object) {
|
|
126
128
|
return {
|
|
127
|
-
owner: isSet(object.owner) ? String(object.owner) : "",
|
|
128
|
-
nfts: Array.isArray(object
|
|
129
|
+
owner: isSet(object.owner) ? globalThis.String(object.owner) : "",
|
|
130
|
+
nfts: globalThis.Array.isArray(object?.nfts)
|
|
131
|
+
? object.nfts.map((e) => nft_1.NFT.fromJSON(e))
|
|
132
|
+
: [],
|
|
129
133
|
};
|
|
130
134
|
},
|
|
131
135
|
toJSON(message) {
|
|
132
136
|
const obj = {};
|
|
133
|
-
message.owner !==
|
|
134
|
-
|
|
135
|
-
obj.nfts = message.nfts.map((e) => e ? nft_1.NFT.toJSON(e) : undefined);
|
|
137
|
+
if (message.owner !== "") {
|
|
138
|
+
obj.owner = message.owner;
|
|
136
139
|
}
|
|
137
|
-
|
|
138
|
-
obj.nfts =
|
|
140
|
+
if (message.nfts?.length) {
|
|
141
|
+
obj.nfts = message.nfts.map((e) => nft_1.NFT.toJSON(e));
|
|
139
142
|
}
|
|
140
143
|
return obj;
|
|
141
144
|
},
|
|
142
145
|
create(base) {
|
|
143
|
-
return exports.Entry.fromPartial(base
|
|
146
|
+
return exports.Entry.fromPartial(base ?? {});
|
|
144
147
|
},
|
|
145
148
|
fromPartial(object) {
|
|
146
|
-
var _a, _b;
|
|
147
149
|
const message = createBaseEntry();
|
|
148
|
-
message.owner =
|
|
149
|
-
message.nfts =
|
|
150
|
+
message.owner = object.owner ?? "";
|
|
151
|
+
message.nfts = object.nfts?.map((e) => nft_1.NFT.fromPartial(e)) || [];
|
|
150
152
|
return message;
|
|
151
153
|
},
|
|
152
154
|
};
|
|
153
|
-
if (minimal_1.default.util.Long !== long_1.default) {
|
|
154
|
-
minimal_1.default.util.Long = long_1.default;
|
|
155
|
-
minimal_1.default.configure();
|
|
156
|
-
}
|
|
157
155
|
function isSet(value) {
|
|
158
156
|
return value !== null && value !== undefined;
|
|
159
157
|
}
|
|
@@ -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 {};
|