@chainflip/sdk 1.6.4 → 1.6.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/swap.d.mts CHANGED
@@ -85,17 +85,17 @@ type QuoteDetails = {
85
85
  lowLiquidityWarning: boolean | undefined;
86
86
  estimatedDurationSeconds: number;
87
87
  estimatedPrice: string;
88
+ dcaParams?: {
89
+ numberOfChunks: number;
90
+ chunkIntervalBlocks: number;
91
+ };
92
+ type: QuoteType;
88
93
  };
89
94
  type BoostedQuoteDetails = QuoteDetails & {
90
95
  estimatedBoostFeeBps: number;
91
96
  };
92
97
  type QuoteQueryResponse = QuoteDetails & {
93
98
  boostQuote?: BoostedQuoteDetails;
94
- dcaParams?: {
95
- numberOfChunks: number;
96
- chunkIntervalBlocks: number;
97
- };
98
- type: QuoteType;
99
99
  };
100
100
 
101
101
  interface ExecuteSwapParams {
@@ -180,6 +180,7 @@ interface SwapStatusResponseCommonFields$1 extends ChainsAndAssets {
180
180
  depositTransactionRef: string | undefined;
181
181
  swapScheduledAt: number | undefined;
182
182
  swapScheduledBlockIndex: string | undefined;
183
+ lastStatechainUpdateAt: number | undefined;
183
184
  depositTransactionHash: string | undefined;
184
185
  ccmMetadata?: CcmParams;
185
186
  }
@@ -366,7 +367,7 @@ interface DepositChannelFields {
366
367
  depositAddress: string;
367
368
  srcChainExpiryBlock: string;
368
369
  estimatedExpiryTime: number;
369
- expectedDepositAmount: string;
370
+ expectedDepositAmount: string | undefined;
370
371
  isExpired: boolean;
371
372
  openedThroughBackend: boolean;
372
373
  affiliateBrokers: AffiliateBroker[];
@@ -385,12 +386,12 @@ interface DepositFields {
385
386
  }
386
387
  type ChunkInfo = {
387
388
  inputAmount: string;
388
- intermediateAmount?: string;
389
- outputAmount?: string;
389
+ intermediateAmount: string | undefined;
390
+ outputAmount: string | undefined;
390
391
  scheduledAt: number;
391
392
  scheduledBlockIndex: string;
392
- executedAt?: number;
393
- executedBlockIndex?: string;
393
+ executedAt: number | undefined;
394
+ executedBlockIndex: string | undefined;
394
395
  retryCount: number;
395
396
  };
396
397
  type PickRequired<T> = {
@@ -402,13 +403,13 @@ interface SwapFields {
402
403
  swappedInputAmount: string;
403
404
  swappedIntermediateAmount: string;
404
405
  swappedOutputAmount: string;
405
- regular?: ChunkInfo;
406
- dca?: {
406
+ regular: ChunkInfo | undefined;
407
+ dca: {
407
408
  lastExecutedChunk: ChunkInfo | null;
408
409
  currentChunk: PickRequired<ChunkInfo> | null;
409
410
  executedChunks: number;
410
411
  remainingChunks: number;
411
- };
412
+ } | undefined;
412
413
  }
413
414
  interface EgressFields {
414
415
  amount: string;
@@ -430,6 +431,7 @@ interface SwapStatusResponseCommonFields extends ChainsAndAssets {
430
431
  estimatedDurationSeconds: number | null | undefined;
431
432
  srcChainRequiredBlockConfirmations: number | null;
432
433
  fees: PaidFee[];
434
+ lastStatechainUpdateAt: number | undefined;
433
435
  }
434
436
  interface Waiting extends SwapStatusResponseCommonFields {
435
437
  depositChannel: DepositChannelFields;
package/dist/swap.d.ts CHANGED
@@ -85,17 +85,17 @@ type QuoteDetails = {
85
85
  lowLiquidityWarning: boolean | undefined;
86
86
  estimatedDurationSeconds: number;
87
87
  estimatedPrice: string;
88
+ dcaParams?: {
89
+ numberOfChunks: number;
90
+ chunkIntervalBlocks: number;
91
+ };
92
+ type: QuoteType;
88
93
  };
89
94
  type BoostedQuoteDetails = QuoteDetails & {
90
95
  estimatedBoostFeeBps: number;
91
96
  };
92
97
  type QuoteQueryResponse = QuoteDetails & {
93
98
  boostQuote?: BoostedQuoteDetails;
94
- dcaParams?: {
95
- numberOfChunks: number;
96
- chunkIntervalBlocks: number;
97
- };
98
- type: QuoteType;
99
99
  };
100
100
 
101
101
  interface ExecuteSwapParams {
@@ -180,6 +180,7 @@ interface SwapStatusResponseCommonFields$1 extends ChainsAndAssets {
180
180
  depositTransactionRef: string | undefined;
181
181
  swapScheduledAt: number | undefined;
182
182
  swapScheduledBlockIndex: string | undefined;
183
+ lastStatechainUpdateAt: number | undefined;
183
184
  depositTransactionHash: string | undefined;
184
185
  ccmMetadata?: CcmParams;
185
186
  }
@@ -366,7 +367,7 @@ interface DepositChannelFields {
366
367
  depositAddress: string;
367
368
  srcChainExpiryBlock: string;
368
369
  estimatedExpiryTime: number;
369
- expectedDepositAmount: string;
370
+ expectedDepositAmount: string | undefined;
370
371
  isExpired: boolean;
371
372
  openedThroughBackend: boolean;
372
373
  affiliateBrokers: AffiliateBroker[];
@@ -385,12 +386,12 @@ interface DepositFields {
385
386
  }
386
387
  type ChunkInfo = {
387
388
  inputAmount: string;
388
- intermediateAmount?: string;
389
- outputAmount?: string;
389
+ intermediateAmount: string | undefined;
390
+ outputAmount: string | undefined;
390
391
  scheduledAt: number;
391
392
  scheduledBlockIndex: string;
392
- executedAt?: number;
393
- executedBlockIndex?: string;
393
+ executedAt: number | undefined;
394
+ executedBlockIndex: string | undefined;
394
395
  retryCount: number;
395
396
  };
396
397
  type PickRequired<T> = {
@@ -402,13 +403,13 @@ interface SwapFields {
402
403
  swappedInputAmount: string;
403
404
  swappedIntermediateAmount: string;
404
405
  swappedOutputAmount: string;
405
- regular?: ChunkInfo;
406
- dca?: {
406
+ regular: ChunkInfo | undefined;
407
+ dca: {
407
408
  lastExecutedChunk: ChunkInfo | null;
408
409
  currentChunk: PickRequired<ChunkInfo> | null;
409
410
  executedChunks: number;
410
411
  remainingChunks: number;
411
- };
412
+ } | undefined;
412
413
  }
413
414
  interface EgressFields {
414
415
  amount: string;
@@ -430,6 +431,7 @@ interface SwapStatusResponseCommonFields extends ChainsAndAssets {
430
431
  estimatedDurationSeconds: number | null | undefined;
431
432
  srcChainRequiredBlockConfirmations: number | null;
432
433
  fees: PaidFee[];
434
+ lastStatechainUpdateAt: number | undefined;
433
435
  }
434
436
  interface Waiting extends SwapStatusResponseCommonFields {
435
437
  depositChannel: DepositChannelFields;
package/dist/swap.js CHANGED
@@ -6224,238 +6224,6 @@ var z = /* @__PURE__ */ Object.freeze({
6224
6224
  ZodError
6225
6225
  });
6226
6226
 
6227
- // ../shared/src/enums.ts
6228
- var arrayToMap = /* @__PURE__ */ __name((array) => Object.fromEntries(array.map((key) => [
6229
- key,
6230
- key
6231
- ])), "arrayToMap");
6232
- var InternalAssets = arrayToMap([
6233
- "Flip",
6234
- "Usdc",
6235
- "Dot",
6236
- "Eth",
6237
- "Btc",
6238
- "Usdt",
6239
- "ArbUsdc",
6240
- "ArbEth",
6241
- "Sol",
6242
- "SolUsdc"
6243
- ]);
6244
- var Chains = arrayToMap([
6245
- "Bitcoin",
6246
- "Ethereum",
6247
- "Polkadot",
6248
- "Arbitrum",
6249
- "Solana"
6250
- ]);
6251
- var Assets = arrayToMap([
6252
- "FLIP",
6253
- "USDC",
6254
- "DOT",
6255
- "ETH",
6256
- "BTC",
6257
- "USDT",
6258
- "SOL"
6259
- ]);
6260
- var ChainflipNetworks = arrayToMap([
6261
- "backspin",
6262
- "sisyphos",
6263
- "perseverance",
6264
- "mainnet"
6265
- ]);
6266
- var isTestnet = /* @__PURE__ */ __name((network) => network !== ChainflipNetworks.mainnet, "isTestnet");
6267
- var assetConstants = {
6268
- [InternalAssets.Eth]: {
6269
- chain: Chains.Ethereum,
6270
- asset: Assets.ETH,
6271
- name: "Ether",
6272
- decimals: 18,
6273
- contractId: 1
6274
- },
6275
- [InternalAssets.Flip]: {
6276
- chain: Chains.Ethereum,
6277
- asset: Assets.FLIP,
6278
- name: "FLIP",
6279
- decimals: 18,
6280
- contractId: 2
6281
- },
6282
- [InternalAssets.Usdc]: {
6283
- chain: Chains.Ethereum,
6284
- asset: Assets.USDC,
6285
- name: "USDC",
6286
- decimals: 6,
6287
- contractId: 3
6288
- },
6289
- [InternalAssets.Usdt]: {
6290
- chain: Chains.Ethereum,
6291
- asset: Assets.USDT,
6292
- name: "USDT",
6293
- decimals: 6,
6294
- contractId: 8
6295
- },
6296
- [InternalAssets.Dot]: {
6297
- chain: Chains.Polkadot,
6298
- asset: Assets.DOT,
6299
- name: "Polkadot",
6300
- decimals: 10,
6301
- contractId: 4
6302
- },
6303
- [InternalAssets.Btc]: {
6304
- chain: Chains.Bitcoin,
6305
- asset: Assets.BTC,
6306
- name: "Bitcoin",
6307
- decimals: 8,
6308
- contractId: 5
6309
- },
6310
- [InternalAssets.ArbEth]: {
6311
- chain: Chains.Arbitrum,
6312
- asset: Assets.ETH,
6313
- name: "Arbitrum Ether",
6314
- decimals: 18,
6315
- contractId: 6
6316
- },
6317
- [InternalAssets.ArbUsdc]: {
6318
- chain: Chains.Arbitrum,
6319
- asset: Assets.USDC,
6320
- name: "Arbitrum USDC",
6321
- decimals: 6,
6322
- contractId: 7
6323
- },
6324
- [InternalAssets.Sol]: {
6325
- chain: Chains.Solana,
6326
- asset: Assets.SOL,
6327
- name: "Solana",
6328
- decimals: 9,
6329
- contractId: 9
6330
- },
6331
- [InternalAssets.SolUsdc]: {
6332
- chain: Chains.Solana,
6333
- asset: Assets.USDC,
6334
- name: "Solana USDC",
6335
- decimals: 6,
6336
- contractId: 10
6337
- }
6338
- };
6339
- var chainConstants = {
6340
- [Chains.Ethereum]: {
6341
- assets: [
6342
- Assets.ETH,
6343
- Assets.FLIP,
6344
- Assets.USDC,
6345
- Assets.USDT
6346
- ],
6347
- gasAsset: Assets.ETH,
6348
- contractId: 1,
6349
- blockTimeSeconds: 12
6350
- },
6351
- [Chains.Polkadot]: {
6352
- assets: [
6353
- Assets.DOT
6354
- ],
6355
- gasAsset: Assets.DOT,
6356
- contractId: 2,
6357
- blockTimeSeconds: 6
6358
- },
6359
- [Chains.Bitcoin]: {
6360
- assets: [
6361
- Assets.BTC
6362
- ],
6363
- gasAsset: Assets.BTC,
6364
- contractId: 3,
6365
- blockTimeSeconds: 10 * 60
6366
- },
6367
- [Chains.Arbitrum]: {
6368
- assets: [
6369
- Assets.ETH,
6370
- Assets.USDC
6371
- ],
6372
- gasAsset: Assets.ETH,
6373
- contractId: 4,
6374
- blockTimeSeconds: 0.26
6375
- },
6376
- [Chains.Solana]: {
6377
- assets: [
6378
- Assets.SOL,
6379
- Assets.USDC
6380
- ],
6381
- gasAsset: Assets.SOL,
6382
- contractId: 5,
6383
- blockTimeSeconds: (400 + 800) / 2 / 1e3
6384
- }
6385
- };
6386
- function isValidAssetAndChain(assetAndChain2) {
6387
- const { asset: asset2, chain: chain2 } = assetAndChain2;
6388
- if (!(chain2 in Chains)) return false;
6389
- const validAssets = chainConstants[chain2].assets;
6390
- return validAssets.includes(asset2);
6391
- }
6392
- __name(isValidAssetAndChain, "isValidAssetAndChain");
6393
- var readChainAssetValue = /* @__PURE__ */ __name((map, asset2) => {
6394
- const { chain: chain2, asset: symbol } = assetConstants[asset2];
6395
- const chainValues = map[chain2];
6396
- return chainValues[symbol];
6397
- }, "readChainAssetValue");
6398
- function getInternalAsset(asset2, assert3 = true) {
6399
- if (!isValidAssetAndChain(asset2)) {
6400
- if (assert3) {
6401
- throw new Error(`invalid asset and chain combination: ${JSON.stringify(asset2)}`);
6402
- }
6403
- return null;
6404
- }
6405
- const map = {
6406
- [Chains.Ethereum]: {
6407
- [Assets.USDC]: InternalAssets.Usdc,
6408
- [Assets.FLIP]: InternalAssets.Flip,
6409
- [Assets.ETH]: InternalAssets.Eth,
6410
- [Assets.USDT]: InternalAssets.Usdt
6411
- },
6412
- [Chains.Bitcoin]: {
6413
- [Assets.BTC]: InternalAssets.Btc
6414
- },
6415
- [Chains.Polkadot]: {
6416
- [Assets.DOT]: InternalAssets.Dot
6417
- },
6418
- [Chains.Arbitrum]: {
6419
- [Assets.USDC]: InternalAssets.ArbUsdc,
6420
- [Assets.ETH]: InternalAssets.ArbEth
6421
- },
6422
- [Chains.Solana]: {
6423
- [Assets.SOL]: InternalAssets.Sol,
6424
- [Assets.USDC]: InternalAssets.SolUsdc
6425
- }
6426
- };
6427
- const chain2 = map[asset2.chain];
6428
- return chain2[asset2.asset];
6429
- }
6430
- __name(getInternalAsset, "getInternalAsset");
6431
- function getInternalAssets({ srcAsset, srcChain, destAsset, destChain }, assert3 = true) {
6432
- return {
6433
- srcAsset: getInternalAsset({
6434
- asset: srcAsset,
6435
- chain: srcChain
6436
- }, assert3),
6437
- destAsset: getInternalAsset({
6438
- asset: destAsset,
6439
- chain: destChain
6440
- }, assert3)
6441
- };
6442
- }
6443
- __name(getInternalAssets, "getInternalAssets");
6444
- function getAssetAndChain(internalAsset, prefix) {
6445
- const { chain: chain2, asset: asset2 } = assetConstants[internalAsset];
6446
- if (prefix) {
6447
- return {
6448
- [`${prefix}Asset`]: asset2,
6449
- [`${prefix}Chain`]: chain2
6450
- };
6451
- }
6452
- return {
6453
- chain: chain2,
6454
- asset: asset2
6455
- };
6456
- }
6457
- __name(getAssetAndChain, "getAssetAndChain");
6458
-
6459
6227
  // ../../node_modules/.pnpm/@noble+hashes@1.4.0/node_modules/@noble/hashes/esm/_assert.js
6460
6228
  function isBytes(a) {
6461
6229
  return a instanceof Uint8Array || a != null && typeof a === "object" && a.constructor.name === "Uint8Array";
@@ -6925,6 +6693,238 @@ var isValidSolanaAddress = /* @__PURE__ */ __name((address) => {
6925
6693
  }
6926
6694
  }, "isValidSolanaAddress");
6927
6695
 
6696
+ // ../shared/src/enums.ts
6697
+ var arrayToMap = /* @__PURE__ */ __name((array) => Object.fromEntries(array.map((key) => [
6698
+ key,
6699
+ key
6700
+ ])), "arrayToMap");
6701
+ var InternalAssets = arrayToMap([
6702
+ "Flip",
6703
+ "Usdc",
6704
+ "Dot",
6705
+ "Eth",
6706
+ "Btc",
6707
+ "Usdt",
6708
+ "ArbUsdc",
6709
+ "ArbEth",
6710
+ "Sol",
6711
+ "SolUsdc"
6712
+ ]);
6713
+ var Chains = arrayToMap([
6714
+ "Bitcoin",
6715
+ "Ethereum",
6716
+ "Polkadot",
6717
+ "Arbitrum",
6718
+ "Solana"
6719
+ ]);
6720
+ var Assets = arrayToMap([
6721
+ "FLIP",
6722
+ "USDC",
6723
+ "DOT",
6724
+ "ETH",
6725
+ "BTC",
6726
+ "USDT",
6727
+ "SOL"
6728
+ ]);
6729
+ var ChainflipNetworks = arrayToMap([
6730
+ "backspin",
6731
+ "sisyphos",
6732
+ "perseverance",
6733
+ "mainnet"
6734
+ ]);
6735
+ var isTestnet = /* @__PURE__ */ __name((network) => network !== ChainflipNetworks.mainnet, "isTestnet");
6736
+ var assetConstants = {
6737
+ [InternalAssets.Eth]: {
6738
+ chain: Chains.Ethereum,
6739
+ asset: Assets.ETH,
6740
+ name: "Ether",
6741
+ decimals: 18,
6742
+ contractId: 1
6743
+ },
6744
+ [InternalAssets.Flip]: {
6745
+ chain: Chains.Ethereum,
6746
+ asset: Assets.FLIP,
6747
+ name: "FLIP",
6748
+ decimals: 18,
6749
+ contractId: 2
6750
+ },
6751
+ [InternalAssets.Usdc]: {
6752
+ chain: Chains.Ethereum,
6753
+ asset: Assets.USDC,
6754
+ name: "USDC",
6755
+ decimals: 6,
6756
+ contractId: 3
6757
+ },
6758
+ [InternalAssets.Usdt]: {
6759
+ chain: Chains.Ethereum,
6760
+ asset: Assets.USDT,
6761
+ name: "USDT",
6762
+ decimals: 6,
6763
+ contractId: 8
6764
+ },
6765
+ [InternalAssets.Dot]: {
6766
+ chain: Chains.Polkadot,
6767
+ asset: Assets.DOT,
6768
+ name: "Polkadot",
6769
+ decimals: 10,
6770
+ contractId: 4
6771
+ },
6772
+ [InternalAssets.Btc]: {
6773
+ chain: Chains.Bitcoin,
6774
+ asset: Assets.BTC,
6775
+ name: "Bitcoin",
6776
+ decimals: 8,
6777
+ contractId: 5
6778
+ },
6779
+ [InternalAssets.ArbEth]: {
6780
+ chain: Chains.Arbitrum,
6781
+ asset: Assets.ETH,
6782
+ name: "Arbitrum Ether",
6783
+ decimals: 18,
6784
+ contractId: 6
6785
+ },
6786
+ [InternalAssets.ArbUsdc]: {
6787
+ chain: Chains.Arbitrum,
6788
+ asset: Assets.USDC,
6789
+ name: "Arbitrum USDC",
6790
+ decimals: 6,
6791
+ contractId: 7
6792
+ },
6793
+ [InternalAssets.Sol]: {
6794
+ chain: Chains.Solana,
6795
+ asset: Assets.SOL,
6796
+ name: "Solana",
6797
+ decimals: 9,
6798
+ contractId: 9
6799
+ },
6800
+ [InternalAssets.SolUsdc]: {
6801
+ chain: Chains.Solana,
6802
+ asset: Assets.USDC,
6803
+ name: "Solana USDC",
6804
+ decimals: 6,
6805
+ contractId: 10
6806
+ }
6807
+ };
6808
+ var chainConstants = {
6809
+ [Chains.Ethereum]: {
6810
+ assets: [
6811
+ Assets.ETH,
6812
+ Assets.FLIP,
6813
+ Assets.USDC,
6814
+ Assets.USDT
6815
+ ],
6816
+ gasAsset: Assets.ETH,
6817
+ contractId: 1,
6818
+ blockTimeSeconds: 12
6819
+ },
6820
+ [Chains.Polkadot]: {
6821
+ assets: [
6822
+ Assets.DOT
6823
+ ],
6824
+ gasAsset: Assets.DOT,
6825
+ contractId: 2,
6826
+ blockTimeSeconds: 6
6827
+ },
6828
+ [Chains.Bitcoin]: {
6829
+ assets: [
6830
+ Assets.BTC
6831
+ ],
6832
+ gasAsset: Assets.BTC,
6833
+ contractId: 3,
6834
+ blockTimeSeconds: 10 * 60
6835
+ },
6836
+ [Chains.Arbitrum]: {
6837
+ assets: [
6838
+ Assets.ETH,
6839
+ Assets.USDC
6840
+ ],
6841
+ gasAsset: Assets.ETH,
6842
+ contractId: 4,
6843
+ blockTimeSeconds: 0.26
6844
+ },
6845
+ [Chains.Solana]: {
6846
+ assets: [
6847
+ Assets.SOL,
6848
+ Assets.USDC
6849
+ ],
6850
+ gasAsset: Assets.SOL,
6851
+ contractId: 5,
6852
+ blockTimeSeconds: (400 + 800) / 2 / 1e3
6853
+ }
6854
+ };
6855
+ function isValidAssetAndChain(assetAndChain2) {
6856
+ const { asset: asset2, chain: chain2 } = assetAndChain2;
6857
+ if (!(chain2 in Chains)) return false;
6858
+ const validAssets = chainConstants[chain2].assets;
6859
+ return validAssets.includes(asset2);
6860
+ }
6861
+ __name(isValidAssetAndChain, "isValidAssetAndChain");
6862
+ var readChainAssetValue = /* @__PURE__ */ __name((map, asset2) => {
6863
+ const { chain: chain2, asset: symbol } = assetConstants[asset2];
6864
+ const chainValues = map[chain2];
6865
+ return chainValues[symbol];
6866
+ }, "readChainAssetValue");
6867
+ function getInternalAsset(asset2, assert3 = true) {
6868
+ if (!isValidAssetAndChain(asset2)) {
6869
+ if (assert3) {
6870
+ throw new Error(`invalid asset and chain combination: ${JSON.stringify(asset2)}`);
6871
+ }
6872
+ return null;
6873
+ }
6874
+ const map = {
6875
+ [Chains.Ethereum]: {
6876
+ [Assets.USDC]: InternalAssets.Usdc,
6877
+ [Assets.FLIP]: InternalAssets.Flip,
6878
+ [Assets.ETH]: InternalAssets.Eth,
6879
+ [Assets.USDT]: InternalAssets.Usdt
6880
+ },
6881
+ [Chains.Bitcoin]: {
6882
+ [Assets.BTC]: InternalAssets.Btc
6883
+ },
6884
+ [Chains.Polkadot]: {
6885
+ [Assets.DOT]: InternalAssets.Dot
6886
+ },
6887
+ [Chains.Arbitrum]: {
6888
+ [Assets.USDC]: InternalAssets.ArbUsdc,
6889
+ [Assets.ETH]: InternalAssets.ArbEth
6890
+ },
6891
+ [Chains.Solana]: {
6892
+ [Assets.SOL]: InternalAssets.Sol,
6893
+ [Assets.USDC]: InternalAssets.SolUsdc
6894
+ }
6895
+ };
6896
+ const chain2 = map[asset2.chain];
6897
+ return chain2[asset2.asset];
6898
+ }
6899
+ __name(getInternalAsset, "getInternalAsset");
6900
+ function getInternalAssets({ srcAsset, srcChain, destAsset, destChain }, assert3 = true) {
6901
+ return {
6902
+ srcAsset: getInternalAsset({
6903
+ asset: srcAsset,
6904
+ chain: srcChain
6905
+ }, assert3),
6906
+ destAsset: getInternalAsset({
6907
+ asset: destAsset,
6908
+ chain: destChain
6909
+ }, assert3)
6910
+ };
6911
+ }
6912
+ __name(getInternalAssets, "getInternalAssets");
6913
+ function getAssetAndChain(internalAsset, prefix) {
6914
+ const { chain: chain2, asset: asset2 } = assetConstants[internalAsset];
6915
+ if (prefix) {
6916
+ return {
6917
+ [`${prefix}Asset`]: asset2,
6918
+ [`${prefix}Chain`]: chain2
6919
+ };
6920
+ }
6921
+ return {
6922
+ chain: chain2,
6923
+ asset: asset2
6924
+ };
6925
+ }
6926
+ __name(getAssetAndChain, "getAssetAndChain");
6927
+
6928
6928
  // ../shared/src/guards.ts
6929
6929
  var isString2 = /* @__PURE__ */ __name((value) => typeof value === "string", "isString");
6930
6930
  var isNotNullish = /* @__PURE__ */ __name((value) => value !== null && value !== void 0, "isNotNullish");
@@ -6990,6 +6990,7 @@ var validators = {
6990
6990
  var assertValidAddress = /* @__PURE__ */ __name((chain2, address, network) => assert2(validators[network][chain2](address), `Address "${address}" is not a valid "${chain2}" address for "${network}"`), "assertValidAddress");
6991
6991
 
6992
6992
  // ../shared/src/parsers.ts
6993
+ var chainflipSS58Prefix = 2112;
6993
6994
  var enumValues = Object.values;
6994
6995
  var safeStringify = /* @__PURE__ */ __name((obj) => JSON.stringify(obj, (key, value) => typeof value === "bigint" ? value.toString() : value), "safeStringify");
6995
6996
  var errorMap2 = /* @__PURE__ */ __name((_issue, context) => ({
@@ -7054,6 +7055,9 @@ var chainflipAddress = string.refine((address) => address.startsWith("cF") && ss
7054
7055
  var solanaAddress = string.refine(isValidSolanaAddress, (address) => ({
7055
7056
  message: `${address} is not a valid Solana address`
7056
7057
  }));
7058
+ var polkadotAddress = string.refine((address) => ss582__namespace.decode(address), (address) => ({
7059
+ message: `${address} is not a valid polkadot address`
7060
+ }));
7057
7061
  numericString.transform((arg) => BigInt(arg));
7058
7062
  var u128 = z.union([
7059
7063
  number,
@@ -7098,7 +7102,6 @@ z.union([
7098
7102
  type: "SWAP"
7099
7103
  }))
7100
7104
  ]);
7101
- var chainflipSS58Prefix = 2112;
7102
7105
  z.union([
7103
7106
  hexString,
7104
7107
  string.regex(/^[a-f\d]$/i).transform((value) => `0x${value}`)
@@ -7192,6 +7195,15 @@ var fillOrKillParams = z.object({
7192
7195
  refundAddress: z.string(),
7193
7196
  minPriceX128: numericString
7194
7197
  });
7198
+ var ensureDcaWithFok = /* @__PURE__ */ __name((args, ctx) => {
7199
+ if (args.dcaParams && !args.fillOrKillParams) {
7200
+ ctx.addIssue({
7201
+ code: "custom",
7202
+ message: "dcaParams requires fillOrKillParams"
7203
+ });
7204
+ return z.NEVER;
7205
+ }
7206
+ }, "ensureDcaWithFok");
7195
7207
  z.object({
7196
7208
  srcAsset: asset,
7197
7209
  destAsset: asset,
@@ -7205,45 +7217,73 @@ z.object({
7205
7217
  srcAddress: z.string().optional(),
7206
7218
  fillOrKillParams: fillOrKillParams.optional(),
7207
7219
  dcaParams: dcaParams.optional()
7208
- }).transform(({ amount, ...rest }) => ({
7220
+ }).superRefine(ensureDcaWithFok).transform(({ amount, ...rest }) => ({
7209
7221
  ...rest,
7210
7222
  expectedDepositAmount: amount
7211
7223
  }));
7212
7224
 
7213
7225
  // ../shared/src/broker.ts
7214
- var submitAddress = /* @__PURE__ */ __name((chain2, address) => {
7215
- if (chain2 === Chains.Polkadot) {
7216
- return address.startsWith("0x") ? z.string().length(66).parse(address) : ss582__namespace.toPublicKey(address);
7217
- }
7218
- return address;
7219
- }, "submitAddress");
7220
- var validateRequest = /* @__PURE__ */ __name((network, params) => z.tuple([
7221
- assetAndChain,
7222
- assetAndChain,
7223
- z.union([
7224
- numericString,
7225
- hexString,
7226
- btcAddress(network),
7227
- solanaAddress
7228
- ]),
7229
- z.number(),
7230
- ccmParamsSchema.transform(({ message, ...rest }) => ({
7231
- message,
7232
- cf_parameters: rest.cfParameters,
7233
- gas_budget: rest.gasBudget
7234
- })).optional(),
7235
- z.number().optional(),
7236
- z.array(affiliateBroker).optional(),
7237
- fillOrKillParams.transform(({ retryDurationBlocks, refundAddress, minPriceX128 }) => ({
7238
- retry_duration: retryDurationBlocks,
7239
- refund_address: refundAddress,
7240
- min_price: `0x${BigInt(minPriceX128).toString(16)}`
7241
- })).optional(),
7242
- dcaParams.transform(({ numberOfChunks, chunkIntervalBlocks }) => ({
7243
- number_of_chunks: numberOfChunks,
7244
- chunk_interval: chunkIntervalBlocks
7245
- })).optional()
7246
- ]).parse(params), "validateRequest");
7226
+ var paramOrder = [
7227
+ "srcAsset",
7228
+ "destAsset",
7229
+ "destAddress",
7230
+ "commissionBps",
7231
+ "ccmParams",
7232
+ "maxBoostFeeBps",
7233
+ "affiliates",
7234
+ "fillOrKillParams",
7235
+ "dcaParams"
7236
+ ];
7237
+ var getAddressSchema = /* @__PURE__ */ __name((network) => z.union([
7238
+ numericString,
7239
+ hexString,
7240
+ btcAddress(network),
7241
+ solanaAddress,
7242
+ polkadotAddress.transform(ss582__namespace.toPublicKey)
7243
+ ]), "getAddressSchema");
7244
+ var fillOrKillParams2 = /* @__PURE__ */ __name((addressSchema) => z.object({
7245
+ retryDurationBlocks: number,
7246
+ refundAddress: addressSchema,
7247
+ minPriceX128: numericString
7248
+ }), "fillOrKillParams");
7249
+ var validateAddressLength = /* @__PURE__ */ __name((chain2, address, type) => {
7250
+ if ((chain2 === "Arbitrum" || chain2 === "Ethereum") && address.length !== 42) {
7251
+ throw new Error(`Invalid ${type} address length`);
7252
+ }
7253
+ if (chain2 === "Polkadot" && address.length !== 66) {
7254
+ throw new Error(`Invalid ${type} address length`);
7255
+ }
7256
+ }, "validateAddressLength");
7257
+ var validateRequest = /* @__PURE__ */ __name((network, params) => {
7258
+ const addressSchema = getAddressSchema(network);
7259
+ const parsed = z.object({
7260
+ srcAsset: assetAndChain,
7261
+ destAsset: assetAndChain,
7262
+ destAddress: addressSchema,
7263
+ commissionBps: z.number().optional().default(0),
7264
+ ccmParams: ccmParamsSchema.transform(({ message, ...rest }) => ({
7265
+ message,
7266
+ cf_parameters: rest.cfParameters,
7267
+ gas_budget: rest.gasBudget
7268
+ })).optional(),
7269
+ maxBoostFeeBps: z.number().optional(),
7270
+ affiliates: z.array(affiliateBroker).optional(),
7271
+ fillOrKillParams: fillOrKillParams2(addressSchema).transform(({ retryDurationBlocks, refundAddress, minPriceX128 }) => ({
7272
+ retry_duration: retryDurationBlocks,
7273
+ refund_address: refundAddress,
7274
+ min_price: `0x${BigInt(minPriceX128).toString(16)}`
7275
+ })).optional(),
7276
+ dcaParams: dcaParams.transform(({ numberOfChunks, chunkIntervalBlocks }) => ({
7277
+ number_of_chunks: numberOfChunks,
7278
+ chunk_interval: chunkIntervalBlocks
7279
+ })).optional()
7280
+ }).superRefine(ensureDcaWithFok).parse(params);
7281
+ validateAddressLength(parsed.destAsset.chain, parsed.destAddress, "destination");
7282
+ if (parsed.fillOrKillParams) {
7283
+ validateAddressLength(parsed.srcAsset.chain, parsed.fillOrKillParams.refund_address, "destination");
7284
+ }
7285
+ return paramOrder.map((key) => parsed[key]);
7286
+ }, "validateRequest");
7247
7287
  var validateResponse = /* @__PURE__ */ __name((network, response) => z.object({
7248
7288
  address: z.union([
7249
7289
  dotAddress,
@@ -7263,30 +7303,18 @@ var validateResponse = /* @__PURE__ */ __name((network, response) => z.object({
7263
7303
  channelOpeningFee: channel_opening_fee
7264
7304
  })).parse(response), "validateResponse");
7265
7305
  async function requestSwapDepositAddress(swapRequest, opts, chainflipNetwork2) {
7266
- const { srcAsset, srcChain, destAsset, destChain, destAddress } = swapRequest;
7267
7306
  const client = new rpc.HttpClient(opts.url);
7268
- const params = validateRequest(chainflipNetwork2, [
7269
- {
7270
- asset: srcAsset,
7271
- chain: srcChain
7272
- },
7273
- {
7274
- asset: destAsset,
7275
- chain: destChain
7307
+ const params = validateRequest(chainflipNetwork2, {
7308
+ ...swapRequest,
7309
+ srcAsset: {
7310
+ asset: swapRequest.srcAsset,
7311
+ chain: swapRequest.srcChain
7276
7312
  },
7277
- submitAddress(destChain, destAddress),
7278
- swapRequest.commissionBps ?? 0,
7279
- swapRequest.ccmParams,
7280
- swapRequest.maxBoostFeeBps,
7281
- swapRequest.affiliates,
7282
- swapRequest.fillOrKillParams && {
7283
- ...swapRequest.fillOrKillParams,
7284
- refundAddress: submitAddress(srcChain, swapRequest.fillOrKillParams.refundAddress)
7285
- },
7286
- swapRequest.dcaParams && {
7287
- ...swapRequest.dcaParams
7313
+ destAsset: {
7314
+ asset: swapRequest.destAsset,
7315
+ chain: swapRequest.destChain
7288
7316
  }
7289
- ]);
7317
+ });
7290
7318
  const response = await client.sendRequest("broker_requestSwapDepositAddress", ...params);
7291
7319
  return validateResponse(chainflipNetwork2, response);
7292
7320
  }
@@ -10290,11 +10318,11 @@ var getChainData = /* @__PURE__ */ __name((chain2, network, env) => ({
10290
10318
  }), "getChainData");
10291
10319
 
10292
10320
  // package.json
10293
- var version = "1.6.4";
10321
+ var version = "1.6.6";
10294
10322
 
10295
10323
  // src/swap/consts.ts
10296
10324
  var CF_SDK_VERSION_HEADERS = {
10297
- "Cf-Sdk-Version": version
10325
+ "X-Chainflip-Sdk-Version": version
10298
10326
  };
10299
10327
  var BACKEND_SERVICE_URLS = {
10300
10328
  [ChainflipNetworks.backspin]: "https://chainflip-swap-backspin.staging/",
@@ -10454,7 +10482,7 @@ var _SwapSDK = class _SwapSDK {
10454
10482
  chain: srcChain,
10455
10483
  asset: srcAsset
10456
10484
  }, BigInt(amount));
10457
- const fillOrKillParams2 = depositAddressRequest.fillOrKillParams ? {
10485
+ const fillOrKillParams3 = depositAddressRequest.fillOrKillParams ? {
10458
10486
  ...depositAddressRequest.fillOrKillParams,
10459
10487
  minPriceX128: getPriceX128FromPrice(depositAddressRequest.fillOrKillParams.minPrice, getInternalAsset({
10460
10488
  chain: srcChain,
@@ -10471,7 +10499,7 @@ var _SwapSDK = class _SwapSDK {
10471
10499
  ...depositAddressRequest,
10472
10500
  commissionBps: brokerCommissionBps ?? this.options.broker.commissionBps,
10473
10501
  affiliates: affiliateBrokers,
10474
- fillOrKillParams: fillOrKillParams2
10502
+ fillOrKillParams: fillOrKillParams3
10475
10503
  }, {
10476
10504
  url: this.options.broker.url
10477
10505
  }, this.options.network);
@@ -10488,7 +10516,7 @@ var _SwapSDK = class _SwapSDK {
10488
10516
  assert2(!depositAddressRequest.affiliateBrokers?.length, "Affiliate brokers are supported only when initializing the SDK with a brokerUrl");
10489
10517
  response = await this.trpc.openSwapDepositChannel.mutate({
10490
10518
  ...depositAddressRequest,
10491
- fillOrKillParams: fillOrKillParams2
10519
+ fillOrKillParams: fillOrKillParams3
10492
10520
  });
10493
10521
  }
10494
10522
  return {
package/dist/swap.mjs CHANGED
@@ -6715,6 +6715,7 @@ var validators = {
6715
6715
  var assertValidAddress = /* @__PURE__ */ __name((chain2, address, network) => assert$1(validators[network][chain2](address), `Address "${address}" is not a valid "${chain2}" address for "${network}"`), "assertValidAddress");
6716
6716
 
6717
6717
  // ../shared/src/parsers.ts
6718
+ var chainflipSS58Prefix = 2112;
6718
6719
  var enumValues = Object.values;
6719
6720
  var safeStringify = /* @__PURE__ */ __name((obj) => JSON.stringify(obj, (key, value) => typeof value === "bigint" ? value.toString() : value), "safeStringify");
6720
6721
  var errorMap2 = /* @__PURE__ */ __name((_issue, context) => ({
@@ -6779,6 +6780,9 @@ var chainflipAddress = string.refine((address) => address.startsWith("cF") && ss
6779
6780
  var solanaAddress = string.refine(isValidSolanaAddress, (address) => ({
6780
6781
  message: `${address} is not a valid Solana address`
6781
6782
  }));
6783
+ var polkadotAddress = string.refine((address) => ss582.decode(address), (address) => ({
6784
+ message: `${address} is not a valid polkadot address`
6785
+ }));
6782
6786
  numericString.transform((arg) => BigInt(arg));
6783
6787
  var u128 = z.union([
6784
6788
  number,
@@ -6823,7 +6827,6 @@ z.union([
6823
6827
  type: "SWAP"
6824
6828
  }))
6825
6829
  ]);
6826
- var chainflipSS58Prefix = 2112;
6827
6830
  z.union([
6828
6831
  hexString,
6829
6832
  string.regex(/^[a-f\d]$/i).transform((value) => `0x${value}`)
@@ -6917,6 +6920,15 @@ var fillOrKillParams = z.object({
6917
6920
  refundAddress: z.string(),
6918
6921
  minPriceX128: numericString
6919
6922
  });
6923
+ var ensureDcaWithFok = /* @__PURE__ */ __name((args, ctx) => {
6924
+ if (args.dcaParams && !args.fillOrKillParams) {
6925
+ ctx.addIssue({
6926
+ code: "custom",
6927
+ message: "dcaParams requires fillOrKillParams"
6928
+ });
6929
+ return z.NEVER;
6930
+ }
6931
+ }, "ensureDcaWithFok");
6920
6932
  z.object({
6921
6933
  srcAsset: asset,
6922
6934
  destAsset: asset,
@@ -6930,45 +6942,73 @@ z.object({
6930
6942
  srcAddress: z.string().optional(),
6931
6943
  fillOrKillParams: fillOrKillParams.optional(),
6932
6944
  dcaParams: dcaParams.optional()
6933
- }).transform(({ amount, ...rest }) => ({
6945
+ }).superRefine(ensureDcaWithFok).transform(({ amount, ...rest }) => ({
6934
6946
  ...rest,
6935
6947
  expectedDepositAmount: amount
6936
6948
  }));
6937
6949
 
6938
6950
  // ../shared/src/broker.ts
6939
- var submitAddress = /* @__PURE__ */ __name((chain2, address) => {
6940
- if (chain2 === Chains.Polkadot) {
6941
- return address.startsWith("0x") ? z.string().length(66).parse(address) : ss582.toPublicKey(address);
6942
- }
6943
- return address;
6944
- }, "submitAddress");
6945
- var validateRequest = /* @__PURE__ */ __name((network, params) => z.tuple([
6946
- assetAndChain,
6947
- assetAndChain,
6948
- z.union([
6949
- numericString,
6950
- hexString,
6951
- btcAddress(network),
6952
- solanaAddress
6953
- ]),
6954
- z.number(),
6955
- ccmParamsSchema.transform(({ message, ...rest }) => ({
6956
- message,
6957
- cf_parameters: rest.cfParameters,
6958
- gas_budget: rest.gasBudget
6959
- })).optional(),
6960
- z.number().optional(),
6961
- z.array(affiliateBroker).optional(),
6962
- fillOrKillParams.transform(({ retryDurationBlocks, refundAddress, minPriceX128 }) => ({
6963
- retry_duration: retryDurationBlocks,
6964
- refund_address: refundAddress,
6965
- min_price: `0x${BigInt(minPriceX128).toString(16)}`
6966
- })).optional(),
6967
- dcaParams.transform(({ numberOfChunks, chunkIntervalBlocks }) => ({
6968
- number_of_chunks: numberOfChunks,
6969
- chunk_interval: chunkIntervalBlocks
6970
- })).optional()
6971
- ]).parse(params), "validateRequest");
6951
+ var paramOrder = [
6952
+ "srcAsset",
6953
+ "destAsset",
6954
+ "destAddress",
6955
+ "commissionBps",
6956
+ "ccmParams",
6957
+ "maxBoostFeeBps",
6958
+ "affiliates",
6959
+ "fillOrKillParams",
6960
+ "dcaParams"
6961
+ ];
6962
+ var getAddressSchema = /* @__PURE__ */ __name((network) => z.union([
6963
+ numericString,
6964
+ hexString,
6965
+ btcAddress(network),
6966
+ solanaAddress,
6967
+ polkadotAddress.transform(ss582.toPublicKey)
6968
+ ]), "getAddressSchema");
6969
+ var fillOrKillParams2 = /* @__PURE__ */ __name((addressSchema) => z.object({
6970
+ retryDurationBlocks: number,
6971
+ refundAddress: addressSchema,
6972
+ minPriceX128: numericString
6973
+ }), "fillOrKillParams");
6974
+ var validateAddressLength = /* @__PURE__ */ __name((chain2, address, type) => {
6975
+ if ((chain2 === "Arbitrum" || chain2 === "Ethereum") && address.length !== 42) {
6976
+ throw new Error(`Invalid ${type} address length`);
6977
+ }
6978
+ if (chain2 === "Polkadot" && address.length !== 66) {
6979
+ throw new Error(`Invalid ${type} address length`);
6980
+ }
6981
+ }, "validateAddressLength");
6982
+ var validateRequest = /* @__PURE__ */ __name((network, params) => {
6983
+ const addressSchema = getAddressSchema(network);
6984
+ const parsed = z.object({
6985
+ srcAsset: assetAndChain,
6986
+ destAsset: assetAndChain,
6987
+ destAddress: addressSchema,
6988
+ commissionBps: z.number().optional().default(0),
6989
+ ccmParams: ccmParamsSchema.transform(({ message, ...rest }) => ({
6990
+ message,
6991
+ cf_parameters: rest.cfParameters,
6992
+ gas_budget: rest.gasBudget
6993
+ })).optional(),
6994
+ maxBoostFeeBps: z.number().optional(),
6995
+ affiliates: z.array(affiliateBroker).optional(),
6996
+ fillOrKillParams: fillOrKillParams2(addressSchema).transform(({ retryDurationBlocks, refundAddress, minPriceX128 }) => ({
6997
+ retry_duration: retryDurationBlocks,
6998
+ refund_address: refundAddress,
6999
+ min_price: `0x${BigInt(minPriceX128).toString(16)}`
7000
+ })).optional(),
7001
+ dcaParams: dcaParams.transform(({ numberOfChunks, chunkIntervalBlocks }) => ({
7002
+ number_of_chunks: numberOfChunks,
7003
+ chunk_interval: chunkIntervalBlocks
7004
+ })).optional()
7005
+ }).superRefine(ensureDcaWithFok).parse(params);
7006
+ validateAddressLength(parsed.destAsset.chain, parsed.destAddress, "destination");
7007
+ if (parsed.fillOrKillParams) {
7008
+ validateAddressLength(parsed.srcAsset.chain, parsed.fillOrKillParams.refund_address, "destination");
7009
+ }
7010
+ return paramOrder.map((key) => parsed[key]);
7011
+ }, "validateRequest");
6972
7012
  var validateResponse = /* @__PURE__ */ __name((network, response) => z.object({
6973
7013
  address: z.union([
6974
7014
  dotAddress,
@@ -6988,30 +7028,18 @@ var validateResponse = /* @__PURE__ */ __name((network, response) => z.object({
6988
7028
  channelOpeningFee: channel_opening_fee
6989
7029
  })).parse(response), "validateResponse");
6990
7030
  async function requestSwapDepositAddress(swapRequest, opts, chainflipNetwork2) {
6991
- const { srcAsset, srcChain, destAsset, destChain, destAddress } = swapRequest;
6992
7031
  const client = new HttpClient(opts.url);
6993
- const params = validateRequest(chainflipNetwork2, [
6994
- {
6995
- asset: srcAsset,
6996
- chain: srcChain
6997
- },
6998
- {
6999
- asset: destAsset,
7000
- chain: destChain
7001
- },
7002
- submitAddress(destChain, destAddress),
7003
- swapRequest.commissionBps ?? 0,
7004
- swapRequest.ccmParams,
7005
- swapRequest.maxBoostFeeBps,
7006
- swapRequest.affiliates,
7007
- swapRequest.fillOrKillParams && {
7008
- ...swapRequest.fillOrKillParams,
7009
- refundAddress: submitAddress(srcChain, swapRequest.fillOrKillParams.refundAddress)
7032
+ const params = validateRequest(chainflipNetwork2, {
7033
+ ...swapRequest,
7034
+ srcAsset: {
7035
+ asset: swapRequest.srcAsset,
7036
+ chain: swapRequest.srcChain
7010
7037
  },
7011
- swapRequest.dcaParams && {
7012
- ...swapRequest.dcaParams
7038
+ destAsset: {
7039
+ asset: swapRequest.destAsset,
7040
+ chain: swapRequest.destChain
7013
7041
  }
7014
- ]);
7042
+ });
7015
7043
  const response = await client.sendRequest("broker_requestSwapDepositAddress", ...params);
7016
7044
  return validateResponse(chainflipNetwork2, response);
7017
7045
  }
@@ -8565,11 +8593,11 @@ var getChainData = /* @__PURE__ */ __name((chain2, network, env) => ({
8565
8593
  }), "getChainData");
8566
8594
 
8567
8595
  // package.json
8568
- var version = "1.6.4";
8596
+ var version = "1.6.6";
8569
8597
 
8570
8598
  // src/swap/consts.ts
8571
8599
  var CF_SDK_VERSION_HEADERS = {
8572
- "Cf-Sdk-Version": version
8600
+ "X-Chainflip-Sdk-Version": version
8573
8601
  };
8574
8602
  var BACKEND_SERVICE_URLS = {
8575
8603
  [ChainflipNetworks.backspin]: "https://chainflip-swap-backspin.staging/",
@@ -8729,7 +8757,7 @@ var _SwapSDK = class _SwapSDK {
8729
8757
  chain: srcChain,
8730
8758
  asset: srcAsset
8731
8759
  }, BigInt(amount));
8732
- const fillOrKillParams2 = depositAddressRequest.fillOrKillParams ? {
8760
+ const fillOrKillParams3 = depositAddressRequest.fillOrKillParams ? {
8733
8761
  ...depositAddressRequest.fillOrKillParams,
8734
8762
  minPriceX128: getPriceX128FromPrice(depositAddressRequest.fillOrKillParams.minPrice, getInternalAsset({
8735
8763
  chain: srcChain,
@@ -8746,7 +8774,7 @@ var _SwapSDK = class _SwapSDK {
8746
8774
  ...depositAddressRequest,
8747
8775
  commissionBps: brokerCommissionBps ?? this.options.broker.commissionBps,
8748
8776
  affiliates: affiliateBrokers,
8749
- fillOrKillParams: fillOrKillParams2
8777
+ fillOrKillParams: fillOrKillParams3
8750
8778
  }, {
8751
8779
  url: this.options.broker.url
8752
8780
  }, this.options.network);
@@ -8763,7 +8791,7 @@ var _SwapSDK = class _SwapSDK {
8763
8791
  assert$1(!depositAddressRequest.affiliateBrokers?.length, "Affiliate brokers are supported only when initializing the SDK with a brokerUrl");
8764
8792
  response = await this.trpc.openSwapDepositChannel.mutate({
8765
8793
  ...depositAddressRequest,
8766
- fillOrKillParams: fillOrKillParams2
8794
+ fillOrKillParams: fillOrKillParams3
8767
8795
  });
8768
8796
  }
8769
8797
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@chainflip/sdk",
3
- "version": "1.6.4",
3
+ "version": "1.6.6",
4
4
  "description": "",
5
5
  "exports": {
6
6
  "./swap": {
@@ -44,7 +44,7 @@
44
44
  "@chainflip/rpc": "^1.6.7",
45
45
  "@chainflip/utils": "^0.4.0",
46
46
  "axios": "^1.7.7",
47
- "ethers": "^6.13.2"
47
+ "ethers": "^6.13.3"
48
48
  },
49
49
  "devDependencies": {
50
50
  "tsup": "^8.2.4"