carbon-js-sdk 0.3.52 → 0.3.53-dev.1

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.
Files changed (116) hide show
  1. package/lib/CarbonSDK.js +1 -1
  2. package/lib/clients/ETHClient.d.ts +11 -4
  3. package/lib/clients/ETHClient.js +20 -6
  4. package/lib/clients/HydrogenClient.d.ts +16 -7
  5. package/lib/clients/HydrogenClient.js +55 -9
  6. package/lib/clients/NEOClient.d.ts +1 -1
  7. package/lib/clients/NEOClient.js +9 -4
  8. package/lib/clients/TokenClient.d.ts +17 -4
  9. package/lib/clients/TokenClient.js +121 -8
  10. package/lib/clients/ZILClient.d.ts +1 -1
  11. package/lib/clients/ZILClient.js +9 -4
  12. package/lib/codec/cosmos/app/module/v1alpha1/module.d.ts +18 -0
  13. package/lib/codec/cosmos/app/module/v1alpha1/module.js +46 -0
  14. package/lib/codec/cosmos/app/v1alpha1/config.d.ts +57 -0
  15. package/lib/codec/cosmos/app/v1alpha1/config.js +125 -0
  16. package/lib/codec/cosmos/app/v1alpha1/export.d.ts +3 -0
  17. package/lib/codec/cosmos/app/v1alpha1/export.js +13 -0
  18. package/lib/codec/cosmos/app/v1alpha1/module.d.ts +109 -0
  19. package/lib/codec/cosmos/app/v1alpha1/module.js +192 -0
  20. package/lib/codec/cosmos/app/v1alpha1/query.d.ts +44 -0
  21. package/lib/codec/cosmos/app/v1alpha1/query.js +107 -0
  22. package/lib/codec/cosmos/authz/v1beta1/export.d.ts +4 -0
  23. package/lib/codec/cosmos/authz/v1beta1/export.js +25 -0
  24. package/lib/codec/cosmos/base/node/v1beta1/query.d.ts +42 -0
  25. package/lib/codec/cosmos/base/node/v1beta1/query.js +104 -0
  26. package/lib/codec/cosmos/base/tendermint/v1beta1/types.d.ts +67 -0
  27. package/lib/codec/cosmos/base/tendermint/v1beta1/types.js +423 -0
  28. package/lib/codec/cosmos/capability/v1beta1/export.d.ts +2 -0
  29. package/lib/codec/cosmos/capability/v1beta1/export.js +9 -0
  30. package/lib/codec/cosmos/crisis/v1beta1/export.d.ts +1 -0
  31. package/lib/codec/cosmos/crisis/v1beta1/export.js +6 -0
  32. package/lib/codec/cosmos/crypto/hd/v1/hd.d.ts +32 -0
  33. package/lib/codec/cosmos/crypto/hd/v1/hd.js +114 -0
  34. package/lib/codec/cosmos/crypto/keyring/v1/record.d.ts +78 -0
  35. package/lib/codec/cosmos/crypto/keyring/v1/record.js +309 -0
  36. package/lib/codec/cosmos/evidence/v1beta1/export.d.ts +3 -0
  37. package/lib/codec/cosmos/evidence/v1beta1/export.js +13 -0
  38. package/lib/codec/cosmos/feegrant/v1beta1/export.d.ts +3 -0
  39. package/lib/codec/cosmos/feegrant/v1beta1/export.js +20 -0
  40. package/lib/codec/cosmos/gov/v1/export.d.ts +3 -0
  41. package/lib/codec/cosmos/gov/v1/export.js +46 -0
  42. package/lib/codec/cosmos/gov/v1/genesis.d.ts +34 -0
  43. package/lib/codec/cosmos/gov/v1/genesis.js +166 -0
  44. package/lib/codec/cosmos/gov/v1/gov.d.ts +198 -0
  45. package/lib/codec/cosmos/gov/v1/gov.js +855 -0
  46. package/lib/codec/cosmos/gov/v1/query.d.ts +264 -0
  47. package/lib/codec/cosmos/gov/v1/query.js +1045 -0
  48. package/lib/codec/cosmos/gov/v1/tx.d.ts +167 -0
  49. package/lib/codec/cosmos/gov/v1/tx.js +639 -0
  50. package/lib/codec/cosmos/group/v1/events.d.ts +124 -0
  51. package/lib/codec/cosmos/group/v1/events.js +480 -0
  52. package/lib/codec/cosmos/group/v1/export.d.ts +4 -0
  53. package/lib/codec/cosmos/group/v1/export.js +94 -0
  54. package/lib/codec/cosmos/group/v1/genesis.d.ts +45 -0
  55. package/lib/codec/cosmos/group/v1/genesis.js +176 -0
  56. package/lib/codec/cosmos/group/v1/query.d.ts +412 -0
  57. package/lib/codec/cosmos/group/v1/query.js +1648 -0
  58. package/lib/codec/cosmos/group/v1/tx.d.ts +483 -0
  59. package/lib/codec/cosmos/group/v1/tx.js +1840 -0
  60. package/lib/codec/cosmos/group/v1/types.d.ts +356 -0
  61. package/lib/codec/cosmos/group/v1/types.js +1306 -0
  62. package/lib/codec/cosmos/msg/v1/msg.d.ts +1 -0
  63. package/lib/codec/cosmos/msg/v1/msg.js +14 -0
  64. package/lib/codec/cosmos/nft/v1beta1/event.d.ts +48 -0
  65. package/lib/codec/cosmos/nft/v1beta1/event.js +227 -0
  66. package/lib/codec/cosmos/nft/v1beta1/export.d.ts +5 -0
  67. package/lib/codec/cosmos/nft/v1beta1/export.js +30 -0
  68. package/lib/codec/cosmos/nft/v1beta1/genesis.d.ts +36 -0
  69. package/lib/codec/cosmos/nft/v1beta1/genesis.js +140 -0
  70. package/lib/codec/cosmos/nft/v1beta1/nft.d.ts +53 -0
  71. package/lib/codec/cosmos/nft/v1beta1/nft.js +233 -0
  72. package/lib/codec/cosmos/nft/v1beta1/query.d.ts +206 -0
  73. package/lib/codec/cosmos/nft/v1beta1/query.js +817 -0
  74. package/lib/codec/cosmos/nft/v1beta1/tx.d.ts +49 -0
  75. package/lib/codec/cosmos/nft/v1beta1/tx.js +137 -0
  76. package/lib/codec/cosmos/orm/module/v1alpha1/module.d.ts +22 -0
  77. package/lib/codec/cosmos/orm/module/v1alpha1/module.js +46 -0
  78. package/lib/codec/cosmos/orm/v1/export.d.ts +1 -0
  79. package/lib/codec/cosmos/orm/v1/export.js +8 -0
  80. package/lib/codec/cosmos/orm/v1/orm.d.ts +123 -0
  81. package/lib/codec/cosmos/orm/v1/orm.js +263 -0
  82. package/lib/codec/cosmos/orm/v1alpha1/export.d.ts +1 -0
  83. package/lib/codec/cosmos/orm/v1alpha1/export.js +9 -0
  84. package/lib/codec/cosmos/orm/v1alpha1/schema.d.ts +96 -0
  85. package/lib/codec/cosmos/orm/v1alpha1/schema.js +265 -0
  86. package/lib/codec/cosmos/upgrade/v1beta1/export.d.ts +3 -0
  87. package/lib/codec/cosmos/upgrade/v1beta1/export.js +24 -0
  88. package/lib/codec/cosmos/upgrade/v1beta1/tx.d.ts +97 -0
  89. package/lib/codec/cosmos/upgrade/v1beta1/tx.js +203 -0
  90. package/lib/codec/ibc/applications/fee/v1/ack.d.ts +24 -0
  91. package/lib/codec/ibc/applications/fee/v1/ack.js +125 -0
  92. package/lib/codec/ibc/applications/fee/v1/export.d.ts +6 -0
  93. package/lib/codec/ibc/applications/fee/v1/export.js +47 -0
  94. package/lib/codec/ibc/applications/fee/v1/fee.d.ts +68 -0
  95. package/lib/codec/ibc/applications/fee/v1/fee.js +289 -0
  96. package/lib/codec/ibc/applications/fee/v1/genesis.d.ts +93 -0
  97. package/lib/codec/ibc/applications/fee/v1/genesis.js +390 -0
  98. package/lib/codec/ibc/applications/fee/v1/metadata.d.ts +25 -0
  99. package/lib/codec/ibc/applications/fee/v1/metadata.js +71 -0
  100. package/lib/codec/ibc/applications/fee/v1/query.d.ts +312 -0
  101. package/lib/codec/ibc/applications/fee/v1/query.js +1187 -0
  102. package/lib/codec/ibc/applications/fee/v1/tx.d.ts +171 -0
  103. package/lib/codec/ibc/applications/fee/v1/tx.js +524 -0
  104. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.d.ts +78 -0
  105. package/lib/codec/ibc/applications/interchain_accounts/controller/v1/tx.js +296 -0
  106. package/lib/codec/ibc/applications/interchain_accounts/genesis/v1/genesis.d.ts +80 -0
  107. package/lib/codec/ibc/applications/interchain_accounts/genesis/v1/genesis.js +439 -0
  108. package/lib/hydrogen/transfer.d.ts +5 -5
  109. package/lib/insights/competition.d.ts +1 -0
  110. package/lib/provider/metamask/MetaMask.d.ts +5 -5
  111. package/lib/provider/metamask/MetaMask.js +35 -35
  112. package/lib/util/blockchain.d.ts +9 -0
  113. package/lib/util/blockchain.js +143 -1
  114. package/lib/util/ibc.d.ts +4 -4
  115. package/lib/util/ibc.js +17 -18
  116. package/package.json +1 -1
