@initia/initia.js 1.0.4 → 1.0.6

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 (30) hide show
  1. package/dist/core/authz/authorizations/ExecuteAuthorization.d.ts +1 -1
  2. package/dist/core/bank/msgs/MsgMultiSend.d.ts +2 -2
  3. package/dist/core/evm/EvmParams.d.ts +2 -2
  4. package/dist/core/evm/msgs/MsgCall.d.ts +1 -1
  5. package/dist/core/evm/msgs/MsgCreate.d.ts +1 -1
  6. package/dist/core/evm/msgs/MsgCreate2.d.ts +1 -1
  7. package/dist/core/gov/Deposit.d.ts +1 -1
  8. package/dist/core/gov/GovParams.d.ts +3 -3
  9. package/dist/core/gov/msgs/MsgDeposit.d.ts +1 -1
  10. package/dist/core/gov/msgs/MsgVoteWeightedLegacy.d.ts +1 -1
  11. package/dist/core/gov/proposals/Proposal.d.ts +1 -1
  12. package/dist/core/group/msgs/MsgCreateGroup.d.ts +1 -1
  13. package/dist/core/group/msgs/MsgCreateGroupWithPolicy.d.ts +1 -1
  14. package/dist/core/group/msgs/MsgUpdateGroupMembers.d.ts +1 -1
  15. package/dist/core/move/MoveParams.d.ts +1 -1
  16. package/dist/core/mstaking/msgs/MsgBeginRedelegate.d.ts +1 -1
  17. package/dist/core/mstaking/msgs/MsgCancelUnbondingDelegation.d.ts +1 -1
  18. package/dist/core/mstaking/msgs/MsgCreateValidator.d.ts +1 -1
  19. package/dist/core/mstaking/msgs/MsgDelegate.d.ts +1 -1
  20. package/dist/core/mstaking/msgs/MsgUndelegate.d.ts +1 -1
  21. package/dist/core/opchild/OpchildParams.d.ts +2 -2
  22. package/dist/core/opchild/msgs/MsgSpendFeePool.d.ts +1 -1
  23. package/dist/core/ophost/OphostParams.d.ts +1 -1
  24. package/dist/core/params/proposals/ParameterChangeProposal.d.ts +1 -1
  25. package/dist/core/wasm/authorizations/ContractExecutionAuthorization.d.ts +1 -1
  26. package/dist/core/wasm/authorizations/ContractMigrationAuthorization.d.ts +1 -1
  27. package/dist/core/wasm/authorizations/StoreCodeAuthorization.d.ts +1 -1
  28. package/dist/index.cjs +1 -1
  29. package/dist/index.mjs +124 -125
  30. package/package.json +2 -2
