coreum-js 2.16.2 → 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.
Files changed (203) hide show
  1. package/dist/main/client/index.js +16 -17
  2. package/dist/main/coreum/asset/ft/v1/authz.d.ts +38 -0
  3. package/dist/main/coreum/asset/ft/v1/authz.js +122 -0
  4. package/dist/main/coreum/asset/ft/v1/event.d.ts +52 -120
  5. package/dist/main/coreum/asset/ft/v1/event.js +744 -138
  6. package/dist/main/coreum/asset/ft/v1/genesis.d.ts +31 -517
  7. package/dist/main/coreum/asset/ft/v1/genesis.js +273 -62
  8. package/dist/main/coreum/asset/ft/v1/params.d.ts +12 -63
  9. package/dist/main/coreum/asset/ft/v1/params.js +37 -33
  10. package/dist/main/coreum/asset/ft/v1/query.d.ts +86 -1950
  11. package/dist/main/coreum/asset/ft/v1/query.js +697 -217
  12. package/dist/main/coreum/asset/ft/v1/token.d.ts +17 -249
  13. package/dist/main/coreum/asset/ft/v1/token.js +273 -197
  14. package/dist/main/coreum/asset/ft/v1/tx.d.ts +30 -755
  15. package/dist/main/coreum/asset/ft/v1/tx.js +502 -386
  16. package/dist/main/coreum/asset/index.d.ts +2 -3
  17. package/dist/main/coreum/asset/nft/v1/authz.d.ts +33 -0
  18. package/dist/main/coreum/asset/nft/v1/authz.js +137 -0
  19. package/dist/main/coreum/asset/nft/v1/event.d.ts +35 -147
  20. package/dist/main/coreum/asset/nft/v1/event.js +475 -147
  21. package/dist/main/coreum/asset/nft/v1/genesis.d.ts +27 -286
  22. package/dist/main/coreum/asset/nft/v1/genesis.js +311 -119
  23. package/dist/main/coreum/asset/nft/v1/nft.d.ts +20 -108
  24. package/dist/main/coreum/asset/nft/v1/nft.js +136 -101
  25. package/dist/main/coreum/asset/nft/v1/params.d.ts +12 -38
  26. package/dist/main/coreum/asset/nft/v1/params.js +17 -20
  27. package/dist/main/coreum/asset/nft/v1/query.d.ts +110 -706
  28. package/dist/main/coreum/asset/nft/v1/query.js +1079 -185
  29. package/dist/main/coreum/asset/nft/v1/tx.d.ts +96 -266
  30. package/dist/main/coreum/asset/nft/v1/tx.js +865 -234
  31. package/dist/main/coreum/asset/nft/v1/types.d.ts +38 -19
  32. package/dist/main/coreum/asset/nft/v1/types.js +273 -45
  33. package/dist/main/coreum/customparams/v1/genesis.d.ts +12 -32
  34. package/dist/main/coreum/customparams/v1/genesis.js +26 -22
  35. package/dist/main/coreum/customparams/v1/params.d.ts +11 -19
  36. package/dist/main/coreum/customparams/v1/params.js +23 -20
  37. package/dist/main/coreum/customparams/v1/query.d.ts +14 -40
  38. package/dist/main/coreum/customparams/v1/query.js +35 -29
  39. package/dist/main/coreum/dex/index.d.ts +1 -0
  40. package/dist/main/coreum/dex/index.js +12 -0
  41. package/dist/main/coreum/dex/v1/event.d.ts +73 -0
  42. package/dist/main/coreum/dex/v1/event.js +470 -0
  43. package/dist/main/coreum/dex/v1/genesis.d.ts +49 -0
  44. package/dist/main/coreum/dex/v1/genesis.js +318 -0
  45. package/dist/main/coreum/dex/v1/order.d.ts +172 -0
  46. package/dist/main/coreum/dex/v1/order.js +1137 -0
  47. package/dist/main/coreum/dex/v1/params.d.ts +34 -0
  48. package/dist/main/coreum/dex/v1/params.js +139 -0
  49. package/dist/main/coreum/dex/v1/query.d.ts +133 -0
  50. package/dist/main/coreum/dex/v1/query.js +873 -0
  51. package/dist/main/coreum/dex/v1/tx.d.ts +102 -0
  52. package/dist/main/coreum/dex/v1/tx.js +521 -0
  53. package/dist/main/coreum/extensions/dex.d.ts +12 -0
  54. package/dist/main/coreum/extensions/dex.js +32 -0
  55. package/dist/main/coreum/feemodel/v1/genesis.d.ts +13 -233
  56. package/dist/main/coreum/feemodel/v1/genesis.js +23 -24
  57. package/dist/main/coreum/feemodel/v1/params.d.ts +14 -337
  58. package/dist/main/coreum/feemodel/v1/params.js +113 -66
  59. package/dist/main/coreum/feemodel/v1/query.d.ts +30 -261
  60. package/dist/main/coreum/feemodel/v1/query.js +196 -43
  61. package/dist/main/coreum/index.d.ts +46 -0
  62. package/dist/main/coreum/index.js +58 -1
  63. package/dist/main/coreum/nft/index.d.ts +1 -2
  64. package/dist/main/coreum/nft/v1beta1/event.d.ts +23 -79
  65. package/dist/main/coreum/nft/v1beta1/event.js +103 -77
  66. package/dist/main/coreum/nft/v1beta1/genesis.d.ts +13 -435
  67. package/dist/main/coreum/nft/v1beta1/genesis.js +50 -52
  68. package/dist/main/coreum/nft/v1beta1/nft.d.ts +15 -114
  69. package/dist/main/coreum/nft/v1beta1/nft.js +111 -81
  70. package/dist/main/coreum/nft/v1beta1/query.d.ts +54 -1628
  71. package/dist/main/coreum/nft/v1beta1/query.js +259 -223
  72. package/dist/main/coreum/nft/v1beta1/tx.d.ts +13 -39
  73. package/dist/main/coreum/nft/v1beta1/tx.js +54 -43
  74. package/dist/main/cosmos/extensions/distribution.d.ts +4 -4
  75. package/dist/main/cosmos/extensions/distribution.js +9 -9
  76. package/dist/main/cosmos/extensions/gov.d.ts +13 -13
  77. package/dist/main/cosmos/extensions/gov.js +14 -8
  78. package/dist/main/cosmos/index.d.ts +8 -8
  79. package/dist/main/google/api/http.js +18 -21
  80. package/dist/main/google/protobuf/any.js +3 -4
  81. package/dist/main/google/protobuf/duration.js +3 -4
  82. package/dist/main/google/protobuf/timestamp.js +3 -4
  83. package/dist/main/services/cosmostation.js +1 -1
  84. package/dist/main/tendermint/abci/types.js +183 -223
  85. package/dist/main/tendermint/crypto/keys.js +3 -4
  86. package/dist/main/tendermint/crypto/proof.js +19 -24
  87. package/dist/main/tendermint/types/params.js +15 -20
  88. package/dist/main/tendermint/types/types.js +57 -68
  89. package/dist/main/tendermint/types/validator.js +10 -13
  90. package/dist/main/tendermint/version/types.js +6 -8
  91. package/dist/main/types/core.d.ts +2 -1
  92. package/dist/main/types/core.js +2 -0
  93. package/dist/main/wasm/v1/authz.d.ts +20 -471
  94. package/dist/main/wasm/v1/authz.js +129 -148
  95. package/dist/main/wasm/v1/genesis.d.ts +14 -1020
  96. package/dist/main/wasm/v1/genesis.js +169 -140
  97. package/dist/main/wasm/v1/ibc.d.ts +13 -62
  98. package/dist/main/wasm/v1/ibc.js +91 -76
  99. package/dist/main/wasm/v1/index.d.ts +1 -2
  100. package/dist/main/wasm/v1/pagination.js +9 -11
  101. package/dist/main/wasm/v1/proposal.d.ts +23 -720
  102. package/dist/main/wasm/v1/proposal.js +634 -465
  103. package/dist/main/wasm/v1/query.d.ts +35 -1201
  104. package/dist/main/wasm/v1/query.js +370 -363
  105. package/dist/main/wasm/v1/tx.d.ts +37 -788
  106. package/dist/main/wasm/v1/tx.js +621 -497
  107. package/dist/main/wasm/v1/types.d.ts +19 -297
  108. package/dist/main/wasm/v1/types.js +219 -190
  109. package/dist/module/client/index.js +4 -3
  110. package/dist/module/coreum/asset/ft/v1/authz.d.ts +38 -0
  111. package/dist/module/coreum/asset/ft/v1/authz.js +119 -0
  112. package/dist/module/coreum/asset/ft/v1/event.d.ts +52 -120
  113. package/dist/module/coreum/asset/ft/v1/event.js +721 -109
  114. package/dist/module/coreum/asset/ft/v1/genesis.d.ts +31 -517
  115. package/dist/module/coreum/asset/ft/v1/genesis.js +266 -50
  116. package/dist/module/coreum/asset/ft/v1/params.d.ts +12 -63
  117. package/dist/module/coreum/asset/ft/v1/params.js +35 -27
  118. package/dist/module/coreum/asset/ft/v1/query.d.ts +86 -1950
  119. package/dist/module/coreum/asset/ft/v1/query.js +672 -180
  120. package/dist/module/coreum/asset/ft/v1/token.d.ts +17 -249
  121. package/dist/module/coreum/asset/ft/v1/token.js +236 -152
  122. package/dist/module/coreum/asset/ft/v1/tx.d.ts +30 -755
  123. package/dist/module/coreum/asset/ft/v1/tx.js +437 -301
  124. package/dist/module/coreum/asset/index.d.ts +2 -3
  125. package/dist/module/coreum/asset/nft/v1/authz.d.ts +33 -0
  126. package/dist/module/coreum/asset/nft/v1/authz.js +134 -0
  127. package/dist/module/coreum/asset/nft/v1/event.d.ts +35 -147
  128. package/dist/module/coreum/asset/nft/v1/event.js +448 -112
  129. package/dist/module/coreum/asset/nft/v1/genesis.d.ts +27 -286
  130. package/dist/module/coreum/asset/nft/v1/genesis.js +299 -100
  131. package/dist/module/coreum/asset/nft/v1/nft.d.ts +20 -108
  132. package/dist/module/coreum/asset/nft/v1/nft.js +121 -81
  133. package/dist/module/coreum/asset/nft/v1/params.d.ts +12 -38
  134. package/dist/module/coreum/asset/nft/v1/params.js +16 -16
  135. package/dist/module/coreum/asset/nft/v1/query.d.ts +110 -706
  136. package/dist/module/coreum/asset/nft/v1/query.js +1057 -153
  137. package/dist/module/coreum/asset/nft/v1/tx.d.ts +96 -266
  138. package/dist/module/coreum/asset/nft/v1/tx.js +825 -184
  139. package/dist/module/coreum/asset/nft/v1/types.d.ts +38 -19
  140. package/dist/module/coreum/asset/nft/v1/types.js +269 -39
  141. package/dist/module/coreum/customparams/v1/genesis.d.ts +12 -32
  142. package/dist/module/coreum/customparams/v1/genesis.js +25 -18
  143. package/dist/module/coreum/customparams/v1/params.d.ts +11 -19
  144. package/dist/module/coreum/customparams/v1/params.js +21 -14
  145. package/dist/module/coreum/customparams/v1/query.d.ts +14 -40
  146. package/dist/module/coreum/customparams/v1/query.js +32 -23
  147. package/dist/module/coreum/dex/index.d.ts +1 -0
  148. package/dist/module/coreum/dex/index.js +9 -0
  149. package/dist/module/coreum/dex/v1/event.d.ts +73 -0
  150. package/dist/module/coreum/dex/v1/event.js +467 -0
  151. package/dist/module/coreum/dex/v1/genesis.d.ts +49 -0
  152. package/dist/module/coreum/dex/v1/genesis.js +315 -0
  153. package/dist/module/coreum/dex/v1/order.d.ts +172 -0
  154. package/dist/module/coreum/dex/v1/order.js +1128 -0
  155. package/dist/module/coreum/dex/v1/params.d.ts +34 -0
  156. package/dist/module/coreum/dex/v1/params.js +136 -0
  157. package/dist/module/coreum/dex/v1/query.d.ts +133 -0
  158. package/dist/module/coreum/dex/v1/query.js +871 -0
  159. package/dist/module/coreum/dex/v1/tx.d.ts +102 -0
  160. package/dist/module/coreum/dex/v1/tx.js +519 -0
  161. package/dist/module/coreum/extensions/dex.d.ts +12 -0
  162. package/dist/module/coreum/extensions/dex.js +28 -0
  163. package/dist/module/coreum/feemodel/v1/genesis.d.ts +13 -233
  164. package/dist/module/coreum/feemodel/v1/genesis.js +22 -20
  165. package/dist/module/coreum/feemodel/v1/params.d.ts +14 -337
  166. package/dist/module/coreum/feemodel/v1/params.js +105 -54
  167. package/dist/module/coreum/feemodel/v1/query.d.ts +30 -261
  168. package/dist/module/coreum/feemodel/v1/query.js +191 -35
  169. package/dist/module/coreum/index.d.ts +46 -0
  170. package/dist/module/coreum/index.js +57 -0
  171. package/dist/module/coreum/nft/index.d.ts +1 -2
  172. package/dist/module/coreum/nft/v1beta1/event.d.ts +23 -79
  173. package/dist/module/coreum/nft/v1beta1/event.js +90 -58
  174. package/dist/module/coreum/nft/v1beta1/genesis.d.ts +13 -435
  175. package/dist/module/coreum/nft/v1beta1/genesis.js +44 -41
  176. package/dist/module/coreum/nft/v1beta1/nft.d.ts +15 -114
  177. package/dist/module/coreum/nft/v1beta1/nft.js +99 -64
  178. package/dist/module/coreum/nft/v1beta1/query.d.ts +54 -1628
  179. package/dist/module/coreum/nft/v1beta1/query.js +231 -183
  180. package/dist/module/coreum/nft/v1beta1/tx.d.ts +13 -39
  181. package/dist/module/coreum/nft/v1beta1/tx.js +47 -32
  182. package/dist/module/cosmos/extensions/distribution.d.ts +4 -4
  183. package/dist/module/cosmos/extensions/gov.d.ts +13 -13
  184. package/dist/module/cosmos/index.d.ts +8 -8
  185. package/dist/module/services/cosmostation.js +1 -1
  186. package/dist/module/types/core.d.ts +2 -1
  187. package/dist/module/types/core.js +2 -0
  188. package/dist/module/wasm/v1/authz.d.ts +20 -471
  189. package/dist/module/wasm/v1/authz.js +111 -119
  190. package/dist/module/wasm/v1/genesis.d.ts +14 -1020
  191. package/dist/module/wasm/v1/genesis.js +161 -125
  192. package/dist/module/wasm/v1/ibc.d.ts +13 -62
  193. package/dist/module/wasm/v1/ibc.js +83 -62
  194. package/dist/module/wasm/v1/index.d.ts +1 -2
  195. package/dist/module/wasm/v1/proposal.d.ts +23 -720
  196. package/dist/module/wasm/v1/proposal.js +562 -377
  197. package/dist/module/wasm/v1/query.d.ts +35 -1201
  198. package/dist/module/wasm/v1/query.js +330 -301
  199. package/dist/module/wasm/v1/tx.d.ts +37 -788
  200. package/dist/module/wasm/v1/tx.js +551 -404
  201. package/dist/module/wasm/v1/types.d.ts +19 -297
  202. package/dist/module/wasm/v1/types.js +196 -156
  203. package/package.json +11 -10
