@skip-go/client 1.1.8 → 1.1.9
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.
- package/dist/api/getAssets.d.ts +1 -1
- package/dist/api/getAssets.js +2 -2
- package/dist/api/getAssetsBetweenChains.d.ts +1 -1
- package/dist/api/getAssetsBetweenChains.js +2 -2
- package/dist/api/getBridges.d.ts +1 -1
- package/dist/api/getBridges.js +2 -2
- package/dist/api/getChains.d.ts +1 -1
- package/dist/api/getChains.js +2 -2
- package/dist/api/getVenues.d.ts +1 -1
- package/dist/api/getVenues.js +2 -2
- package/dist/api/postAssetsFromSource.d.ts +1 -1
- package/dist/api/postAssetsFromSource.js +3 -3
- package/dist/api/postBalances.d.ts +1 -1
- package/dist/api/postBalances.js +2 -2
- package/dist/api/postIbcOriginAssets.d.ts +1 -1
- package/dist/api/postIbcOriginAssets.js +2 -2
- package/dist/api/postMessages.d.ts +1 -1
- package/dist/api/postMessages.js +2 -2
- package/dist/api/postMessagesDirect.d.ts +194 -194
- package/dist/api/postMessagesDirect.js +2 -2
- package/dist/api/postRecommendAssets.d.ts +1 -1
- package/dist/api/postRecommendAssets.js +2 -2
- package/dist/api/postRoute.d.ts +189 -189
- package/dist/api/postRoute.js +2 -2
- package/dist/api/postSubmit.d.ts +1 -1
- package/dist/api/postSubmit.js +2 -2
- package/dist/api/postSubmitTransaction.d.ts +1 -1
- package/dist/api/postSubmitTransaction.js +2 -2
- package/dist/api/postTrackTransaction.d.ts +1 -1
- package/dist/api/postTrackTransaction.js +2 -2
- package/dist/api/postTransactionStatus.d.ts +1 -1
- package/dist/api/postTransactionStatus.js +2 -2
- package/dist/{apiState-CdzxTxYd.d.ts → apiState-DwZhwVul.d.ts} +1 -0
- package/dist/{chunk-FC6WR2AB.js → chunk-2YOWXBHH.js} +4 -3
- package/dist/{chunk-C3GDPTDO.js → chunk-4CXSWHQ6.js} +1 -1
- package/dist/{chunk-I7WONP6Y.js → chunk-4XUWIG3Z.js} +1 -1
- package/dist/{chunk-Z7GQR23T.js → chunk-563FE62N.js} +1 -1
- package/dist/{chunk-H42CXF2U.js → chunk-6SQTOOYP.js} +1 -1
- package/dist/{chunk-MSWIIMAD.js → chunk-7G7IEOTQ.js} +1 -1
- package/dist/{chunk-RP5COGN6.js → chunk-7MWYHGMD.js} +2 -2
- package/dist/{chunk-EZ65IQWB.js → chunk-A4M35XLF.js} +5 -4
- package/dist/{chunk-5UHQEC5K.js → chunk-A7FWC5OX.js} +1 -1
- package/dist/{chunk-GH36M7RI.js → chunk-DF3WCTFB.js} +1 -1
- package/dist/{chunk-6NMCE4AL.js → chunk-NCE6R2CP.js} +8 -8
- package/dist/{chunk-QYJTS5PW.js → chunk-NQZYCFAA.js} +1 -1
- package/dist/{chunk-PXL7VX4V.js → chunk-O4IHON37.js} +1 -1
- package/dist/{chunk-I5GT57P3.js → chunk-OFBEDG4X.js} +1 -1
- package/dist/{chunk-WN4AUWSP.js → chunk-RE4YYQCE.js} +1 -1
- package/dist/{chunk-FVI3HTIO.js → chunk-SGHGLGUJ.js} +3 -3
- package/dist/{chunk-FRP5Y35B.js → chunk-THUBVEVZ.js} +1 -1
- package/dist/{chunk-IHHYXB3K.js → chunk-U6NXCWXE.js} +1 -1
- package/dist/{chunk-YSXM6ATC.js → chunk-UCUUIQHV.js} +1 -1
- package/dist/{chunk-M7EBNJWK.js → chunk-XZV42PVV.js} +1 -1
- package/dist/{chunk-H54ORPCL.js → chunk-YABXOO3H.js} +22 -14
- package/dist/{chunk-NQNYCD4R.js → chunk-Z3Z7A3YS.js} +1 -1
- package/dist/index.d.ts +2 -2
- package/dist/index.js +22 -22
- package/dist/public-functions/executeRoute.js +11 -11
- package/dist/public-functions/getFeeInfoForChain.d.ts +1 -1
- package/dist/public-functions/getFeeInfoForChain.js +3 -3
- package/dist/public-functions/getRecommendedGasPrice.d.ts +1 -1
- package/dist/public-functions/getRecommendedGasPrice.js +4 -4
- package/dist/public-functions/getSigningStargateClient.js +3 -3
- package/dist/public-functions/setApiOptions.d.ts +1 -1
- package/dist/public-functions/setApiOptions.js +2 -2
- package/dist/public-functions/setClientOptions.d.ts +2 -2
- package/dist/public-functions/setClientOptions.js +3 -3
- package/dist/public-functions/waitForTransaction.js +4 -4
- package/dist/{setClientOptions-CI_7IPLT.d.ts → setClientOptions-D8SDeegt.d.ts} +1 -1
- package/package.json +1 -1
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { transactionStatus } from './chunk-
|
|
2
|
-
import { trackTransaction } from './chunk-
|
|
3
|
-
import { wait } from './chunk-
|
|
1
|
+
import { transactionStatus } from './chunk-XZV42PVV.js';
|
|
2
|
+
import { trackTransaction } from './chunk-563FE62N.js';
|
|
3
|
+
import { wait } from './chunk-YABXOO3H.js';
|
|
4
4
|
|
|
5
5
|
// src/public-functions/waitForTransaction.ts
|
|
6
6
|
var waitForTransaction = async ({
|
|
@@ -24,14 +24,21 @@ function convertKeys(obj, convertKey) {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
// src/utils/generateApi.ts
|
|
27
|
-
var createRequestClient = ({
|
|
28
|
-
if (!
|
|
29
|
-
|
|
27
|
+
var createRequestClient = ({ apiUrl, apiKey, apiHeaders }) => {
|
|
28
|
+
if (!apiUrl?.endsWith("/")) {
|
|
29
|
+
apiUrl += "/";
|
|
30
|
+
}
|
|
31
|
+
const headers = new Headers({
|
|
32
|
+
"content-type": "application/json"
|
|
33
|
+
});
|
|
34
|
+
if (apiKey) {
|
|
35
|
+
headers.set("authorization", apiKey);
|
|
36
|
+
}
|
|
37
|
+
if (apiHeaders) {
|
|
38
|
+
new Headers(apiHeaders).forEach((value, key) => {
|
|
39
|
+
headers.set(key, value);
|
|
40
|
+
});
|
|
30
41
|
}
|
|
31
|
-
const defaultHeaders = {
|
|
32
|
-
"content-type": "application/json",
|
|
33
|
-
...apiKey ? { authorization: apiKey } : {}
|
|
34
|
-
};
|
|
35
42
|
const handleResponse = async (response) => {
|
|
36
43
|
const contentType = response.headers.get("content-type");
|
|
37
44
|
const isJson = contentType?.includes("application/json");
|
|
@@ -46,7 +53,7 @@ var createRequestClient = ({ baseUrl, apiKey }) => {
|
|
|
46
53
|
if (path?.startsWith("/")) {
|
|
47
54
|
console.warn("paths that start with / are treated as absolute paths, please remove the leading / if this path is intended to be a relative path");
|
|
48
55
|
}
|
|
49
|
-
const url = new URL(path ?? "",
|
|
56
|
+
const url = new URL(path ?? "", apiUrl);
|
|
50
57
|
if (params && typeof params === "object") {
|
|
51
58
|
Object.entries(params).forEach(([key, value]) => {
|
|
52
59
|
if (value !== void 0 && value !== null) {
|
|
@@ -56,7 +63,7 @@ var createRequestClient = ({ baseUrl, apiKey }) => {
|
|
|
56
63
|
}
|
|
57
64
|
const response = await fetch(url.toString(), {
|
|
58
65
|
method: "GET",
|
|
59
|
-
headers
|
|
66
|
+
headers,
|
|
60
67
|
signal
|
|
61
68
|
});
|
|
62
69
|
return handleResponse(response);
|
|
@@ -65,9 +72,9 @@ var createRequestClient = ({ baseUrl, apiKey }) => {
|
|
|
65
72
|
if (path?.startsWith("/")) {
|
|
66
73
|
console.warn("paths that start with / are treated as absolute paths, please remove the leading / if this path is intended to be a relative path");
|
|
67
74
|
}
|
|
68
|
-
const response = await fetch(new URL(path,
|
|
75
|
+
const response = await fetch(new URL(path, apiUrl).toString(), {
|
|
69
76
|
method: "POST",
|
|
70
|
-
headers
|
|
77
|
+
headers,
|
|
71
78
|
body: JSON.stringify(data),
|
|
72
79
|
signal
|
|
73
80
|
});
|
|
@@ -83,12 +90,13 @@ function createRequest({
|
|
|
83
90
|
}) {
|
|
84
91
|
let controller = null;
|
|
85
92
|
const request = async (options) => {
|
|
86
|
-
const { apiKey, apiUrl, abortDuplicateRequests, ...requestParams } = options ?? {};
|
|
93
|
+
const { apiKey, apiUrl, apiHeaders, abortDuplicateRequests, ...requestParams } = options ?? {};
|
|
87
94
|
let fetchClient = ApiState.client;
|
|
88
95
|
if (apiUrl || apiKey) {
|
|
89
96
|
fetchClient = createRequestClient({
|
|
90
|
-
|
|
91
|
-
apiKey
|
|
97
|
+
apiUrl: apiUrl || "https://api.skip.build",
|
|
98
|
+
apiKey,
|
|
99
|
+
apiHeaders
|
|
92
100
|
});
|
|
93
101
|
} else {
|
|
94
102
|
await ApiState.clientInitialized;
|
package/dist/index.d.ts
CHANGED
|
@@ -18,7 +18,7 @@ export { trackTransaction } from './api/postTrackTransaction.js';
|
|
|
18
18
|
export { TxStatusResponse, transactionStatus } from './api/postTransactionStatus.js';
|
|
19
19
|
export { ExecuteRouteOptions, executeRoute } from './public-functions/executeRoute.js';
|
|
20
20
|
export { getSigningStargateClient, getSigningStargateClientProps } from './public-functions/getSigningStargateClient.js';
|
|
21
|
-
export { S as SkipClientOptions, s as setClientOptions } from './setClientOptions-
|
|
21
|
+
export { S as SkipClientOptions, s as setClientOptions } from './setClientOptions-D8SDeegt.js';
|
|
22
22
|
export { getRecommendedGasPrice } from './public-functions/getRecommendedGasPrice.js';
|
|
23
23
|
export { getFeeInfoForChain } from './public-functions/getFeeInfoForChain.js';
|
|
24
24
|
export { SetApiOptionsProps, setApiOptions } from './public-functions/setApiOptions.js';
|
|
@@ -31,7 +31,7 @@ import '@cosmjs/proto-signing';
|
|
|
31
31
|
import '@cosmjs/stargate';
|
|
32
32
|
import 'viem';
|
|
33
33
|
import '@solana/wallet-adapter-base';
|
|
34
|
-
import './apiState-
|
|
34
|
+
import './apiState-DwZhwVul.js';
|
|
35
35
|
import './generateApi-8YPJU-Al.js';
|
|
36
36
|
|
|
37
37
|
interface AcknowledgementErrorDetailsJson {
|
package/dist/index.js
CHANGED
|
@@ -1,31 +1,31 @@
|
|
|
1
|
-
export { setClientOptions } from './chunk-
|
|
2
|
-
export { executeRoute } from './chunk-
|
|
3
|
-
export { waitForTransaction } from './chunk-
|
|
4
|
-
export { transactionStatus } from './chunk-
|
|
1
|
+
export { setClientOptions } from './chunk-A4M35XLF.js';
|
|
2
|
+
export { executeRoute } from './chunk-NCE6R2CP.js';
|
|
3
|
+
export { waitForTransaction } from './chunk-SGHGLGUJ.js';
|
|
4
|
+
export { transactionStatus } from './chunk-XZV42PVV.js';
|
|
5
5
|
export { getCosmosGasAmountForMessage } from './chunk-TV2XPAIF.js';
|
|
6
6
|
import './chunk-TD63P2AG.js';
|
|
7
7
|
export { getEVMGasAmountForMessage } from './chunk-GV2QOWB4.js';
|
|
8
|
-
export { getRecommendedGasPrice } from './chunk-
|
|
8
|
+
export { getRecommendedGasPrice } from './chunk-O4IHON37.js';
|
|
9
9
|
import './chunk-VQ5SIQWU.js';
|
|
10
|
-
export { getFeeInfoForChain } from './chunk-
|
|
10
|
+
export { getFeeInfoForChain } from './chunk-6SQTOOYP.js';
|
|
11
11
|
export { GAS_STATION_CHAIN_IDS } from './chunk-SWYON2RG.js';
|
|
12
|
-
export { getSigningStargateClient } from './chunk-
|
|
12
|
+
export { getSigningStargateClient } from './chunk-7G7IEOTQ.js';
|
|
13
13
|
import './chunk-36MCR5DZ.js';
|
|
14
|
-
export { setApiOptions } from './chunk-
|
|
15
|
-
export { ibcOriginAssets } from './chunk-
|
|
16
|
-
export { messages } from './chunk-
|
|
17
|
-
export { messagesDirect } from './chunk-
|
|
18
|
-
export { recommendAssets } from './chunk-
|
|
19
|
-
export { route } from './chunk-
|
|
20
|
-
export { submit } from './chunk-
|
|
21
|
-
export { submitTransaction } from './chunk-
|
|
22
|
-
export { trackTransaction } from './chunk-
|
|
23
|
-
export { assetsBetweenChains } from './chunk-
|
|
24
|
-
export { bridges } from './chunk-
|
|
25
|
-
export { venues } from './chunk-
|
|
26
|
-
export { assetsFromSource } from './chunk-
|
|
27
|
-
export { assets, balances, chains } from './chunk-
|
|
28
|
-
import './chunk-
|
|
14
|
+
export { setApiOptions } from './chunk-2YOWXBHH.js';
|
|
15
|
+
export { ibcOriginAssets } from './chunk-NQZYCFAA.js';
|
|
16
|
+
export { messages } from './chunk-A7FWC5OX.js';
|
|
17
|
+
export { messagesDirect } from './chunk-4CXSWHQ6.js';
|
|
18
|
+
export { recommendAssets } from './chunk-THUBVEVZ.js';
|
|
19
|
+
export { route } from './chunk-U6NXCWXE.js';
|
|
20
|
+
export { submit } from './chunk-OFBEDG4X.js';
|
|
21
|
+
export { submitTransaction } from './chunk-DF3WCTFB.js';
|
|
22
|
+
export { trackTransaction } from './chunk-563FE62N.js';
|
|
23
|
+
export { assetsBetweenChains } from './chunk-Z3Z7A3YS.js';
|
|
24
|
+
export { bridges } from './chunk-UCUUIQHV.js';
|
|
25
|
+
export { venues } from './chunk-RE4YYQCE.js';
|
|
26
|
+
export { assetsFromSource } from './chunk-7MWYHGMD.js';
|
|
27
|
+
export { assets, balances, chains } from './chunk-4XUWIG3Z.js';
|
|
28
|
+
import './chunk-YABXOO3H.js';
|
|
29
29
|
export { Api, AutopilotAction, AxelarTransferState, AxelarTransferType, BridgeType, CCTPTransferState, ChainType, ContentType, ContractCallWithTokenErrorType, FeeType, GoFastTransferState, HttpClient, HyperlaneTransferState, LayerZeroTransferState, OPInitTransferState, PacketErrorType, Reason, RoutePriceWarningType, SendTokenErrorType, StargateTransferState, StatusErrorType, TransactionState, TransferState } from './chunk-UXUJNZOA.js';
|
|
30
30
|
|
|
31
31
|
// src/types/swaggerTypesJson.ts
|
|
@@ -1,18 +1,18 @@
|
|
|
1
|
-
export { executeRoute } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
1
|
+
export { executeRoute } from '../chunk-NCE6R2CP.js';
|
|
2
|
+
import '../chunk-SGHGLGUJ.js';
|
|
3
|
+
import '../chunk-XZV42PVV.js';
|
|
4
4
|
import '../chunk-TV2XPAIF.js';
|
|
5
5
|
import '../chunk-TD63P2AG.js';
|
|
6
6
|
import '../chunk-GV2QOWB4.js';
|
|
7
7
|
import '../chunk-VQ5SIQWU.js';
|
|
8
8
|
import '../chunk-SWYON2RG.js';
|
|
9
|
-
import '../chunk-
|
|
9
|
+
import '../chunk-7G7IEOTQ.js';
|
|
10
10
|
import '../chunk-36MCR5DZ.js';
|
|
11
|
-
import '../chunk-
|
|
12
|
-
import '../chunk-
|
|
13
|
-
import '../chunk-
|
|
14
|
-
import '../chunk-
|
|
15
|
-
import '../chunk-
|
|
16
|
-
import '../chunk-
|
|
17
|
-
import '../chunk-
|
|
11
|
+
import '../chunk-A7FWC5OX.js';
|
|
12
|
+
import '../chunk-OFBEDG4X.js';
|
|
13
|
+
import '../chunk-DF3WCTFB.js';
|
|
14
|
+
import '../chunk-563FE62N.js';
|
|
15
|
+
import '../chunk-RE4YYQCE.js';
|
|
16
|
+
import '../chunk-4XUWIG3Z.js';
|
|
17
|
+
import '../chunk-YABXOO3H.js';
|
|
18
18
|
import '../chunk-UXUJNZOA.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export { getFeeInfoForChain } from '../chunk-
|
|
1
|
+
export { getFeeInfoForChain } from '../chunk-6SQTOOYP.js';
|
|
2
2
|
import '../chunk-SWYON2RG.js';
|
|
3
3
|
import '../chunk-36MCR5DZ.js';
|
|
4
|
-
import '../chunk-
|
|
5
|
-
import '../chunk-
|
|
4
|
+
import '../chunk-4XUWIG3Z.js';
|
|
5
|
+
import '../chunk-YABXOO3H.js';
|
|
6
6
|
import '../chunk-UXUJNZOA.js';
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export { getRecommendedGasPrice } from '../chunk-
|
|
1
|
+
export { getRecommendedGasPrice } from '../chunk-O4IHON37.js';
|
|
2
2
|
import '../chunk-VQ5SIQWU.js';
|
|
3
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-6SQTOOYP.js';
|
|
4
4
|
import '../chunk-SWYON2RG.js';
|
|
5
5
|
import '../chunk-36MCR5DZ.js';
|
|
6
|
-
import '../chunk-
|
|
7
|
-
import '../chunk-
|
|
6
|
+
import '../chunk-4XUWIG3Z.js';
|
|
7
|
+
import '../chunk-YABXOO3H.js';
|
|
8
8
|
import '../chunk-UXUJNZOA.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { getSigningStargateClient } from '../chunk-
|
|
1
|
+
export { getSigningStargateClient } from '../chunk-7G7IEOTQ.js';
|
|
2
2
|
import '../chunk-36MCR5DZ.js';
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-4XUWIG3Z.js';
|
|
4
|
+
import '../chunk-YABXOO3H.js';
|
|
5
5
|
import '../chunk-UXUJNZOA.js';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
export { setApiOptions } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
1
|
+
export { setApiOptions } from '../chunk-2YOWXBHH.js';
|
|
2
|
+
import '../chunk-YABXOO3H.js';
|
|
3
3
|
import '../chunk-UXUJNZOA.js';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { s as setClientOptions } from '../setClientOptions-
|
|
1
|
+
export { s as setClientOptions } from '../setClientOptions-D8SDeegt.js';
|
|
2
2
|
import '@cosmjs/proto-signing';
|
|
3
3
|
import '@cosmjs/stargate';
|
|
4
|
-
import '../apiState-
|
|
4
|
+
import '../apiState-DwZhwVul.js';
|
|
5
5
|
import '../client-types-BkeR6R_z.js';
|
|
6
6
|
import '@cosmjs/amino';
|
|
7
7
|
import 'viem';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { setClientOptions } from '../chunk-
|
|
1
|
+
export { setClientOptions } from '../chunk-A4M35XLF.js';
|
|
2
2
|
import '../chunk-TD63P2AG.js';
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
3
|
+
import '../chunk-4XUWIG3Z.js';
|
|
4
|
+
import '../chunk-YABXOO3H.js';
|
|
5
5
|
import '../chunk-UXUJNZOA.js';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export { waitForTransaction } from '../chunk-
|
|
2
|
-
import '../chunk-
|
|
3
|
-
import '../chunk-
|
|
4
|
-
import '../chunk-
|
|
1
|
+
export { waitForTransaction } from '../chunk-SGHGLGUJ.js';
|
|
2
|
+
import '../chunk-XZV42PVV.js';
|
|
3
|
+
import '../chunk-563FE62N.js';
|
|
4
|
+
import '../chunk-YABXOO3H.js';
|
|
5
5
|
import '../chunk-UXUJNZOA.js';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GeneratedType } from '@cosmjs/proto-signing';
|
|
2
2
|
import { AminoConverters } from '@cosmjs/stargate';
|
|
3
|
-
import { S as SkipApiOptions } from './apiState-
|
|
3
|
+
import { S as SkipApiOptions } from './apiState-DwZhwVul.js';
|
|
4
4
|
import { E as EndpointOptions } from './client-types-BkeR6R_z.js';
|
|
5
5
|
|
|
6
6
|
type SkipClientOptions = SkipApiOptions & {
|