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,24 @@
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: wasmd/proto/cosmwasm/wasm/v1/ibc.proto
5
7
  Object.defineProperty(exports, "__esModule", { value: true });
6
8
  exports.MsgIBCCloseChannel = exports.MsgIBCSendResponse = exports.MsgIBCSend = 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 = "cosmwasm.wasm.v1";
11
12
  function createBaseMsgIBCSend() {
12
- return { channel: "", timeoutHeight: 0, timeoutTimestamp: 0, data: new Uint8Array() };
13
+ return {
14
+ channel: "",
15
+ timeoutHeight: 0,
16
+ timeoutTimestamp: 0,
17
+ data: new Uint8Array(0),
18
+ };
13
19
  }
14
20
  exports.MsgIBCSend = {
15
- encode(message, writer = minimal_1.default.Writer.create()) {
21
+ encode(message, writer = new binary_1.BinaryWriter()) {
16
22
  if (message.channel !== "") {
17
23
  writer.uint32(18).string(message.channel);
18
24
  }
@@ -28,71 +34,87 @@ exports.MsgIBCSend = {
28
34
  return writer;
29
35
  },
30
36
  decode(input, length) {
31
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
37
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
32
38
  let end = length === undefined ? reader.len : reader.pos + length;
33
39
  const message = createBaseMsgIBCSend();
34
40
  while (reader.pos < end) {
35
41
  const tag = reader.uint32();
36
42
  switch (tag >>> 3) {
37
- case 2:
43
+ case 2: {
38
44
  if (tag !== 18) {
39
45
  break;
40
46
  }
41
47
  message.channel = reader.string();
42
48
  continue;
43
- case 4:
49
+ }
50
+ case 4: {
44
51
  if (tag !== 32) {
45
52
  break;
46
53
  }
47
54
  message.timeoutHeight = longToNumber(reader.uint64());
48
55
  continue;
49
- case 5:
56
+ }
57
+ case 5: {
50
58
  if (tag !== 40) {
51
59
  break;
52
60
  }
53
61
  message.timeoutTimestamp = longToNumber(reader.uint64());
54
62
  continue;
55
- case 6:
63
+ }
64
+ case 6: {
56
65
  if (tag !== 50) {
57
66
  break;
58
67
  }
59
68
  message.data = reader.bytes();
60
69
  continue;
70
+ }
61
71
  }
62
72
  if ((tag & 7) === 4 || tag === 0) {
63
73
  break;
64
74
  }
65
- reader.skipType(tag & 7);
75
+ reader.skip(tag & 7);
66
76
  }
67
77
  return message;
68
78
  },
69
79
  fromJSON(object) {
70
80
  return {
71
- channel: isSet(object.channel) ? String(object.channel) : "",
72
- timeoutHeight: isSet(object.timeoutHeight) ? Number(object.timeoutHeight) : 0,
73
- timeoutTimestamp: isSet(object.timeoutTimestamp) ? Number(object.timeoutTimestamp) : 0,
74
- data: isSet(object.data) ? bytesFromBase64(object.data) : new Uint8Array(),
81
+ channel: isSet(object.channel) ? globalThis.String(object.channel) : "",
82
+ timeoutHeight: isSet(object.timeoutHeight)
83
+ ? globalThis.Number(object.timeoutHeight)
84
+ : 0,
85
+ timeoutTimestamp: isSet(object.timeoutTimestamp)
86
+ ? globalThis.Number(object.timeoutTimestamp)
87
+ : 0,
88
+ data: isSet(object.data)
89
+ ? bytesFromBase64(object.data)
90
+ : new Uint8Array(0),
75
91
  };
76
92
  },
77
93
  toJSON(message) {
78
94
  const obj = {};
79
- message.channel !== undefined && (obj.channel = message.channel);
80
- message.timeoutHeight !== undefined && (obj.timeoutHeight = Math.round(message.timeoutHeight));
81
- message.timeoutTimestamp !== undefined && (obj.timeoutTimestamp = Math.round(message.timeoutTimestamp));
82
- message.data !== undefined &&
83
- (obj.data = base64FromBytes(message.data !== undefined ? message.data : new Uint8Array()));
95
+ if (message.channel !== "") {
96
+ obj.channel = message.channel;
97
+ }
98
+ if (message.timeoutHeight !== 0) {
99
+ obj.timeoutHeight = Math.round(message.timeoutHeight);
100
+ }
101
+ if (message.timeoutTimestamp !== 0) {
102
+ obj.timeoutTimestamp = Math.round(message.timeoutTimestamp);
103
+ }
104
+ if (message.data.length !== 0) {
105
+ obj.data = base64FromBytes(message.data);
106
+ }
84
107
  return obj;
85
108
  },
86
109
  create(base) {
87
- return exports.MsgIBCSend.fromPartial(base !== null && base !== void 0 ? base : {});
110
+ return exports.MsgIBCSend.fromPartial(base ?? {});
88
111
  },
89
112
  fromPartial(object) {
90
- var _a, _b, _c, _d;
91
113
  const message = createBaseMsgIBCSend();
92
- message.channel = (_a = object.channel) !== null && _a !== void 0 ? _a : "";
93
- message.timeoutHeight = (_b = object.timeoutHeight) !== null && _b !== void 0 ? _b : 0;
94
- message.timeoutTimestamp = (_c = object.timeoutTimestamp) !== null && _c !== void 0 ? _c : 0;
95
- message.data = (_d = object.data) !== null && _d !== void 0 ? _d : new Uint8Array();
114
+ message.channel = object.channel ?? "";
115
+ message.timeoutHeight = object.timeoutHeight ?? 0;
116
+ message.timeoutTimestamp = object.timeoutTimestamp ?? 0;
117
+ message.data = object.data ?? new Uint8Array(0);
96
118
  return message;
97
119
  },
98
120
  };
@@ -100,48 +122,52 @@ function createBaseMsgIBCSendResponse() {
100
122
  return { sequence: 0 };
101
123
  }
102
124
  exports.MsgIBCSendResponse = {
103
- encode(message, writer = minimal_1.default.Writer.create()) {
125
+ encode(message, writer = new binary_1.BinaryWriter()) {
104
126
  if (message.sequence !== 0) {
105
127
  writer.uint32(8).uint64(message.sequence);
106
128
  }
107
129
  return writer;
108
130
  },
109
131
  decode(input, length) {
110
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
132
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
111
133
  let end = length === undefined ? reader.len : reader.pos + length;
112
134
  const message = createBaseMsgIBCSendResponse();
113
135
  while (reader.pos < end) {
114
136
  const tag = reader.uint32();
115
137
  switch (tag >>> 3) {
116
- case 1:
138
+ case 1: {
117
139
  if (tag !== 8) {
118
140
  break;
119
141
  }
120
142
  message.sequence = longToNumber(reader.uint64());
121
143
  continue;
144
+ }
122
145
  }
123
146
  if ((tag & 7) === 4 || tag === 0) {
124
147
  break;
125
148
  }
126
- reader.skipType(tag & 7);
149
+ reader.skip(tag & 7);
127
150
  }
128
151
  return message;
129
152
  },
130
153
  fromJSON(object) {
131
- return { sequence: isSet(object.sequence) ? Number(object.sequence) : 0 };
154
+ return {
155
+ sequence: isSet(object.sequence) ? globalThis.Number(object.sequence) : 0,
156
+ };
132
157
  },
133
158
  toJSON(message) {
134
159
  const obj = {};
135
- message.sequence !== undefined && (obj.sequence = Math.round(message.sequence));
160
+ if (message.sequence !== 0) {
161
+ obj.sequence = Math.round(message.sequence);
162
+ }
136
163
  return obj;
137
164
  },
138
165
  create(base) {
139
- return exports.MsgIBCSendResponse.fromPartial(base !== null && base !== void 0 ? base : {});
166
+ return exports.MsgIBCSendResponse.fromPartial(base ?? {});
140
167
  },
141
168
  fromPartial(object) {
142
- var _a;
143
169
  const message = createBaseMsgIBCSendResponse();
144
- message.sequence = (_a = object.sequence) !== null && _a !== void 0 ? _a : 0;
170
+ message.sequence = object.sequence ?? 0;
145
171
  return message;
146
172
  },
147
173
  };
@@ -149,72 +175,61 @@ function createBaseMsgIBCCloseChannel() {
149
175
  return { channel: "" };
150
176
  }
151
177
  exports.MsgIBCCloseChannel = {
152
- encode(message, writer = minimal_1.default.Writer.create()) {
178
+ encode(message, writer = new binary_1.BinaryWriter()) {
153
179
  if (message.channel !== "") {
154
180
  writer.uint32(18).string(message.channel);
155
181
  }
156
182
  return writer;
157
183
  },
158
184
  decode(input, length) {
159
- const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
185
+ const reader = input instanceof binary_1.BinaryReader ? input : new binary_1.BinaryReader(input);
160
186
  let end = length === undefined ? reader.len : reader.pos + length;
161
187
  const message = createBaseMsgIBCCloseChannel();
162
188
  while (reader.pos < end) {
163
189
  const tag = reader.uint32();
164
190
  switch (tag >>> 3) {
165
- case 2:
191
+ case 2: {
166
192
  if (tag !== 18) {
167
193
  break;
168
194
  }
169
195
  message.channel = reader.string();
170
196
  continue;
197
+ }
171
198
  }
172
199
  if ((tag & 7) === 4 || tag === 0) {
173
200
  break;
174
201
  }
175
- reader.skipType(tag & 7);
202
+ reader.skip(tag & 7);
176
203
  }
177
204
  return message;
178
205
  },
179
206
  fromJSON(object) {
180
- return { channel: isSet(object.channel) ? String(object.channel) : "" };
207
+ return {
208
+ channel: isSet(object.channel) ? globalThis.String(object.channel) : "",
209
+ };
181
210
  },
182
211
  toJSON(message) {
183
212
  const obj = {};
184
- message.channel !== undefined && (obj.channel = message.channel);
213
+ if (message.channel !== "") {
214
+ obj.channel = message.channel;
215
+ }
185
216
  return obj;
186
217
  },
187
218
  create(base) {
188
- return exports.MsgIBCCloseChannel.fromPartial(base !== null && base !== void 0 ? base : {});
219
+ return exports.MsgIBCCloseChannel.fromPartial(base ?? {});
189
220
  },
190
221
  fromPartial(object) {
191
- var _a;
192
222
  const message = createBaseMsgIBCCloseChannel();
193
- message.channel = (_a = object.channel) !== null && _a !== void 0 ? _a : "";
223
+ message.channel = object.channel ?? "";
194
224
  return message;
195
225
  },
196
226
  };
197
- var tsProtoGlobalThis = (() => {
198
- if (typeof globalThis !== "undefined") {
199
- return globalThis;
200
- }
201
- if (typeof self !== "undefined") {
202
- return self;
203
- }
204
- if (typeof window !== "undefined") {
205
- return window;
206
- }
207
- if (typeof global !== "undefined") {
208
- return global;
209
- }
210
- throw "Unable to locate global object";
211
- })();
212
227
  function bytesFromBase64(b64) {
213
- if (tsProtoGlobalThis.Buffer) {
214
- return Uint8Array.from(tsProtoGlobalThis.Buffer.from(b64, "base64"));
228
+ if (globalThis.Buffer) {
229
+ return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
215
230
  }
216
231
  else {
217
- const bin = tsProtoGlobalThis.atob(b64);
232
+ const bin = globalThis.atob(b64);
218
233
  const arr = new Uint8Array(bin.length);
219
234
  for (let i = 0; i < bin.length; ++i) {
220
235
  arr[i] = bin.charCodeAt(i);
@@ -223,26 +238,26 @@ function bytesFromBase64(b64) {
223
238
  }
224
239
  }
225
240
  function base64FromBytes(arr) {
226
- if (tsProtoGlobalThis.Buffer) {
227
- return tsProtoGlobalThis.Buffer.from(arr).toString("base64");
241
+ if (globalThis.Buffer) {
242
+ return globalThis.Buffer.from(arr).toString("base64");
228
243
  }
229
244
  else {
230
245
  const bin = [];
231
246
  arr.forEach((byte) => {
232
- bin.push(String.fromCharCode(byte));
247
+ bin.push(globalThis.String.fromCharCode(byte));
233
248
  });
234
- return tsProtoGlobalThis.btoa(bin.join(""));
249
+ return globalThis.btoa(bin.join(""));
235
250
  }
236
251
  }
237
- function longToNumber(long) {
238
- if (long.gt(Number.MAX_SAFE_INTEGER)) {
239
- throw new tsProtoGlobalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
252
+ function longToNumber(int64) {
253
+ const num = globalThis.Number(int64.toString());
254
+ if (num > globalThis.Number.MAX_SAFE_INTEGER) {
255
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
240
256
  }
241
- return long.toNumber();
242
- }
243
- if (minimal_1.default.util.Long !== long_1.default) {
244
- minimal_1.default.util.Long = long_1.default;
245
- minimal_1.default.configure();
257
+ if (num < globalThis.Number.MIN_SAFE_INTEGER) {
258
+ throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
259
+ }
260
+ return num;
246
261
  }
247
262
  function isSet(value) {
248
263
  return value !== null && value !== undefined;
@@ -1,7 +1,6 @@
1
- import { GeneratedType } from "@cosmjs/proto-signing";
2
1
  import { MsgStoreCode, MsgInstantiateContract, MsgInstantiateContract2, MsgExecuteContract, MsgMigrateContract, MsgUpdateAdmin, MsgClearAdmin, MsgUpdateInstantiateConfig, MsgUpdateParams, MsgSudoContract, MsgPinCodes, MsgUnpinCodes, MsgStoreAndInstantiateContract } from "./tx";
3
2
  import { MsgIBCSend, MsgIBCCloseChannel } from "./ibc";
4
- export declare const cosmwasmRegistry: ReadonlyArray<[string, GeneratedType]>;
3
+ export declare const cosmwasmRegistry: ReadonlyArray<[string, any]>;
5
4
  /**
6
5
  * Transaction Module for the IBC Module (wasm)
7
6
  */
@@ -95,16 +95,15 @@ exports.PageRequest = {
95
95
  return obj;
96
96
  },
97
97
  create(base) {
98
- return exports.PageRequest.fromPartial(base !== null && base !== void 0 ? base : {});
98
+ return exports.PageRequest.fromPartial(base ?? {});
99
99
  },
100
100
  fromPartial(object) {
101
- var _a, _b, _c, _d, _e;
102
101
  const message = createBasePageRequest();
103
- message.key = (_a = object.key) !== null && _a !== void 0 ? _a : new Uint8Array();
104
- message.offset = (_b = object.offset) !== null && _b !== void 0 ? _b : 0;
105
- message.limit = (_c = object.limit) !== null && _c !== void 0 ? _c : 0;
106
- message.countTotal = (_d = object.countTotal) !== null && _d !== void 0 ? _d : false;
107
- message.reverse = (_e = object.reverse) !== null && _e !== void 0 ? _e : false;
102
+ message.key = object.key ?? new Uint8Array();
103
+ message.offset = object.offset ?? 0;
104
+ message.limit = object.limit ?? 0;
105
+ message.countTotal = object.countTotal ?? false;
106
+ message.reverse = object.reverse ?? false;
108
107
  return message;
109
108
  },
110
109
  };
@@ -162,13 +161,12 @@ exports.PageResponse = {
162
161
  return obj;
163
162
  },
164
163
  create(base) {
165
- return exports.PageResponse.fromPartial(base !== null && base !== void 0 ? base : {});
164
+ return exports.PageResponse.fromPartial(base ?? {});
166
165
  },
167
166
  fromPartial(object) {
168
- var _a, _b;
169
167
  const message = createBasePageResponse();
170
- message.nextKey = (_a = object.nextKey) !== null && _a !== void 0 ? _a : new Uint8Array();
171
- message.total = (_b = object.total) !== null && _b !== void 0 ? _b : 0;
168
+ message.nextKey = object.nextKey ?? new Uint8Array();
169
+ message.total = object.total ?? 0;
172
170
  return message;
173
171
  },
174
172
  };