decentralcardgame-cardchain-client-ts 0.0.36 → 0.0.37

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 (141) hide show
  1. package/amino_adapter.d.ts +9 -0
  2. package/amino_adapter.js +22 -0
  3. package/cardchain.cardchain/module.js +53 -52
  4. package/cardchain.featureflag/module.js +3 -2
  5. package/client.js +2 -2
  6. package/cosmos.auth.v1beta1/module.js +2 -1
  7. package/cosmos.authz.v1beta1/module.js +4 -3
  8. package/cosmos.bank.v1beta1/module.js +5 -4
  9. package/cosmos.bank.v1beta1/rest.d.ts +20 -20
  10. package/cosmos.bank.v1beta1/rest.js +16 -16
  11. package/cosmos.circuit.v1/module.js +4 -3
  12. package/cosmos.consensus.v1/module.js +2 -1
  13. package/cosmos.crisis.v1beta1/module.js +3 -2
  14. package/cosmos.distribution.v1beta1/module.js +8 -7
  15. package/cosmos.evidence.v1beta1/module.js +2 -1
  16. package/cosmos.feegrant.v1beta1/module.js +4 -3
  17. package/cosmos.gov.v1/module.js +8 -7
  18. package/cosmos.gov.v1beta1/module.js +5 -4
  19. package/cosmos.group.v1/module.js +17 -14
  20. package/cosmos.group.v1/types.d.ts +2 -1
  21. package/cosmos.group.v1/types.js +2 -1
  22. package/cosmos.mint.v1beta1/module.js +2 -1
  23. package/cosmos.nft.v1beta1/module.js +2 -1
  24. package/cosmos.slashing.v1beta1/module.js +3 -2
  25. package/cosmos.staking.v1beta1/module.js +8 -7
  26. package/cosmos.tx.v1beta1/rest.d.ts +8 -0
  27. package/cosmos.upgrade.v1beta1/module.js +3 -2
  28. package/cosmos.vesting.v1beta1/module.js +4 -3
  29. package/ibc.applications.fee.v1/module.js +5 -4
  30. package/ibc.applications.interchain_accounts.controller.v1/module.js +4 -3
  31. package/ibc.applications.interchain_accounts.host.v1/module.js +3 -2
  32. package/ibc.applications.transfer.v1/module.js +3 -2
  33. package/ibc.core.channel.v1/module.js +20 -19
  34. package/ibc.core.client.v1/module.js +8 -7
  35. package/ibc.core.connection.v1/module.js +6 -5
  36. package/index.d.ts +22 -22
  37. package/index.js +7 -7
  38. package/package.json +1 -1
  39. package/types/cosmos/app/runtime/v1alpha1/module.d.ts +13 -1
  40. package/types/cosmos/app/runtime/v1alpha1/module.js +36 -0
  41. package/types/cosmos/app/v1alpha1/query.d.ts +6 -2
  42. package/types/cosmos/auth/module/v1/module.d.ts +6 -0
  43. package/types/cosmos/auth/module/v1/module.js +18 -1
  44. package/types/cosmos/auth/v1beta1/query.d.ts +21 -107
  45. package/types/cosmos/auth/v1beta1/tx.d.ts +1 -9
  46. package/types/cosmos/authz/v1beta1/authz.d.ts +0 -1
  47. package/types/cosmos/authz/v1beta1/event.d.ts +0 -1
  48. package/types/cosmos/authz/v1beta1/genesis.d.ts +0 -1
  49. package/types/cosmos/authz/v1beta1/query.d.ts +2 -11
  50. package/types/cosmos/authz/v1beta1/tx.d.ts +0 -1
  51. package/types/cosmos/autocli/v1/options.d.ts +21 -1
  52. package/types/cosmos/autocli/v1/options.js +65 -2
  53. package/types/cosmos/bank/v1beta1/authz.d.ts +0 -4
  54. package/types/cosmos/bank/v1beta1/bank.d.ts +2 -14
  55. package/types/cosmos/bank/v1beta1/genesis.d.ts +1 -5
  56. package/types/cosmos/bank/v1beta1/query.d.ts +12 -62
  57. package/types/cosmos/bank/v1beta1/query.js +6 -6
  58. package/types/cosmos/bank/v1beta1/tx.d.ts +2 -18
  59. package/types/cosmos/base/abci/v1beta1/abci.d.ts +2 -12
  60. package/types/cosmos/base/reflection/v2alpha1/reflection.d.ts +0 -1
  61. package/types/cosmos/base/tendermint/v1beta1/query.d.ts +0 -5
  62. package/types/cosmos/benchmark/module/v1/module.d.ts +52 -0
  63. package/types/cosmos/benchmark/module/v1/module.js +289 -0
  64. package/types/cosmos/benchmark/v1/benchmark.d.ts +32 -0
  65. package/types/cosmos/benchmark/v1/benchmark.js +164 -0
  66. package/types/cosmos/benchmark/v1/tx.d.ts +51 -0
  67. package/types/cosmos/benchmark/v1/tx.js +196 -0
  68. package/types/cosmos/consensus/v1/query.d.ts +0 -1
  69. package/types/cosmos/consensus/v1/tx.d.ts +0 -4
  70. package/types/cosmos/{orm/module/v1alpha1 → counter/module/v1}/module.d.ts +4 -6
  71. package/types/cosmos/counter/module/v1/module.js +62 -0
  72. package/types/cosmos/counter/v1/query.d.ts +47 -0
  73. package/types/cosmos/counter/v1/query.js +122 -0
  74. package/types/cosmos/counter/v1/tx.d.ts +52 -0
  75. package/types/cosmos/counter/v1/tx.js +153 -0
  76. package/types/cosmos/crisis/v1beta1/tx.d.ts +1 -9
  77. package/types/cosmos/crypto/hd/v1/hd.d.ts +0 -1
  78. package/types/cosmos/crypto/keyring/v1/record.d.ts +0 -1
  79. package/types/cosmos/crypto/secp256r1/keys.d.ts +0 -1
  80. package/types/cosmos/distribution/v1beta1/query.d.ts +5 -1
  81. package/types/cosmos/distribution/v1beta1/tx.d.ts +4 -22
  82. package/types/cosmos/epochs/module/v1/module.d.ts +25 -0
  83. package/types/cosmos/{orm/module/v1alpha1 → epochs/module/v1}/module.js +2 -2
  84. package/types/cosmos/epochs/v1beta1/events.d.ts +32 -0
  85. package/types/cosmos/epochs/v1beta1/events.js +140 -0
  86. package/types/cosmos/epochs/v1beta1/genesis.d.ts +86 -0
  87. package/types/cosmos/epochs/v1beta1/genesis.js +256 -0
  88. package/types/cosmos/epochs/v1beta1/query.d.ts +73 -0
  89. package/types/cosmos/epochs/v1beta1/query.js +233 -0
  90. package/types/cosmos/evidence/v1beta1/query.d.ts +1 -5
  91. package/types/cosmos/feegrant/v1beta1/feegrant.d.ts +0 -1
  92. package/types/cosmos/feegrant/v1beta1/genesis.d.ts +0 -1
  93. package/types/cosmos/feegrant/v1beta1/query.d.ts +3 -16
  94. package/types/cosmos/feegrant/v1beta1/tx.d.ts +3 -16
  95. package/types/cosmos/gov/v1/genesis.d.ts +1 -8
  96. package/types/cosmos/gov/v1/gov.d.ts +9 -50
  97. package/types/cosmos/gov/v1/gov.js +0 -1
  98. package/types/cosmos/gov/v1/query.d.ts +1 -6
  99. package/types/cosmos/gov/v1/tx.d.ts +6 -37
  100. package/types/cosmos/gov/v1beta1/gov.d.ts +2 -10
  101. package/types/cosmos/gov/v1beta1/tx.d.ts +3 -15
  102. package/types/cosmos/group/v1/events.d.ts +8 -1
  103. package/types/cosmos/group/v1/events.js +68 -0
  104. package/types/cosmos/group/v1/genesis.d.ts +0 -1
  105. package/types/cosmos/group/v1/query.d.ts +3 -16
  106. package/types/cosmos/group/v1/tx.d.ts +2 -11
  107. package/types/cosmos/group/v1/tx.js +0 -1
  108. package/types/cosmos/group/v1/types.d.ts +2 -11
  109. package/types/cosmos/group/v1/types.js +0 -1
  110. package/types/cosmos/mint/v1beta1/tx.d.ts +1 -9
  111. package/types/cosmos/params/v1beta1/query.d.ts +1 -11
  112. package/types/cosmos/protocolpool/module/v1/module.d.ts +27 -0
  113. package/types/cosmos/protocolpool/module/v1/module.js +62 -0
  114. package/types/cosmos/protocolpool/v1/genesis.d.ts +33 -0
  115. package/types/cosmos/protocolpool/v1/genesis.js +84 -0
  116. package/types/cosmos/protocolpool/v1/query.d.ts +108 -0
  117. package/types/cosmos/protocolpool/v1/query.js +420 -0
  118. package/types/cosmos/protocolpool/v1/tx.d.ts +159 -0
  119. package/types/cosmos/protocolpool/v1/tx.js +700 -0
  120. package/types/cosmos/protocolpool/v1/types.d.ts +45 -0
  121. package/types/cosmos/protocolpool/v1/types.js +196 -0
  122. package/types/cosmos/slashing/v1beta1/tx.d.ts +1 -9
  123. package/types/cosmos/staking/v1beta1/authz.d.ts +2 -10
  124. package/types/cosmos/staking/v1beta1/authz.js +1 -5
  125. package/types/cosmos/staking/v1beta1/staking.d.ts +1 -5
  126. package/types/cosmos/staking/v1beta1/tx.d.ts +4 -25
  127. package/types/cosmos/store/snapshots/v1/snapshot.d.ts +5 -25
  128. package/types/cosmos/store/v1beta1/listening.d.ts +0 -2
  129. package/types/cosmos/tx/v1beta1/service.d.ts +6 -52
  130. package/types/cosmos/tx/v1beta1/tx.d.ts +37 -17
  131. package/types/cosmos/tx/v1beta1/tx.js +61 -1
  132. package/types/cosmos/upgrade/v1beta1/query.d.ts +4 -25
  133. package/types/cosmos/upgrade/v1beta1/tx.d.ts +5 -28
  134. package/types/cosmos/vesting/v1beta1/tx.d.ts +1 -15
  135. package/types/cosmos/vesting/v1beta1/vesting.d.ts +0 -2
  136. package/types/cosmos/orm/query/v1alpha1/query.d.ts +0 -148
  137. package/types/cosmos/orm/query/v1alpha1/query.js +0 -705
  138. package/types/cosmos/orm/v1/orm.d.ts +0 -115
  139. package/types/cosmos/orm/v1/orm.js +0 -300
  140. package/types/cosmos/orm/v1alpha1/schema.d.ts +0 -77
  141. package/types/cosmos/orm/v1alpha1/schema.js +0 -243
