@burnt-labs/xion-types 16.0.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 (100) hide show
  1. package/README.md +111 -0
  2. package/package.json +26 -0
  3. package/types/.gitkeep +0 -0
  4. package/types/generated/amino/amino.ts +9 -0
  5. package/types/generated/cosmos/app/v1alpha1/config.ts +336 -0
  6. package/types/generated/cosmos/app/v1alpha1/query.ts +265 -0
  7. package/types/generated/cosmos/auth/v1beta1/auth.ts +520 -0
  8. package/types/generated/cosmos/auth/v1beta1/query.ts +1852 -0
  9. package/types/generated/cosmos/authz/v1beta1/authz.ts +404 -0
  10. package/types/generated/cosmos/authz/v1beta1/query.ts +774 -0
  11. package/types/generated/cosmos/autocli/v1/options.ts +1016 -0
  12. package/types/generated/cosmos/autocli/v1/query.ts +379 -0
  13. package/types/generated/cosmos/bank/v1beta1/bank.ts +752 -0
  14. package/types/generated/cosmos/bank/v1beta1/query.ts +2789 -0
  15. package/types/generated/cosmos/base/abci/v1beta1/abci.ts +1447 -0
  16. package/types/generated/cosmos/base/node/v1beta1/query.ts +587 -0
  17. package/types/generated/cosmos/base/query/v1beta1/pagination.ts +317 -0
  18. package/types/generated/cosmos/base/tendermint/v1beta1/query.ts +2228 -0
  19. package/types/generated/cosmos/base/tendermint/v1beta1/types.ts +522 -0
  20. package/types/generated/cosmos/base/v1beta1/coin.ts +326 -0
  21. package/types/generated/cosmos/circuit/v1/query.ts +606 -0
  22. package/types/generated/cosmos/circuit/v1/types.ts +353 -0
  23. package/types/generated/cosmos/consensus/v1/query.ts +271 -0
  24. package/types/generated/cosmos/crypto/multisig/v1beta1/multisig.ts +212 -0
  25. package/types/generated/cosmos/distribution/v1beta1/distribution.ts +1143 -0
  26. package/types/generated/cosmos/distribution/v1beta1/query.ts +2005 -0
  27. package/types/generated/cosmos/evidence/v1beta1/query.ts +526 -0
  28. package/types/generated/cosmos/feegrant/v1beta1/feegrant.ts +502 -0
  29. package/types/generated/cosmos/feegrant/v1beta1/query.ts +725 -0
  30. package/types/generated/cosmos/gov/v1/gov.ts +1656 -0
  31. package/types/generated/cosmos/gov/v1/query.ts +1847 -0
  32. package/types/generated/cosmos/gov/v1beta1/gov.ts +1239 -0
  33. package/types/generated/cosmos/gov/v1beta1/query.ts +1658 -0
  34. package/types/generated/cosmos/group/v1/query.ts +2840 -0
  35. package/types/generated/cosmos/group/v1/types.ts +1803 -0
  36. package/types/generated/cosmos/ics23/v1/proofs.ts +1685 -0
  37. package/types/generated/cosmos/mint/v1beta1/mint.ts +273 -0
  38. package/types/generated/cosmos/mint/v1beta1/query.ts +589 -0
  39. package/types/generated/cosmos/msg/v1/msg.ts +9 -0
  40. package/types/generated/cosmos/nft/v1beta1/nft.ts +333 -0
  41. package/types/generated/cosmos/nft/v1beta1/query.ts +1362 -0
  42. package/types/generated/cosmos/orm/query/v1alpha1/query.ts +1016 -0
  43. package/types/generated/cosmos/params/v1beta1/params.ts +227 -0
  44. package/types/generated/cosmos/params/v1beta1/query.ts +545 -0
  45. package/types/generated/cosmos/query/v1/query.ts +9 -0
  46. package/types/generated/cosmos/slashing/v1beta1/query.ts +626 -0
  47. package/types/generated/cosmos/slashing/v1beta1/slashing.ts +409 -0
  48. package/types/generated/cosmos/staking/v1beta1/query.ts +2912 -0
  49. package/types/generated/cosmos/staking/v1beta1/staking.ts +2515 -0
  50. package/types/generated/cosmos/tx/signing/v1beta1/signing.ts +608 -0
  51. package/types/generated/cosmos/tx/v1beta1/service.ts +2111 -0
  52. package/types/generated/cosmos/tx/v1beta1/tx.ts +1613 -0
  53. package/types/generated/cosmos/upgrade/v1beta1/query.ts +1007 -0
  54. package/types/generated/cosmos/upgrade/v1beta1/upgrade.ts +507 -0
  55. package/types/generated/cosmos_proto/cosmos.ts +299 -0
  56. package/types/generated/cosmwasm/wasm/v1/query.ts +2984 -0
  57. package/types/generated/cosmwasm/wasm/v1/types.ts +962 -0
  58. package/types/generated/gogoproto/gogo.ts +9 -0
  59. package/types/generated/google/api/annotations.ts +9 -0
  60. package/types/generated/google/api/http.ts +757 -0
  61. package/types/generated/google/protobuf/any.ts +253 -0
  62. package/types/generated/google/protobuf/descriptor.ts +4958 -0
  63. package/types/generated/google/protobuf/duration.ts +186 -0
  64. package/types/generated/google/protobuf/timestamp.ts +215 -0
  65. package/types/generated/ibc/applications/fee/v1/fee.ts +391 -0
  66. package/types/generated/ibc/applications/fee/v1/genesis.ts +553 -0
  67. package/types/generated/ibc/applications/fee/v1/query.ts +2056 -0
  68. package/types/generated/ibc/applications/interchain_accounts/controller/v1/controller.ts +100 -0
  69. package/types/generated/ibc/applications/interchain_accounts/controller/v1/query.ts +447 -0
  70. package/types/generated/ibc/applications/interchain_accounts/host/v1/host.ts +235 -0
  71. package/types/generated/ibc/applications/interchain_accounts/host/v1/query.ts +265 -0
  72. package/types/generated/ibc/applications/transfer/v1/query.ts +1135 -0
  73. package/types/generated/ibc/applications/transfer/v1/transfer.ts +213 -0
  74. package/types/generated/ibc/core/channel/v1/channel.ts +1329 -0
  75. package/types/generated/ibc/core/channel/v1/query.ts +4214 -0
  76. package/types/generated/ibc/core/channel/v1/upgrade.ts +330 -0
  77. package/types/generated/ibc/core/client/v1/client.ts +726 -0
  78. package/types/generated/ibc/core/client/v1/query.ts +2208 -0
  79. package/types/generated/ibc/core/commitment/v1/commitment.ts +329 -0
  80. package/types/generated/ibc/core/connection/v1/connection.ts +813 -0
  81. package/types/generated/ibc/core/connection/v1/query.ts +1442 -0
  82. package/types/generated/ibc/lightclients/wasm/v1/query.ts +484 -0
  83. package/types/generated/tendermint/abci/types.ts +6429 -0
  84. package/types/generated/tendermint/crypto/keys.ts +137 -0
  85. package/types/generated/tendermint/crypto/proof.ts +506 -0
  86. package/types/generated/tendermint/p2p/types.ts +514 -0
  87. package/types/generated/tendermint/types/block.ts +151 -0
  88. package/types/generated/tendermint/types/evidence.ts +493 -0
  89. package/types/generated/tendermint/types/params.ts +687 -0
  90. package/types/generated/tendermint/types/types.ts +2069 -0
  91. package/types/generated/tendermint/types/validator.ts +409 -0
  92. package/types/generated/tendermint/version/types.ts +202 -0
  93. package/types/generated/xion/globalfee/v1/genesis.ts +219 -0
  94. package/types/generated/xion/globalfee/v1/query.ts +269 -0
  95. package/types/generated/xion/jwk/v1/audience.ts +188 -0
  96. package/types/generated/xion/jwk/v1/params.ts +118 -0
  97. package/types/generated/xion/jwk/v1/query.ts +1061 -0
  98. package/types/generated/xion/mint/v1/mint.ts +273 -0
  99. package/types/generated/xion/mint/v1/query.ts +589 -0
  100. package/types/generated/xion/v1/query.ts +878 -0
