@chainflip/sdk 1.4.0-alpha.3 → 1.4.0-alpha.4
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/{broker-QU4VVLJN.mjs → broker-ZOUQBZB6.mjs} +2 -2
- package/dist/{chunk-GCBDMMEA.mjs → chunk-LFAWGKTO.mjs} +1 -1
- package/dist/{chunk-EEVRQLUS.mjs → chunk-M2KPIR26.mjs} +209 -470
- package/dist/{chunk-GL7BY5NM.mjs → chunk-VT6GEMQN.mjs} +1 -25
- package/dist/funding.mjs +2 -2
- package/dist/swap.d.mts +4 -0
- package/dist/swap.d.ts +4 -0
- package/dist/swap.js +217 -499
- package/dist/swap.mjs +5 -5
- package/package.json +3 -3
|
@@ -1,30 +1,6 @@
|
|
|
1
|
-
var __create = Object.create;
|
|
2
1
|
var __defProp = Object.defineProperty;
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
6
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
7
2
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
8
3
|
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
|
|
9
|
-
var __commonJS = (cb, mod) => function __require() {
|
|
10
|
-
return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports;
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
4
|
var __publicField = (obj, key, value) => {
|
|
29
5
|
__defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
30
6
|
return value;
|
|
@@ -232,4 +208,4 @@ function assert(condition, message) {
|
|
|
232
208
|
}
|
|
233
209
|
__name(assert, "assert");
|
|
234
210
|
|
|
235
|
-
export { Assets, ChainflipNetworks, Chains, InternalAssets,
|
|
211
|
+
export { Assets, ChainflipNetworks, Chains, InternalAssets, __name, __publicField, assert, assetConstants, chainConstants, getInternalAsset, getInternalAssets, isNotNullish, isString, isTestnet, isValidAssetAndChain, readChainAssetValue };
|
package/dist/funding.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { getFlipBalance, getFundingEnvironment, getStateChainGatewayContractAddress, approve, getTokenContractAddress, checkAllowance, extractOverrides, StateChainGateway__factory } from './chunk-
|
|
2
|
-
import { __name, __publicField, ChainflipNetworks, InternalAssets, assert } from './chunk-
|
|
1
|
+
import { getFlipBalance, getFundingEnvironment, getStateChainGatewayContractAddress, approve, getTokenContractAddress, checkAllowance, extractOverrides, StateChainGateway__factory } from './chunk-LFAWGKTO.mjs';
|
|
2
|
+
import { __name, __publicField, ChainflipNetworks, InternalAssets, assert } from './chunk-VT6GEMQN.mjs';
|
|
3
3
|
|
|
4
4
|
// ../shared/src/stateChainGateway/utils.ts
|
|
5
5
|
var getStateChainGateway = /* @__PURE__ */ __name((networkOpts) => {
|
package/dist/swap.d.mts
CHANGED
|
@@ -143,6 +143,8 @@ interface DepositAddressFields extends SwapStatusResponseCommonFields {
|
|
|
143
143
|
}[];
|
|
144
144
|
depositChannelMaxBoostFeeBps: number;
|
|
145
145
|
effectiveBoostFeeBps?: number;
|
|
146
|
+
boostSkippedAt?: number;
|
|
147
|
+
boostSkippedBlockIndex?: string;
|
|
146
148
|
}
|
|
147
149
|
type BroadcastRequested = {
|
|
148
150
|
swapId: string;
|
|
@@ -190,6 +192,8 @@ type SwapState = {
|
|
|
190
192
|
depositAmount: string;
|
|
191
193
|
depositReceivedAt: number;
|
|
192
194
|
depositReceivedBlockIndex: string;
|
|
195
|
+
depositBoostedAt?: number;
|
|
196
|
+
depositBoostedBlockIndex?: string;
|
|
193
197
|
} | {
|
|
194
198
|
state: 'SWAP_EXECUTED';
|
|
195
199
|
swapId: string;
|
package/dist/swap.d.ts
CHANGED
|
@@ -143,6 +143,8 @@ interface DepositAddressFields extends SwapStatusResponseCommonFields {
|
|
|
143
143
|
}[];
|
|
144
144
|
depositChannelMaxBoostFeeBps: number;
|
|
145
145
|
effectiveBoostFeeBps?: number;
|
|
146
|
+
boostSkippedAt?: number;
|
|
147
|
+
boostSkippedBlockIndex?: string;
|
|
146
148
|
}
|
|
147
149
|
type BroadcastRequested = {
|
|
148
150
|
swapId: string;
|
|
@@ -190,6 +192,8 @@ type SwapState = {
|
|
|
190
192
|
depositAmount: string;
|
|
191
193
|
depositReceivedAt: number;
|
|
192
194
|
depositReceivedBlockIndex: string;
|
|
195
|
+
depositBoostedAt?: number;
|
|
196
|
+
depositBoostedBlockIndex?: string;
|
|
193
197
|
} | {
|
|
194
198
|
state: 'SWAP_EXECUTED';
|
|
195
199
|
swapId: string;
|