@chainflip/sdk 1.1.0-rc.1 → 1.1.0-rc.2
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/swap.d.mts +1 -0
- package/dist/swap.d.ts +1 -0
- package/dist/swap.js +15 -5
- package/dist/swap.mjs +15 -5
- package/package.json +1 -1
package/dist/swap.d.mts
CHANGED
package/dist/swap.d.ts
CHANGED
package/dist/swap.js
CHANGED
|
@@ -8362,9 +8362,11 @@ var eth$ = /* @__PURE__ */ __name((network, env) => ({
|
|
|
8362
8362
|
decimals: exports.assetDecimals[exports.Assets.ETH],
|
|
8363
8363
|
name: "Ether",
|
|
8364
8364
|
symbol: "ETH",
|
|
8365
|
+
chainflipId: "ETH",
|
|
8365
8366
|
isMainnet: !isTestnet(network),
|
|
8366
8367
|
minimumDepositAmount: env.ingressEgress.minimumDepositAmounts.Ethereum.ETH.toString(),
|
|
8367
|
-
minimumSwapAmount: env.swapping.minimumSwapAmounts.Ethereum.ETH.toString()
|
|
8368
|
+
minimumSwapAmount: env.swapping.minimumSwapAmounts.Ethereum.ETH.toString(),
|
|
8369
|
+
maximumSwapAmount: env.swapping.maximumSwapAmounts.Ethereum.ETH?.toString() ?? null
|
|
8368
8370
|
}), "eth$");
|
|
8369
8371
|
var usdc$ = /* @__PURE__ */ __name((network, env) => ({
|
|
8370
8372
|
id: exports.Assets.USDC,
|
|
@@ -8373,9 +8375,11 @@ var usdc$ = /* @__PURE__ */ __name((network, env) => ({
|
|
|
8373
8375
|
decimals: exports.assetDecimals[exports.Assets.USDC],
|
|
8374
8376
|
name: "USDC",
|
|
8375
8377
|
symbol: "USDC",
|
|
8378
|
+
chainflipId: "USDC",
|
|
8376
8379
|
isMainnet: !isTestnet(network),
|
|
8377
8380
|
minimumDepositAmount: env.ingressEgress.minimumDepositAmounts.Ethereum.USDC.toString(),
|
|
8378
|
-
minimumSwapAmount: env.swapping.minimumSwapAmounts.Ethereum.USDC.toString()
|
|
8381
|
+
minimumSwapAmount: env.swapping.minimumSwapAmounts.Ethereum.USDC.toString(),
|
|
8382
|
+
maximumSwapAmount: env.swapping.maximumSwapAmounts.Ethereum.USDC?.toString() ?? null
|
|
8379
8383
|
}), "usdc$");
|
|
8380
8384
|
var flip$ = /* @__PURE__ */ __name((network, env) => ({
|
|
8381
8385
|
id: exports.Assets.FLIP,
|
|
@@ -8384,9 +8388,11 @@ var flip$ = /* @__PURE__ */ __name((network, env) => ({
|
|
|
8384
8388
|
decimals: exports.assetDecimals[exports.Assets.FLIP],
|
|
8385
8389
|
name: "FLIP",
|
|
8386
8390
|
symbol: "FLIP",
|
|
8391
|
+
chainflipId: "FLIP",
|
|
8387
8392
|
isMainnet: !isTestnet(network),
|
|
8388
8393
|
minimumDepositAmount: env.ingressEgress.minimumDepositAmounts.Ethereum.FLIP.toString(),
|
|
8389
|
-
minimumSwapAmount: env.swapping.minimumSwapAmounts.Ethereum.FLIP.toString()
|
|
8394
|
+
minimumSwapAmount: env.swapping.minimumSwapAmounts.Ethereum.FLIP.toString(),
|
|
8395
|
+
maximumSwapAmount: env.swapping.maximumSwapAmounts.Ethereum.FLIP?.toString() ?? null
|
|
8390
8396
|
}), "flip$");
|
|
8391
8397
|
var dot$ = /* @__PURE__ */ __name((network, env) => ({
|
|
8392
8398
|
id: exports.Assets.DOT,
|
|
@@ -8395,9 +8401,11 @@ var dot$ = /* @__PURE__ */ __name((network, env) => ({
|
|
|
8395
8401
|
decimals: exports.assetDecimals[exports.Assets.DOT],
|
|
8396
8402
|
name: "Polkadot",
|
|
8397
8403
|
symbol: "DOT",
|
|
8404
|
+
chainflipId: "DOT",
|
|
8398
8405
|
isMainnet: !isTestnet(network),
|
|
8399
8406
|
minimumDepositAmount: env.ingressEgress.minimumDepositAmounts.Polkadot.DOT.toString(),
|
|
8400
|
-
minimumSwapAmount: env.swapping.minimumSwapAmounts.Polkadot.DOT.toString()
|
|
8407
|
+
minimumSwapAmount: env.swapping.minimumSwapAmounts.Polkadot.DOT.toString(),
|
|
8408
|
+
maximumSwapAmount: env.swapping.maximumSwapAmounts.Polkadot.DOT?.toString() ?? null
|
|
8401
8409
|
}), "dot$");
|
|
8402
8410
|
var btc$ = /* @__PURE__ */ __name((network, env) => ({
|
|
8403
8411
|
id: exports.Assets.BTC,
|
|
@@ -8406,9 +8414,11 @@ var btc$ = /* @__PURE__ */ __name((network, env) => ({
|
|
|
8406
8414
|
decimals: exports.assetDecimals[exports.Assets.BTC],
|
|
8407
8415
|
name: "Bitcoin",
|
|
8408
8416
|
symbol: "BTC",
|
|
8417
|
+
chainflipId: "BTC",
|
|
8409
8418
|
isMainnet: !isTestnet(network),
|
|
8410
8419
|
minimumDepositAmount: env.ingressEgress.minimumDepositAmounts.Bitcoin.BTC.toString(),
|
|
8411
|
-
minimumSwapAmount: env.swapping.minimumSwapAmounts.Bitcoin.BTC.toString()
|
|
8420
|
+
minimumSwapAmount: env.swapping.minimumSwapAmounts.Bitcoin.BTC.toString(),
|
|
8421
|
+
maximumSwapAmount: env.swapping.maximumSwapAmounts.Bitcoin.BTC?.toString() ?? null
|
|
8412
8422
|
}), "btc$");
|
|
8413
8423
|
|
|
8414
8424
|
// src/swap/chains.ts
|
package/dist/swap.mjs
CHANGED
|
@@ -2359,9 +2359,11 @@ var eth$ = /* @__PURE__ */ __name((network, env) => ({
|
|
|
2359
2359
|
decimals: assetDecimals[Assets.ETH],
|
|
2360
2360
|
name: "Ether",
|
|
2361
2361
|
symbol: "ETH",
|
|
2362
|
+
chainflipId: "ETH",
|
|
2362
2363
|
isMainnet: !isTestnet(network),
|
|
2363
2364
|
minimumDepositAmount: env.ingressEgress.minimumDepositAmounts.Ethereum.ETH.toString(),
|
|
2364
|
-
minimumSwapAmount: env.swapping.minimumSwapAmounts.Ethereum.ETH.toString()
|
|
2365
|
+
minimumSwapAmount: env.swapping.minimumSwapAmounts.Ethereum.ETH.toString(),
|
|
2366
|
+
maximumSwapAmount: env.swapping.maximumSwapAmounts.Ethereum.ETH?.toString() ?? null
|
|
2365
2367
|
}), "eth$");
|
|
2366
2368
|
var usdc$ = /* @__PURE__ */ __name((network, env) => ({
|
|
2367
2369
|
id: Assets.USDC,
|
|
@@ -2370,9 +2372,11 @@ var usdc$ = /* @__PURE__ */ __name((network, env) => ({
|
|
|
2370
2372
|
decimals: assetDecimals[Assets.USDC],
|
|
2371
2373
|
name: "USDC",
|
|
2372
2374
|
symbol: "USDC",
|
|
2375
|
+
chainflipId: "USDC",
|
|
2373
2376
|
isMainnet: !isTestnet(network),
|
|
2374
2377
|
minimumDepositAmount: env.ingressEgress.minimumDepositAmounts.Ethereum.USDC.toString(),
|
|
2375
|
-
minimumSwapAmount: env.swapping.minimumSwapAmounts.Ethereum.USDC.toString()
|
|
2378
|
+
minimumSwapAmount: env.swapping.minimumSwapAmounts.Ethereum.USDC.toString(),
|
|
2379
|
+
maximumSwapAmount: env.swapping.maximumSwapAmounts.Ethereum.USDC?.toString() ?? null
|
|
2376
2380
|
}), "usdc$");
|
|
2377
2381
|
var flip$ = /* @__PURE__ */ __name((network, env) => ({
|
|
2378
2382
|
id: Assets.FLIP,
|
|
@@ -2381,9 +2385,11 @@ var flip$ = /* @__PURE__ */ __name((network, env) => ({
|
|
|
2381
2385
|
decimals: assetDecimals[Assets.FLIP],
|
|
2382
2386
|
name: "FLIP",
|
|
2383
2387
|
symbol: "FLIP",
|
|
2388
|
+
chainflipId: "FLIP",
|
|
2384
2389
|
isMainnet: !isTestnet(network),
|
|
2385
2390
|
minimumDepositAmount: env.ingressEgress.minimumDepositAmounts.Ethereum.FLIP.toString(),
|
|
2386
|
-
minimumSwapAmount: env.swapping.minimumSwapAmounts.Ethereum.FLIP.toString()
|
|
2391
|
+
minimumSwapAmount: env.swapping.minimumSwapAmounts.Ethereum.FLIP.toString(),
|
|
2392
|
+
maximumSwapAmount: env.swapping.maximumSwapAmounts.Ethereum.FLIP?.toString() ?? null
|
|
2387
2393
|
}), "flip$");
|
|
2388
2394
|
var dot$ = /* @__PURE__ */ __name((network, env) => ({
|
|
2389
2395
|
id: Assets.DOT,
|
|
@@ -2392,9 +2398,11 @@ var dot$ = /* @__PURE__ */ __name((network, env) => ({
|
|
|
2392
2398
|
decimals: assetDecimals[Assets.DOT],
|
|
2393
2399
|
name: "Polkadot",
|
|
2394
2400
|
symbol: "DOT",
|
|
2401
|
+
chainflipId: "DOT",
|
|
2395
2402
|
isMainnet: !isTestnet(network),
|
|
2396
2403
|
minimumDepositAmount: env.ingressEgress.minimumDepositAmounts.Polkadot.DOT.toString(),
|
|
2397
|
-
minimumSwapAmount: env.swapping.minimumSwapAmounts.Polkadot.DOT.toString()
|
|
2404
|
+
minimumSwapAmount: env.swapping.minimumSwapAmounts.Polkadot.DOT.toString(),
|
|
2405
|
+
maximumSwapAmount: env.swapping.maximumSwapAmounts.Polkadot.DOT?.toString() ?? null
|
|
2398
2406
|
}), "dot$");
|
|
2399
2407
|
var btc$ = /* @__PURE__ */ __name((network, env) => ({
|
|
2400
2408
|
id: Assets.BTC,
|
|
@@ -2403,9 +2411,11 @@ var btc$ = /* @__PURE__ */ __name((network, env) => ({
|
|
|
2403
2411
|
decimals: assetDecimals[Assets.BTC],
|
|
2404
2412
|
name: "Bitcoin",
|
|
2405
2413
|
symbol: "BTC",
|
|
2414
|
+
chainflipId: "BTC",
|
|
2406
2415
|
isMainnet: !isTestnet(network),
|
|
2407
2416
|
minimumDepositAmount: env.ingressEgress.minimumDepositAmounts.Bitcoin.BTC.toString(),
|
|
2408
|
-
minimumSwapAmount: env.swapping.minimumSwapAmounts.Bitcoin.BTC.toString()
|
|
2417
|
+
minimumSwapAmount: env.swapping.minimumSwapAmounts.Bitcoin.BTC.toString(),
|
|
2418
|
+
maximumSwapAmount: env.swapping.maximumSwapAmounts.Bitcoin.BTC?.toString() ?? null
|
|
2409
2419
|
}), "btc$");
|
|
2410
2420
|
|
|
2411
2421
|
// src/swap/chains.ts
|