@skip-go/client 1.0.0 → 1.0.1-alpha-1

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 (101) hide show
  1. package/dist/api/getAssets.js +2 -0
  2. package/dist/api/getAssetsBetweenChains.js +2 -0
  3. package/dist/api/getBridges.js +2 -0
  4. package/dist/api/getChains.js +2 -0
  5. package/dist/api/getVenues.js +2 -0
  6. package/dist/api/postAssetsFromSource.js +3 -0
  7. package/dist/api/postBalances.js +2 -0
  8. package/dist/api/postIbcOriginAssets.js +2 -0
  9. package/dist/api/postMessages.js +2 -0
  10. package/dist/api/postMessagesDirect.js +2 -0
  11. package/dist/api/postRecommendAssets.js +2 -0
  12. package/dist/api/postRoute.js +2 -0
  13. package/dist/api/postSubmitTransaction.js +2 -0
  14. package/dist/api/postTrackTransaction.js +2 -0
  15. package/dist/api/postTransactionStatus.js +2 -0
  16. package/dist/{chunk-C5CGY2X7.mjs → chunk-33K6EESX.js} +1 -1
  17. package/dist/{chunk-ZMEQSFOL.mjs → chunk-3N7XVGLX.js} +18 -23
  18. package/dist/{chunk-OTLFF5OB.mjs → chunk-3OZQ35X3.js} +101 -138
  19. package/dist/{chunk-7TBBV2YY.mjs → chunk-4JJWOILI.js} +1 -1
  20. package/dist/{chunk-QZ3X6MP3.mjs → chunk-BQTQJQ5E.js} +1 -1
  21. package/dist/{chunk-IHIJJNTV.mjs → chunk-BRJDNGYH.js} +6 -7
  22. package/dist/chunk-BRMONS6A.js +130 -0
  23. package/dist/{chunk-NNZFCKHP.mjs → chunk-C2EDPY6J.js} +1 -1
  24. package/dist/{chunk-KPK3Z6QZ.mjs → chunk-DW4U6YI6.js} +1 -1
  25. package/dist/chunk-GARVPN2H.js +16 -0
  26. package/dist/{chunk-NU7MCJOK.mjs → chunk-JTIHU43D.js} +32 -36
  27. package/dist/{chunk-J7GGREYX.mjs → chunk-KNV72XRZ.js} +1 -1
  28. package/dist/{chunk-CAAR7GDJ.mjs → chunk-MGVXJ2U4.js} +1 -1
  29. package/dist/{chunk-IGD32L7C.mjs → chunk-MTMPHY3Y.js} +1 -1
  30. package/dist/{chunk-CZ27FEZ7.mjs → chunk-PRQ2NHRZ.js} +1 -1
  31. package/dist/{chunk-LJVI5DLG.mjs → chunk-RDRDFJQE.js} +1 -1
  32. package/dist/{chunk-YWYU6P7W.mjs → chunk-RMP3HM5N.js} +2 -2
  33. package/dist/{chunk-DZQJN6OX.mjs → chunk-SQGWZAUC.js} +76 -86
  34. package/dist/{chunk-2ETF4N4H.mjs → chunk-TW77BXMT.js} +4 -5
  35. package/dist/{chunk-2F4MBSMT.mjs → chunk-VMPFHQ7U.js} +14 -20
  36. package/dist/chunk-W6TBGBV3.js +675 -0
  37. package/dist/chunk-Y5EY3Q6D.js +1790 -0
  38. package/dist/index.js +24 -0
  39. package/dist/public-functions/executeRoute.js +12 -0
  40. package/dist/public-functions/getFeeInfoForChain.js +5 -0
  41. package/dist/public-functions/getRecommendedGasPrice.js +7 -0
  42. package/dist/public-functions/getSigningStargateClient.js +4 -0
  43. package/dist/public-functions/setApiOptions.js +2 -0
  44. package/dist/public-functions/setClientOptions.js +4 -0
  45. package/package.json +12 -3
  46. package/dist/api/getAssets.d.mts +0 -19
  47. package/dist/api/getAssets.mjs +0 -2
  48. package/dist/api/getAssetsBetweenChains.d.mts +0 -56
  49. package/dist/api/getAssetsBetweenChains.mjs +0 -2
  50. package/dist/api/getBridges.d.mts +0 -54
  51. package/dist/api/getBridges.mjs +0 -2
  52. package/dist/api/getChains.d.mts +0 -41
  53. package/dist/api/getChains.mjs +0 -2
  54. package/dist/api/getVenues.d.mts +0 -13
  55. package/dist/api/getVenues.mjs +0 -2
  56. package/dist/api/postAssetsFromSource.d.mts +0 -13
  57. package/dist/api/postAssetsFromSource.mjs +0 -3
  58. package/dist/api/postBalances.d.mts +0 -35
  59. package/dist/api/postBalances.mjs +0 -2
  60. package/dist/api/postIbcOriginAssets.d.mts +0 -32
  61. package/dist/api/postIbcOriginAssets.mjs +0 -2
  62. package/dist/api/postMessages.d.mts +0 -528
  63. package/dist/api/postMessages.mjs +0 -2
  64. package/dist/api/postMessagesDirect.d.mts +0 -568
  65. package/dist/api/postMessagesDirect.mjs +0 -2
  66. package/dist/api/postRecommendAssets.d.mts +0 -40
  67. package/dist/api/postRecommendAssets.mjs +0 -2
  68. package/dist/api/postRoute.d.mts +0 -460
  69. package/dist/api/postRoute.mjs +0 -2
  70. package/dist/api/postSubmitTransaction.d.mts +0 -13
  71. package/dist/api/postSubmitTransaction.mjs +0 -2
  72. package/dist/api/postTrackTransaction.d.mts +0 -13
  73. package/dist/api/postTrackTransaction.mjs +0 -2
  74. package/dist/api/postTransactionStatus.d.mts +0 -559
  75. package/dist/api/postTransactionStatus.mjs +0 -2
  76. package/dist/apiState-CdzxTxYd.d.mts +0 -6
  77. package/dist/chunk-2FYLP573.mjs +0 -15
  78. package/dist/chunk-DKIWPD5I.mjs +0 -124
  79. package/dist/chunk-I2MX24LT.mjs +0 -2316
  80. package/dist/chunk-RXWDHQLG.mjs +0 -231
  81. package/dist/client-types-CVch1pZ-.d.mts +0 -60
  82. package/dist/executeRoute-CRdeEz1o.d.mts +0 -69
  83. package/dist/generateApi-3mHZ6Zbr.d.mts +0 -22
  84. package/dist/index.d.mts +0 -37
  85. package/dist/index.mjs +0 -24
  86. package/dist/public-functions/executeRoute.d.mts +0 -9
  87. package/dist/public-functions/executeRoute.mjs +0 -12
  88. package/dist/public-functions/getFeeInfoForChain.d.mts +0 -9
  89. package/dist/public-functions/getFeeInfoForChain.mjs +0 -5
  90. package/dist/public-functions/getRecommendedGasPrice.d.mts +0 -9
  91. package/dist/public-functions/getRecommendedGasPrice.mjs +0 -7
  92. package/dist/public-functions/getSigningStargateClient.d.mts +0 -13
  93. package/dist/public-functions/getSigningStargateClient.mjs +0 -4
  94. package/dist/public-functions/setApiOptions.d.mts +0 -9
  95. package/dist/public-functions/setApiOptions.mjs +0 -2
  96. package/dist/public-functions/setClientOptions.d.mts +0 -9
  97. package/dist/public-functions/setClientOptions.mjs +0 -4
  98. package/dist/setClientOptions-CVB_OUIn.d.mts +0 -19
  99. package/dist/swaggerTypes-O9-gvCT1.d.mts +0 -1890
  100. /package/dist/{chunk-ZAF3Z56R.mjs → chunk-SWYON2RG.js} +0 -0
  101. /package/dist/{chunk-TUBI6VE6.mjs → chunk-VQ5SIQWU.js} +0 -0