@@ -69,8 +69,6 @@ export interface SignDoc {
69
69
  /**
70
70
  * SignDocDirectAux is the type used for generating sign bytes for
71
71
  * SIGN_MODE_DIRECT_AUX.
72
- *
73
- * Since: cosmos-sdk 0.46
74
72
  */
75
73
  export interface SignDocDirectAux {
76
74
  /**
@@ -112,14 +110,40 @@ export interface TxBody {
112
110
  /**
113
111
  * memo is any arbitrary note/comment to be added to the transaction.
114
112
  * WARNING: in clients, any publicly exposed text should not be called memo,
115
- * but should be called `note` instead (see https://github.com/cosmos/cosmos-sdk/issues/9122).
113
+ * but should be called `note` instead (see
114
+ * https://github.com/cosmos/cosmos-sdk/issues/9122).
116
115
  */
117
116
  memo: string;
118
117
  /**
119
- * timeout is the block height after which this transaction will not
120
- * be processed by the chain
118
+ * timeout_height is the block height after which this transaction will not
119
+ * be processed by the chain.
121
120
  */
122
121
  timeoutHeight: number;
122
+ /**
123
+ * unordered, when set to true, indicates that the transaction signer(s)
124
+ * intend for the transaction to be evaluated and executed in an un-ordered
125
+ * fashion. Specifically, the account's nonce will NOT be checked or
126
+ * incremented, which allows for fire-and-forget as well as concurrent
127
+ * transaction execution.
128
+ *
129
+ * Note, when set to true, the existing 'timeout_timestamp' value must
130
+ * be set and will be used to correspond to a timestamp in which the transaction is deemed
131
+ * valid.
132
+ *
133
+ * When true, the sequence value MUST be 0, and any transaction with unordered=true and a non-zero sequence value will
134
+ * be rejected.
135
+ * External services that make assumptions about sequence values may need to be updated because of this.
136
+ */
137
+ unordered: boolean;
138
+ /**
139
+ * timeout_timestamp is the block time after which this transaction will not
140
+ * be processed by the chain.
141
+ *
142
+ * Note, if unordered=true this value MUST be set
143
+ * and will act as a short-lived TTL in which the transaction is deemed valid
144
+ * and kept in memory to prevent duplicates.
145
+ */
146
+ timeoutTimestamp: Date | undefined;
123
147
  /**
124
148
  * extension_options are arbitrary options that can be added by chains
125
149
  * when the default options are not sufficient. If any of these are present
@@ -158,8 +182,6 @@ export interface AuthInfo {
158
182
  * This field is ignored if the chain didn't enable tips, i.e. didn't add the
159
183
  * `TipDecorator` in its posthandler.
160
184
  *
161
- * Since: cosmos-sdk 0.46
162
- *
163
185
  * @deprecated
164
186
  */
165
187
  tip: Tip | undefined;
@@ -227,23 +249,23 @@ export interface Fee {
227
249
  */
228
250
  gasLimit: number;
229
251
  /**
230
- * if unset, the first signer is responsible for paying the fees. If set, the specified account must pay the fees.
231
- * the payer must be a tx signer (and thus have signed this field in AuthInfo).
232
- * setting this field does *not* change the ordering of required signers for the transaction.
252
+ * if unset, the first signer is responsible for paying the fees. If set, the
253
+ * specified account must pay the fees. the payer must be a tx signer (and
254
+ * thus have signed this field in AuthInfo). setting this field does *not*
255
+ * change the ordering of required signers for the transaction.
233
256
  */
234
257
  payer: string;
235
258
  /**
236
- * if set, the fee payer (either the first signer or the value of the payer field) requests that a fee grant be used
237
- * to pay fees instead of the fee payer's own balance. If an appropriate fee grant does not exist or the chain does
238
- * not support fee grants, this will fail
259
+ * if set, the fee payer (either the first signer or the value of the payer
260
+ * field) requests that a fee grant be used to pay fees instead of the fee
261
+ * payer's own balance. If an appropriate fee grant does not exist or the
262
+ * chain does not support fee grants, this will fail
239
263
  */
240
264
  granter: string;
241
265
  }
242
266
  /**
243
267
  * Tip is the tip used for meta-transactions.
244
268
  *
245
- * Since: cosmos-sdk 0.46
246
- *
247
269
  * @deprecated
248
270
  */
249
271
  export interface Tip {
@@ -257,8 +279,6 @@ export interface Tip {
257
279
  * tipper) builds and sends to the fee payer (who will build and broadcast the
258
280
  * actual tx). AuxSignerData is not a valid tx in itself, and will be rejected
259
281
  * by the node if sent directly as-is.
260
- *
261
- * Since: cosmos-sdk 0.46
262
282
  */
263
283
  export interface AuxSignerData {
264
284
  /**
@@ -6,6 +6,7 @@
6
6
  /* eslint-disable */
7
7
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
8
8
  import { Any } from "../../../google/protobuf/any";
9
+ import { Timestamp } from "../../../google/protobuf/timestamp";
9
10
  import { Coin } from "../../base/v1beta1/coin";
10
11
  import { CompactBitArray } from "../../crypto/multisig/v1beta1/multisig";
11
12
  import { signModeFromJSON, signModeToJSON } from "../signing/v1beta1/signing";
@@ -418,7 +419,15 @@ export const SignDocDirectAux = {
418
419
  },
419
420
  };
420
421
  function createBaseTxBody() {
421
- return { messages: [], memo: "", timeoutHeight: 0, extensionOptions: [], nonCriticalExtensionOptions: [] };
422
+ return {
423
+ messages: [],
424
+ memo: "",
425
+ timeoutHeight: 0,
426
+ unordered: false,
427
+ timeoutTimestamp: undefined,
428
+ extensionOptions: [],
429
+ nonCriticalExtensionOptions: [],
430
+ };
422
431
  }
423
432
  export const TxBody = {
424
433
  encode(message, writer = new BinaryWriter()) {
@@ -431,6 +440,12 @@ export const TxBody = {
431
440
  if (message.timeoutHeight !== 0) {
432
441
  writer.uint32(24).uint64(message.timeoutHeight);
433
442
  }
443
+ if (message.unordered !== false) {
444
+ writer.uint32(32).bool(message.unordered);
445
+ }
446
+ if (message.timeoutTimestamp !== undefined) {
447
+ Timestamp.encode(toTimestamp(message.timeoutTimestamp), writer.uint32(42).fork()).join();
448
+ }
434
449
  for (const v of message.extensionOptions) {
435
450
  Any.encode(v, writer.uint32(8186).fork()).join();
436
451
  }
@@ -467,6 +482,20 @@ export const TxBody = {
467
482
  message.timeoutHeight = longToNumber(reader.uint64());
468
483
  continue;
469
484
  }
485
+ case 4: {
486
+ if (tag !== 32) {
487
+ break;
488
+ }
489
+ message.unordered = reader.bool();
490
+ continue;
491
+ }
492
+ case 5: {
493
+ if (tag !== 42) {
494
+ break;
495
+ }
496
+ message.timeoutTimestamp = fromTimestamp(Timestamp.decode(reader, reader.uint32()));
497
+ continue;
498
+ }
470
499
  case 1023: {
471
500
  if (tag !== 8186) {
472
501
  break;
@@ -494,6 +523,8 @@ export const TxBody = {
494
523
  messages: globalThis.Array.isArray(object?.messages) ? object.messages.map((e) => Any.fromJSON(e)) : [],
495
524
  memo: isSet(object.memo) ? globalThis.String(object.memo) : "",
496
525
  timeoutHeight: isSet(object.timeoutHeight) ? globalThis.Number(object.timeoutHeight) : 0,
526
+ unordered: isSet(object.unordered) ? globalThis.Boolean(object.unordered) : false,
527
+ timeoutTimestamp: isSet(object.timeoutTimestamp) ? fromJsonTimestamp(object.timeoutTimestamp) : undefined,
497
528
  extensionOptions: globalThis.Array.isArray(object?.extensionOptions)
498
529
  ? object.extensionOptions.map((e) => Any.fromJSON(e))
499
530
  : [],
@@ -513,6 +544,12 @@ export const TxBody = {
513
544
  if (message.timeoutHeight !== 0) {
514
545
  obj.timeoutHeight = Math.round(message.timeoutHeight);
515
546
  }
547
+ if (message.unordered !== false) {
548
+ obj.unordered = message.unordered;
549
+ }
550
+ if (message.timeoutTimestamp !== undefined) {
551
+ obj.timeoutTimestamp = message.timeoutTimestamp.toISOString();
552
+ }
516
553
  if (message.extensionOptions?.length) {
517
554
  obj.extensionOptions = message.extensionOptions.map((e) => Any.toJSON(e));
518
555
  }
@@ -529,6 +566,8 @@ export const TxBody = {
529
566
  message.messages = object.messages?.map((e) => Any.fromPartial(e)) || [];
530
567
  message.memo = object.memo ?? "";
531
568
  message.timeoutHeight = object.timeoutHeight ?? 0;
569
+ message.unordered = object.unordered ?? false;
570
+ message.timeoutTimestamp = object.timeoutTimestamp ?? undefined;
532
571
  message.extensionOptions = object.extensionOptions?.map((e) => Any.fromPartial(e)) || [];
533
572
  message.nonCriticalExtensionOptions = object.nonCriticalExtensionOptions?.map((e) => Any.fromPartial(e)) || [];
534
573
  return message;
@@ -1192,6 +1231,27 @@ function base64FromBytes(arr) {
1192
1231
  return globalThis.btoa(bin.join(""));
1193
1232
  }
1194
1233
  }
1234
+ function toTimestamp(date) {
1235
+ const seconds = Math.trunc(date.getTime() / 1000);
1236
+ const nanos = (date.getTime() % 1000) * 1000000;
1237
+ return { seconds, nanos };
1238
+ }
1239
+ function fromTimestamp(t) {
1240
+ let millis = (t.seconds || 0) * 1000;
1241
+ millis += (t.nanos || 0) / 1000000;
1242
+ return new globalThis.Date(millis);
1243
+ }
1244
+ function fromJsonTimestamp(o) {
1245
+ if (o instanceof globalThis.Date) {
1246
+ return o;
1247
+ }
1248
+ else if (typeof o === "string") {
1249
+ return new globalThis.Date(o);
1250
+ }
1251
+ else {
1252
+ return fromTimestamp(Timestamp.fromJSON(o));
1253
+ }
1254
+ }
1195
1255
  function longToNumber(int64) {
1196
1256
  const num = globalThis.Number(int64.toString());
1197
1257
  if (num > globalThis.Number.MAX_SAFE_INTEGER) {
@@ -51,14 +51,11 @@ export interface QueryUpgradedConsensusStateRequest {
51
51
  * @deprecated
52
52
  */
53
53
  export interface QueryUpgradedConsensusStateResponse {
54
- /** Since: cosmos-sdk 0.43 */
55
54
  upgradedConsensusState: Uint8Array;
56
55
  }
57
56
  /**
58
57
  * QueryModuleVersionsRequest is the request type for the Query/ModuleVersions
59
58
  * RPC method.
60
- *
61
- * Since: cosmos-sdk 0.43
62
59
  */
63
60
  export interface QueryModuleVersionsRequest {
64
61
  /**
@@ -71,25 +68,15 @@ export interface QueryModuleVersionsRequest {
71
68
  /**
72
69
  * QueryModuleVersionsResponse is the response type for the Query/ModuleVersions
73
70
  * RPC method.
74
- *
75
- * Since: cosmos-sdk 0.43
76
71
  */
77
72
  export interface QueryModuleVersionsResponse {
78
73
  /** module_versions is a list of module names with their consensus versions. */
79
74
  moduleVersions: ModuleVersion[];
80
75
  }
81
- /**
82
- * QueryAuthorityRequest is the request type for Query/Authority
83
- *
84
- * Since: cosmos-sdk 0.46
85
- */
76
+ /** QueryAuthorityRequest is the request type for Query/Authority */
86
77
  export interface QueryAuthorityRequest {
87
78
  }
88
- /**
89
- * QueryAuthorityResponse is the response type for Query/Authority
90
- *
91
- * Since: cosmos-sdk 0.46
92
- */
79
+ /** QueryAuthorityResponse is the response type for Query/Authority */
93
80
  export interface QueryAuthorityResponse {
94
81
  address: string;
95
82
  }
@@ -120,17 +107,9 @@ export interface Query {
120
107
  * @deprecated
121
108
  */
122
109
  UpgradedConsensusState(request: QueryUpgradedConsensusStateRequest): Promise<QueryUpgradedConsensusStateResponse>;
123
- /**
124
- * ModuleVersions queries the list of module versions from state.
125
- *
126
- * Since: cosmos-sdk 0.43
127
- */
110
+ /** ModuleVersions queries the list of module versions from state. */
128
111
  ModuleVersions(request: QueryModuleVersionsRequest): Promise<QueryModuleVersionsResponse>;
129
- /**
130
- * Returns the account with authority to conduct upgrades
131
- *
132
- * Since: cosmos-sdk 0.46
133
- */
112
+ /** Returns the account with authority to conduct upgrades */
134
113
  Authority(request: QueryAuthorityRequest): Promise<QueryAuthorityResponse>;
135
114
  }
136
115
  export declare const QueryServiceName = "cosmos.upgrade.v1beta1.Query";
@@ -1,39 +1,22 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
2
  import { Plan } from "./upgrade";
3
3
  export declare const protobufPackage = "cosmos.upgrade.v1beta1";
4
- /** Since: cosmos-sdk 0.46 */
5
- /**
6
- * MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type.
7
- *
8
- * Since: cosmos-sdk 0.46
9
- */
4
+ /** MsgSoftwareUpgrade is the Msg/SoftwareUpgrade request type. */
10
5
  export interface MsgSoftwareUpgrade {
11
6
  /** authority is the address that controls the module (defaults to x/gov unless overwritten). */
12
7
  authority: string;
13
8
  /** plan is the upgrade plan. */
14
9
  plan: Plan | undefined;
15
10
  }
16
- /**
17
- * MsgSoftwareUpgradeResponse is the Msg/SoftwareUpgrade response type.
18
- *
19
- * Since: cosmos-sdk 0.46
20
- */
11
+ /** MsgSoftwareUpgradeResponse is the Msg/SoftwareUpgrade response type. */
21
12
  export interface MsgSoftwareUpgradeResponse {
22
13
  }
23
- /**
24
- * MsgCancelUpgrade is the Msg/CancelUpgrade request type.
25
- *
26
- * Since: cosmos-sdk 0.46
27
- */
14
+ /** MsgCancelUpgrade is the Msg/CancelUpgrade request type. */
28
15
  export interface MsgCancelUpgrade {
29
16
  /** authority is the address that controls the module (defaults to x/gov unless overwritten). */
30
17
  authority: string;
31
18
  }
32
- /**
33
- * MsgCancelUpgradeResponse is the Msg/CancelUpgrade response type.
34
- *
35
- * Since: cosmos-sdk 0.46
36
- */
19
+ /** MsgCancelUpgradeResponse is the Msg/CancelUpgrade response type. */
37
20
  export interface MsgCancelUpgradeResponse {
38
21
  }
39
22
  export declare const MsgSoftwareUpgrade: MessageFns<MsgSoftwareUpgrade>;
@@ -42,17 +25,11 @@ export declare const MsgCancelUpgrade: MessageFns<MsgCancelUpgrade>;
42
25
  export declare const MsgCancelUpgradeResponse: MessageFns<MsgCancelUpgradeResponse>;
43
26
  /** Msg defines the upgrade Msg service. */
44
27
  export interface Msg {
45
- /**
46
- * SoftwareUpgrade is a governance operation for initiating a software upgrade.
47
- *
48
- * Since: cosmos-sdk 0.46
49
- */
28
+ /** SoftwareUpgrade is a governance operation for initiating a software upgrade. */
50
29
  SoftwareUpgrade(request: MsgSoftwareUpgrade): Promise<MsgSoftwareUpgradeResponse>;
51
30
  /**
52
31
  * CancelUpgrade is a governance operation for cancelling a previously
53
32
  * approved software upgrade.
54
- *
55
- * Since: cosmos-sdk 0.46
56
33
  */
57
34
  CancelUpgrade(request: MsgCancelUpgrade): Promise<MsgCancelUpgradeResponse>;
58
35
  }
@@ -20,26 +20,18 @@ export interface MsgCreateVestingAccountResponse {
20
20
  /**
21
21
  * MsgCreatePermanentLockedAccount defines a message that enables creating a permanent
22
22
  * locked account.
23
- *
24
- * Since: cosmos-sdk 0.46
25
23
  */
26
24
  export interface MsgCreatePermanentLockedAccount {
27
25
  fromAddress: string;
28
26
  toAddress: string;
29
27
  amount: Coin[];
30
28
  }
31
- /**
32
- * MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type.
33
- *
34
- * Since: cosmos-sdk 0.46
35
- */
29
+ /** MsgCreatePermanentLockedAccountResponse defines the Msg/CreatePermanentLockedAccount response type. */
36
30
  export interface MsgCreatePermanentLockedAccountResponse {
37
31
  }
38
32
  /**
39
33
  * MsgCreateVestingAccount defines a message that enables creating a vesting
40
34
  * account.
41
- *
42
- * Since: cosmos-sdk 0.46
43
35
  */
44
36
  export interface MsgCreatePeriodicVestingAccount {
45
37
  fromAddress: string;
@@ -51,8 +43,6 @@ export interface MsgCreatePeriodicVestingAccount {
51
43
  /**
52
44
  * MsgCreateVestingAccountResponse defines the Msg/CreatePeriodicVestingAccount
53
45
  * response type.
54
- *
55
- * Since: cosmos-sdk 0.46
56
46
  */
57
47
  export interface MsgCreatePeriodicVestingAccountResponse {
58
48
  }
@@ -72,15 +62,11 @@ export interface Msg {
72
62
  /**
73
63
  * CreatePermanentLockedAccount defines a method that enables creating a permanent
74
64
  * locked account.
75
- *
76
- * Since: cosmos-sdk 0.46
77
65
  */
78
66
  CreatePermanentLockedAccount(request: MsgCreatePermanentLockedAccount): Promise<MsgCreatePermanentLockedAccountResponse>;
79
67
  /**
80
68
  * CreatePeriodicVestingAccount defines a method that enables creating a
81
69
  * periodic vesting account.
82
- *
83
- * Since: cosmos-sdk 0.46
84
70
  */
85
71
  CreatePeriodicVestingAccount(request: MsgCreatePeriodicVestingAccount): Promise<MsgCreatePeriodicVestingAccountResponse>;
86
72
  }
@@ -50,8 +50,6 @@ export interface PeriodicVestingAccount {
50
50
  * PermanentLockedAccount implements the VestingAccount interface. It does
51
51
  * not ever release coins, locking them indefinitely. Coins in this account can
52
52
  * still be used for delegating and for governance votes even while locked.
53
- *
54
- * Since: cosmos-sdk 0.43
55
53
  */
56
54
  export interface PermanentLockedAccount {
57
55
  baseVestingAccount: BaseVestingAccount | undefined;
@@ -1,148 +0,0 @@
1
- import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
- import { Any } from "../../../../google/protobuf/any";
3
- import { Duration } from "../../../../google/protobuf/duration";
4
- import { PageRequest, PageResponse } from "../../../base/query/v1beta1/pagination";
5
- export declare const protobufPackage = "cosmos.orm.query.v1alpha1";
6
- /** GetRequest is the Query/Get request type. */
7
- export interface GetRequest {
8
- /** message_name is the fully-qualified message name of the ORM table being queried. */
9
- messageName: string;
10
- /**
11
- * index is the index fields expression used in orm definitions. If it
12
- * is empty, the table's primary key is assumed. If it is non-empty, it must
13
- * refer to an unique index.
14
- */
15
- index: string;
16
- /**
17
- * values are the values of the fields corresponding to the requested index.
18
- * There must be as many values provided as there are fields in the index and
19
- * these values must correspond to the index field types.
20
- */
21
- values: IndexValue[];
22
- }
23
- /** GetResponse is the Query/Get response type. */
24
- export interface GetResponse {
25
- /**
26
- * result is the result of the get query. If no value is found, the gRPC
27
- * status code NOT_FOUND will be returned.
28
- */
29
- result: Any | undefined;
30
- }
31
- /** ListRequest is the Query/List request type. */
32
- export interface ListRequest {
33
- /** message_name is the fully-qualified message name of the ORM table being queried. */
34
- messageName: string;
35
- /**
36
- * index is the index fields expression used in orm definitions. If it
37
- * is empty, the table's primary key is assumed.
38
- */
39
- index: string;
40
- /** prefix defines a prefix query. */
41
- prefix?: ListRequest_Prefix | undefined;
42
- /** range defines a range query. */
43
- range?: ListRequest_Range | undefined;
44
- /** pagination is the pagination request. */
45
- pagination: PageRequest | undefined;
46
- }
47
- /** Prefix specifies the arguments to a prefix query. */
48
- export interface ListRequest_Prefix {
49
- /**
50
- * values specifies the index values for the prefix query.
51
- * It is valid to special a partial prefix with fewer values than
52
- * the number of fields in the index.
53
- */
54
- values: IndexValue[];
55
- }
56
- /** Range specifies the arguments to a range query. */
57
- export interface ListRequest_Range {
58
- /**
59
- * start specifies the starting index values for the range query.
60
- * It is valid to provide fewer values than the number of fields in the
61
- * index.
62
- */
63
- start: IndexValue[];
64
- /**
65
- * end specifies the inclusive ending index values for the range query.
66
- * It is valid to provide fewer values than the number of fields in the
67
- * index.
68
- */
69
- end: IndexValue[];
70
- }
71
- /** ListResponse is the Query/List response type. */
72
- export interface ListResponse {
73
- /** results are the results of the query. */
74
- results: Any[];
75
- /** pagination is the pagination response. */
76
- pagination: PageResponse | undefined;
77
- }
78
- /** IndexValue represents the value of a field in an ORM index expression. */
79
- export interface IndexValue {
80
- /**
81
- * uint specifies a value for an uint32, fixed32, uint64, or fixed64
82
- * index field.
83
- */
84
- uint?: number | undefined;
85
- /**
86
- * int64 specifies a value for an int32, sfixed32, int64, or sfixed64
87
- * index field.
88
- */
89
- int?: number | undefined;
90
- /** str specifies a value for a string index field. */
91
- str?: string | undefined;
92
- /** bytes specifies a value for a bytes index field. */
93
- bytes?: Uint8Array | undefined;
94
- /** enum specifies a value for an enum index field. */
95
- enum?: string | undefined;
96
- /** bool specifies a value for a bool index field. */
97
- bool?: boolean | undefined;
98
- /** timestamp specifies a value for a timestamp index field. */
99
- timestamp?: Date | undefined;
100
- /** duration specifies a value for a duration index field. */
101
- duration?: Duration | undefined;
102
- }
103
- export declare const GetRequest: MessageFns<GetRequest>;
104
- export declare const GetResponse: MessageFns<GetResponse>;
105
- export declare const ListRequest: MessageFns<ListRequest>;
106
- export declare const ListRequest_Prefix: MessageFns<ListRequest_Prefix>;
107
- export declare const ListRequest_Range: MessageFns<ListRequest_Range>;
108
- export declare const ListResponse: MessageFns<ListResponse>;
109
- export declare const IndexValue: MessageFns<IndexValue>;
110
- /** Query is a generic gRPC service for querying ORM data. */
111
- export interface Query {
112
- /** Get queries an ORM table against an unique index. */
113
- Get(request: GetRequest): Promise<GetResponse>;
114
- /** List queries an ORM table against an index. */
115
- List(request: ListRequest): Promise<ListResponse>;
116
- }
117
- export declare const QueryServiceName = "cosmos.orm.query.v1alpha1.Query";
118
- export declare class QueryClientImpl implements Query {
119
- private readonly rpc;
120
- private readonly service;
121
- constructor(rpc: Rpc, opts?: {
122
- service?: string;
123
- });
124
- Get(request: GetRequest): Promise<GetResponse>;
125
- List(request: ListRequest): Promise<ListResponse>;
126
- }
127
- interface Rpc {
128
- request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
129
- }
130
- type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
131
- export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
132
- [K in keyof T]?: DeepPartial<T[K]>;
133
- } : Partial<T>;
134
- type KeysOfUnion<T> = T extends T ? keyof T : never;
135
- export type Exact<P, I extends P> = P extends Builtin ? P : P & {
136
- [K in keyof P]: Exact<P[K], I[K]>;
137
- } & {
138
- [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
139
- };
140
- export interface MessageFns<T> {
141
- encode(message: T, writer?: BinaryWriter): BinaryWriter;
142
- decode(input: BinaryReader | Uint8Array, length?: number): T;
143
- fromJSON(object: any): T;
144
- toJSON(message: T): unknown;
145
- create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
146
- fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
147
- }
148
- export {};