@skip-go/client 1.5.5 → 1.5.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.
- package/dist/cjs/{chunk-WRTBZRHG.cjs → chunk-AVWWCQ5P.cjs} +2 -6
- package/dist/cjs/index.cjs +5 -5
- package/dist/cjs/public-functions/getRouteWithGasOnReceive.cjs +1 -1
- package/dist/cjs/public-functions/setClientOptions.cjs +3 -2
- package/dist/esm/{chunk-TON3V7SK.js → chunk-GZJLX2CP.js} +3 -7
- package/dist/esm/index.js +1 -1
- package/dist/esm/public-functions/getRouteWithGasOnReceive.js +1 -1
- package/dist/esm/public-functions/setClientOptions.js +2 -1
- package/package.json +1 -1
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
+
var chunkCK6CQWQU_cjs = require('./chunk-CK6CQWQU.cjs');
|
|
3
4
|
var chunkNM4PISTQ_cjs = require('./chunk-NM4PISTQ.cjs');
|
|
4
5
|
var chunkMUJBB64F_cjs = require('./chunk-MUJBB64F.cjs');
|
|
5
6
|
var chunkATW6UNT5_cjs = require('./chunk-ATW6UNT5.cjs');
|
|
@@ -2235,11 +2236,6 @@ var opinitAminoConverters = {
|
|
|
2235
2236
|
...AminoConverter7
|
|
2236
2237
|
};
|
|
2237
2238
|
var setClientOptions = (options = {}) => {
|
|
2238
|
-
chunk2QPPD3BB_cjs.ApiState.client = chunk2QPPD3BB_cjs.createRequestClient({
|
|
2239
|
-
apiUrl: options.apiUrl || "https://api.skip.build",
|
|
2240
|
-
apiKey: options.apiKey,
|
|
2241
|
-
apiHeaders: options.apiHeaders
|
|
2242
|
-
});
|
|
2243
2239
|
chunkATW6UNT5_cjs.ClientState.endpointOptions = options.endpointOptions ?? {};
|
|
2244
2240
|
chunkATW6UNT5_cjs.ClientState.aminoTypes = new stargate.AminoTypes({
|
|
2245
2241
|
...stargate.createDefaultAminoConverters(),
|
|
@@ -2262,7 +2258,7 @@ var setClientOptions = (options = {}) => {
|
|
|
2262
2258
|
if (!options.allowOptionsUpdateAfterApiCall && chunk2QPPD3BB_cjs.ApiState.apiCalled && !chunk2QPPD3BB_cjs.ApiState.initialized) {
|
|
2263
2259
|
throw new Error("setClientOptions must be called before an api request is made");
|
|
2264
2260
|
}
|
|
2265
|
-
|
|
2261
|
+
chunkCK6CQWQU_cjs.setApiOptions(options);
|
|
2266
2262
|
};
|
|
2267
2263
|
|
|
2268
2264
|
exports.setClientOptions = setClientOptions;
|
package/dist/cjs/index.cjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk4KPBBDLF_cjs = require('./chunk-4KPBBDLF.cjs');
|
|
4
|
+
var chunkAVWWCQ5P_cjs = require('./chunk-AVWWCQ5P.cjs');
|
|
4
5
|
var chunkCK6CQWQU_cjs = require('./chunk-CK6CQWQU.cjs');
|
|
5
|
-
var chunkWRTBZRHG_cjs = require('./chunk-WRTBZRHG.cjs');
|
|
6
6
|
var chunk4BWE7SOV_cjs = require('./chunk-4BWE7SOV.cjs');
|
|
7
7
|
var chunkBB5QJRM4_cjs = require('./chunk-BB5QJRM4.cjs');
|
|
8
8
|
var chunkPHFHOXMV_cjs = require('./chunk-PHFHOXMV.cjs');
|
|
@@ -124,13 +124,13 @@ Object.defineProperty(exports, "getRouteWithGasOnReceive", {
|
|
|
124
124
|
enumerable: true,
|
|
125
125
|
get: function () { return chunk4KPBBDLF_cjs.getRouteWithGasOnReceive; }
|
|
126
126
|
});
|
|
127
|
-
Object.defineProperty(exports, "
|
|
127
|
+
Object.defineProperty(exports, "setClientOptions", {
|
|
128
128
|
enumerable: true,
|
|
129
|
-
get: function () { return
|
|
129
|
+
get: function () { return chunkAVWWCQ5P_cjs.setClientOptions; }
|
|
130
130
|
});
|
|
131
|
-
Object.defineProperty(exports, "
|
|
131
|
+
Object.defineProperty(exports, "setApiOptions", {
|
|
132
132
|
enumerable: true,
|
|
133
|
-
get: function () { return
|
|
133
|
+
get: function () { return chunkCK6CQWQU_cjs.setApiOptions; }
|
|
134
134
|
});
|
|
135
135
|
Object.defineProperty(exports, "waitForTransaction", {
|
|
136
136
|
enumerable: true,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
var chunk4KPBBDLF_cjs = require('../chunk-4KPBBDLF.cjs');
|
|
4
|
+
require('../chunk-AVWWCQ5P.cjs');
|
|
4
5
|
require('../chunk-CK6CQWQU.cjs');
|
|
5
|
-
require('../chunk-WRTBZRHG.cjs');
|
|
6
6
|
require('../chunk-4BWE7SOV.cjs');
|
|
7
7
|
require('../chunk-BB5QJRM4.cjs');
|
|
8
8
|
require('../chunk-PHFHOXMV.cjs');
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkAVWWCQ5P_cjs = require('../chunk-AVWWCQ5P.cjs');
|
|
4
|
+
require('../chunk-CK6CQWQU.cjs');
|
|
4
5
|
require('../chunk-NM4PISTQ.cjs');
|
|
5
6
|
require('../chunk-MUJBB64F.cjs');
|
|
6
7
|
require('../chunk-ATW6UNT5.cjs');
|
|
@@ -11,5 +12,5 @@ require('../chunk-WOSAJSJB.cjs');
|
|
|
11
12
|
|
|
12
13
|
Object.defineProperty(exports, "setClientOptions", {
|
|
13
14
|
enumerable: true,
|
|
14
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkAVWWCQ5P_cjs.setClientOptions; }
|
|
15
16
|
});
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
import { setApiOptions } from './chunk-QYXGDTUU.js';
|
|
1
2
|
import { MsgUpdateSignatureThreshold, MsgSetMaxBurnAmountPerMessage, MsgUpdateMaxMessageBodySize, MsgUpdatePauser, MsgUpdateTokenController, MsgUpdateAttesterManager, MsgUpdateOwner, MsgUnpauseSendingAndReceivingMessages, MsgUnpauseBurningAndMinting, MsgUnlinkTokenPair, MsgSendMessageWithCaller, MsgSendMessage, MsgReplaceMessage, MsgReplaceDepositForBurn, MsgRemoveRemoteTokenMessenger, MsgReceiveMessage, MsgPauseSendingAndReceivingMessages, MsgPauseBurningAndMinting, MsgLinkTokenPair, MsgEnableAttester, MsgDisableAttester, MsgDepositForBurnWithCaller, MsgDepositForBurn, MsgAddRemoteTokenMessenger, MsgAcceptOwner, MsgExecute, MsgInitiateTokenDeposit, Coin, Timestamp, Period } from './chunk-F2LQB2DP.js';
|
|
2
3
|
import { isSet, Long, toTimestamp, fromTimestamp, fromJsonTimestamp } from './chunk-RTDD7HZ3.js';
|
|
3
4
|
import { ClientState } from './chunk-J24LYWJE.js';
|
|
4
|
-
import {
|
|
5
|
+
import { ApiState } from './chunk-F66EKL3W.js';
|
|
5
6
|
import { AminoTypes, createDefaultAminoConverters, defaultRegistryTypes } from '@cosmjs/stargate';
|
|
6
7
|
import { createWasmAminoConverters } from '@cosmjs/cosmwasm-stargate';
|
|
7
8
|
import { Registry } from '@cosmjs/proto-signing';
|
|
@@ -2229,11 +2230,6 @@ var opinitAminoConverters = {
|
|
|
2229
2230
|
...AminoConverter7
|
|
2230
2231
|
};
|
|
2231
2232
|
var setClientOptions = (options = {}) => {
|
|
2232
|
-
ApiState.client = createRequestClient({
|
|
2233
|
-
apiUrl: options.apiUrl || "https://api.skip.build",
|
|
2234
|
-
apiKey: options.apiKey,
|
|
2235
|
-
apiHeaders: options.apiHeaders
|
|
2236
|
-
});
|
|
2237
2233
|
ClientState.endpointOptions = options.endpointOptions ?? {};
|
|
2238
2234
|
ClientState.aminoTypes = new AminoTypes({
|
|
2239
2235
|
...createDefaultAminoConverters(),
|
|
@@ -2256,7 +2252,7 @@ var setClientOptions = (options = {}) => {
|
|
|
2256
2252
|
if (!options.allowOptionsUpdateAfterApiCall && ApiState.apiCalled && !ApiState.initialized) {
|
|
2257
2253
|
throw new Error("setClientOptions must be called before an api request is made");
|
|
2258
2254
|
}
|
|
2259
|
-
|
|
2255
|
+
setApiOptions(options);
|
|
2260
2256
|
};
|
|
2261
2257
|
|
|
2262
2258
|
export { setClientOptions };
|
package/dist/esm/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { AutopilotActionJson, AxelarTransferStateJson, AxelarTransferTypeJson, BridgeTypeJson, CCTPTransferStateJson, ChainTypeJson, ContractCallWithTokenErrorTypeJson, FeeBehaviorJson, FeeTypeJson, GoFastTransferStateJson, HyperlaneTransferStateJson, LayerZeroTransferStateJson, OPInitTransferStateJson, PacketErrorTypeJson, ReasonJson, RoutePriceWarningTypeJson, SendTokenErrorTypeJson, StargateTransferStateJson, StatusErrorTypeJson, TransactionStateJson, TransferStateJson, getRouteWithGasOnReceive } from './chunk-32JIBODG.js';
|
|
2
|
+
export { setClientOptions } from './chunk-GZJLX2CP.js';
|
|
2
3
|
export { setApiOptions } from './chunk-QYXGDTUU.js';
|
|
3
|
-
export { setClientOptions } from './chunk-TON3V7SK.js';
|
|
4
4
|
export { waitForTransaction, waitForTransactionWithCancel } from './chunk-E4NRDAVO.js';
|
|
5
5
|
export { executeMultipleRoutes } from './chunk-6ERJCOUK.js';
|
|
6
6
|
export { executeRoute } from './chunk-DRWCXWGY.js';
|