@skip-go/client 1.0.1-alpha-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 (106) hide show
  1. package/dist/{chunk-W2U2UOFA.js → chunk-Y5EY3Q6D.js} +4 -4
  2. package/dist/index.js +1 -1
  3. package/dist/public-functions/executeRoute.js +1 -1
  4. package/package.json +1 -1
  5. package/dist/api/getAssets.cjs +0 -15
  6. package/dist/api/getAssets.d.cts +0 -19
  7. package/dist/api/getAssets.d.ts +0 -19
  8. package/dist/api/getAssetsBetweenChains.cjs +0 -11
  9. package/dist/api/getAssetsBetweenChains.d.cts +0 -56
  10. package/dist/api/getAssetsBetweenChains.d.ts +0 -56
  11. package/dist/api/getBridges.cjs +0 -11
  12. package/dist/api/getBridges.d.cts +0 -54
  13. package/dist/api/getBridges.d.ts +0 -54
  14. package/dist/api/getChains.cjs +0 -11
  15. package/dist/api/getChains.d.cts +0 -41
  16. package/dist/api/getChains.d.ts +0 -41
  17. package/dist/api/getVenues.cjs +0 -11
  18. package/dist/api/getVenues.d.cts +0 -13
  19. package/dist/api/getVenues.d.ts +0 -13
  20. package/dist/api/postAssetsFromSource.cjs +0 -12
  21. package/dist/api/postAssetsFromSource.d.cts +0 -13
  22. package/dist/api/postAssetsFromSource.d.ts +0 -13
  23. package/dist/api/postBalances.cjs +0 -11
  24. package/dist/api/postBalances.d.cts +0 -35
  25. package/dist/api/postBalances.d.ts +0 -35
  26. package/dist/api/postIbcOriginAssets.cjs +0 -11
  27. package/dist/api/postIbcOriginAssets.d.cts +0 -32
  28. package/dist/api/postIbcOriginAssets.d.ts +0 -32
  29. package/dist/api/postMessages.cjs +0 -11
  30. package/dist/api/postMessages.d.cts +0 -528
  31. package/dist/api/postMessages.d.ts +0 -528
  32. package/dist/api/postMessagesDirect.cjs +0 -11
  33. package/dist/api/postMessagesDirect.d.cts +0 -568
  34. package/dist/api/postMessagesDirect.d.ts +0 -568
  35. package/dist/api/postRecommendAssets.cjs +0 -11
  36. package/dist/api/postRecommendAssets.d.cts +0 -40
  37. package/dist/api/postRecommendAssets.d.ts +0 -40
  38. package/dist/api/postRoute.cjs +0 -11
  39. package/dist/api/postRoute.d.cts +0 -460
  40. package/dist/api/postRoute.d.ts +0 -460
  41. package/dist/api/postSubmitTransaction.cjs +0 -11
  42. package/dist/api/postSubmitTransaction.d.cts +0 -13
  43. package/dist/api/postSubmitTransaction.d.ts +0 -13
  44. package/dist/api/postTrackTransaction.cjs +0 -11
  45. package/dist/api/postTrackTransaction.d.cts +0 -13
  46. package/dist/api/postTrackTransaction.d.ts +0 -13
  47. package/dist/api/postTransactionStatus.cjs +0 -11
  48. package/dist/api/postTransactionStatus.d.cts +0 -559
  49. package/dist/api/postTransactionStatus.d.ts +0 -559
  50. package/dist/apiState-CdzxTxYd.d.cts +0 -6
  51. package/dist/apiState-CdzxTxYd.d.ts +0 -6
  52. package/dist/chunk-32MRDO7V.cjs +0 -12
  53. package/dist/chunk-44PBLFB5.cjs +0 -24
  54. package/dist/chunk-4R6OCWRR.cjs +0 -1346
  55. package/dist/chunk-5IAEEEOQ.cjs +0 -2251
  56. package/dist/chunk-77ITCT75.cjs +0 -15
  57. package/dist/chunk-7OIZPQJB.cjs +0 -3660
  58. package/dist/chunk-7SK3IFXJ.cjs +0 -188
  59. package/dist/chunk-DAMZSSOH.cjs +0 -12
  60. package/dist/chunk-ED2OY55G.cjs +0 -136
  61. package/dist/chunk-HAR3IXDE.cjs +0 -705
  62. package/dist/chunk-ISHM4QWP.cjs +0 -16
  63. package/dist/chunk-J4LI33TK.cjs +0 -95
  64. package/dist/chunk-KDN7RCGP.cjs +0 -13
  65. package/dist/chunk-KZOSEIWH.cjs +0 -10
  66. package/dist/chunk-L5V5PASH.cjs +0 -12
  67. package/dist/chunk-LXYLWTNZ.cjs +0 -12
  68. package/dist/chunk-PNWIJSMA.cjs +0 -12
  69. package/dist/chunk-RDOSNDAQ.cjs +0 -13
  70. package/dist/chunk-SFMBRLUS.cjs +0 -18
  71. package/dist/chunk-SW3SEQMJ.cjs +0 -273
  72. package/dist/chunk-URLFWBSC.cjs +0 -11
  73. package/dist/chunk-VI7UMBQ7.cjs +0 -12
  74. package/dist/chunk-WWNTHZ6I.cjs +0 -1812
  75. package/dist/chunk-ZNXE6PUV.cjs +0 -46
  76. package/dist/client-types-CxjtffyG.d.ts +0 -60
  77. package/dist/client-types-qvyKvyFh.d.cts +0 -60
  78. package/dist/executeRoute-BKRpODCc.d.cts +0 -69
  79. package/dist/executeRoute-BKvMVd1I.d.ts +0 -69
  80. package/dist/generateApi-C0amiydg.d.cts +0 -22
  81. package/dist/generateApi-DqCp36fX.d.ts +0 -22
  82. package/dist/index.cjs +0 -209
  83. package/dist/index.d.cts +0 -35
  84. package/dist/index.d.ts +0 -35
  85. package/dist/public-functions/executeRoute.cjs +0 -21
  86. package/dist/public-functions/executeRoute.d.cts +0 -9
  87. package/dist/public-functions/executeRoute.d.ts +0 -9
  88. package/dist/public-functions/getFeeInfoForChain.cjs +0 -14
  89. package/dist/public-functions/getFeeInfoForChain.d.cts +0 -9
  90. package/dist/public-functions/getFeeInfoForChain.d.ts +0 -9
  91. package/dist/public-functions/getRecommendedGasPrice.cjs +0 -16
  92. package/dist/public-functions/getRecommendedGasPrice.d.cts +0 -9
  93. package/dist/public-functions/getRecommendedGasPrice.d.ts +0 -9
  94. package/dist/public-functions/getSigningStargateClient.cjs +0 -13
  95. package/dist/public-functions/getSigningStargateClient.d.cts +0 -13
  96. package/dist/public-functions/getSigningStargateClient.d.ts +0 -13
  97. package/dist/public-functions/setApiOptions.cjs +0 -11
  98. package/dist/public-functions/setApiOptions.d.cts +0 -9
  99. package/dist/public-functions/setApiOptions.d.ts +0 -9
  100. package/dist/public-functions/setClientOptions.cjs +0 -13
  101. package/dist/public-functions/setClientOptions.d.cts +0 -9
  102. package/dist/public-functions/setClientOptions.d.ts +0 -9
  103. package/dist/setClientOptions-CT6CHI9I.d.cts +0 -19
  104. package/dist/setClientOptions-DbanEIwL.d.ts +0 -19
  105. package/dist/swaggerTypes-O9-gvCT1.d.cts +0 -1890
  106. package/dist/swaggerTypes-O9-gvCT1.d.ts +0 -1890