@@ -1,18 +1,19 @@
1
1
  "use strict";
2
- var __importDefault = (this && this.__importDefault) || function (mod) {
3
- return (mod && mod.__esModule) ? mod : { "default": mod };
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 long_1 = __importDefault(require("long"));
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 = minimal_1.default.Writer.create()) {
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 minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
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 != 10) {
38
+ case 1: {
39
+ if (tag !== 10) {
39
40
  break;
40
41
  }
41
42
  message.classId = reader.string();
42
43
  continue;
43
- case 2:
44
- if (tag != 18) {
44
+ }
45
+ case 2: {
46
+ if (tag !== 18) {
45
47
  break;
46
48
  }
47
49
  message.id = reader.string();
48
50
  continue;
49
- case 3:
50
- if (tag != 26) {
51
+ }
52
+ case 3: {
53
+ if (tag !== 26) {
51
54
  break;
52
55
  }
53
56
  message.sender = reader.string();
54
57
  continue;
55
- case 4:
56
- if (tag != 34) {
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) == 4 || tag == 0) {
67
+ if ((tag & 7) === 4 || tag === 0) {
63
68
  break;
64
69
  }
65
- reader.skipType(tag & 7);
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) ? String(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 !== undefined && (obj.classId = message.classId);
80
- message.id !== undefined && (obj.id = message.id);
81
- message.sender !== undefined && (obj.sender = message.sender);
82
- message.receiver !== undefined && (obj.receiver = message.receiver);
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 !== null && base !== void 0 ? 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 = (_a = object.classId) !== null && _a !== void 0 ? _a : "";
92
- message.id = (_b = object.id) !== null && _b !== void 0 ? _b : "";
93
- message.sender = (_c = object.sender) !== null && _c !== void 0 ? _c : "";
94
- message.receiver = (_d = object.receiver) !== null && _d !== void 0 ? _d : "";
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 = minimal_1.default.Writer.create()) {
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 minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
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 != 10) {
135
+ case 1: {
136
+ if (tag !== 10) {
123
137
  break;
124
138
  }
125
139
  message.classId = reader.string();
126
140
  continue;
127
- case 2:
128
- if (tag != 18) {
141
+ }
142
+ case 2: {
143
+ if (tag !== 18) {
129
144
  break;
130
145
  }
131
146
  message.id = reader.string();
132
147
  continue;
133
- case 3:
134
- if (tag != 26) {
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) == 4 || tag == 0) {
157
+ if ((tag & 7) === 4 || tag === 0) {
141
158
  break;
142
159
  }
143
- reader.skipType(tag & 7);
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 !== undefined && (obj.classId = message.classId);
157
- message.id !== undefined && (obj.id = message.id);
158
- message.owner !== undefined && (obj.owner = message.owner);
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 !== null && base !== void 0 ? 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 = (_a = object.classId) !== null && _a !== void 0 ? _a : "";
168
- message.id = (_b = object.id) !== null && _b !== void 0 ? _b : "";
169
- message.owner = (_c = object.owner) !== null && _c !== void 0 ? _c : "";
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 = minimal_1.default.Writer.create()) {
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 minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
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 != 10) {
218
+ case 1: {
219
+ if (tag !== 10) {
198
220
  break;
199
221
  }
200
222
  message.classId = reader.string();
201
223
  continue;
202
- case 2:
203
- if (tag != 18) {
224
+ }
225
+ case 2: {
226
+ if (tag !== 18) {
204
227
  break;
205
228
  }
206
229
  message.id = reader.string();
207
230
  continue;
208
- case 3:
209
- if (tag != 26) {
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) == 4 || tag == 0) {
240
+ if ((tag & 7) === 4 || tag === 0) {
216
241
  break;
217
242
  }
218
- reader.skipType(tag & 7);
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 !== undefined && (obj.classId = message.classId);
232
- message.id !== undefined && (obj.id = message.id);
233
- message.owner !== undefined && (obj.owner = message.owner);
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 !== null && base !== void 0 ? 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 = (_a = object.classId) !== null && _a !== void 0 ? _a : "";
243
- message.id = (_b = object.id) !== null && _b !== void 0 ? _b : "";
244
- message.owner = (_c = object.owner) !== null && _c !== void 0 ? _c : "";
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
  }