package/dist/index.mjs CHANGED
@@ -24038,7 +24038,7 @@ class LegacyAminoMultisigPublicKey extends JSONSerializable {
24038
24038
  static fromAmino(t) {
24039
24039
  return new LegacyAminoMultisigPublicKey(
24040
24040
  parseInt(t.value.threshold),
24041
- t.value.pubkeys.map((n) => SimplePublicKey.fromAmino(n))
24041
+ t.value.pubkeys.map(SimplePublicKey.fromAmino)
24042
24042
  );
24043
24043
  }
24044
24044
  toAmino() {
@@ -24053,7 +24053,7 @@ class LegacyAminoMultisigPublicKey extends JSONSerializable {
24053
24053
  static fromData(t) {
24054
24054
  return new LegacyAminoMultisigPublicKey(
24055
24055
  parseInt(t.threshold),
24056
- t.public_keys.map((n) => SimplePublicKey.fromData(n))
24056
+ t.public_keys.map(SimplePublicKey.fromData)
24057
24057
  );
24058
24058
  }
24059
24059
  toData() {
@@ -24066,7 +24066,7 @@ class LegacyAminoMultisigPublicKey extends JSONSerializable {
24066
24066
  static fromProto(t) {
24067
24067
  return new LegacyAminoMultisigPublicKey(
24068
24068
  t.threshold,
24069
- t.publicKeys.map((n) => SimplePublicKey.unpackAny(n))
24069
+ t.publicKeys.map(SimplePublicKey.unpackAny)
24070
24070
  );
24071
24071
  }
24072
24072
  toProto() {
@@ -25964,15 +25964,16 @@ class ExecuteAuthorization extends JSONSerializable {
25964
25964
  super(), this.items = t;
25965
25965
  }
25966
25966
  static fromAmino(t) {
25967
+ var n;
25967
25968
  return new ExecuteAuthorization(
25968
- t.value.items.map(ExecuteAuthorizationItem.fromAmino)
25969
+ ((n = t.value.items) == null ? void 0 : n.map(ExecuteAuthorizationItem.fromAmino)) ?? []
25969
25970
  );
25970
25971
  }
25971
25972
  toAmino() {
25972
25973
  return {
25973
25974
  type: "move/ExecuteAuthorization",
25974
25975
  value: {
25975
- items: this.items.map((t) => t.toAmino())
25976
+ items: this.items.length > 0 ? this.items.map((t) => t.toAmino()) : null
25976
25977
  }
25977
25978
  };
25978
25979
  }
@@ -27328,14 +27329,17 @@ class StoreCodeAuthorization extends JSONSerializable {
27328
27329
  super(), this.grants = t;
27329
27330
  }
27330
27331
  static fromAmino(t) {
27332
+ var n;
27331
27333
  return new StoreCodeAuthorization(
27332
- t.value.grants.map(CodeGrant.fromAmino)
27334
+ ((n = t.value.grants) == null ? void 0 : n.map(CodeGrant.fromAmino)) ?? []
27333
27335
  );
27334
27336
  }
27335
27337
  toAmino() {
27336
27338
  return {
27337
27339
  type: "wasm/StoreCodeAuthorization",
27338
- value: { grants: this.grants.map((t) => t.toAmino()) }
27340
+ value: {
27341
+ grants: this.grants.length > 0 ? this.grants.map((t) => t.toAmino()) : null
27342
+ }
27339
27343
  };
27340
27344
  }
27341
27345
  static fromData(t) {
@@ -27787,14 +27791,17 @@ class ContractExecutionAuthorization extends JSONSerializable {
27787
27791
  super(), this.grants = t;
27788
27792
  }
27789
27793
  static fromAmino(t) {
27794
+ var n;
27790
27795
  return new ContractExecutionAuthorization(
27791
- t.value.grants.map(ContractGrant.fromAmino)
27796
+ ((n = t.value.grants) == null ? void 0 : n.map(ContractGrant.fromAmino)) ?? []
27792
27797
  );
27793
27798
  }
27794
27799
  toAmino() {
27795
27800
  return {
27796
27801
  type: "wasm/ContractExecutionAuthorization",
27797
- value: { grants: this.grants.map((t) => t.toAmino()) }
27802
+ value: {
27803
+ grants: this.grants.length > 0 ? this.grants.map((t) => t.toAmino()) : null
27804
+ }
27798
27805
  };
27799
27806
  }
27800
27807
  static fromData(t) {
@@ -27838,14 +27845,17 @@ class ContractMigrationAuthorization extends JSONSerializable {
27838
27845
  super(), this.grants = t;
27839
27846
  }
27840
27847
  static fromAmino(t) {
27848
+ var n;
27841
27849
  return new ContractMigrationAuthorization(
27842
- t.value.grants.map(ContractGrant.fromAmino)
27850
+ ((n = t.value.grants) == null ? void 0 : n.map(ContractGrant.fromAmino)) ?? []
27843
27851
  );
27844
27852
  }
27845
27853
  toAmino() {
27846
27854
  return {
27847
27855
  type: "wasm/ContractMigrationAuthorization",
27848
- value: { grants: this.grants.map((t) => t.toAmino()) }
27856
+ value: {
27857
+ grants: this.grants.length > 0 ? this.grants.map((t) => t.toAmino()) : null
27858
+ }
27849
27859
  };
27850
27860
  }
27851
27861
  static fromData(t) {
@@ -34284,10 +34294,7 @@ class MsgExecAuthorized extends JSONSerializable {
34284
34294
  const {
34285
34295
  value: { grantee: n, msgs: r }
34286
34296
  } = t;
34287
- return new MsgExecAuthorized(
34288
- n,
34289
- r.map((i) => Msg.fromAmino(i))
34290
- );
34297
+ return new MsgExecAuthorized(n, r.map(Msg.fromAmino));
34291
34298
  }
34292
34299
  toAmino() {
34293
34300
  const { grantee: t, msgs: n } = this;
@@ -34301,10 +34308,7 @@ class MsgExecAuthorized extends JSONSerializable {
34301
34308
  }
34302
34309
  static fromData(t) {
34303
34310
  const { grantee: n, msgs: r } = t;
34304
- return new MsgExecAuthorized(
34305
- n,
34306
- r.map((i) => Msg.fromData(i))
34307
- );
34311
+ return new MsgExecAuthorized(n, r.map(Msg.fromData));
34308
34312
  }
34309
34313
  toData() {
34310
34314
  const { grantee: t, msgs: n } = this;
@@ -34315,10 +34319,7 @@ class MsgExecAuthorized extends JSONSerializable {
34315
34319
  };
34316
34320
  }
34317
34321
  static fromProto(t) {
34318
- return new MsgExecAuthorized(
34319
- t.grantee,
34320
- t.msgs.map((n) => Msg.fromProto(n))
34321
- );
34322
+ return new MsgExecAuthorized(t.grantee, t.msgs.map(Msg.fromProto));
34322
34323
  }
34323
34324
  toProto() {
34324
34325
  const { grantee: t, msgs: n } = this;
@@ -35374,8 +35375,8 @@ class MsgMultiSend extends JSONSerializable {
35374
35375
  value: { inputs: n, outputs: r }
35375
35376
  } = t;
35376
35377
  return new MsgMultiSend(
35377
- n.map((i) => MsgMultiSend.Input.fromAmino(i)),
35378
- r.map((i) => MsgMultiSend.Output.fromAmino(i))
35378
+ (n == null ? void 0 : n.map(MsgMultiSend.Input.fromAmino)) ?? [],
35379
+ (r == null ? void 0 : r.map(MsgMultiSend.Output.fromAmino)) ?? []
35379
35380
  );
35380
35381
  }
35381
35382
  toAmino() {
@@ -35383,16 +35384,16 @@ class MsgMultiSend extends JSONSerializable {
35383
35384
  return {
35384
35385
  type: "cosmos-sdk/MsgMultiSend",
35385
35386
  value: {
35386
- inputs: t.map((r) => r.toAmino()),
35387
- outputs: n.map((r) => r.toAmino())
35387
+ inputs: t.length > 0 ? t.map((r) => r.toAmino()) : null,
35388
+ outputs: n.length > 0 ? n.map((r) => r.toAmino()) : null
35388
35389
  }
35389
35390
  };
35390
35391
  }
35391
35392
  static fromData(t) {
35392
35393
  const { inputs: n, outputs: r } = t;
35393
35394
  return new MsgMultiSend(
35394
- n.map((i) => MsgMultiSend.Input.fromData(i)),
35395
- r.map((i) => MsgMultiSend.Output.fromData(i))
35395
+ n.map(MsgMultiSend.Input.fromData),
35396
+ r.map(MsgMultiSend.Output.fromData)
35396
35397
  );
35397
35398
  }
35398
35399
  toData() {
@@ -35405,8 +35406,8 @@ class MsgMultiSend extends JSONSerializable {
35405
35406
  }
35406
35407
  static fromProto(t) {
35407
35408
  return new MsgMultiSend(
35408
- t.inputs.map((n) => MsgMultiSend.Input.fromProto(n)),
35409
- t.outputs.map((n) => MsgMultiSend.Output.fromProto(n))
35409
+ t.inputs.map(MsgMultiSend.Input.fromProto),
35410
+ t.outputs.map(MsgMultiSend.Output.fromProto)
35410
35411
  );
35411
35412
  }
35412
35413
  toProto() {
@@ -36938,7 +36939,7 @@ class SignatureV2 {
36938
36939
  static fromData(k) {
36939
36940
  return new i(
36940
36941
  CompactBitArray.fromData(k.bitarray),
36941
- k.signatures.map((A) => n.fromData(A))
36942
+ k.signatures.map(n.fromData)
36942
36943
  );
36943
36944
  }
36944
36945
  toData() {
@@ -36961,12 +36962,10 @@ class Tx {
36961
36962
  this.body = t, this.auth_info = n, this.signatures = r;
36962
36963
  }
36963
36964
  static fromAmino(t) {
36964
- const n = t.value.signatures.map(
36965
- (r) => SignatureV2.fromAmino(r)
36966
- );
36965
+ const n = t.value.signatures.map(SignatureV2.fromAmino);
36967
36966
  return new Tx(
36968
36967
  new TxBody(
36969
- t.value.msg.map((r) => Msg.fromAmino(r)),
36968
+ t.value.msg.map(Msg.fromAmino),
36970
36969
  t.value.memo,
36971
36970
  parseInt(t.value.timeout_height)
36972
36971
  ),
@@ -37062,7 +37061,7 @@ class TxBody {
37062
37061
  }
37063
37062
  static fromData(t) {
37064
37063
  return new TxBody(
37065
- t.messages.map((n) => Msg.fromData(n)),
37064
+ t.messages.map(Msg.fromData),
37066
37065
  t.memo,
37067
37066
  parseInt(t.timeout_height)
37068
37067
  );
@@ -37076,7 +37075,7 @@ class TxBody {
37076
37075
  }
37077
37076
  static fromProto(t) {
37078
37077
  return new TxBody(
37079
- t.messages.map((n) => Msg.fromProto(n)),
37078
+ t.messages.map(Msg.fromProto),
37080
37079
  t.memo,
37081
37080
  Number(t.timeoutHeight)
37082
37081
  );
@@ -37102,7 +37101,7 @@ class AuthInfo {
37102
37101
  }
37103
37102
  static fromData(t) {
37104
37103
  return new AuthInfo(
37105
- t.signer_infos.map((n) => SignerInfo.fromData(n)),
37104
+ t.signer_infos.map(SignerInfo.fromData),
37106
37105
  Fee.fromData(t.fee)
37107
37106
  );
37108
37107
  }
@@ -37114,7 +37113,7 @@ class AuthInfo {
37114
37113
  }
37115
37114
  static fromProto(t) {
37116
37115
  return new AuthInfo(
37117
- t.signerInfos.map((n) => SignerInfo.fromProto(n)),
37116
+ t.signerInfos.map(SignerInfo.fromProto),
37118
37117
  Fee.fromProto(t.fee)
37119
37118
  );
37120
37119
  }
@@ -37236,7 +37235,7 @@ class ModeInfo {
37236
37235
  static fromData(i) {
37237
37236
  return new n(
37238
37237
  CompactBitArray.fromData(i.bitarray),
37239
- i.mode_infos.map((s) => e.fromData(s))
37238
+ i.mode_infos.map(e.fromData)
37240
37239
  );
37241
37240
  }
37242
37241
  toData() {
@@ -37248,7 +37247,7 @@ class ModeInfo {
37248
37247
  static fromProto(i) {
37249
37248
  return new n(
37250
37249
  CompactBitArray.fromProto(i.bitarray),
37251
- i.modeInfos.map((s) => e.fromProto(s))
37250
+ i.modeInfos.map(e.fromProto)
37252
37251
  );
37253
37252
  }
37254
37253
  toProto() {
@@ -42702,7 +42701,7 @@ class MsgCreate extends JSONSerializable {
42702
42701
  n,
42703
42702
  r,
42704
42703
  i,
42705
- s.map(AccessTuple.fromAmino)
42704
+ (s == null ? void 0 : s.map(AccessTuple.fromAmino)) ?? []
42706
42705
  );
42707
42706
  }
42708
42707
  toAmino() {
@@ -42713,7 +42712,7 @@ class MsgCreate extends JSONSerializable {
42713
42712
  sender: t,
42714
42713
  code: n,
42715
42714
  value: r,
42716
- access_list: i.map((s) => s.toAmino())
42715
+ access_list: i.length > 0 ? i.map((s) => s.toAmino()) : null
42717
42716
  }
42718
42717
  };
42719
42718
  }
@@ -42783,7 +42782,7 @@ class MsgCreate2 extends JSONSerializable {
42783
42782
  r,
42784
42783
  parseInt(i),
42785
42784
  s,
42786
- k.map(AccessTuple.fromAmino)
42785
+ (k == null ? void 0 : k.map(AccessTuple.fromAmino)) ?? []
42787
42786
  );
42788
42787
  }
42789
42788
  toAmino() {
@@ -42795,7 +42794,7 @@ class MsgCreate2 extends JSONSerializable {
42795
42794
  code: n,
42796
42795
  salt: r.toFixed(),
42797
42796
  value: i,
42798
- access_list: s.map((k) => k.toAmino())
42797
+ access_list: s.length > 0 ? s.map((k) => k.toAmino()) : null
42799
42798
  }
42800
42799
  };
42801
42800
  }
@@ -42869,7 +42868,7 @@ class MsgCall extends JSONSerializable {
42869
42868
  r,
42870
42869
  i,
42871
42870
  s,
42872
- k.map(AccessTuple.fromAmino)
42871
+ (k == null ? void 0 : k.map(AccessTuple.fromAmino)) ?? []
42873
42872
  );
42874
42873
  }
42875
42874
  toAmino() {
@@ -42881,7 +42880,7 @@ class MsgCall extends JSONSerializable {
42881
42880
  contract_addr: n,
42882
42881
  input: r,
42883
42882
  value: i,
42884
- access_list: s.map((k) => k.toAmino())
42883
+ access_list: s.length > 0 ? s.map((k) => k.toAmino()) : null
42885
42884
  }
42886
42885
  };
42887
42886
  }
@@ -42960,9 +42959,9 @@ class EvmParams extends JSONSerializable {
42960
42959
  } = t;
42961
42960
  return new EvmParams(
42962
42961
  n.map(parseInt),
42963
- r,
42962
+ r ?? [],
42964
42963
  i,
42965
- s,
42964
+ s ?? [],
42966
42965
  k,
42967
42966
  A,
42968
42967
  parseInt(S)
@@ -42980,9 +42979,9 @@ class EvmParams extends JSONSerializable {
42980
42979
  } = this;
42981
42980
  return {
42982
42981
  extra_eips: t.map((S) => S.toFixed()),
42983
- allowed_publishers: n,
42982
+ allowed_publishers: n.length > 0 ? n : null,
42984
42983
  allow_custom_erc20: r,
42985
- allowed_custom_erc20s: i,
42984
+ allowed_custom_erc20s: i.length > 0 ? i : null,
42986
42985
  fee_denom: s,
42987
42986
  gas_refund_ratio: k,
42988
42987
  num_retain_block_hashes: A.toFixed()
@@ -47971,7 +47970,7 @@ class MsgDeposit extends JSONSerializable {
47971
47970
  return new MsgDeposit(
47972
47971
  parseInt(r),
47973
47972
  i,
47974
- Coins.fromAmino(s)
47973
+ s ? Coins.fromAmino(s) : new Coins()
47975
47974
  );
47976
47975
  }
47977
47976
  toAmino() {
@@ -47981,7 +47980,7 @@ class MsgDeposit extends JSONSerializable {
47981
47980
  value: {
47982
47981
  proposal_id: n.toFixed(),
47983
47982
  depositor: r,
47984
- amount: i.toAmino()
47983
+ amount: i.toArray().length > 0 ? i.toAmino() : null
47985
47984
  }
47986
47985
  };
47987
47986
  }
@@ -48250,7 +48249,7 @@ class ParameterChangeProposal extends JSONSerializable {
48250
48249
  return new ParameterChangeProposal(
48251
48250
  r,
48252
48251
  i,
48253
- ParamChanges.fromAmino(s)
48252
+ s ? ParamChanges.fromAmino(s) : []
48254
48253
  );
48255
48254
  }
48256
48255
  toAmino() {
@@ -48260,7 +48259,7 @@ class ParameterChangeProposal extends JSONSerializable {
48260
48259
  value: {
48261
48260
  title: n,
48262
48261
  description: r,
48263
- changes: i.toAmino()
48262
+ changes: i.toAmino().length > 0 ? i.toAmino() : null
48264
48263
  }
48265
48264
  };
48266
48265
  }
@@ -49080,7 +49079,7 @@ class Proposal extends JSONSerializable {
49080
49079
  TallyResult.fromAmino(k),
49081
49080
  new Date(A),
49082
49081
  new Date(S),
49083
- Coins.fromAmino(v),
49082
+ v ? Coins.fromAmino(v) : new Coins(),
49084
49083
  new Date(N),
49085
49084
  new Date(_),
49086
49085
  new Date(q),
@@ -49122,7 +49121,7 @@ class Proposal extends JSONSerializable {
49122
49121
  final_tally_result: s.toAmino(),
49123
49122
  submit_time: k.toISOString(),
49124
49123
  deposit_end_time: A.toISOString(),
49125
- total_deposit: S.toAmino(),
49124
+ total_deposit: S.toArray().length > 0 ? S.toAmino() : null,
49126
49125
  voting_start_time: v.toISOString(),
49127
49126
  voting_end_time: N.toISOString(),
49128
49127
  emergency_start_time: _.toISOString(),
@@ -49662,7 +49661,7 @@ class Vote extends JSONSerializable {
49662
49661
  return new Vote(
49663
49662
  parseInt(n),
49664
49663
  r,
49665
- i.map((k) => WeightedVoteOption.fromAmino(k)),
49664
+ i.map(WeightedVoteOption.fromAmino),
49666
49665
  s
49667
49666
  );
49668
49667
  }
@@ -49680,7 +49679,7 @@ class Vote extends JSONSerializable {
49680
49679
  return new Vote(
49681
49680
  parseInt(n),
49682
49681
  r,
49683
- i.map((k) => WeightedVoteOption.fromData(k)),
49682
+ i.map(WeightedVoteOption.fromData),
49684
49683
  s
49685
49684
  );
49686
49685
  }
@@ -49697,7 +49696,7 @@ class Vote extends JSONSerializable {
49697
49696
  return new Vote(
49698
49697
  Number(t.proposalId),
49699
49698
  t.voter,
49700
- t.options.map((n) => WeightedVoteOption.fromProto(n)),
49699
+ t.options.map(WeightedVoteOption.fromProto),
49701
49700
  t.metadata
49702
49701
  );
49703
49702
  }
@@ -49767,7 +49766,7 @@ class MsgVoteWeightedLegacy extends JSONSerializable {
49767
49766
  return new MsgVoteWeightedLegacy(
49768
49767
  parseInt(n),
49769
49768
  r,
49770
- i.map((s) => WeightedVoteOption.fromAmino(s))
49769
+ (i == null ? void 0 : i.map(WeightedVoteOption.fromAmino)) ?? []
49771
49770
  );
49772
49771
  }
49773
49772
  toAmino() {
@@ -49777,7 +49776,7 @@ class MsgVoteWeightedLegacy extends JSONSerializable {
49777
49776
  value: {
49778
49777
  proposal_id: t.toFixed(),
49779
49778
  voter: n,
49780
- options: r.map((i) => i.toAmino())
49779
+ options: r.length > 0 ? r.map((i) => i.toAmino()) : null
49781
49780
  }
49782
49781
  };
49783
49782
  }
@@ -49786,7 +49785,7 @@ class MsgVoteWeightedLegacy extends JSONSerializable {
49786
49785
  return new MsgVoteWeightedLegacy(
49787
49786
  parseInt(n),
49788
49787
  r,
49789
- i.map((s) => WeightedVoteOption.fromData(s))
49788
+ i.map(WeightedVoteOption.fromData)
49790
49789
  );
49791
49790
  }
49792
49791
  toData() {
@@ -49802,7 +49801,7 @@ class MsgVoteWeightedLegacy extends JSONSerializable {
49802
49801
  return new MsgVoteWeightedLegacy(
49803
49802
  Number(t.proposalId),
49804
49803
  t.voter,
49805
- t.options.map((n) => WeightedVoteOption.fromProto(n))
49804
+ t.options.map(WeightedVoteOption.fromProto)
49806
49805
  );
49807
49806
  }
49808
49807
  toProto() {
@@ -49842,7 +49841,7 @@ class MsgVoteWeighted extends JSONSerializable {
49842
49841
  return new MsgVoteWeighted(
49843
49842
  parseInt(n),
49844
49843
  r,
49845
- i.map((k) => WeightedVoteOption.fromAmino(k)),
49844
+ i.map(WeightedVoteOption.fromAmino),
49846
49845
  s ?? ""
49847
49846
  );
49848
49847
  }
@@ -49863,7 +49862,7 @@ class MsgVoteWeighted extends JSONSerializable {
49863
49862
  return new MsgVoteWeighted(
49864
49863
  parseInt(n),
49865
49864
  r,
49866
- i.map((k) => WeightedVoteOption.fromData(k)),
49865
+ i.map(WeightedVoteOption.fromData),
49867
49866
  s
49868
49867
  );
49869
49868
  }
@@ -49881,7 +49880,7 @@ class MsgVoteWeighted extends JSONSerializable {
49881
49880
  return new MsgVoteWeighted(
49882
49881
  Number(t.proposalId),
49883
49882
  t.voter,
49884
- t.options.map((n) => WeightedVoteOption.fromProto(n)),
49883
+ t.options.map(WeightedVoteOption.fromProto),
49885
49884
  t.metadata
49886
49885
  );
49887
49886
  }
@@ -50003,7 +50002,7 @@ class GovParams extends JSONSerializable {
50003
50002
  vesting: U
50004
50003
  } = n;
50005
50004
  return new GovParams(
50006
- Coins.fromAmino(r),
50005
+ r ? Coins.fromAmino(r) : new Coins(),
50007
50006
  Duration.fromAmino(i),
50008
50007
  Duration.fromAmino(s),
50009
50008
  k,
@@ -50014,12 +50013,12 @@ class GovParams extends JSONSerializable {
50014
50013
  _,
50015
50014
  Duration.fromAmino(q),
50016
50015
  I,
50017
- Coins.fromAmino(l),
50016
+ l ? Coins.fromAmino(l) : new Coins(),
50018
50017
  u,
50019
50018
  o,
50020
50019
  c,
50021
50020
  h,
50022
- Coins.fromAmino(P),
50021
+ P ? Coins.fromAmino(P) : new Coins(),
50023
50022
  Duration.fromAmino(d),
50024
50023
  p,
50025
50024
  U ? Vesting.fromAmino(U) : void 0
@@ -50049,7 +50048,7 @@ class GovParams extends JSONSerializable {
50049
50048
  vesting: p
50050
50049
  } = this;
50051
50050
  return {
50052
- min_deposit: n.toAmino(),
50051
+ min_deposit: n.toArray().length > 0 ? n.toAmino() : null,
50053
50052
  max_deposit_period: r.toAmino(),
50054
50053
  voting_period: i.toAmino(),
50055
50054
  quorum: s,
@@ -50060,12 +50059,12 @@ class GovParams extends JSONSerializable {
50060
50059
  proposal_cancel_dest: N,
50061
50060
  expedited_voting_period: _.toAmino(),
50062
50061
  expedited_threshold: q,
50063
- expedited_min_deposit: I.toAmino(),
50062
+ expedited_min_deposit: I.toArray().length > 0 ? I.toAmino() : null,
50064
50063
  burn_vote_quorum: l,
50065
50064
  burn_proposal_deposit_prevote: u,
50066
50065
  burn_vote_veto: o,
50067
50066
  min_deposit_ratio: c,
50068
- emergency_min_deposit: h.toAmino(),
50067
+ emergency_min_deposit: h.toArray().length > 0 ? h.toAmino() : null,
50069
50068
  emergency_tally_interval: P.toAmino(),
50070
50069
  low_threshold_functions: d,
50071
50070
  vesting: p == null ? void 0 : p.toAmino()
@@ -50479,7 +50478,7 @@ class Deposit extends JSONSerializable {
50479
50478
  return new Deposit(
50480
50479
  parseInt(r),
50481
50480
  i,
50482
- Coins.fromAmino(s)
50481
+ s ? Coins.fromAmino(s) : new Coins()
50483
50482
  );
50484
50483
  }
50485
50484
  toAmino() {
@@ -50487,7 +50486,7 @@ class Deposit extends JSONSerializable {
50487
50486
  return {
50488
50487
  proposal_id: n.toFixed(),
50489
50488
  depositor: r,
50490
- amount: i.toAmino()
50489
+ amount: i.toArray().length > 0 ? i.toAmino() : null
50491
50490
  };
50492
50491
  }
50493
50492
  static fromData(n) {
@@ -53485,7 +53484,7 @@ class MsgCreateGroup extends JSONSerializable {
53485
53484
  } = t;
53486
53485
  return new MsgCreateGroup(
53487
53486
  n,
53488
- r.map(MemberRequest.fromAmino),
53487
+ (r == null ? void 0 : r.map(MemberRequest.fromAmino)) ?? [],
53489
53488
  i
53490
53489
  );
53491
53490
  }
@@ -53495,7 +53494,7 @@ class MsgCreateGroup extends JSONSerializable {
53495
53494
  type: "cosmos-sdk/MsgCreateGroup",
53496
53495
  value: {
53497
53496
  admin: t,
53498
- members: n.map((i) => i.toAmino()),
53497
+ members: n.length > 0 ? n.map((i) => i.toAmino()) : null,
53499
53498
  metadata: r
53500
53499
  }
53501
53500
  };
@@ -53868,7 +53867,7 @@ class MsgCreateGroupWithPolicy extends JSONSerializable {
53868
53867
  } = t;
53869
53868
  return new MsgCreateGroupWithPolicy(
53870
53869
  n,
53871
- r.map(MemberRequest.fromAmino),
53870
+ (r == null ? void 0 : r.map(MemberRequest.fromAmino)) ?? [],
53872
53871
  i,
53873
53872
  s,
53874
53873
  k,
@@ -53888,7 +53887,7 @@ class MsgCreateGroupWithPolicy extends JSONSerializable {
53888
53887
  type: "cosmos-sdk/MsgCreateGroupWithPolicy",
53889
53888
  value: {
53890
53889
  admin: t,
53891
- members: n.map((A) => A.toAmino()),
53890
+ members: n.length > 0 ? n.map((A) => A.toAmino()) : null,
53892
53891
  group_metadata: r,
53893
53892
  group_policy_metadata: i,
53894
53893
  group_policy_as_admin: s,
@@ -54477,7 +54476,7 @@ class MsgUpdateGroupMembers extends JSONSerializable {
54477
54476
  return new MsgUpdateGroupMembers(
54478
54477
  n,
54479
54478
  parseInt(r),
54480
- i.map(MemberRequest.fromAmino)
54479
+ (i == null ? void 0 : i.map(MemberRequest.fromAmino)) ?? []
54481
54480
  );
54482
54481
  }
54483
54482
  toAmino() {
@@ -54487,7 +54486,7 @@ class MsgUpdateGroupMembers extends JSONSerializable {
54487
54486
  value: {
54488
54487
  admin: t,
54489
54488
  group_id: n.toFixed(),
54490
- member_updates: r.map((i) => i.toAmino())
54489
+ member_updates: r.length > 0 ? r.map((i) => i.toAmino()) : null
54491
54490
  }
54492
54491
  };
54493
54492
  }
@@ -57347,7 +57346,7 @@ class IdentifiedPacketFees extends JSONSerializable {
57347
57346
  const { packet_id: n, packet_fees: r } = t;
57348
57347
  return new IdentifiedPacketFees(
57349
57348
  n ? PacketId.fromAmino(n) : void 0,
57350
- r.map((i) => PacketFee.fromAmino(i))
57349
+ r.map(PacketFee.fromAmino)
57351
57350
  );
57352
57351
  }
57353
57352
  toAmino() {
@@ -57361,7 +57360,7 @@ class IdentifiedPacketFees extends JSONSerializable {
57361
57360
  const { packet_id: n, packet_fees: r } = t;
57362
57361
  return new IdentifiedPacketFees(
57363
57362
  n ? PacketId.fromData(n) : void 0,
57364
- r.map((i) => PacketFee.fromData(i))
57363
+ r.map(PacketFee.fromData)
57365
57364
  );
57366
57365
  }
57367
57366
  toData() {
@@ -57374,7 +57373,7 @@ class IdentifiedPacketFees extends JSONSerializable {
57374
57373
  static fromProto(t) {
57375
57374
  return new IdentifiedPacketFees(
57376
57375
  t.packetId ? PacketId.fromProto(t.packetId) : void 0,
57377
- t.packetFees.map((n) => PacketFee.fromProto(n))
57376
+ t.packetFees.map(PacketFee.fromProto)
57378
57377
  );
57379
57378
  }
57380
57379
  toProto() {
@@ -64603,7 +64602,7 @@ class ClientConsensusStates extends JSONSerializable {
64603
64602
  const { client_id: n, consensus_states: r } = t;
64604
64603
  return new ClientConsensusStates(
64605
64604
  n,
64606
- r.map((i) => ConsensusStateWithHeight.fromAmino(i))
64605
+ r.map(ConsensusStateWithHeight.fromAmino)
64607
64606
  );
64608
64607
  }
64609
64608
  toAmino() {
@@ -64617,7 +64616,7 @@ class ClientConsensusStates extends JSONSerializable {
64617
64616
  const { client_id: n, consensus_states: r } = t;
64618
64617
  return new ClientConsensusStates(
64619
64618
  n,
64620
- r.map((i) => ConsensusStateWithHeight.fromData(i))
64619
+ r.map(ConsensusStateWithHeight.fromData)
64621
64620
  );
64622
64621
  }
64623
64622
  toData() {
@@ -64630,9 +64629,7 @@ class ClientConsensusStates extends JSONSerializable {
64630
64629
  static fromProto(t) {
64631
64630
  return new ClientConsensusStates(
64632
64631
  t.clientId,
64633
- t.consensusStates.map(
64634
- (n) => ConsensusStateWithHeight.fromProto(n)
64635
- )
64632
+ t.consensusStates.map(ConsensusStateWithHeight.fromProto)
64636
64633
  );
64637
64634
  }
64638
64635
  toProto() {
@@ -68664,7 +68661,7 @@ class MsgConnectionOpenTry extends JSONSerializable {
68664
68661
  r,
68665
68662
  i ? ConnectionCounterparty.fromData(i) : void 0,
68666
68663
  parseInt(s),
68667
- k.map((I) => IbcVersion.fromData(I)),
68664
+ k.map(IbcVersion.fromData),
68668
68665
  A ? Height.fromData(A) : void 0,
68669
68666
  Buffer.from(S).toString("base64"),
68670
68667
  Buffer.from(v).toString("base64"),
@@ -68708,7 +68705,7 @@ class MsgConnectionOpenTry extends JSONSerializable {
68708
68705
  t.clientState,
68709
68706
  t.counterparty ? ConnectionCounterparty.fromProto(t.counterparty) : void 0,
68710
68707
  Number(t.delayPeriod),
68711
- t.counterpartyVersions.map((n) => IbcVersion.fromProto(n)),
68708
+ t.counterpartyVersions.map(IbcVersion.fromProto),
68712
68709
  t.proofHeight ? Height.fromProto(t.proofHeight) : void 0,
68713
68710
  Buffer.from(t.proofInit).toString("base64"),
68714
68711
  Buffer.from(t.proofClient).toString("base64"),
@@ -74365,7 +74362,7 @@ class MoveParams extends JSONSerializable {
74365
74362
  r,
74366
74363
  i,
74367
74364
  s,
74368
- k
74365
+ k ?? []
74369
74366
  );
74370
74367
  }
74371
74368
  toAmino() {
@@ -74383,7 +74380,7 @@ class MoveParams extends JSONSerializable {
74383
74380
  base_min_gas_price: n,
74384
74381
  contract_shared_revenue_ratio: r,
74385
74382
  script_enabled: i,
74386
- allowed_publishers: s
74383
+ allowed_publishers: s.length > 0 ? s : null
74387
74384
  }
74388
74385
  };
74389
74386
  }
@@ -77594,7 +77591,7 @@ class MsgDelegate extends JSONSerializable {
77594
77591
  return new MsgDelegate(
77595
77592
  r,
77596
77593
  i,
77597
- Coins.fromAmino(s)
77594
+ s ? Coins.fromAmino(s) : new Coins()
77598
77595
  );
77599
77596
  }
77600
77597
  toAmino() {
@@ -77604,7 +77601,7 @@ class MsgDelegate extends JSONSerializable {
77604
77601
  value: {
77605
77602
  delegator_address: n,
77606
77603
  validator_address: r,
77607
- amount: i.toAmino()
77604
+ amount: i.toArray().length > 0 ? i.toAmino() : null
77608
77605
  }
77609
77606
  };
77610
77607
  }
@@ -77668,7 +77665,7 @@ class MsgUndelegate extends JSONSerializable {
77668
77665
  return new MsgUndelegate(
77669
77666
  r,
77670
77667
  i,
77671
- Coins.fromAmino(s)
77668
+ s ? Coins.fromAmino(s) : new Coins()
77672
77669
  );
77673
77670
  }
77674
77671
  toAmino() {
@@ -77678,7 +77675,7 @@ class MsgUndelegate extends JSONSerializable {
77678
77675
  value: {
77679
77676
  delegator_address: n,
77680
77677
  validator_address: r,
77681
- amount: i.toAmino()
77678
+ amount: i.toArray().length > 0 ? i.toAmino() : null
77682
77679
  }
77683
77680
  };
77684
77681
  }
@@ -77749,7 +77746,7 @@ class MsgBeginRedelegate extends JSONSerializable {
77749
77746
  r,
77750
77747
  i,
77751
77748
  s,
77752
- Coins.fromAmino(k)
77749
+ k ? Coins.fromAmino(k) : new Coins()
77753
77750
  );
77754
77751
  }
77755
77752
  toAmino() {
@@ -77765,7 +77762,7 @@ class MsgBeginRedelegate extends JSONSerializable {
77765
77762
  delegator_address: n,
77766
77763
  validator_src_address: r,
77767
77764
  validator_dst_address: i,
77768
- amount: s.toAmino()
77765
+ amount: s.toArray().length > 0 ? s.toAmino() : null
77769
77766
  }
77770
77767
  };
77771
77768
  }
@@ -78157,7 +78154,7 @@ class MsgCreateValidator extends JSONSerializable {
78157
78154
  Validator.CommissionRates.fromAmino(i),
78158
78155
  s,
78159
78156
  ValConsPublicKey.fromAmino(k),
78160
- Coins.fromAmino(A)
78157
+ A ? Coins.fromAmino(A) : new Coins()
78161
78158
  );
78162
78159
  }
78163
78160
  toAmino() {
@@ -78169,7 +78166,7 @@ class MsgCreateValidator extends JSONSerializable {
78169
78166
  commission: r.toAmino(),
78170
78167
  validator_address: i,
78171
78168
  pubkey: s.toAmino(),
78172
- amount: k.toAmino()
78169
+ amount: k.toArray().length > 0 ? k.toAmino() : null
78173
78170
  }
78174
78171
  };
78175
78172
  }
@@ -78330,7 +78327,7 @@ class MsgCancelUnbondingDelegation extends JSONSerializable {
78330
78327
  return new MsgCancelUnbondingDelegation(
78331
78328
  r,
78332
78329
  i,
78333
- Coins.fromAmino(s),
78330
+ s ? Coins.fromAmino(s) : new Coins(),
78334
78331
  parseInt(k)
78335
78332
  );
78336
78333
  }
@@ -78341,7 +78338,7 @@ class MsgCancelUnbondingDelegation extends JSONSerializable {
78341
78338
  value: {
78342
78339
  delegator_address: n,
78343
78340
  validator_address: r,
78344
- amount: i.toAmino(),
78341
+ amount: i.toArray().length > 0 ? i.toAmino() : null,
78345
78342
  creation_height: s.toFixed()
78346
78343
  }
78347
78344
  };
@@ -78695,7 +78692,7 @@ class Redelegation extends JSONSerializable {
78695
78692
  n,
78696
78693
  r,
78697
78694
  i,
78698
- s.map((k) => Redelegation.Entry.fromAmino(k))
78695
+ s.map(Redelegation.Entry.fromAmino)
78699
78696
  );
78700
78697
  }
78701
78698
  toAmino() {
@@ -78727,7 +78724,7 @@ class Redelegation extends JSONSerializable {
78727
78724
  n,
78728
78725
  r,
78729
78726
  i,
78730
- s.map((k) => Redelegation.Entry.fromData(k))
78727
+ s.map(Redelegation.Entry.fromData)
78731
78728
  );
78732
78729
  }
78733
78730
  toData() {
@@ -78752,7 +78749,7 @@ class Redelegation extends JSONSerializable {
78752
78749
  n.delegatorAddress,
78753
78750
  n.validatorDstAddress,
78754
78751
  n.validatorDstAddress,
78755
- t.entries.map((r) => Redelegation.Entry.fromProto(r))
78752
+ t.entries.map(Redelegation.Entry.fromProto)
78756
78753
  );
78757
78754
  }
78758
78755
  toProto() {
@@ -78888,7 +78885,7 @@ class UnbondingDelegation extends JSONSerializable {
78888
78885
  return new UnbondingDelegation(
78889
78886
  n,
78890
78887
  r,
78891
- i.map((s) => UnbondingDelegation.Entry.fromAmino(s))
78888
+ i.map(UnbondingDelegation.Entry.fromAmino)
78892
78889
  );
78893
78890
  }
78894
78891
  toAmino() {
@@ -78904,7 +78901,7 @@ class UnbondingDelegation extends JSONSerializable {
78904
78901
  return new UnbondingDelegation(
78905
78902
  n,
78906
78903
  r,
78907
- i.map((s) => UnbondingDelegation.Entry.fromData(s))
78904
+ i.map(UnbondingDelegation.Entry.fromData)
78908
78905
  );
78909
78906
  }
78910
78907
  toData() {
@@ -78927,7 +78924,7 @@ class UnbondingDelegation extends JSONSerializable {
78927
78924
  return new UnbondingDelegation(
78928
78925
  t.delegatorAddress,
78929
78926
  t.validatorAddress,
78930
- t.entries.map((n) => UnbondingDelegation.Entry.fromProto(n))
78927
+ t.entries.map(UnbondingDelegation.Entry.fromProto)
78931
78928
  );
78932
78929
  }
78933
78930
  }
@@ -86859,7 +86856,11 @@ class MsgSpendFeePool extends JSONSerializable {
86859
86856
  const {
86860
86857
  value: { authority: r, recipient: i, amount: s }
86861
86858
  } = n;
86862
- return new MsgSpendFeePool(r, i, Coins.fromAmino(s));
86859
+ return new MsgSpendFeePool(
86860
+ r,
86861
+ i,
86862
+ s ? Coins.fromAmino(s) : new Coins()
86863
+ );
86863
86864
  }
86864
86865
  toAmino() {
86865
86866
  const { authority: n, recipient: r, amount: i } = this;
@@ -86868,7 +86869,7 @@ class MsgSpendFeePool extends JSONSerializable {
86868
86869
  value: {
86869
86870
  authority: n,
86870
86871
  recipient: r,
86871
- amount: i.toAmino()
86872
+ amount: i.toArray().length > 0 ? i.toAmino() : null
86872
86873
  }
86873
86874
  };
86874
86875
  }
@@ -89716,13 +89717,15 @@ class OphostParams extends JSONSerializable {
89716
89717
  this.registration_fee = new Coins(n);
89717
89718
  }
89718
89719
  static fromAmino(n) {
89719
- return new OphostParams(Coins.fromAmino(n.value.registration_fee));
89720
+ return new OphostParams(
89721
+ n.value.registration_fee ? Coins.fromAmino(n.value.registration_fee) : new Coins()
89722
+ );
89720
89723
  }
89721
89724
  toAmino() {
89722
89725
  return {
89723
89726
  type: "ophost/Params",
89724
89727
  value: {
89725
- registration_fee: this.registration_fee.toAmino()
89728
+ registration_fee: this.registration_fee.toArray().length > 0 ? this.registration_fee.toAmino() : null
89726
89729
  }
89727
89730
  };
89728
89731
  }
@@ -90144,9 +90147,9 @@ class OpchildParams extends JSONSerializable {
90144
90147
  r,
90145
90148
  i,
90146
90149
  Coins.fromAmino(s),
90147
- k,
90150
+ k ?? [],
90148
90151
  A,
90149
- S,
90152
+ S ?? [],
90150
90153
  parseInt(v)
90151
90154
  );
90152
90155
  }
@@ -90166,9 +90169,9 @@ class OpchildParams extends JSONSerializable {
90166
90169
  max_validators: n,
90167
90170
  historical_entries: r,
90168
90171
  min_gas_prices: i.toAmino(),
90169
- bridge_executors: s,
90172
+ bridge_executors: s.length > 0 ? s : null,
90170
90173
  admin: k,
90171
- fee_whitelist: A,
90174
+ fee_whitelist: A.length > 0 ? A : null,
90172
90175
  hook_max_gas: S.toFixed()
90173
90176
  }
90174
90177
  };
@@ -94334,7 +94337,7 @@ class TxInfo {
94334
94337
  Number(t.height),
94335
94338
  t.txhash,
94336
94339
  t.rawLog,
94337
- t.logs.map((n) => TxLog.fromProto(n)),
94340
+ t.logs.map(TxLog.fromProto),
94338
94341
  Number(t.gasWanted),
94339
94342
  Number(t.gasUsed),
94340
94343
  Tx.unpackAny(t.tx),
@@ -94349,7 +94352,7 @@ class TxInfo {
94349
94352
  parseInt(t.height),
94350
94353
  t.txhash,
94351
94354
  t.raw_log,
94352
- t.logs.map((n) => TxLog.fromData(n)),
94355
+ t.logs.map(TxLog.fromData),
94353
94356
  parseInt(t.gas_wanted),
94354
94357
  parseInt(t.gas_used),
94355
94358
  Tx.fromData(t.tx),
@@ -96477,11 +96480,7 @@ class RESTClient {
96477
96480
  return ((t = (await this.opchild.parameters()).min_gas_prices.toArray()[0]) == null ? void 0 : t.toString()) ?? "0uinit";
96478
96481
  } catch {
96479
96482
  try {
96480
- const n = await this.move.parameters();
96481
- return new Coin(
96482
- n.base_denom,
96483
- n.base_min_gas_price
96484
- ).toString();
96483
+ return (await this.tx.gasPrice("uinit")).toString();
96485
96484
  } catch {
96486
96485
  return;
96487
96486
  }