@@ -0,0 +1 @@
1
+ export declare const protobufPackage = "cosmos.msg.v1";
@@ -0,0 +1,14 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.protobufPackage = void 0;
7
+ /* eslint-disable */
8
+ const long_1 = __importDefault(require("long"));
9
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
+ exports.protobufPackage = "cosmos.msg.v1";
11
+ if (minimal_1.default.util.Long !== long_1.default) {
12
+ minimal_1.default.util.Long = long_1.default;
13
+ minimal_1.default.configure();
14
+ }
@@ -0,0 +1,48 @@
1
+ import Long from "long";
2
+ import _m0 from "protobufjs/minimal";
3
+ export declare const protobufPackage = "cosmos.nft.v1beta1";
4
+ /** EventSend is emitted on Msg/Send */
5
+ export interface EventSend {
6
+ classId: string;
7
+ id: string;
8
+ sender: string;
9
+ receiver: string;
10
+ }
11
+ /** EventMint is emitted on Mint */
12
+ export interface EventMint {
13
+ classId: string;
14
+ id: string;
15
+ owner: string;
16
+ }
17
+ /** EventBurn is emitted on Burn */
18
+ export interface EventBurn {
19
+ classId: string;
20
+ id: string;
21
+ owner: string;
22
+ }
23
+ export declare const EventSend: {
24
+ encode(message: EventSend, writer?: _m0.Writer): _m0.Writer;
25
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): EventSend;
26
+ fromJSON(object: any): EventSend;
27
+ toJSON(message: EventSend): unknown;
28
+ fromPartial(object: DeepPartial<EventSend>): EventSend;
29
+ };
30
+ export declare const EventMint: {
31
+ encode(message: EventMint, writer?: _m0.Writer): _m0.Writer;
32
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): EventMint;
33
+ fromJSON(object: any): EventMint;
34
+ toJSON(message: EventMint): unknown;
35
+ fromPartial(object: DeepPartial<EventMint>): EventMint;
36
+ };
37
+ export declare const EventBurn: {
38
+ encode(message: EventBurn, writer?: _m0.Writer): _m0.Writer;
39
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): EventBurn;
40
+ fromJSON(object: any): EventBurn;
41
+ toJSON(message: EventBurn): unknown;
42
+ fromPartial(object: DeepPartial<EventBurn>): EventBurn;
43
+ };
44
+ declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
45
+ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
46
+ [K in keyof T]?: DeepPartial<T[K]>;
47
+ } : Partial<T>;
48
+ export {};
@@ -0,0 +1,227 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.EventBurn = exports.EventMint = exports.EventSend = exports.protobufPackage = void 0;
7
+ /* eslint-disable */
8
+ const long_1 = __importDefault(require("long"));
9
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
+ exports.protobufPackage = "cosmos.nft.v1beta1";
11
+ const baseEventSend = { classId: "", id: "", sender: "", receiver: "" };
12
+ exports.EventSend = {
13
+ encode(message, writer = minimal_1.default.Writer.create()) {
14
+ if (message.classId !== "") {
15
+ writer.uint32(10).string(message.classId);
16
+ }
17
+ if (message.id !== "") {
18
+ writer.uint32(18).string(message.id);
19
+ }
20
+ if (message.sender !== "") {
21
+ writer.uint32(26).string(message.sender);
22
+ }
23
+ if (message.receiver !== "") {
24
+ writer.uint32(34).string(message.receiver);
25
+ }
26
+ return writer;
27
+ },
28
+ decode(input, length) {
29
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
30
+ let end = length === undefined ? reader.len : reader.pos + length;
31
+ const message = Object.assign({}, baseEventSend);
32
+ while (reader.pos < end) {
33
+ const tag = reader.uint32();
34
+ switch (tag >>> 3) {
35
+ case 1:
36
+ message.classId = reader.string();
37
+ break;
38
+ case 2:
39
+ message.id = reader.string();
40
+ break;
41
+ case 3:
42
+ message.sender = reader.string();
43
+ break;
44
+ case 4:
45
+ message.receiver = reader.string();
46
+ break;
47
+ default:
48
+ reader.skipType(tag & 7);
49
+ break;
50
+ }
51
+ }
52
+ return message;
53
+ },
54
+ fromJSON(object) {
55
+ const message = Object.assign({}, baseEventSend);
56
+ message.classId =
57
+ object.classId !== undefined && object.classId !== null
58
+ ? String(object.classId)
59
+ : "";
60
+ message.id =
61
+ object.id !== undefined && object.id !== null ? String(object.id) : "";
62
+ message.sender =
63
+ object.sender !== undefined && object.sender !== null
64
+ ? String(object.sender)
65
+ : "";
66
+ message.receiver =
67
+ object.receiver !== undefined && object.receiver !== null
68
+ ? String(object.receiver)
69
+ : "";
70
+ return message;
71
+ },
72
+ toJSON(message) {
73
+ const obj = {};
74
+ message.classId !== undefined && (obj.classId = message.classId);
75
+ message.id !== undefined && (obj.id = message.id);
76
+ message.sender !== undefined && (obj.sender = message.sender);
77
+ message.receiver !== undefined && (obj.receiver = message.receiver);
78
+ return obj;
79
+ },
80
+ fromPartial(object) {
81
+ var _a, _b, _c, _d;
82
+ const message = Object.assign({}, baseEventSend);
83
+ message.classId = (_a = object.classId) !== null && _a !== void 0 ? _a : "";
84
+ message.id = (_b = object.id) !== null && _b !== void 0 ? _b : "";
85
+ message.sender = (_c = object.sender) !== null && _c !== void 0 ? _c : "";
86
+ message.receiver = (_d = object.receiver) !== null && _d !== void 0 ? _d : "";
87
+ return message;
88
+ },
89
+ };
90
+ const baseEventMint = { classId: "", id: "", owner: "" };
91
+ exports.EventMint = {
92
+ encode(message, writer = minimal_1.default.Writer.create()) {
93
+ if (message.classId !== "") {
94
+ writer.uint32(10).string(message.classId);
95
+ }
96
+ if (message.id !== "") {
97
+ writer.uint32(18).string(message.id);
98
+ }
99
+ if (message.owner !== "") {
100
+ writer.uint32(26).string(message.owner);
101
+ }
102
+ return writer;
103
+ },
104
+ decode(input, length) {
105
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
106
+ let end = length === undefined ? reader.len : reader.pos + length;
107
+ const message = Object.assign({}, baseEventMint);
108
+ while (reader.pos < end) {
109
+ const tag = reader.uint32();
110
+ switch (tag >>> 3) {
111
+ case 1:
112
+ message.classId = reader.string();
113
+ break;
114
+ case 2:
115
+ message.id = reader.string();
116
+ break;
117
+ case 3:
118
+ message.owner = reader.string();
119
+ break;
120
+ default:
121
+ reader.skipType(tag & 7);
122
+ break;
123
+ }
124
+ }
125
+ return message;
126
+ },
127
+ fromJSON(object) {
128
+ const message = Object.assign({}, baseEventMint);
129
+ message.classId =
130
+ object.classId !== undefined && object.classId !== null
131
+ ? String(object.classId)
132
+ : "";
133
+ message.id =
134
+ object.id !== undefined && object.id !== null ? String(object.id) : "";
135
+ message.owner =
136
+ object.owner !== undefined && object.owner !== null
137
+ ? String(object.owner)
138
+ : "";
139
+ return message;
140
+ },
141
+ toJSON(message) {
142
+ const obj = {};
143
+ message.classId !== undefined && (obj.classId = message.classId);
144
+ message.id !== undefined && (obj.id = message.id);
145
+ message.owner !== undefined && (obj.owner = message.owner);
146
+ return obj;
147
+ },
148
+ fromPartial(object) {
149
+ var _a, _b, _c;
150
+ const message = Object.assign({}, baseEventMint);
151
+ message.classId = (_a = object.classId) !== null && _a !== void 0 ? _a : "";
152
+ message.id = (_b = object.id) !== null && _b !== void 0 ? _b : "";
153
+ message.owner = (_c = object.owner) !== null && _c !== void 0 ? _c : "";
154
+ return message;
155
+ },
156
+ };
157
+ const baseEventBurn = { classId: "", id: "", owner: "" };
158
+ exports.EventBurn = {
159
+ encode(message, writer = minimal_1.default.Writer.create()) {
160
+ if (message.classId !== "") {
161
+ writer.uint32(10).string(message.classId);
162
+ }
163
+ if (message.id !== "") {
164
+ writer.uint32(18).string(message.id);
165
+ }
166
+ if (message.owner !== "") {
167
+ writer.uint32(26).string(message.owner);
168
+ }
169
+ return writer;
170
+ },
171
+ decode(input, length) {
172
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
173
+ let end = length === undefined ? reader.len : reader.pos + length;
174
+ const message = Object.assign({}, baseEventBurn);
175
+ while (reader.pos < end) {
176
+ const tag = reader.uint32();
177
+ switch (tag >>> 3) {
178
+ case 1:
179
+ message.classId = reader.string();
180
+ break;
181
+ case 2:
182
+ message.id = reader.string();
183
+ break;
184
+ case 3:
185
+ message.owner = reader.string();
186
+ break;
187
+ default:
188
+ reader.skipType(tag & 7);
189
+ break;
190
+ }
191
+ }
192
+ return message;
193
+ },
194
+ fromJSON(object) {
195
+ const message = Object.assign({}, baseEventBurn);
196
+ message.classId =
197
+ object.classId !== undefined && object.classId !== null
198
+ ? String(object.classId)
199
+ : "";
200
+ message.id =
201
+ object.id !== undefined && object.id !== null ? String(object.id) : "";
202
+ message.owner =
203
+ object.owner !== undefined && object.owner !== null
204
+ ? String(object.owner)
205
+ : "";
206
+ return message;
207
+ },
208
+ toJSON(message) {
209
+ const obj = {};
210
+ message.classId !== undefined && (obj.classId = message.classId);
211
+ message.id !== undefined && (obj.id = message.id);
212
+ message.owner !== undefined && (obj.owner = message.owner);
213
+ return obj;
214
+ },
215
+ fromPartial(object) {
216
+ var _a, _b, _c;
217
+ const message = Object.assign({}, baseEventBurn);
218
+ message.classId = (_a = object.classId) !== null && _a !== void 0 ? _a : "";
219
+ message.id = (_b = object.id) !== null && _b !== void 0 ? _b : "";
220
+ message.owner = (_c = object.owner) !== null && _c !== void 0 ? _c : "";
221
+ return message;
222
+ },
223
+ };
224
+ if (minimal_1.default.util.Long !== long_1.default) {
225
+ minimal_1.default.util.Long = long_1.default;
226
+ minimal_1.default.configure();
227
+ }
@@ -0,0 +1,5 @@
1
+ export { EventSend, EventMint, EventBurn } from "./event";
2
+ export { Entry } from "./genesis";
3
+ export { Class, NFT } from "./nft";
4
+ export { QueryBalanceRequest, QueryBalanceResponse, QueryOwnerRequest, QueryOwnerResponse, QuerySupplyRequest, QuerySupplyResponse, QueryNFTsRequest, QueryNFTsResponse, QueryNFTRequest, QueryNFTResponse, QueryClassRequest, QueryClassResponse, QueryClassesRequest, QueryClassesResponse } from "./query";
5
+ export { MsgSend, MsgSendResponse } from "./tx";
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.MsgSendResponse = exports.MsgSend = exports.QueryClassesResponse = exports.QueryClassesRequest = exports.QueryClassResponse = exports.QueryClassRequest = exports.QueryNFTResponse = exports.QueryNFTRequest = exports.QueryNFTsResponse = exports.QueryNFTsRequest = exports.QuerySupplyResponse = exports.QuerySupplyRequest = exports.QueryOwnerResponse = exports.QueryOwnerRequest = exports.QueryBalanceResponse = exports.QueryBalanceRequest = exports.NFT = exports.Class = exports.Entry = exports.EventBurn = exports.EventMint = exports.EventSend = void 0;
4
+ var event_1 = require("./event");
5
+ Object.defineProperty(exports, "EventSend", { enumerable: true, get: function () { return event_1.EventSend; } });
6
+ Object.defineProperty(exports, "EventMint", { enumerable: true, get: function () { return event_1.EventMint; } });
7
+ Object.defineProperty(exports, "EventBurn", { enumerable: true, get: function () { return event_1.EventBurn; } });
8
+ var genesis_1 = require("./genesis");
9
+ Object.defineProperty(exports, "Entry", { enumerable: true, get: function () { return genesis_1.Entry; } });
10
+ var nft_1 = require("./nft");
11
+ Object.defineProperty(exports, "Class", { enumerable: true, get: function () { return nft_1.Class; } });
12
+ Object.defineProperty(exports, "NFT", { enumerable: true, get: function () { return nft_1.NFT; } });
13
+ var query_1 = require("./query");
14
+ Object.defineProperty(exports, "QueryBalanceRequest", { enumerable: true, get: function () { return query_1.QueryBalanceRequest; } });
15
+ Object.defineProperty(exports, "QueryBalanceResponse", { enumerable: true, get: function () { return query_1.QueryBalanceResponse; } });
16
+ Object.defineProperty(exports, "QueryOwnerRequest", { enumerable: true, get: function () { return query_1.QueryOwnerRequest; } });
17
+ Object.defineProperty(exports, "QueryOwnerResponse", { enumerable: true, get: function () { return query_1.QueryOwnerResponse; } });
18
+ Object.defineProperty(exports, "QuerySupplyRequest", { enumerable: true, get: function () { return query_1.QuerySupplyRequest; } });
19
+ Object.defineProperty(exports, "QuerySupplyResponse", { enumerable: true, get: function () { return query_1.QuerySupplyResponse; } });
20
+ Object.defineProperty(exports, "QueryNFTsRequest", { enumerable: true, get: function () { return query_1.QueryNFTsRequest; } });
21
+ Object.defineProperty(exports, "QueryNFTsResponse", { enumerable: true, get: function () { return query_1.QueryNFTsResponse; } });
22
+ Object.defineProperty(exports, "QueryNFTRequest", { enumerable: true, get: function () { return query_1.QueryNFTRequest; } });
23
+ Object.defineProperty(exports, "QueryNFTResponse", { enumerable: true, get: function () { return query_1.QueryNFTResponse; } });
24
+ Object.defineProperty(exports, "QueryClassRequest", { enumerable: true, get: function () { return query_1.QueryClassRequest; } });
25
+ Object.defineProperty(exports, "QueryClassResponse", { enumerable: true, get: function () { return query_1.QueryClassResponse; } });
26
+ Object.defineProperty(exports, "QueryClassesRequest", { enumerable: true, get: function () { return query_1.QueryClassesRequest; } });
27
+ Object.defineProperty(exports, "QueryClassesResponse", { enumerable: true, get: function () { return query_1.QueryClassesResponse; } });
28
+ var tx_1 = require("./tx");
29
+ Object.defineProperty(exports, "MsgSend", { enumerable: true, get: function () { return tx_1.MsgSend; } });
30
+ Object.defineProperty(exports, "MsgSendResponse", { enumerable: true, get: function () { return tx_1.MsgSendResponse; } });
@@ -0,0 +1,36 @@
1
+ import Long from "long";
2
+ import _m0 from "protobufjs/minimal";
3
+ import { Class, NFT } from "./nft";
4
+ export declare const protobufPackage = "cosmos.nft.v1beta1";
5
+ /** GenesisState defines the nft module's genesis state. */
6
+ export interface GenesisState {
7
+ /** class defines the class of the nft type. */
8
+ classes: Class[];
9
+ entries: Entry[];
10
+ }
11
+ /** Entry Defines all nft owned by a person */
12
+ export interface Entry {
13
+ /** owner is the owner address of the following nft */
14
+ owner: string;
15
+ /** nfts is a group of nfts of the same owner */
16
+ nfts: NFT[];
17
+ }
18
+ export declare const GenesisState: {
19
+ encode(message: GenesisState, writer?: _m0.Writer): _m0.Writer;
20
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): GenesisState;
21
+ fromJSON(object: any): GenesisState;
22
+ toJSON(message: GenesisState): unknown;
23
+ fromPartial(object: DeepPartial<GenesisState>): GenesisState;
24
+ };
25
+ export declare const Entry: {
26
+ encode(message: Entry, writer?: _m0.Writer): _m0.Writer;
27
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Entry;
28
+ fromJSON(object: any): Entry;
29
+ toJSON(message: Entry): unknown;
30
+ fromPartial(object: DeepPartial<Entry>): Entry;
31
+ };
32
+ declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
33
+ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
34
+ [K in keyof T]?: DeepPartial<T[K]>;
35
+ } : Partial<T>;
36
+ export {};
@@ -0,0 +1,140 @@
1
+ "use strict";
2
+ var __importDefault = (this && this.__importDefault) || function (mod) {
3
+ return (mod && mod.__esModule) ? mod : { "default": mod };
4
+ };
5
+ Object.defineProperty(exports, "__esModule", { value: true });
6
+ exports.Entry = exports.GenesisState = exports.protobufPackage = void 0;
7
+ /* eslint-disable */
8
+ const long_1 = __importDefault(require("long"));
9
+ const minimal_1 = __importDefault(require("protobufjs/minimal"));
10
+ const nft_1 = require("./nft");
11
+ exports.protobufPackage = "cosmos.nft.v1beta1";
12
+ const baseGenesisState = {};
13
+ exports.GenesisState = {
14
+ encode(message, writer = minimal_1.default.Writer.create()) {
15
+ for (const v of message.classes) {
16
+ nft_1.Class.encode(v, writer.uint32(10).fork()).ldelim();
17
+ }
18
+ for (const v of message.entries) {
19
+ exports.Entry.encode(v, writer.uint32(18).fork()).ldelim();
20
+ }
21
+ return writer;
22
+ },
23
+ decode(input, length) {
24
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
25
+ let end = length === undefined ? reader.len : reader.pos + length;
26
+ const message = Object.assign({}, baseGenesisState);
27
+ message.classes = [];
28
+ message.entries = [];
29
+ while (reader.pos < end) {
30
+ const tag = reader.uint32();
31
+ switch (tag >>> 3) {
32
+ case 1:
33
+ message.classes.push(nft_1.Class.decode(reader, reader.uint32()));
34
+ break;
35
+ case 2:
36
+ message.entries.push(exports.Entry.decode(reader, reader.uint32()));
37
+ break;
38
+ default:
39
+ reader.skipType(tag & 7);
40
+ break;
41
+ }
42
+ }
43
+ return message;
44
+ },
45
+ fromJSON(object) {
46
+ var _a, _b;
47
+ const message = Object.assign({}, baseGenesisState);
48
+ message.classes = ((_a = object.classes) !== null && _a !== void 0 ? _a : []).map((e) => nft_1.Class.fromJSON(e));
49
+ message.entries = ((_b = object.entries) !== null && _b !== void 0 ? _b : []).map((e) => exports.Entry.fromJSON(e));
50
+ return message;
51
+ },
52
+ toJSON(message) {
53
+ const obj = {};
54
+ if (message.classes) {
55
+ obj.classes = message.classes.map((e) => e ? nft_1.Class.toJSON(e) : undefined);
56
+ }
57
+ else {
58
+ obj.classes = [];
59
+ }
60
+ if (message.entries) {
61
+ obj.entries = message.entries.map((e) => e ? exports.Entry.toJSON(e) : undefined);
62
+ }
63
+ else {
64
+ obj.entries = [];
65
+ }
66
+ return obj;
67
+ },
68
+ fromPartial(object) {
69
+ var _a, _b;
70
+ const message = Object.assign({}, baseGenesisState);
71
+ message.classes = ((_a = object.classes) !== null && _a !== void 0 ? _a : []).map((e) => nft_1.Class.fromPartial(e));
72
+ message.entries = ((_b = object.entries) !== null && _b !== void 0 ? _b : []).map((e) => exports.Entry.fromPartial(e));
73
+ return message;
74
+ },
75
+ };
76
+ const baseEntry = { owner: "" };
77
+ exports.Entry = {
78
+ encode(message, writer = minimal_1.default.Writer.create()) {
79
+ if (message.owner !== "") {
80
+ writer.uint32(10).string(message.owner);
81
+ }
82
+ for (const v of message.nfts) {
83
+ nft_1.NFT.encode(v, writer.uint32(18).fork()).ldelim();
84
+ }
85
+ return writer;
86
+ },
87
+ decode(input, length) {
88
+ const reader = input instanceof minimal_1.default.Reader ? input : new minimal_1.default.Reader(input);
89
+ let end = length === undefined ? reader.len : reader.pos + length;
90
+ const message = Object.assign({}, baseEntry);
91
+ message.nfts = [];
92
+ while (reader.pos < end) {
93
+ const tag = reader.uint32();
94
+ switch (tag >>> 3) {
95
+ case 1:
96
+ message.owner = reader.string();
97
+ break;
98
+ case 2:
99
+ message.nfts.push(nft_1.NFT.decode(reader, reader.uint32()));
100
+ break;
101
+ default:
102
+ reader.skipType(tag & 7);
103
+ break;
104
+ }
105
+ }
106
+ return message;
107
+ },
108
+ fromJSON(object) {
109
+ var _a;
110
+ const message = Object.assign({}, baseEntry);
111
+ message.owner =
112
+ object.owner !== undefined && object.owner !== null
113
+ ? String(object.owner)
114
+ : "";
115
+ message.nfts = ((_a = object.nfts) !== null && _a !== void 0 ? _a : []).map((e) => nft_1.NFT.fromJSON(e));
116
+ return message;
117
+ },
118
+ toJSON(message) {
119
+ const obj = {};
120
+ message.owner !== undefined && (obj.owner = message.owner);
121
+ if (message.nfts) {
122
+ obj.nfts = message.nfts.map((e) => (e ? nft_1.NFT.toJSON(e) : undefined));
123
+ }
124
+ else {
125
+ obj.nfts = [];
126
+ }
127
+ return obj;
128
+ },
129
+ fromPartial(object) {
130
+ var _a, _b;
131
+ const message = Object.assign({}, baseEntry);
132
+ message.owner = (_a = object.owner) !== null && _a !== void 0 ? _a : "";
133
+ message.nfts = ((_b = object.nfts) !== null && _b !== void 0 ? _b : []).map((e) => nft_1.NFT.fromPartial(e));
134
+ return message;
135
+ },
136
+ };
137
+ if (minimal_1.default.util.Long !== long_1.default) {
138
+ minimal_1.default.util.Long = long_1.default;
139
+ minimal_1.default.configure();
140
+ }
@@ -0,0 +1,53 @@
1
+ import Long from "long";
2
+ import _m0 from "protobufjs/minimal";
3
+ import { Any } from "../../../google/protobuf/any";
4
+ export declare const protobufPackage = "cosmos.nft.v1beta1";
5
+ /** Class defines the class of the nft type. */
6
+ export interface Class {
7
+ /** id defines the unique identifier of the NFT classification, similar to the contract address of ERC721 */
8
+ id: string;
9
+ /** name defines the human-readable name of the NFT classification. Optional */
10
+ name: string;
11
+ /** symbol is an abbreviated name for nft classification. Optional */
12
+ symbol: string;
13
+ /** description is a brief description of nft classification. Optional */
14
+ description: string;
15
+ /** uri for the class metadata stored off chain. It can define schema for Class and NFT `Data` attributes. Optional */
16
+ uri: string;
17
+ /** uri_hash is a hash of the document pointed by uri. Optional */
18
+ uriHash: string;
19
+ /** data is the app specific metadata of the NFT class. Optional */
20
+ data?: Any;
21
+ }
22
+ /** NFT defines the NFT. */
23
+ export interface NFT {
24
+ /** class_id associated with the NFT, similar to the contract address of ERC721 */
25
+ classId: string;
26
+ /** id is a unique identifier of the NFT */
27
+ id: string;
28
+ /** uri for the NFT metadata stored off chain */
29
+ uri: string;
30
+ /** uri_hash is a hash of the document pointed by uri */
31
+ uriHash: string;
32
+ /** data is an app specific data of the NFT. Optional */
33
+ data?: Any;
34
+ }
35
+ export declare const Class: {
36
+ encode(message: Class, writer?: _m0.Writer): _m0.Writer;
37
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): Class;
38
+ fromJSON(object: any): Class;
39
+ toJSON(message: Class): unknown;
40
+ fromPartial(object: DeepPartial<Class>): Class;
41
+ };
42
+ export declare const NFT: {
43
+ encode(message: NFT, writer?: _m0.Writer): _m0.Writer;
44
+ decode(input: _m0.Reader | Uint8Array, length?: number | undefined): NFT;
45
+ fromJSON(object: any): NFT;
46
+ toJSON(message: NFT): unknown;
47
+ fromPartial(object: DeepPartial<NFT>): NFT;
48
+ };
49
+ declare type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
50
+ export declare type DeepPartial<T> = T extends Builtin ? T : T extends Long ? string | number | Long : T extends Array<infer U> ? Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
51
+ [K in keyof T]?: DeepPartial<T[K]>;
52
+ } : Partial<T>;
53
+ export {};