@@ -1,4 +1,4 @@
1
- import { api } from './chunk-RXWDHQLG.mjs';
1
+ import { api } from './chunk-W6TBGBV3.js';
2
2
 
3
3
  // src/api/getBridges.ts
4
4
  var bridges = api({
@@ -1,4 +1,4 @@
1
- import { pollingApi } from './chunk-RXWDHQLG.mjs';
1
+ import { pollingApi } from './chunk-W6TBGBV3.js';
2
2
 
3
3
  // src/api/postTrackTransaction.ts
4
4
  var trackTransaction = pollingApi({
@@ -1,4 +1,4 @@
1
- import { api } from './chunk-RXWDHQLG.mjs';
1
+ import { api } from './chunk-W6TBGBV3.js';
2
2
 
3
3
  // src/api/getAssetsBetweenChains.ts
4
4
  var assetsBetweenChains = api({
@@ -1,4 +1,4 @@
1
- import { api } from './chunk-RXWDHQLG.mjs';
1
+ import { api } from './chunk-W6TBGBV3.js';
2
2
 
3
3
  // src/api/postIbcOriginAssets.ts
4
4
  var ibcOriginAssets = api({
@@ -1,4 +1,4 @@
1
- import { api } from './chunk-RXWDHQLG.mjs';
1
+ import { api } from './chunk-W6TBGBV3.js';
2
2
 
3
3
  // src/api/postSubmitTransaction.ts
4
4
  var submitTransaction = api({
@@ -1,5 +1,5 @@
1
- import { transformAssetsMap } from './chunk-DKIWPD5I.mjs';
2
- import { api } from './chunk-RXWDHQLG.mjs';
1
+ import { transformAssetsMap } from './chunk-BRMONS6A.js';
2
+ import { api } from './chunk-W6TBGBV3.js';
3
3
 
4
4
  // src/api/postAssetsFromSource.ts
5
5
  var assetsFromSource = api({
@@ -1,17 +1,15 @@
1
- import { MsgAcceptOwner, MsgAddRemoteTokenMessenger, MsgDepositForBurn, MsgDepositForBurnWithCaller, MsgDisableAttester, MsgEnableAttester, MsgLinkTokenPair, MsgPauseBurningAndMinting, MsgPauseSendingAndReceivingMessages, MsgReceiveMessage, MsgRemoveRemoteTokenMessenger, MsgReplaceDepositForBurn, MsgReplaceMessage, MsgSendMessage, MsgSendMessageWithCaller, MsgUnlinkTokenPair, MsgUnpauseBurningAndMinting, MsgUnpauseSendingAndReceivingMessages, MsgUpdateOwner, MsgUpdateAttesterManager, MsgUpdateTokenController, MsgUpdatePauser, MsgUpdateMaxMessageBodySize, MsgSetMaxBurnAmountPerMessage, MsgUpdateSignatureThreshold, MsgExecute, MsgInitiateTokenDeposit, Coin, isSet, Long, Timestamp, toTimestamp, Period, fromTimestamp, fromJsonTimestamp, padDecimal } from './chunk-OTLFF5OB.mjs';
2
- import { ClientState } from './chunk-DKIWPD5I.mjs';
3
- import { __spreadValues, ApiState, createRequestClient } from './chunk-RXWDHQLG.mjs';
4
- import { AminoTypes } from '@cosmjs/stargate/build/aminotypes';
5
- import { createDefaultAminoConverters, defaultRegistryTypes } from '@cosmjs/stargate/build/signingstargateclient';
1
+ import { MsgAcceptOwner, MsgAddRemoteTokenMessenger, MsgDepositForBurn, MsgDepositForBurnWithCaller, MsgDisableAttester, MsgEnableAttester, MsgLinkTokenPair, MsgPauseBurningAndMinting, MsgPauseSendingAndReceivingMessages, MsgReceiveMessage, MsgRemoveRemoteTokenMessenger, MsgReplaceDepositForBurn, MsgReplaceMessage, MsgSendMessage, MsgSendMessageWithCaller, MsgUnlinkTokenPair, MsgUnpauseBurningAndMinting, MsgUnpauseSendingAndReceivingMessages, MsgUpdateOwner, MsgUpdateAttesterManager, MsgUpdateTokenController, MsgUpdatePauser, MsgUpdateMaxMessageBodySize, MsgSetMaxBurnAmountPerMessage, MsgUpdateSignatureThreshold, MsgExecute, MsgInitiateTokenDeposit, Coin, isSet, Long, Timestamp, toTimestamp, Period, fromTimestamp, fromJsonTimestamp, padDecimal } from './chunk-3OZQ35X3.js';
2
+ import { ClientState } from './chunk-BRMONS6A.js';
3
+ import { ApiState, createRequestClient } from './chunk-W6TBGBV3.js';
4
+ import { AminoTypes, createDefaultAminoConverters, defaultRegistryTypes } from '@cosmjs/stargate';
6
5
  import { createWasmAminoConverters } from '@cosmjs/cosmwasm-stargate/build/modules/wasm/aminomessages';
7
6
  import '@cosmjs/proto-signing';
8
- import '@cosmjs/stargate';
7
+ import '@cosmjs/tendermint-rpc';
9
8
  import * as _m08 from 'protobufjs/minimal';
10
9
  import { Decimal } from '@cosmjs/math';
11
10
  import { Registry } from '@cosmjs/proto-signing/build/registry';
12
11
  import { MsgExecuteContract } from 'cosmjs-types/cosmwasm/wasm/v1/tx';
13
12
 
14
- // src/codegen/circle/cctp/v1/tx.registry.ts
15
13
  var registry = [["/circle.cctp.v1.MsgAcceptOwner", MsgAcceptOwner], ["/circle.cctp.v1.MsgAddRemoteTokenMessenger", MsgAddRemoteTokenMessenger], ["/circle.cctp.v1.MsgDepositForBurn", MsgDepositForBurn], ["/circle.cctp.v1.MsgDepositForBurnWithCaller", MsgDepositForBurnWithCaller], ["/circle.cctp.v1.MsgDisableAttester", MsgDisableAttester], ["/circle.cctp.v1.MsgEnableAttester", MsgEnableAttester], ["/circle.cctp.v1.MsgLinkTokenPair", MsgLinkTokenPair], ["/circle.cctp.v1.MsgPauseBurningAndMinting", MsgPauseBurningAndMinting], ["/circle.cctp.v1.MsgPauseSendingAndReceivingMessages", MsgPauseSendingAndReceivingMessages], ["/circle.cctp.v1.MsgReceiveMessage", MsgReceiveMessage], ["/circle.cctp.v1.MsgRemoveRemoteTokenMessenger", MsgRemoveRemoteTokenMessenger], ["/circle.cctp.v1.MsgReplaceDepositForBurn", MsgReplaceDepositForBurn], ["/circle.cctp.v1.MsgReplaceMessage", MsgReplaceMessage], ["/circle.cctp.v1.MsgSendMessage", MsgSendMessage], ["/circle.cctp.v1.MsgSendMessageWithCaller", MsgSendMessageWithCaller], ["/circle.cctp.v1.MsgUnlinkTokenPair", MsgUnlinkTokenPair], ["/circle.cctp.v1.MsgUnpauseBurningAndMinting", MsgUnpauseBurningAndMinting], ["/circle.cctp.v1.MsgUnpauseSendingAndReceivingMessages", MsgUnpauseSendingAndReceivingMessages], ["/circle.cctp.v1.MsgUpdateOwner", MsgUpdateOwner], ["/circle.cctp.v1.MsgUpdateAttesterManager", MsgUpdateAttesterManager], ["/circle.cctp.v1.MsgUpdateTokenController", MsgUpdateTokenController], ["/circle.cctp.v1.MsgUpdatePauser", MsgUpdatePauser], ["/circle.cctp.v1.MsgUpdateMaxMessageBodySize", MsgUpdateMaxMessageBodySize], ["/circle.cctp.v1.MsgSetMaxBurnAmountPerMessage", MsgSetMaxBurnAmountPerMessage], ["/circle.cctp.v1.MsgUpdateSignatureThreshold", MsgUpdateSignatureThreshold]];
16
14
 
17
15
  // src/codegen/circle/cctp/v1/tx.amino.ts
@@ -144,7 +142,9 @@ var AminoConverter = {
144
142
  };
145
143
 
146
144
  // src/codegen/circle/client.ts
147
- var circleAminoConverters = __spreadValues({}, AminoConverter);
145
+ var circleAminoConverters = {
146
+ ...AminoConverter
147
+ };
148
148
  var circleProtoRegistry = [...registry];
149
149
  function createBaseParams() {
150
150
  return {
@@ -196,10 +196,9 @@ var Params = {
196
196
  return obj;
197
197
  },
198
198
  fromPartial(object) {
199
- var _a, _b;
200
199
  const message = createBaseParams();
201
- message.enableErc20 = (_a = object.enableErc20) != null ? _a : false;
202
- message.enableEvmHook = (_b = object.enableEvmHook) != null ? _b : false;
200
+ message.enableErc20 = object.enableErc20 ?? false;
201
+ message.enableEvmHook = object.enableEvmHook ?? false;
203
202
  return message;
204
203
  },
205
204
  fromAmino(object) {
@@ -299,11 +298,10 @@ var MsgConvertCoin = {
299
298
  return obj;
300
299
  },
301
300
  fromPartial(object) {
302
- var _a, _b;
303
301
  const message = createBaseMsgConvertCoin();
304
302
  message.coin = object.coin !== void 0 && object.coin !== null ? Coin.fromPartial(object.coin) : void 0;
305
- message.receiver = (_a = object.receiver) != null ? _a : "";
306
- message.sender = (_b = object.sender) != null ? _b : "";
303
+ message.receiver = object.receiver ?? "";
304
+ message.sender = object.sender ?? "";
307
305
  return message;
308
306
  },
309
307
  fromAmino(object) {
@@ -416,12 +414,11 @@ var MsgConvertERC20 = {
416
414
  return obj;
417
415
  },
418
416
  fromPartial(object) {
419
- var _a, _b, _c, _d;
420
417
  const message = createBaseMsgConvertERC20();
421
- message.contractAddress = (_a = object.contractAddress) != null ? _a : "";
422
- message.amount = (_b = object.amount) != null ? _b : "";
423
- message.receiver = (_c = object.receiver) != null ? _c : "";
424
- message.sender = (_d = object.sender) != null ? _d : "";
418
+ message.contractAddress = object.contractAddress ?? "";
419
+ message.amount = object.amount ?? "";
420
+ message.receiver = object.receiver ?? "";
421
+ message.sender = object.sender ?? "";
425
422
  return message;
426
423
  },
427
424
  fromAmino(object) {
@@ -520,9 +517,8 @@ var MsgUpdateParams = {
520
517
  return obj;
521
518
  },
522
519
  fromPartial(object) {
523
- var _a;
524
520
  const message = createBaseMsgUpdateParams();
525
- message.authority = (_a = object.authority) != null ? _a : "";
521
+ message.authority = object.authority ?? "";
526
522
  message.params = object.params !== void 0 && object.params !== null ? Params.fromPartial(object.params) : void 0;
527
523
  return message;
528
524
  },
@@ -626,11 +622,10 @@ var InflationDistribution = {
626
622
  return obj;
627
623
  },
628
624
  fromPartial(object) {
629
- var _a, _b, _c;
630
625
  const message = createBaseInflationDistribution();
631
- message.stakingRewards = (_a = object.stakingRewards) != null ? _a : "";
632
- message.usageIncentives = (_b = object.usageIncentives) != null ? _b : "";
633
- message.communityPool = (_c = object.communityPool) != null ? _c : "";
626
+ message.stakingRewards = object.stakingRewards ?? "";
627
+ message.usageIncentives = object.usageIncentives ?? "";
628
+ message.communityPool = object.communityPool ?? "";
634
629
  return message;
635
630
  },
636
631
  fromAmino(object) {
@@ -752,13 +747,12 @@ var ExponentialCalculation = {
752
747
  return obj;
753
748
  },
754
749
  fromPartial(object) {
755
- var _a, _b, _c, _d, _e;
756
750
  const message = createBaseExponentialCalculation();
757
- message.a = (_a = object.a) != null ? _a : "";
758
- message.r = (_b = object.r) != null ? _b : "";
759
- message.c = (_c = object.c) != null ? _c : "";
760
- message.bondingTarget = (_d = object.bondingTarget) != null ? _d : "";
761
- message.maxVariance = (_e = object.maxVariance) != null ? _e : "";
751
+ message.a = object.a ?? "";
752
+ message.r = object.r ?? "";
753
+ message.c = object.c ?? "";
754
+ message.bondingTarget = object.bondingTarget ?? "";
755
+ message.maxVariance = object.maxVariance ?? "";
762
756
  return message;
763
757
  },
764
758
  fromAmino(object) {
@@ -879,12 +873,11 @@ var Params2 = {
879
873
  return obj;
880
874
  },
881
875
  fromPartial(object) {
882
- var _a, _b;
883
876
  const message = createBaseParams2();
884
- message.mintDenom = (_a = object.mintDenom) != null ? _a : "";
877
+ message.mintDenom = object.mintDenom ?? "";
885
878
  message.exponentialCalculation = object.exponentialCalculation !== void 0 && object.exponentialCalculation !== null ? ExponentialCalculation.fromPartial(object.exponentialCalculation) : void 0;
886
879
  message.inflationDistribution = object.inflationDistribution !== void 0 && object.inflationDistribution !== null ? InflationDistribution.fromPartial(object.inflationDistribution) : void 0;
887
- message.enableInflation = (_b = object.enableInflation) != null ? _b : false;
880
+ message.enableInflation = object.enableInflation ?? false;
888
881
  return message;
889
882
  },
890
883
  fromAmino(object) {
@@ -983,9 +976,8 @@ var MsgUpdateParams2 = {
983
976
  return obj;
984
977
  },
985
978
  fromPartial(object) {
986
- var _a;
987
979
  const message = createBaseMsgUpdateParams2();
988
- message.authority = (_a = object.authority) != null ? _a : "";
980
+ message.authority = object.authority ?? "";
989
981
  message.params = object.params !== void 0 && object.params !== null ? Params2.fromPartial(object.params) : void 0;
990
982
  return message;
991
983
  },
@@ -1089,10 +1081,9 @@ var Params3 = {
1089
1081
  return obj;
1090
1082
  },
1091
1083
  fromPartial(object) {
1092
- var _a, _b;
1093
1084
  const message = createBaseParams3();
1094
- message.enableRevenue = (_a = object.enableRevenue) != null ? _a : false;
1095
- message.developerShares = (_b = object.developerShares) != null ? _b : "";
1085
+ message.enableRevenue = object.enableRevenue ?? false;
1086
+ message.developerShares = object.developerShares ?? "";
1096
1087
  message.addrDerivationCostCreate = object.addrDerivationCostCreate !== void 0 && object.addrDerivationCostCreate !== null ? Long.fromValue(object.addrDerivationCostCreate) : Long.UZERO;
1097
1088
  return message;
1098
1089
  },
@@ -1203,7 +1194,7 @@ var MsgRegisterRevenue = {
1203
1194
  contractAddress: isSet(object.contractAddress) ? String(object.contractAddress) : "",
1204
1195
  deployerAddress: isSet(object.deployerAddress) ? String(object.deployerAddress) : "",
1205
1196
  withdrawerAddress: isSet(object.withdrawerAddress) ? String(object.withdrawerAddress) : "",
1206
- nonces: Array.isArray(object == null ? void 0 : object.nonces) ? object.nonces.map((e) => Long.fromValue(e)) : []
1197
+ nonces: Array.isArray(object?.nonces) ? object.nonces.map((e) => Long.fromValue(e)) : []
1207
1198
  };
1208
1199
  },
1209
1200
  toJSON(message) {
@@ -1219,16 +1210,14 @@ var MsgRegisterRevenue = {
1219
1210
  return obj;
1220
1211
  },
1221
1212
  fromPartial(object) {
1222
- var _a, _b, _c, _d;
1223
1213
  const message = createBaseMsgRegisterRevenue();
1224
- message.contractAddress = (_a = object.contractAddress) != null ? _a : "";
1225
- message.deployerAddress = (_b = object.deployerAddress) != null ? _b : "";
1226
- message.withdrawerAddress = (_c = object.withdrawerAddress) != null ? _c : "";
1227
- message.nonces = ((_d = object.nonces) == null ? void 0 : _d.map((e) => Long.fromValue(e))) || [];
1214
+ message.contractAddress = object.contractAddress ?? "";
1215
+ message.deployerAddress = object.deployerAddress ?? "";
1216
+ message.withdrawerAddress = object.withdrawerAddress ?? "";
1217
+ message.nonces = object.nonces?.map((e) => Long.fromValue(e)) || [];
1228
1218
  return message;
1229
1219
  },
1230
1220
  fromAmino(object) {
1231
- var _a;
1232
1221
  const message = createBaseMsgRegisterRevenue();
1233
1222
  if (object.contract_address !== void 0 && object.contract_address !== null) {
1234
1223
  message.contractAddress = object.contract_address;
@@ -1239,7 +1228,7 @@ var MsgRegisterRevenue = {
1239
1228
  if (object.withdrawer_address !== void 0 && object.withdrawer_address !== null) {
1240
1229
  message.withdrawerAddress = object.withdrawer_address;
1241
1230
  }
1242
- message.nonces = ((_a = object.nonces) == null ? void 0 : _a.map((e) => Long.fromString(e))) || [];
1231
+ message.nonces = object.nonces?.map((e) => Long.fromString(e)) || [];
1243
1232
  return message;
1244
1233
  },
1245
1234
  toAmino(message) {
@@ -1335,11 +1324,10 @@ var MsgUpdateRevenue = {
1335
1324
  return obj;
1336
1325
  },
1337
1326
  fromPartial(object) {
1338
- var _a, _b, _c;
1339
1327
  const message = createBaseMsgUpdateRevenue();
1340
- message.contractAddress = (_a = object.contractAddress) != null ? _a : "";
1341
- message.deployerAddress = (_b = object.deployerAddress) != null ? _b : "";
1342
- message.withdrawerAddress = (_c = object.withdrawerAddress) != null ? _c : "";
1328
+ message.contractAddress = object.contractAddress ?? "";
1329
+ message.deployerAddress = object.deployerAddress ?? "";
1330
+ message.withdrawerAddress = object.withdrawerAddress ?? "";
1343
1331
  return message;
1344
1332
  },
1345
1333
  fromAmino(object) {
@@ -1434,10 +1422,9 @@ var MsgCancelRevenue = {
1434
1422
  return obj;
1435
1423
  },
1436
1424
  fromPartial(object) {
1437
- var _a, _b;
1438
1425
  const message = createBaseMsgCancelRevenue();
1439
- message.contractAddress = (_a = object.contractAddress) != null ? _a : "";
1440
- message.deployerAddress = (_b = object.deployerAddress) != null ? _b : "";
1426
+ message.contractAddress = object.contractAddress ?? "";
1427
+ message.deployerAddress = object.deployerAddress ?? "";
1441
1428
  return message;
1442
1429
  },
1443
1430
  fromAmino(object) {
@@ -1528,9 +1515,8 @@ var MsgUpdateParams3 = {
1528
1515
  return obj;
1529
1516
  },
1530
1517
  fromPartial(object) {
1531
- var _a;
1532
1518
  const message = createBaseMsgUpdateParams3();
1533
- message.authority = (_a = object.authority) != null ? _a : "";
1519
+ message.authority = object.authority ?? "";
1534
1520
  message.params = object.params !== void 0 && object.params !== null ? Params3.fromPartial(object.params) : void 0;
1535
1521
  return message;
1536
1522
  },
@@ -1634,11 +1620,10 @@ var MsgCreateClawbackVestingAccount = {
1634
1620
  return obj;
1635
1621
  },
1636
1622
  fromPartial(object) {
1637
- var _a, _b, _c;
1638
1623
  const message = createBaseMsgCreateClawbackVestingAccount();
1639
- message.funderAddress = (_a = object.funderAddress) != null ? _a : "";
1640
- message.vestingAddress = (_b = object.vestingAddress) != null ? _b : "";
1641
- message.enableGovClawback = (_c = object.enableGovClawback) != null ? _c : false;
1624
+ message.funderAddress = object.funderAddress ?? "";
1625
+ message.vestingAddress = object.vestingAddress ?? "";
1626
+ message.enableGovClawback = object.enableGovClawback ?? false;
1642
1627
  return message;
1643
1628
  },
1644
1629
  fromAmino(object) {
@@ -1746,8 +1731,8 @@ var MsgFundVestingAccount = {
1746
1731
  funderAddress: isSet(object.funderAddress) ? String(object.funderAddress) : "",
1747
1732
  vestingAddress: isSet(object.vestingAddress) ? String(object.vestingAddress) : "",
1748
1733
  startTime: isSet(object.startTime) ? fromJsonTimestamp(object.startTime) : void 0,
1749
- lockupPeriods: Array.isArray(object == null ? void 0 : object.lockupPeriods) ? object.lockupPeriods.map((e) => Period.fromJSON(e)) : [],
1750
- vestingPeriods: Array.isArray(object == null ? void 0 : object.vestingPeriods) ? object.vestingPeriods.map((e) => Period.fromJSON(e)) : []
1734
+ lockupPeriods: Array.isArray(object?.lockupPeriods) ? object.lockupPeriods.map((e) => Period.fromJSON(e)) : [],
1735
+ vestingPeriods: Array.isArray(object?.vestingPeriods) ? object.vestingPeriods.map((e) => Period.fromJSON(e)) : []
1751
1736
  };
1752
1737
  },
1753
1738
  toJSON(message) {
@@ -1768,17 +1753,15 @@ var MsgFundVestingAccount = {
1768
1753
  return obj;
1769
1754
  },
1770
1755
  fromPartial(object) {
1771
- var _a, _b, _c, _d, _e;
1772
1756
  const message = createBaseMsgFundVestingAccount();
1773
- message.funderAddress = (_a = object.funderAddress) != null ? _a : "";
1774
- message.vestingAddress = (_b = object.vestingAddress) != null ? _b : "";
1775
- message.startTime = (_c = object.startTime) != null ? _c : void 0;
1776
- message.lockupPeriods = ((_d = object.lockupPeriods) == null ? void 0 : _d.map((e) => Period.fromPartial(e))) || [];
1777
- message.vestingPeriods = ((_e = object.vestingPeriods) == null ? void 0 : _e.map((e) => Period.fromPartial(e))) || [];
1757
+ message.funderAddress = object.funderAddress ?? "";
1758
+ message.vestingAddress = object.vestingAddress ?? "";
1759
+ message.startTime = object.startTime ?? void 0;
1760
+ message.lockupPeriods = object.lockupPeriods?.map((e) => Period.fromPartial(e)) || [];
1761
+ message.vestingPeriods = object.vestingPeriods?.map((e) => Period.fromPartial(e)) || [];
1778
1762
  return message;
1779
1763
  },
1780
1764
  fromAmino(object) {
1781
- var _a, _b;
1782
1765
  const message = createBaseMsgFundVestingAccount();
1783
1766
  if (object.funder_address !== void 0 && object.funder_address !== null) {
1784
1767
  message.funderAddress = object.funder_address;
@@ -1789,8 +1772,8 @@ var MsgFundVestingAccount = {
1789
1772
  if (object.start_time !== void 0 && object.start_time !== null) {
1790
1773
  message.startTime = fromTimestamp(Timestamp.fromAmino(object.start_time));
1791
1774
  }
1792
- message.lockupPeriods = ((_a = object.lockup_periods) == null ? void 0 : _a.map((e) => Period.fromAmino(e))) || [];
1793
- message.vestingPeriods = ((_b = object.vesting_periods) == null ? void 0 : _b.map((e) => Period.fromAmino(e))) || [];
1775
+ message.lockupPeriods = object.lockup_periods?.map((e) => Period.fromAmino(e)) || [];
1776
+ message.vestingPeriods = object.vesting_periods?.map((e) => Period.fromAmino(e)) || [];
1794
1777
  return message;
1795
1778
  },
1796
1779
  toAmino(message) {
@@ -1891,11 +1874,10 @@ var MsgClawback = {
1891
1874
  return obj;
1892
1875
  },
1893
1876
  fromPartial(object) {
1894
- var _a, _b, _c;
1895
1877
  const message = createBaseMsgClawback();
1896
- message.funderAddress = (_a = object.funderAddress) != null ? _a : "";
1897
- message.accountAddress = (_b = object.accountAddress) != null ? _b : "";
1898
- message.destAddress = (_c = object.destAddress) != null ? _c : "";
1878
+ message.funderAddress = object.funderAddress ?? "";
1879
+ message.accountAddress = object.accountAddress ?? "";
1880
+ message.destAddress = object.destAddress ?? "";
1899
1881
  return message;
1900
1882
  },
1901
1883
  fromAmino(object) {
@@ -1999,11 +1981,10 @@ var MsgUpdateVestingFunder = {
1999
1981
  return obj;
2000
1982
  },
2001
1983
  fromPartial(object) {
2002
- var _a, _b, _c;
2003
1984
  const message = createBaseMsgUpdateVestingFunder();
2004
- message.funderAddress = (_a = object.funderAddress) != null ? _a : "";
2005
- message.newFunderAddress = (_b = object.newFunderAddress) != null ? _b : "";
2006
- message.vestingAddress = (_c = object.vestingAddress) != null ? _c : "";
1985
+ message.funderAddress = object.funderAddress ?? "";
1986
+ message.newFunderAddress = object.newFunderAddress ?? "";
1987
+ message.vestingAddress = object.vestingAddress ?? "";
2007
1988
  return message;
2008
1989
  },
2009
1990
  fromAmino(object) {
@@ -2089,9 +2070,8 @@ var MsgConvertVestingAccount = {
2089
2070
  return obj;
2090
2071
  },
2091
2072
  fromPartial(object) {
2092
- var _a;
2093
2073
  const message = createBaseMsgConvertVestingAccount();
2094
- message.vestingAddress = (_a = object.vestingAddress) != null ? _a : "";
2074
+ message.vestingAddress = object.vestingAddress ?? "";
2095
2075
  return message;
2096
2076
  },
2097
2077
  fromAmino(object) {
@@ -2214,16 +2194,26 @@ var AminoConverter5 = {
2214
2194
  };
2215
2195
 
2216
2196
  // src/codegen/evmos/client.ts
2217
- var evmosAminoConverters = __spreadValues(__spreadValues(__spreadValues(__spreadValues({}, AminoConverter2), AminoConverter3), AminoConverter4), AminoConverter5);
2197
+ var evmosAminoConverters = {
2198
+ ...AminoConverter2,
2199
+ ...AminoConverter3,
2200
+ ...AminoConverter4,
2201
+ ...AminoConverter5
2202
+ };
2218
2203
  var evmosProtoRegistry = [...registry2, ...registry3, ...registry4, ...registry5];
2219
2204
  var setClientOptions = (options = {}) => {
2220
- var _a, _b, _c;
2221
2205
  ApiState.client = createRequestClient({
2222
2206
  baseUrl: options.apiUrl || "https://api.skip.build",
2223
2207
  apiKey: options.apiKey
2224
2208
  });
2225
- ClientState.endpointOptions = (_a = options.endpointOptions) != null ? _a : {};
2226
- ClientState.aminoTypes = new AminoTypes(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, createDefaultAminoConverters()), createWasmAminoConverters()), circleAminoConverters), evmosAminoConverters), (_b = options.aminoTypes) != null ? _b : {}));
2209
+ ClientState.endpointOptions = options.endpointOptions ?? {};
2210
+ ClientState.aminoTypes = new AminoTypes({
2211
+ ...createDefaultAminoConverters(),
2212
+ ...createWasmAminoConverters(),
2213
+ ...circleAminoConverters,
2214
+ ...evmosAminoConverters,
2215
+ ...options.aminoTypes ?? {}
2216
+ });
2227
2217
  ClientState.registry = new Registry([
2228
2218
  ...defaultRegistryTypes,
2229
2219
  ["/cosmwasm.wasm.v1.MsgExecuteContract", MsgExecuteContract],
@@ -2231,7 +2221,7 @@ var setClientOptions = (options = {}) => {
2231
2221
  ["/opinit.ophost.v1.MsgInitiateTokenDeposit", MsgInitiateTokenDeposit],
2232
2222
  ...circleProtoRegistry,
2233
2223
  ...evmosProtoRegistry,
2234
- ...(_c = options.registryTypes) != null ? _c : []
2224
+ ...options.registryTypes ?? []
2235
2225
  ]);
2236
2226
  ApiState.setClientInitialized();
2237
2227
  };
@@ -1,4 +1,4 @@
1
- import { ApiState, createRequestClient } from './chunk-RXWDHQLG.mjs';
1
+ import { ApiState, createRequestClient } from './chunk-W6TBGBV3.js';
2
2
 
3
3
  // src/public-functions/setApiOptions.ts
4
4
  var setApiOptions = (options = {}) => {
@@ -14,9 +14,8 @@ var setApiOptions = (options = {}) => {
14
14
  return ApiState.clientInitialized;
15
15
  };
16
16
  function validateChainIdsToAffiliates(chainIdsToAffiliates) {
17
- var _a;
18
17
  const affiliatesArray = Object.values(chainIdsToAffiliates).map((chain) => chain.affiliates).filter((a) => a !== void 0);
19
- const firstAffiliateBasisPointsFee = (_a = affiliatesArray[0]) == null ? void 0 : _a.reduce((acc, affiliate) => {
18
+ const firstAffiliateBasisPointsFee = affiliatesArray[0]?.reduce((acc, affiliate) => {
20
19
  if (!affiliate.basisPointsFee) {
21
20
  throw new Error("basisPointFee must exist in each affiliate");
22
21
  }
@@ -30,7 +29,7 @@ function validateChainIdsToAffiliates(chainIdsToAffiliates) {
30
29
  if (!affiliate2.address) {
31
30
  throw new Error("address to receive fee must exist in each affiliate");
32
31
  }
33
- return acc + parseInt(affiliate2 == null ? void 0 : affiliate2.basisPointsFee, 10);
32
+ return acc + parseInt(affiliate2?.basisPointsFee, 10);
34
33
  }, 0);
35
34
  return totalBasisPointsFee === firstAffiliateBasisPointsFee;
36
35
  });
@@ -39,7 +38,7 @@ function validateChainIdsToAffiliates(chainIdsToAffiliates) {
39
38
  "basisPointFee does not add up to the same number for each chain in chainIdsToAffiliates"
40
39
  );
41
40
  }
42
- return firstAffiliateBasisPointsFee == null ? void 0 : firstAffiliateBasisPointsFee.toFixed(0);
41
+ return firstAffiliateBasisPointsFee?.toFixed(0);
43
42
  }
44
43
 
45
44
  export { setApiOptions };
@@ -1,11 +1,9 @@
1
- import { DEFAULT_GAS_DENOM_OVERRIDES } from './chunk-ZAF3Z56R.mjs';
2
- import { chains } from './chunk-NU7MCJOK.mjs';
3
- import { ClientState } from './chunk-DKIWPD5I.mjs';
4
- import { __async } from './chunk-RXWDHQLG.mjs';
1
+ import { DEFAULT_GAS_DENOM_OVERRIDES } from './chunk-SWYON2RG.js';
2
+ import { chains } from './chunk-JTIHU43D.js';
3
+ import { ClientState } from './chunk-BRMONS6A.js';
5
4
 
6
5
  // src/private-functions/getDefaultGasTokenForChain.ts
7
- var getDefaultGasTokenForChain = (chainId) => __async(void 0, null, function* () {
8
- var _a;
6
+ var getDefaultGasTokenForChain = async (chainId) => {
9
7
  const gasDenom = DEFAULT_GAS_DENOM_OVERRIDES[chainId];
10
8
  if (gasDenom) {
11
9
  return gasDenom;
@@ -20,10 +18,7 @@ var getDefaultGasTokenForChain = (chainId) => __async(void 0, null, function* ()
20
18
  const stakingTokens = getStakingTokensForChain(chainId);
21
19
  if (stakingTokens && stakingTokens.length > 0) {
22
20
  const feeAsset = chain.fees.fee_tokens.find(
23
- (feeToken) => {
24
- var _a2;
25
- return feeToken.denom === ((_a2 = stakingTokens[0]) == null ? void 0 : _a2.denom);
26
- }
21
+ (feeToken) => feeToken.denom === stakingTokens[0]?.denom
27
22
  );
28
23
  if (feeAsset) {
29
24
  return feeAsset.denom;
@@ -39,8 +34,8 @@ var getDefaultGasTokenForChain = (chainId) => __async(void 0, null, function* ()
39
34
  if (nonL2Asset) {
40
35
  return nonL2Asset.denom;
41
36
  }
42
- return (_a = chain.fees.fee_tokens[0]) == null ? void 0 : _a.denom;
43
- });
37
+ return chain.fees.fee_tokens[0]?.denom;
38
+ };
44
39
  var getStakingTokensForChain = (chainId) => {
45
40
  const chain = chains().find((chain2) => chain2.chain_id === chainId);
46
41
  if (!chain) {
@@ -55,20 +50,19 @@ var getStakingTokensForChain = (chainId) => {
55
50
  };
56
51
 
57
52
  // src/public-functions/getFeeInfoForChain.ts
58
- var getFeeInfoForChain = (_0) => __async(void 0, [_0], function* ({ chainId, apiUrl, apiKey }) {
59
- var _a, _b, _c, _d, _e;
60
- const skipChains = yield ClientState.getSkipChains({ apiUrl, apiKey });
53
+ var getFeeInfoForChain = async ({ chainId, apiUrl, apiKey }) => {
54
+ const skipChains = await ClientState.getSkipChains({ apiUrl, apiKey });
61
55
  const skipChain = skipChains.find((chain2) => chain2.chainId === chainId);
62
56
  if (!skipChain) {
63
57
  return void 0;
64
58
  }
65
- const defaultGasToken = yield getDefaultGasTokenForChain(chainId);
59
+ const defaultGasToken = await getDefaultGasTokenForChain(chainId);
66
60
  if (!defaultGasToken && !skipChain.feeAssets) {
67
61
  return void 0;
68
62
  }
69
- const skipFeeInfo = defaultGasToken ? (_a = skipChain.feeAssets) == null ? void 0 : _a.find((skipFee) => skipFee.denom === defaultGasToken) : (_b = skipChain.feeAssets) == null ? void 0 : _b[0];
70
- if (!skipFeeInfo && ((_d = (_c = skipChain.feeAssets) == null ? void 0 : _c[0]) == null ? void 0 : _d.gasPrice) !== null) {
71
- return (_e = skipChain.feeAssets) == null ? void 0 : _e[0];
63
+ const skipFeeInfo = defaultGasToken ? skipChain.feeAssets?.find((skipFee) => skipFee.denom === defaultGasToken) : skipChain.feeAssets?.[0];
64
+ if (!skipFeeInfo && skipChain.feeAssets?.[0]?.gasPrice !== null) {
65
+ return skipChain.feeAssets?.[0];
72
66
  }
73
67
  if (skipFeeInfo && skipFeeInfo.gasPrice !== null) {
74
68
  return skipFeeInfo;
@@ -94,6 +88,6 @@ var getFeeInfoForChain = (_0) => __async(void 0, [_0], function* ({ chainId, api
94
88
  high: registryFeeInfo.high_gas_price ? `${registryFeeInfo.high_gas_price}` : ""
95
89
  }
96
90
  };
97
- });
91
+ };
98
92
 
99
93
  export { getFeeInfoForChain };