@@ -1,12 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkHAR3IXDE_cjs = require('./chunk-HAR3IXDE.cjs');
4
-
5
- // src/api/postTransactionStatus.ts
6
- var transactionStatus = chunkHAR3IXDE_cjs.pollingApi({
7
- methodName: "getTransactionStatusV2",
8
- path: "/v2/tx/status",
9
- method: "get"
10
- });
11
-
12
- exports.transactionStatus = transactionStatus;
@@ -1,136 +0,0 @@
1
- 'use strict';
2
-
3
- var chunkHAR3IXDE_cjs = require('./chunk-HAR3IXDE.cjs');
4
-
5
- // src/private-functions/getMainnetAndTestnetChains.ts
6
- var getMainnetAndTestnetChains = async (apiOptions) => {
7
- const [mainnetRes, testnetRes] = await Promise.all([
8
- chains({
9
- includeEvm: true,
10
- includeSvm: true,
11
- ...apiOptions
12
- }),
13
- chains({
14
- includeEvm: true,
15
- includeSvm: true,
16
- onlyTestnets: true,
17
- ...apiOptions
18
- })
19
- ]);
20
- const combinedChains = [...mainnetRes ?? [], ...testnetRes ?? []];
21
- ClientState.skipChains = combinedChains;
22
- return combinedChains;
23
- };
24
-
25
- // src/api/getAssets.ts
26
- var assets = chunkHAR3IXDE_cjs.api({
27
- methodName: "getAssets",
28
- path: "/v2/fungible/assets",
29
- transformResponse: (response) => {
30
- return transformAssetsMap(response.chainToAssetsMap);
31
- },
32
- onSuccess: (response, options) => {
33
- if (options?.includeEvmAssets && options?.includeSvmAssets && options?.includeCw20Assets) {
34
- ClientState.skipAssets = response;
35
- }
36
- }
37
- });
38
- var transformAssetsMap = (input) => Object.entries(input ?? {}).reduce(
39
- (acc, [chainId, { assets: assets2 }]) => {
40
- acc[chainId] = (assets2 ?? []).map((asset) => asset);
41
- return acc;
42
- },
43
- {}
44
- );
45
-
46
- // src/private-functions/getMainnetAndTestnetAssets.ts
47
- var getMainnetAndTestnetAssets = async ({
48
- chainId,
49
- ...apiOptions
50
- }) => {
51
- const [assetsMainnet, assetsTestnet] = await Promise.all([
52
- assets({
53
- chainIds: chainId ? [chainId] : void 0,
54
- ...apiOptions
55
- }),
56
- assets({
57
- chainIds: chainId ? [chainId] : void 0,
58
- onlyTestnets: true,
59
- ...apiOptions
60
- })
61
- ]);
62
- const mainnet = assetsMainnet;
63
- const testnet = assetsTestnet;
64
- const merged = {
65
- ...mainnet,
66
- ...testnet
67
- };
68
- ClientState.skipAssets = merged;
69
- return merged;
70
- };
71
-
72
- // src/api/postBalances.ts
73
- var balances = chunkHAR3IXDE_cjs.api({
74
- methodName: "getBalances",
75
- method: "post",
76
- path: "/v2/info/balances",
77
- onSuccess: (response, options) => {
78
- if (!options) {
79
- ClientState.skipBalances = response;
80
- }
81
- }
82
- });
83
-
84
- // src/state/clientState.ts
85
- var ClientState = class {
86
- static aminoTypes;
87
- static registry;
88
- static endpointOptions;
89
- static skipChains;
90
- static skipAssets;
91
- static skipBalances;
92
- static async getSkipChains(apiOptions) {
93
- if (this.skipChains) {
94
- return this.skipChains;
95
- }
96
- const response = await getMainnetAndTestnetChains(apiOptions);
97
- this.skipChains = response;
98
- return response;
99
- }
100
- static async getSkipAssets(props) {
101
- if (this.skipAssets) {
102
- return this.skipAssets;
103
- }
104
- const response = await getMainnetAndTestnetAssets(props);
105
- this.skipAssets = response;
106
- return response;
107
- }
108
- static async getSkipBalances() {
109
- if (this.skipBalances) {
110
- return this.skipBalances;
111
- }
112
- const response = await balances();
113
- this.skipBalances = response;
114
- return response;
115
- }
116
- static signingStargateClientByChainId = {};
117
- static validateGasResults;
118
- };
119
-
120
- // src/api/getChains.ts
121
- var chains = chunkHAR3IXDE_cjs.api({
122
- methodName: "getChains",
123
- path: "/v2/info/chains",
124
- transformResponse: (response) => response.chains,
125
- onSuccess: (response, options) => {
126
- if (options?.includeEvm && options?.includeSvm) {
127
- ClientState.skipChains = response;
128
- }
129
- }
130
- });
131
-
132
- exports.ClientState = ClientState;
133
- exports.assets = assets;
134
- exports.balances = balances;
135
- exports.chains = chains;
136
- exports.transformAssetsMap = transformAssetsMap;