@@ -0,0 +1,273 @@
1
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
2
+ // versions:
3
+ // protoc-gen-ts_proto v1.181.2
4
+ // protoc unknown
5
+ // source: cosmos/mint/v1beta1/mint.proto
6
+
7
+ /* eslint-disable */
8
+ import Long from "long";
9
+ import _m0 from "protobufjs/minimal";
10
+
11
+ export const protobufPackage = "cosmos.mint.v1beta1";
12
+
13
+ /** Minter represents the minting state. */
14
+ export interface Minter {
15
+ /** current annual inflation rate */
16
+ inflation: string;
17
+ /** current annual expected provisions */
18
+ annualProvisions: string;
19
+ }
20
+
21
+ /** Params defines the parameters for the x/mint module. */
22
+ export interface Params {
23
+ /** type of coin to mint */
24
+ mintDenom: string;
25
+ /** maximum annual change in inflation rate */
26
+ inflationRateChange: string;
27
+ /** maximum inflation rate */
28
+ inflationMax: string;
29
+ /** minimum inflation rate */
30
+ inflationMin: string;
31
+ /** goal of percent bonded atoms */
32
+ goalBonded: string;
33
+ /** expected blocks per year */
34
+ blocksPerYear: Long;
35
+ }
36
+
37
+ function createBaseMinter(): Minter {
38
+ return { inflation: "", annualProvisions: "" };
39
+ }
40
+
41
+ export const Minter = {
42
+ encode(message: Minter, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
43
+ if (message.inflation !== "") {
44
+ writer.uint32(10).string(message.inflation);
45
+ }
46
+ if (message.annualProvisions !== "") {
47
+ writer.uint32(18).string(message.annualProvisions);
48
+ }
49
+ return writer;
50
+ },
51
+
52
+ decode(input: _m0.Reader | Uint8Array, length?: number): Minter {
53
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
54
+ let end = length === undefined ? reader.len : reader.pos + length;
55
+ const message = createBaseMinter();
56
+ while (reader.pos < end) {
57
+ const tag = reader.uint32();
58
+ switch (tag >>> 3) {
59
+ case 1:
60
+ if (tag !== 10) {
61
+ break;
62
+ }
63
+
64
+ message.inflation = reader.string();
65
+ continue;
66
+ case 2:
67
+ if (tag !== 18) {
68
+ break;
69
+ }
70
+
71
+ message.annualProvisions = reader.string();
72
+ continue;
73
+ }
74
+ if ((tag & 7) === 4 || tag === 0) {
75
+ break;
76
+ }
77
+ reader.skipType(tag & 7);
78
+ }
79
+ return message;
80
+ },
81
+
82
+ fromJSON(object: any): Minter {
83
+ return {
84
+ inflation: isSet(object.inflation) ? globalThis.String(object.inflation) : "",
85
+ annualProvisions: isSet(object.annualProvisions) ? globalThis.String(object.annualProvisions) : "",
86
+ };
87
+ },
88
+
89
+ toJSON(message: Minter): unknown {
90
+ const obj: any = {};
91
+ if (message.inflation !== "") {
92
+ obj.inflation = message.inflation;
93
+ }
94
+ if (message.annualProvisions !== "") {
95
+ obj.annualProvisions = message.annualProvisions;
96
+ }
97
+ return obj;
98
+ },
99
+
100
+ create<I extends Exact<DeepPartial<Minter>, I>>(base?: I): Minter {
101
+ return Minter.fromPartial(base ?? ({} as any));
102
+ },
103
+ fromPartial<I extends Exact<DeepPartial<Minter>, I>>(object: I): Minter {
104
+ const message = createBaseMinter();
105
+ message.inflation = object.inflation ?? "";
106
+ message.annualProvisions = object.annualProvisions ?? "";
107
+ return message;
108
+ },
109
+ };
110
+
111
+ function createBaseParams(): Params {
112
+ return {
113
+ mintDenom: "",
114
+ inflationRateChange: "",
115
+ inflationMax: "",
116
+ inflationMin: "",
117
+ goalBonded: "",
118
+ blocksPerYear: Long.UZERO,
119
+ };
120
+ }
121
+
122
+ export const Params = {
123
+ encode(message: Params, writer: _m0.Writer = _m0.Writer.create()): _m0.Writer {
124
+ if (message.mintDenom !== "") {
125
+ writer.uint32(10).string(message.mintDenom);
126
+ }
127
+ if (message.inflationRateChange !== "") {
128
+ writer.uint32(18).string(message.inflationRateChange);
129
+ }
130
+ if (message.inflationMax !== "") {
131
+ writer.uint32(26).string(message.inflationMax);
132
+ }
133
+ if (message.inflationMin !== "") {
134
+ writer.uint32(34).string(message.inflationMin);
135
+ }
136
+ if (message.goalBonded !== "") {
137
+ writer.uint32(42).string(message.goalBonded);
138
+ }
139
+ if (!message.blocksPerYear.equals(Long.UZERO)) {
140
+ writer.uint32(48).uint64(message.blocksPerYear);
141
+ }
142
+ return writer;
143
+ },
144
+
145
+ decode(input: _m0.Reader | Uint8Array, length?: number): Params {
146
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
147
+ let end = length === undefined ? reader.len : reader.pos + length;
148
+ const message = createBaseParams();
149
+ while (reader.pos < end) {
150
+ const tag = reader.uint32();
151
+ switch (tag >>> 3) {
152
+ case 1:
153
+ if (tag !== 10) {
154
+ break;
155
+ }
156
+
157
+ message.mintDenom = reader.string();
158
+ continue;
159
+ case 2:
160
+ if (tag !== 18) {
161
+ break;
162
+ }
163
+
164
+ message.inflationRateChange = reader.string();
165
+ continue;
166
+ case 3:
167
+ if (tag !== 26) {
168
+ break;
169
+ }
170
+
171
+ message.inflationMax = reader.string();
172
+ continue;
173
+ case 4:
174
+ if (tag !== 34) {
175
+ break;
176
+ }
177
+
178
+ message.inflationMin = reader.string();
179
+ continue;
180
+ case 5:
181
+ if (tag !== 42) {
182
+ break;
183
+ }
184
+
185
+ message.goalBonded = reader.string();
186
+ continue;
187
+ case 6:
188
+ if (tag !== 48) {
189
+ break;
190
+ }
191
+
192
+ message.blocksPerYear = reader.uint64() as Long;
193
+ continue;
194
+ }
195
+ if ((tag & 7) === 4 || tag === 0) {
196
+ break;
197
+ }
198
+ reader.skipType(tag & 7);
199
+ }
200
+ return message;
201
+ },
202
+
203
+ fromJSON(object: any): Params {
204
+ return {
205
+ mintDenom: isSet(object.mintDenom) ? globalThis.String(object.mintDenom) : "",
206
+ inflationRateChange: isSet(object.inflationRateChange) ? globalThis.String(object.inflationRateChange) : "",
207
+ inflationMax: isSet(object.inflationMax) ? globalThis.String(object.inflationMax) : "",
208
+ inflationMin: isSet(object.inflationMin) ? globalThis.String(object.inflationMin) : "",
209
+ goalBonded: isSet(object.goalBonded) ? globalThis.String(object.goalBonded) : "",
210
+ blocksPerYear: isSet(object.blocksPerYear) ? Long.fromValue(object.blocksPerYear) : Long.UZERO,
211
+ };
212
+ },
213
+
214
+ toJSON(message: Params): unknown {
215
+ const obj: any = {};
216
+ if (message.mintDenom !== "") {
217
+ obj.mintDenom = message.mintDenom;
218
+ }
219
+ if (message.inflationRateChange !== "") {
220
+ obj.inflationRateChange = message.inflationRateChange;
221
+ }
222
+ if (message.inflationMax !== "") {
223
+ obj.inflationMax = message.inflationMax;
224
+ }
225
+ if (message.inflationMin !== "") {
226
+ obj.inflationMin = message.inflationMin;
227
+ }
228
+ if (message.goalBonded !== "") {
229
+ obj.goalBonded = message.goalBonded;
230
+ }
231
+ if (!message.blocksPerYear.equals(Long.UZERO)) {
232
+ obj.blocksPerYear = (message.blocksPerYear || Long.UZERO).toString();
233
+ }
234
+ return obj;
235
+ },
236
+
237
+ create<I extends Exact<DeepPartial<Params>, I>>(base?: I): Params {
238
+ return Params.fromPartial(base ?? ({} as any));
239
+ },
240
+ fromPartial<I extends Exact<DeepPartial<Params>, I>>(object: I): Params {
241
+ const message = createBaseParams();
242
+ message.mintDenom = object.mintDenom ?? "";
243
+ message.inflationRateChange = object.inflationRateChange ?? "";
244
+ message.inflationMax = object.inflationMax ?? "";
245
+ message.inflationMin = object.inflationMin ?? "";
246
+ message.goalBonded = object.goalBonded ?? "";
247
+ message.blocksPerYear = (object.blocksPerYear !== undefined && object.blocksPerYear !== null)
248
+ ? Long.fromValue(object.blocksPerYear)
249
+ : Long.UZERO;
250
+ return message;
251
+ },
252
+ };
253
+
254
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
255
+
256
+ export type DeepPartial<T> = T extends Builtin ? T
257
+ : T extends Long ? string | number | Long : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>>
258
+ : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>>
259
+ : T extends {} ? { [K in keyof T]?: DeepPartial<T[K]> }
260
+ : Partial<T>;
261
+
262
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
263
+ export type Exact<P, I extends P> = P extends Builtin ? P
264
+ : P & { [K in keyof P]: Exact<P[K], I[K]> } & { [K in Exclude<keyof I, KeysOfUnion<P>>]: never };
265
+
266
+ if (_m0.util.Long !== Long) {
267
+ _m0.util.Long = Long as any;
268
+ _m0.configure();
269
+ }
270
+
271
+ function isSet(value: any): boolean {
272
+ return value !== null && value !== undefined;
273
+ }