atlas.js-protos 0.1.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 (195) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +85 -0
  3. package/dist/filetree/index.d.ts +2 -0
  4. package/dist/filetree/index.js +8 -0
  5. package/dist/filetree/index.mjs +3 -0
  6. package/dist/filetree/query.d.ts +1 -0
  7. package/dist/filetree/query.js +13 -0
  8. package/dist/filetree/query.mjs +2 -0
  9. package/dist/filetree/tx.d.ts +1 -0
  10. package/dist/filetree/tx.js +11 -0
  11. package/dist/filetree/tx.mjs +2 -0
  12. package/dist/index.d.ts +1 -0
  13. package/dist/index.js +17 -0
  14. package/dist/index.mjs +1 -0
  15. package/dist/storage/index.d.ts +5 -0
  16. package/dist/storage/index.js +16 -0
  17. package/dist/storage/index.mjs +6 -0
  18. package/dist/storage/query.d.ts +1 -0
  19. package/dist/storage/query.js +27 -0
  20. package/dist/storage/query.mjs +2 -0
  21. package/dist/storage/tx.d.ts +1 -0
  22. package/dist/storage/tx.js +21 -0
  23. package/dist/storage/tx.mjs +2 -0
  24. package/dist/types/amino/amino.d.ts +1 -0
  25. package/dist/types/amino/amino.js +2 -0
  26. package/dist/types/amino/amino.mjs +1 -0
  27. package/dist/types/amino/bundle.d.ts +1 -0
  28. package/dist/types/amino/bundle.js +41 -0
  29. package/dist/types/amino/bundle.mjs +5 -0
  30. package/dist/types/atlas/bundle.d.ts +905 -0
  31. package/dist/types/atlas/bundle.js +98 -0
  32. package/dist/types/atlas/bundle.mjs +62 -0
  33. package/dist/types/atlas/filetree/v1/genesis.d.ts +45 -0
  34. package/dist/types/atlas/filetree/v1/genesis.js +107 -0
  35. package/dist/types/atlas/filetree/v1/genesis.mjs +71 -0
  36. package/dist/types/atlas/filetree/v1/params.d.ts +40 -0
  37. package/dist/types/atlas/filetree/v1/params.js +94 -0
  38. package/dist/types/atlas/filetree/v1/params.mjs +58 -0
  39. package/dist/types/atlas/filetree/v1/query.d.ts +330 -0
  40. package/dist/types/atlas/filetree/v1/query.js +567 -0
  41. package/dist/types/atlas/filetree/v1/query.mjs +531 -0
  42. package/dist/types/atlas/filetree/v1/query.rpc.Query.d.ts +28 -0
  43. package/dist/types/atlas/filetree/v1/query.rpc.Query.js +89 -0
  44. package/dist/types/atlas/filetree/v1/query.rpc.Query.mjs +51 -0
  45. package/dist/types/atlas/filetree/v1/query.rpc.func.d.ts +29 -0
  46. package/dist/types/atlas/filetree/v1/query.rpc.func.js +58 -0
  47. package/dist/types/atlas/filetree/v1/query.rpc.func.mjs +55 -0
  48. package/dist/types/atlas/filetree/v1/tree.d.ts +44 -0
  49. package/dist/types/atlas/filetree/v1/tree.js +124 -0
  50. package/dist/types/atlas/filetree/v1/tree.mjs +88 -0
  51. package/dist/types/atlas/filetree/v1/tx.d.ts +260 -0
  52. package/dist/types/atlas/filetree/v1/tx.js +449 -0
  53. package/dist/types/atlas/filetree/v1/tx.mjs +413 -0
  54. package/dist/types/atlas/filetree/v1/tx.rpc.func.d.ts +23 -0
  55. package/dist/types/atlas/filetree/v1/tx.rpc.func.js +34 -0
  56. package/dist/types/atlas/filetree/v1/tx.rpc.func.mjs +31 -0
  57. package/dist/types/atlas/filetree/v1/tx.rpc.msg.d.ts +22 -0
  58. package/dist/types/atlas/filetree/v1/tx.rpc.msg.js +67 -0
  59. package/dist/types/atlas/filetree/v1/tx.rpc.msg.mjs +29 -0
  60. package/dist/types/atlas/rpc.query.d.ts +49 -0
  61. package/dist/types/atlas/rpc.query.js +59 -0
  62. package/dist/types/atlas/rpc.query.mjs +22 -0
  63. package/dist/types/atlas/rpc.tx.d.ts +18 -0
  64. package/dist/types/atlas/rpc.tx.js +52 -0
  65. package/dist/types/atlas/rpc.tx.mjs +15 -0
  66. package/dist/types/atlas/storage/v1/file.d.ts +59 -0
  67. package/dist/types/atlas/storage/v1/file.js +173 -0
  68. package/dist/types/atlas/storage/v1/file.mjs +137 -0
  69. package/dist/types/atlas/storage/v1/genesis.d.ts +45 -0
  70. package/dist/types/atlas/storage/v1/genesis.js +107 -0
  71. package/dist/types/atlas/storage/v1/genesis.mjs +71 -0
  72. package/dist/types/atlas/storage/v1/params.d.ts +48 -0
  73. package/dist/types/atlas/storage/v1/params.js +127 -0
  74. package/dist/types/atlas/storage/v1/params.mjs +91 -0
  75. package/dist/types/atlas/storage/v1/proof.d.ts +145 -0
  76. package/dist/types/atlas/storage/v1/proof.js +318 -0
  77. package/dist/types/atlas/storage/v1/proof.mjs +282 -0
  78. package/dist/types/atlas/storage/v1/provider.d.ts +51 -0
  79. package/dist/types/atlas/storage/v1/provider.js +141 -0
  80. package/dist/types/atlas/storage/v1/provider.mjs +105 -0
  81. package/dist/types/atlas/storage/v1/query.d.ts +914 -0
  82. package/dist/types/atlas/storage/v1/query.js +1570 -0
  83. package/dist/types/atlas/storage/v1/query.mjs +1534 -0
  84. package/dist/types/atlas/storage/v1/query.rpc.Query.d.ts +56 -0
  85. package/dist/types/atlas/storage/v1/query.rpc.Query.js +154 -0
  86. package/dist/types/atlas/storage/v1/query.rpc.Query.mjs +116 -0
  87. package/dist/types/atlas/storage/v1/query.rpc.func.d.ts +78 -0
  88. package/dist/types/atlas/storage/v1/query.rpc.func.js +149 -0
  89. package/dist/types/atlas/storage/v1/query.rpc.func.mjs +146 -0
  90. package/dist/types/atlas/storage/v1/subscription.d.ts +55 -0
  91. package/dist/types/atlas/storage/v1/subscription.js +159 -0
  92. package/dist/types/atlas/storage/v1/subscription.mjs +123 -0
  93. package/dist/types/atlas/storage/v1/tx.d.ts +694 -0
  94. package/dist/types/atlas/storage/v1/tx.js +1203 -0
  95. package/dist/types/atlas/storage/v1/tx.mjs +1167 -0
  96. package/dist/types/atlas/storage/v1/tx.rpc.func.d.ts +56 -0
  97. package/dist/types/atlas/storage/v1/tx.rpc.func.js +77 -0
  98. package/dist/types/atlas/storage/v1/tx.rpc.func.mjs +74 -0
  99. package/dist/types/atlas/storage/v1/tx.rpc.msg.d.ts +35 -0
  100. package/dist/types/atlas/storage/v1/tx.rpc.msg.js +97 -0
  101. package/dist/types/atlas/storage/v1/tx.rpc.msg.mjs +59 -0
  102. package/dist/types/cosmos/bank/v1beta1/authz.d.ts +62 -0
  103. package/dist/types/cosmos/bank/v1beta1/authz.js +123 -0
  104. package/dist/types/cosmos/bank/v1beta1/authz.mjs +87 -0
  105. package/dist/types/cosmos/bank/v1beta1/bank.d.ts +391 -0
  106. package/dist/types/cosmos/bank/v1beta1/bank.js +626 -0
  107. package/dist/types/cosmos/bank/v1beta1/bank.mjs +590 -0
  108. package/dist/types/cosmos/bank/v1beta1/genesis.d.ts +122 -0
  109. package/dist/types/cosmos/bank/v1beta1/genesis.js +224 -0
  110. package/dist/types/cosmos/bank/v1beta1/genesis.mjs +188 -0
  111. package/dist/types/cosmos/bank/v1beta1/query.d.ts +1377 -0
  112. package/dist/types/cosmos/bank/v1beta1/query.js +2038 -0
  113. package/dist/types/cosmos/bank/v1beta1/query.mjs +2002 -0
  114. package/dist/types/cosmos/bank/v1beta1/query.rpc.Query.d.ts +119 -0
  115. package/dist/types/cosmos/bank/v1beta1/query.rpc.Query.js +174 -0
  116. package/dist/types/cosmos/bank/v1beta1/query.rpc.Query.mjs +136 -0
  117. package/dist/types/cosmos/bank/v1beta1/query.rpc.func.d.ts +129 -0
  118. package/dist/types/cosmos/bank/v1beta1/query.rpc.func.js +212 -0
  119. package/dist/types/cosmos/bank/v1beta1/query.rpc.func.mjs +209 -0
  120. package/dist/types/cosmos/bank/v1beta1/tx.d.ts +398 -0
  121. package/dist/types/cosmos/bank/v1beta1/tx.js +599 -0
  122. package/dist/types/cosmos/bank/v1beta1/tx.mjs +563 -0
  123. package/dist/types/cosmos/bank/v1beta1/tx.rpc.func.d.ts +37 -0
  124. package/dist/types/cosmos/bank/v1beta1/tx.rpc.func.js +50 -0
  125. package/dist/types/cosmos/bank/v1beta1/tx.rpc.func.mjs +47 -0
  126. package/dist/types/cosmos/bank/v1beta1/tx.rpc.msg.d.ts +34 -0
  127. package/dist/types/cosmos/bank/v1beta1/tx.rpc.msg.js +73 -0
  128. package/dist/types/cosmos/bank/v1beta1/tx.rpc.msg.mjs +35 -0
  129. package/dist/types/cosmos/base/query/v1beta1/pagination.d.ts +163 -0
  130. package/dist/types/cosmos/base/query/v1beta1/pagination.js +219 -0
  131. package/dist/types/cosmos/base/query/v1beta1/pagination.mjs +183 -0
  132. package/dist/types/cosmos/base/v1beta1/coin.d.ts +193 -0
  133. package/dist/types/cosmos/base/v1beta1/coin.js +320 -0
  134. package/dist/types/cosmos/base/v1beta1/coin.mjs +284 -0
  135. package/dist/types/cosmos/bundle.d.ts +761 -0
  136. package/dist/types/cosmos/bundle.js +97 -0
  137. package/dist/types/cosmos/bundle.mjs +61 -0
  138. package/dist/types/cosmos/msg/v1/msg.d.ts +1 -0
  139. package/dist/types/cosmos/msg/v1/msg.js +2 -0
  140. package/dist/types/cosmos/msg/v1/msg.mjs +1 -0
  141. package/dist/types/cosmos/query/v1/query.d.ts +1 -0
  142. package/dist/types/cosmos/query/v1/query.js +2 -0
  143. package/dist/types/cosmos/query/v1/query.mjs +1 -0
  144. package/dist/types/cosmos/rpc.query.d.ts +24 -0
  145. package/dist/types/cosmos/rpc.query.js +51 -0
  146. package/dist/types/cosmos/rpc.query.mjs +14 -0
  147. package/dist/types/cosmos/rpc.tx.d.ts +10 -0
  148. package/dist/types/cosmos/rpc.tx.js +44 -0
  149. package/dist/types/cosmos/rpc.tx.mjs +7 -0
  150. package/dist/types/cosmos_proto/bundle.d.ts +31 -0
  151. package/dist/types/cosmos_proto/bundle.js +41 -0
  152. package/dist/types/cosmos_proto/bundle.mjs +5 -0
  153. package/dist/types/cosmos_proto/cosmos.d.ts +144 -0
  154. package/dist/types/cosmos_proto/cosmos.js +244 -0
  155. package/dist/types/cosmos_proto/cosmos.mjs +206 -0
  156. package/dist/types/extern.d.ts +11 -0
  157. package/dist/types/extern.js +47 -0
  158. package/dist/types/extern.mjs +41 -0
  159. package/dist/types/gogoproto/bundle.d.ts +1 -0
  160. package/dist/types/gogoproto/bundle.js +41 -0
  161. package/dist/types/gogoproto/bundle.mjs +5 -0
  162. package/dist/types/gogoproto/gogo.d.ts +1 -0
  163. package/dist/types/gogoproto/gogo.js +2 -0
  164. package/dist/types/gogoproto/gogo.mjs +1 -0
  165. package/dist/types/google/api/annotations.d.ts +1 -0
  166. package/dist/types/google/api/annotations.js +2 -0
  167. package/dist/types/google/api/annotations.mjs +1 -0
  168. package/dist/types/google/api/http.d.ts +1006 -0
  169. package/dist/types/google/api/http.js +589 -0
  170. package/dist/types/google/api/http.mjs +553 -0
  171. package/dist/types/google/bundle.d.ts +545 -0
  172. package/dist/types/google/bundle.js +52 -0
  173. package/dist/types/google/bundle.mjs +16 -0
  174. package/dist/types/google/protobuf/descriptor.d.ts +2755 -0
  175. package/dist/types/google/protobuf/descriptor.js +4612 -0
  176. package/dist/types/google/protobuf/descriptor.mjs +4535 -0
  177. package/dist/types/google/protobuf/timestamp.d.ts +319 -0
  178. package/dist/types/google/protobuf/timestamp.js +197 -0
  179. package/dist/types/google/protobuf/timestamp.mjs +161 -0
  180. package/dist/types/helper-func-types.d.ts +40 -0
  181. package/dist/types/helper-func-types.js +57 -0
  182. package/dist/types/helper-func-types.mjs +53 -0
  183. package/dist/types/helpers.d.ts +56 -0
  184. package/dist/types/helpers.js +161 -0
  185. package/dist/types/helpers.mjs +110 -0
  186. package/dist/types/index.d.ts +15 -0
  187. package/dist/types/index.js +32 -0
  188. package/dist/types/index.mjs +16 -0
  189. package/dist/types/registry.d.ts +35 -0
  190. package/dist/types/registry.js +200 -0
  191. package/dist/types/registry.mjs +163 -0
  192. package/dist/types/types.d.ts +74 -0
  193. package/dist/types/types.js +8 -0
  194. package/dist/types/types.mjs +7 -0
  195. package/package.json +97 -0
@@ -0,0 +1,284 @@
1
+ //@ts-nocheck
2
+ import * as _m0 from "protobufjs/minimal";
3
+ import { GlobalDecoderRegistry } from "../../../registry";
4
+ import { Decimal } from "@interchainjs/math";
5
+ function createBaseCoin() {
6
+ return {
7
+ denom: "",
8
+ amount: ""
9
+ };
10
+ }
11
+ /**
12
+ * Coin defines a token with a denomination and an amount.
13
+ *
14
+ * NOTE: The amount field is an Int which implements the custom method
15
+ * signatures required by gogoproto.
16
+ * @name Coin
17
+ * @package cosmos.base.v1beta1
18
+ * @see proto type: cosmos.base.v1beta1.Coin
19
+ */
20
+ export const Coin = {
21
+ typeUrl: "/cosmos.base.v1beta1.Coin",
22
+ aminoType: "cosmos-sdk/Coin",
23
+ is(o) {
24
+ return o && (o.$typeUrl === Coin.typeUrl || typeof o.denom === "string" && typeof o.amount === "string");
25
+ },
26
+ isSDK(o) {
27
+ return o && (o.$typeUrl === Coin.typeUrl || typeof o.denom === "string" && typeof o.amount === "string");
28
+ },
29
+ encode(message, writer = _m0.Writer.create()) {
30
+ if (message.denom !== "") {
31
+ writer.uint32(10).string(message.denom);
32
+ }
33
+ if (message.amount !== "") {
34
+ writer.uint32(18).string(message.amount);
35
+ }
36
+ return writer;
37
+ },
38
+ decode(input, length) {
39
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
40
+ let end = length === undefined ? reader.len : reader.pos + length;
41
+ const message = createBaseCoin();
42
+ while (reader.pos < end) {
43
+ const tag = reader.uint32();
44
+ switch (tag >>> 3) {
45
+ case 1:
46
+ message.denom = reader.string();
47
+ break;
48
+ case 2:
49
+ message.amount = reader.string();
50
+ break;
51
+ default:
52
+ reader.skipType(tag & 7);
53
+ break;
54
+ }
55
+ }
56
+ return message;
57
+ },
58
+ fromPartial(object) {
59
+ const message = createBaseCoin();
60
+ message.denom = object.denom ?? "";
61
+ message.amount = object.amount ?? "";
62
+ return message;
63
+ },
64
+ fromProtoMsg(message) {
65
+ return Coin.decode(message.value);
66
+ },
67
+ toProto(message) {
68
+ return Coin.encode(message).finish();
69
+ },
70
+ toProtoMsg(message) {
71
+ return {
72
+ typeUrl: "/cosmos.base.v1beta1.Coin",
73
+ value: Coin.encode(message).finish()
74
+ };
75
+ },
76
+ registerTypeUrl() { }
77
+ };
78
+ GlobalDecoderRegistry.register(Coin.typeUrl, Coin);
79
+ GlobalDecoderRegistry.registerAminoProtoMapping(Coin.aminoType, Coin.typeUrl);
80
+ function createBaseDecCoin() {
81
+ return {
82
+ denom: "",
83
+ amount: ""
84
+ };
85
+ }
86
+ /**
87
+ * DecCoin defines a token with a denomination and a decimal amount.
88
+ *
89
+ * NOTE: The amount field is an Dec which implements the custom method
90
+ * signatures required by gogoproto.
91
+ * @name DecCoin
92
+ * @package cosmos.base.v1beta1
93
+ * @see proto type: cosmos.base.v1beta1.DecCoin
94
+ */
95
+ export const DecCoin = {
96
+ typeUrl: "/cosmos.base.v1beta1.DecCoin",
97
+ aminoType: "cosmos-sdk/DecCoin",
98
+ is(o) {
99
+ return o && (o.$typeUrl === DecCoin.typeUrl || typeof o.denom === "string" && typeof o.amount === "string");
100
+ },
101
+ isSDK(o) {
102
+ return o && (o.$typeUrl === DecCoin.typeUrl || typeof o.denom === "string" && typeof o.amount === "string");
103
+ },
104
+ encode(message, writer = _m0.Writer.create()) {
105
+ if (message.denom !== "") {
106
+ writer.uint32(10).string(message.denom);
107
+ }
108
+ if (message.amount !== "") {
109
+ writer.uint32(18).string(Decimal.fromUserInput(message.amount, 18).atomics);
110
+ }
111
+ return writer;
112
+ },
113
+ decode(input, length) {
114
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
115
+ let end = length === undefined ? reader.len : reader.pos + length;
116
+ const message = createBaseDecCoin();
117
+ while (reader.pos < end) {
118
+ const tag = reader.uint32();
119
+ switch (tag >>> 3) {
120
+ case 1:
121
+ message.denom = reader.string();
122
+ break;
123
+ case 2:
124
+ message.amount = Decimal.fromAtomics(reader.string(), 18).toString();
125
+ break;
126
+ default:
127
+ reader.skipType(tag & 7);
128
+ break;
129
+ }
130
+ }
131
+ return message;
132
+ },
133
+ fromPartial(object) {
134
+ const message = createBaseDecCoin();
135
+ message.denom = object.denom ?? "";
136
+ message.amount = object.amount ?? "";
137
+ return message;
138
+ },
139
+ fromProtoMsg(message) {
140
+ return DecCoin.decode(message.value);
141
+ },
142
+ toProto(message) {
143
+ return DecCoin.encode(message).finish();
144
+ },
145
+ toProtoMsg(message) {
146
+ return {
147
+ typeUrl: "/cosmos.base.v1beta1.DecCoin",
148
+ value: DecCoin.encode(message).finish()
149
+ };
150
+ },
151
+ registerTypeUrl() { }
152
+ };
153
+ GlobalDecoderRegistry.register(DecCoin.typeUrl, DecCoin);
154
+ GlobalDecoderRegistry.registerAminoProtoMapping(DecCoin.aminoType, DecCoin.typeUrl);
155
+ function createBaseIntProto() {
156
+ return {
157
+ int: ""
158
+ };
159
+ }
160
+ /**
161
+ * IntProto defines a Protobuf wrapper around an Int object.
162
+ * Deprecated: Prefer to use math.Int directly. It supports binary Marshal and Unmarshal.
163
+ * @name IntProto
164
+ * @package cosmos.base.v1beta1
165
+ * @see proto type: cosmos.base.v1beta1.IntProto
166
+ */
167
+ export const IntProto = {
168
+ typeUrl: "/cosmos.base.v1beta1.IntProto",
169
+ aminoType: "cosmos-sdk/IntProto",
170
+ is(o) {
171
+ return o && (o.$typeUrl === IntProto.typeUrl || typeof o.int === "string");
172
+ },
173
+ isSDK(o) {
174
+ return o && (o.$typeUrl === IntProto.typeUrl || typeof o.int === "string");
175
+ },
176
+ encode(message, writer = _m0.Writer.create()) {
177
+ if (message.int !== "") {
178
+ writer.uint32(10).string(message.int);
179
+ }
180
+ return writer;
181
+ },
182
+ decode(input, length) {
183
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
184
+ let end = length === undefined ? reader.len : reader.pos + length;
185
+ const message = createBaseIntProto();
186
+ while (reader.pos < end) {
187
+ const tag = reader.uint32();
188
+ switch (tag >>> 3) {
189
+ case 1:
190
+ message.int = reader.string();
191
+ break;
192
+ default:
193
+ reader.skipType(tag & 7);
194
+ break;
195
+ }
196
+ }
197
+ return message;
198
+ },
199
+ fromPartial(object) {
200
+ const message = createBaseIntProto();
201
+ message.int = object.int ?? "";
202
+ return message;
203
+ },
204
+ fromProtoMsg(message) {
205
+ return IntProto.decode(message.value);
206
+ },
207
+ toProto(message) {
208
+ return IntProto.encode(message).finish();
209
+ },
210
+ toProtoMsg(message) {
211
+ return {
212
+ typeUrl: "/cosmos.base.v1beta1.IntProto",
213
+ value: IntProto.encode(message).finish()
214
+ };
215
+ },
216
+ registerTypeUrl() { }
217
+ };
218
+ GlobalDecoderRegistry.register(IntProto.typeUrl, IntProto);
219
+ GlobalDecoderRegistry.registerAminoProtoMapping(IntProto.aminoType, IntProto.typeUrl);
220
+ function createBaseDecProto() {
221
+ return {
222
+ dec: ""
223
+ };
224
+ }
225
+ /**
226
+ * DecProto defines a Protobuf wrapper around a Dec object.
227
+ * Deprecated: Prefer to use math.LegacyDec directly. It supports binary Marshal and Unmarshal.
228
+ * @name DecProto
229
+ * @package cosmos.base.v1beta1
230
+ * @see proto type: cosmos.base.v1beta1.DecProto
231
+ */
232
+ export const DecProto = {
233
+ typeUrl: "/cosmos.base.v1beta1.DecProto",
234
+ aminoType: "cosmos-sdk/DecProto",
235
+ is(o) {
236
+ return o && (o.$typeUrl === DecProto.typeUrl || typeof o.dec === "string");
237
+ },
238
+ isSDK(o) {
239
+ return o && (o.$typeUrl === DecProto.typeUrl || typeof o.dec === "string");
240
+ },
241
+ encode(message, writer = _m0.Writer.create()) {
242
+ if (message.dec !== "") {
243
+ writer.uint32(10).string(Decimal.fromUserInput(message.dec, 18).atomics);
244
+ }
245
+ return writer;
246
+ },
247
+ decode(input, length) {
248
+ const reader = input instanceof _m0.Reader ? input : new _m0.Reader(input);
249
+ let end = length === undefined ? reader.len : reader.pos + length;
250
+ const message = createBaseDecProto();
251
+ while (reader.pos < end) {
252
+ const tag = reader.uint32();
253
+ switch (tag >>> 3) {
254
+ case 1:
255
+ message.dec = Decimal.fromAtomics(reader.string(), 18).toString();
256
+ break;
257
+ default:
258
+ reader.skipType(tag & 7);
259
+ break;
260
+ }
261
+ }
262
+ return message;
263
+ },
264
+ fromPartial(object) {
265
+ const message = createBaseDecProto();
266
+ message.dec = object.dec ?? "";
267
+ return message;
268
+ },
269
+ fromProtoMsg(message) {
270
+ return DecProto.decode(message.value);
271
+ },
272
+ toProto(message) {
273
+ return DecProto.encode(message).finish();
274
+ },
275
+ toProtoMsg(message) {
276
+ return {
277
+ typeUrl: "/cosmos.base.v1beta1.DecProto",
278
+ value: DecProto.encode(message).finish()
279
+ };
280
+ },
281
+ registerTypeUrl() { }
282
+ };
283
+ GlobalDecoderRegistry.register(DecProto.typeUrl, DecProto);
284
+ GlobalDecoderRegistry.registerAminoProtoMapping(DecProto.aminoType, DecProto.typeUrl);