@chainflip/sdk 1.2.0 → 1.2.1-alpha.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/README.md CHANGED
@@ -1,3 +1,3 @@
1
1
  # @chainflip/sdk
2
2
 
3
- [Docs](https://docs.chainflip.io/sdk/)
3
+ [Docs](https://docs.chainflip.io/integration/swapping-and-aggregation/javascript-sdk/quick-start)
@@ -1,9 +1,13 @@
1
- import { ccmMetadataSchema, camelToSnakeCase } from './chunk-GALKLAQ5.mjs';
2
- import { z, __name, Assets, chainflipAssetAndChain, numericString, hexString, btcAddress, hexStringFromNumber, dotAddress, unsignedInteger } from './chunk-CLE2ZBJX.mjs';
1
+ import { ccmMetadataSchema } from './chunk-KLVDY4K6.mjs';
2
+ import { z, __name, Chains, assetAndChain, numericString, hexString, btcAddress, hexStringFromNumber, dotAddress, unsignedInteger } from './chunk-3LCS6BBP.mjs';
3
3
  import { u8aToHex } from '@polkadot/util';
4
4
  import { decodeAddress } from '@polkadot/util-crypto';
5
5
  import axios from 'axios';
6
6
 
7
+ // ../shared/src/strings.ts
8
+ var camelToSnakeCase = /* @__PURE__ */ __name((str) => str.replace(/[A-Z]/g, (letter) => `_${letter.toLowerCase()}`), "camelToSnakeCase");
9
+
10
+ // ../shared/src/broker.ts
7
11
  var transformObjToSnakeCase = /* @__PURE__ */ __name((obj) => {
8
12
  if (!obj)
9
13
  return void 0;
@@ -15,8 +19,8 @@ var transformObjToSnakeCase = /* @__PURE__ */ __name((obj) => {
15
19
  }
16
20
  return newObj;
17
21
  }, "transformObjToSnakeCase");
18
- var submitAddress = /* @__PURE__ */ __name((asset, address) => {
19
- if (asset === Assets.DOT) {
22
+ var submitAddress = /* @__PURE__ */ __name((chain, address) => {
23
+ if (chain === Chains.Polkadot) {
20
24
  return address.startsWith("0x") ? z.string().length(66).parse(address) : u8aToHex(decodeAddress(address));
21
25
  }
22
26
  return address;
@@ -35,8 +39,8 @@ var rpcResult = z.union([
35
39
  ]);
36
40
  var requestValidators = /* @__PURE__ */ __name((network) => ({
37
41
  requestSwapDepositAddress: z.tuple([
38
- chainflipAssetAndChain,
39
- chainflipAssetAndChain,
42
+ assetAndChain,
43
+ assetAndChain,
40
44
  z.union([
41
45
  numericString,
42
46
  hexString,
@@ -99,7 +103,7 @@ async function requestSwapDepositAddress(swapRequest, opts, chainflipNetwork) {
99
103
  }, {
100
104
  asset: destAsset,
101
105
  chain: destChain
102
- }, submitAddress(destAsset, destAddress), opts.commissionBps, swapRequest.ccmMetadata && {
106
+ }, submitAddress(destChain, destAddress), opts.commissionBps, swapRequest.ccmMetadata && {
103
107
  ...swapRequest.ccmMetadata,
104
108
  cfParameters: void 0
105
109
  }, boostFeeBps);
@@ -1,4 +1,4 @@
1
- import { z, ChainflipNetworks, hexString, __name, __publicField, Assets } from './chunk-CLE2ZBJX.mjs';
1
+ import { z, ChainflipNetworks, hexString, __name, __publicField, InternalAssets } from './chunk-3LCS6BBP.mjs';
2
2
  import axios from 'axios';
3
3
  import { Interface, Contract } from 'ethers';
4
4
 
@@ -2171,9 +2171,9 @@ var extractOverrides = /* @__PURE__ */ __name((transactionOverrides) => {
2171
2171
  return ethersOverrides;
2172
2172
  }, "extractOverrides");
2173
2173
  function getTokenContractAddress(asset, network, assert = true) {
2174
- if (asset === Assets.FLIP)
2174
+ if (asset === InternalAssets.Flip)
2175
2175
  return ADDRESSES[network].FLIP_CONTRACT_ADDRESS;
2176
- if (asset === Assets.USDC)
2176
+ if (asset === InternalAssets.Usdc)
2177
2177
  return ADDRESSES[network].USDC_CONTRACT_ADDRESS;
2178
2178
  if (assert) {
2179
2179
  throw new Error("Only FLIP and USDC are supported for now");
@@ -2200,7 +2200,7 @@ var approve = /* @__PURE__ */ __name(async (amount, spenderAddress, erc20, allow
2200
2200
  }, "approve");
2201
2201
  var getVaultManagerContractAddress = /* @__PURE__ */ __name((network) => ADDRESSES[network].VAULT_CONTRACT_ADDRESS, "getVaultManagerContractAddress");
2202
2202
  var getFlipBalance = /* @__PURE__ */ __name(async (network, signer) => {
2203
- const flipAddress = getTokenContractAddress("FLIP", network);
2203
+ const flipAddress = getTokenContractAddress(InternalAssets.Flip, network);
2204
2204
  const flip = ERC20__factory.connect(flipAddress, signer);
2205
2205
  return flip.balanceOf(await signer.getAddress());
2206
2206
  }, "getFlipBalance");
@@ -456,6 +456,13 @@ var arrayToMap = /* @__PURE__ */ __name((array) => Object.fromEntries(array.map(
456
456
  key,
457
457
  key
458
458
  ])), "arrayToMap");
459
+ var InternalAssets = arrayToMap([
460
+ "Flip",
461
+ "Usdc",
462
+ "Dot",
463
+ "Eth",
464
+ "Btc"
465
+ ]);
459
466
  var Chains = arrayToMap([
460
467
  "Bitcoin",
461
468
  "Ethereum",
@@ -475,65 +482,104 @@ var ChainflipNetworks = arrayToMap([
475
482
  "mainnet"
476
483
  ]);
477
484
  var isTestnet = /* @__PURE__ */ __name((network) => network !== ChainflipNetworks.mainnet, "isTestnet");
478
- var assetChains = {
479
- [Assets.ETH]: Chains.Ethereum,
480
- [Assets.FLIP]: Chains.Ethereum,
481
- [Assets.USDC]: Chains.Ethereum,
482
- [Assets.BTC]: Chains.Bitcoin,
483
- [Assets.DOT]: Chains.Polkadot
484
- };
485
- var assetDecimals = {
486
- [Assets.DOT]: 10,
487
- [Assets.ETH]: 18,
488
- [Assets.FLIP]: 18,
489
- [Assets.USDC]: 6,
490
- [Assets.BTC]: 8
491
- };
492
- var assetContractIds = {
493
- // 0 is reservered for particular cross chain messaging scenarios where we want to pass
494
- // through a message without making a swap.
495
- [Assets.ETH]: 1,
496
- [Assets.FLIP]: 2,
497
- [Assets.USDC]: 3,
498
- [Assets.DOT]: 4,
499
- [Assets.BTC]: 5
485
+ var assetConstants = {
486
+ [InternalAssets.Eth]: {
487
+ chain: Chains.Ethereum,
488
+ asset: Assets.ETH,
489
+ name: "Ether",
490
+ decimals: 18,
491
+ contractId: 1
492
+ },
493
+ [InternalAssets.Flip]: {
494
+ chain: Chains.Ethereum,
495
+ asset: Assets.FLIP,
496
+ name: "FLIP",
497
+ decimals: 18,
498
+ contractId: 2
499
+ },
500
+ [InternalAssets.Usdc]: {
501
+ chain: Chains.Ethereum,
502
+ asset: Assets.USDC,
503
+ name: "USDC",
504
+ decimals: 6,
505
+ contractId: 3
506
+ },
507
+ [InternalAssets.Dot]: {
508
+ chain: Chains.Polkadot,
509
+ asset: Assets.DOT,
510
+ name: "Polkadot",
511
+ decimals: 10,
512
+ contractId: 4
513
+ },
514
+ [InternalAssets.Btc]: {
515
+ chain: Chains.Bitcoin,
516
+ asset: Assets.BTC,
517
+ name: "Bitcoin",
518
+ decimals: 8,
519
+ contractId: 5
520
+ }
500
521
  };
501
- ({
502
- [Chains.Ethereum]: [
503
- Assets.ETH,
504
- Assets.USDC,
505
- Assets.FLIP
506
- ],
507
- [Chains.Bitcoin]: [
508
- Assets.BTC
509
- ],
510
- [Chains.Polkadot]: [
511
- Assets.DOT
512
- ]
513
- });
514
- ({
515
- [Chains.Ethereum]: Assets.ETH,
516
- [Chains.Bitcoin]: Assets.BTC,
517
- [Chains.Polkadot]: Assets.DOT
518
- });
519
- var chainContractIds = {
520
- [Chains.Ethereum]: 1,
521
- [Chains.Polkadot]: 2,
522
- [Chains.Bitcoin]: 3
522
+ var chainConstants = {
523
+ [Chains.Ethereum]: {
524
+ assets: [
525
+ Assets.ETH,
526
+ Assets.FLIP,
527
+ Assets.USDC
528
+ ],
529
+ gasAsset: Assets.ETH,
530
+ contractId: 1
531
+ },
532
+ [Chains.Polkadot]: {
533
+ assets: [
534
+ Assets.DOT
535
+ ],
536
+ gasAsset: Assets.DOT,
537
+ contractId: 2
538
+ },
539
+ [Chains.Bitcoin]: {
540
+ assets: [
541
+ Assets.BTC
542
+ ],
543
+ gasAsset: Assets.BTC,
544
+ contractId: 3
545
+ }
523
546
  };
524
- function assertAsset(asset) {
525
- if (!(asset in Assets))
526
- throw new Error("invalid asset");
547
+ function isValidAssetAndChain(assetAndChain2) {
548
+ const { asset: asset2, chain: chain2 } = assetAndChain2;
549
+ if (!(chain2 in Chains))
550
+ return false;
551
+ const validAssets = chainConstants[chain2].assets;
552
+ return validAssets.includes(asset2);
527
553
  }
528
- __name(assertAsset, "assertAsset");
529
- function assertIsValidAssetAndChain(assetAndChain) {
530
- const { asset, chain } = assetAndChain;
531
- assertAsset(asset);
532
- if (chain !== assetChains[asset]) {
533
- throw new Error("invalid asset and chain combination");
554
+ __name(isValidAssetAndChain, "isValidAssetAndChain");
555
+ function assertIsValidAssetAndChain(assetAndChain2) {
556
+ if (!isValidAssetAndChain(assetAndChain2)) {
557
+ throw new Error(`invalid asset and chain combination: ${JSON.stringify(assetAndChain2)}`);
534
558
  }
535
559
  }
536
560
  __name(assertIsValidAssetAndChain, "assertIsValidAssetAndChain");
561
+ var readChainAssetValue = /* @__PURE__ */ __name((map, assetAndChain2) => {
562
+ assertIsValidAssetAndChain(assetAndChain2);
563
+ const chainValues = map[assetAndChain2.chain];
564
+ return chainValues[assetAndChain2.asset];
565
+ }, "readChainAssetValue");
566
+ function getInternalAsset(asset2) {
567
+ const map = {
568
+ [Chains.Ethereum]: {
569
+ [Assets.USDC]: InternalAssets.Usdc,
570
+ [Assets.FLIP]: InternalAssets.Flip,
571
+ [Assets.ETH]: InternalAssets.Eth
572
+ },
573
+ [Chains.Bitcoin]: {
574
+ [Assets.BTC]: InternalAssets.Btc
575
+ },
576
+ [Chains.Polkadot]: {
577
+ [Assets.DOT]: InternalAssets.Dot
578
+ }
579
+ };
580
+ return readChainAssetValue(map, asset2);
581
+ }
582
+ __name(getInternalAsset, "getInternalAsset");
537
583
 
538
584
  // ../../node_modules/.pnpm/zod@3.22.4/node_modules/zod/lib/index.mjs
539
585
  var util;
@@ -3678,25 +3724,25 @@ var _ZodEnum = class _ZodEnum extends ZodType {
3678
3724
  return this._def.values;
3679
3725
  }
3680
3726
  get enum() {
3681
- const enumValues = {};
3727
+ const enumValues2 = {};
3682
3728
  for (const val of this._def.values) {
3683
- enumValues[val] = val;
3729
+ enumValues2[val] = val;
3684
3730
  }
3685
- return enumValues;
3731
+ return enumValues2;
3686
3732
  }
3687
3733
  get Values() {
3688
- const enumValues = {};
3734
+ const enumValues2 = {};
3689
3735
  for (const val of this._def.values) {
3690
- enumValues[val] = val;
3736
+ enumValues2[val] = val;
3691
3737
  }
3692
- return enumValues;
3738
+ return enumValues2;
3693
3739
  }
3694
3740
  get Enum() {
3695
- const enumValues = {};
3741
+ const enumValues2 = {};
3696
3742
  for (const val of this._def.values) {
3697
- enumValues[val] = val;
3743
+ enumValues2[val] = val;
3698
3744
  }
3699
- return enumValues;
3745
+ return enumValues2;
3700
3746
  }
3701
3747
  extract(values) {
3702
3748
  return _ZodEnum.create(values);
@@ -4432,6 +4478,7 @@ var validateBitcoinTestnetAddress = /* @__PURE__ */ __name((address) => validate
4432
4478
  var validateBitcoinRegtestAddress = /* @__PURE__ */ __name((address) => validateBitcoinAddress(address, "regtest"), "validateBitcoinRegtestAddress");
4433
4479
 
4434
4480
  // ../shared/src/parsers.ts
4481
+ var enumValues = Object.values;
4435
4482
  var safeStringify = /* @__PURE__ */ __name((obj) => JSON.stringify(obj, (key, value) => typeof value === "bigint" ? value.toString() : value), "safeStringify");
4436
4483
  var errorMap2 = /* @__PURE__ */ __name((_issue, context) => ({
4437
4484
  message: `received: ${safeStringify(context.data)}`
@@ -4448,7 +4495,6 @@ var hexStringWithMaxByteSize = /* @__PURE__ */ __name((maxByteSize) => hexString
4448
4495
  message: `String must be less than or equal to ${maxByteSize} bytes`
4449
4496
  }), "hexStringWithMaxByteSize");
4450
4497
  var hexStringFromNumber = numericString.transform((arg) => `0x${BigInt(arg).toString(16)}`);
4451
- string.regex(/^[0-9a-f]+$/);
4452
4498
  var btcAddress = /* @__PURE__ */ __name((network) => {
4453
4499
  if (network === "mainnet") {
4454
4500
  return string.regex(/^(1|3|bc1)/).refine(validateBitcoinMainnetAddress);
@@ -4484,38 +4530,18 @@ var unsignedInteger = z.union([
4484
4530
  u128,
4485
4531
  z.number().transform((n) => BigInt(n))
4486
4532
  ]);
4487
- z.object({
4488
- __kind: z.enum([
4489
- "Usdc",
4490
- "Flip",
4491
- "Dot",
4492
- "Eth",
4493
- "Btc"
4494
- ])
4495
- }).transform(({ __kind }) => __kind.toUpperCase());
4496
- var transformAsset = /* @__PURE__ */ __name((asset) => ({
4497
- asset,
4498
- chain: assetChains[asset]
4499
- }), "transformAsset");
4500
- var chainflipChain = z.nativeEnum(Chains);
4501
- var chainflipAsset = z.nativeEnum(Assets);
4502
- var chainflipAssetAndChain = z.union([
4503
- chainflipAsset.transform(transformAsset),
4504
- z.object({
4505
- asset: z.nativeEnum(Assets),
4506
- chain: z.nativeEnum(Chains)
4507
- })
4508
- ]).superRefine((obj, ctx) => {
4509
- if (assetChains[obj.asset] !== obj.chain) {
4510
- ctx.addIssue({
4511
- code: z.ZodIssueCode.custom,
4512
- message: `asset ${obj.asset} does not belong to chain ${obj.chain}`,
4513
- path: []
4514
- });
4515
- }
4516
- return z.NEVER;
4517
- });
4533
+ var rustEnum = /* @__PURE__ */ __name((values) => z.object({
4534
+ __kind: z.enum(values)
4535
+ }).transform(({ __kind }) => __kind), "rustEnum");
4536
+ rustEnum(enumValues(InternalAssets));
4537
+ rustEnum(enumValues(Chains));
4538
+ var chain = z.nativeEnum(Chains);
4539
+ var asset = z.nativeEnum(Assets);
4518
4540
  z.nativeEnum(ChainflipNetworks);
4541
+ var assetAndChain = z.object({
4542
+ asset,
4543
+ chain
4544
+ }).refine(isValidAssetAndChain);
4519
4545
  z.union([
4520
4546
  z.object({
4521
4547
  __kind: z.literal("CcmPrincipal"),
@@ -4538,4 +4564,4 @@ z.union([
4538
4564
  }))
4539
4565
  ]);
4540
4566
 
4541
- export { Assets, ChainflipNetworks, Chains, __name, __publicField, assert, assertIsValidAssetAndChain, assetChains, assetContractIds, assetDecimals, btcAddress, chainContractIds, chainflipAsset, chainflipAssetAndChain, chainflipChain, dotAddress, ethereumAddress, hexString, hexStringFromNumber, hexStringWithMaxByteSize, isTestnet, isTokenCall, isTokenSwap, numericString, unsignedInteger, z };
4567
+ export { Assets, ChainflipNetworks, Chains, InternalAssets, __name, __publicField, assert, asset, assetAndChain, assetConstants, btcAddress, chain, chainConstants, dotAddress, ethereumAddress, getInternalAsset, hexString, hexStringFromNumber, hexStringWithMaxByteSize, isTestnet, isTokenCall, isTokenSwap, numericString, readChainAssetValue, unsignedInteger, z };
@@ -0,0 +1,30 @@
1
+ import { z, chain, asset, numericString, hexStringWithMaxByteSize } from './chunk-3LCS6BBP.mjs';
2
+
3
+ // ../shared/src/schemas.ts
4
+ z.object({
5
+ srcChain: chain,
6
+ srcAsset: asset,
7
+ destChain: chain,
8
+ destAsset: asset,
9
+ amount: numericString,
10
+ brokerCommissionBps: z.string().regex(/^[0-9]*$/).transform((v) => Number(v)).optional()
11
+ });
12
+ var ccmMetadataSchema = z.object({
13
+ gasBudget: numericString,
14
+ message: hexStringWithMaxByteSize(1024 * 10)
15
+ });
16
+ z.object({
17
+ srcAsset: asset,
18
+ destAsset: asset,
19
+ srcChain: chain,
20
+ destChain: chain,
21
+ destAddress: z.string(),
22
+ amount: numericString,
23
+ ccmMetadata: ccmMetadataSchema.optional(),
24
+ boostFeeBps: z.number().optional()
25
+ }).transform(({ amount, ...rest }) => ({
26
+ ...rest,
27
+ expectedDepositAmount: amount
28
+ }));
29
+
30
+ export { ccmMetadataSchema };
@@ -0,0 +1,50 @@
1
+ type ArrayToMap<T extends readonly string[]> = {
2
+ [K in T[number]]: K;
3
+ };
4
+ declare const InternalAssets: ArrayToMap<readonly ["Flip", "Usdc", "Dot", "Eth", "Btc"]>;
5
+ type InternalAsset = (typeof InternalAssets)[keyof typeof InternalAssets];
6
+ declare const Chains: ArrayToMap<readonly ["Bitcoin", "Ethereum", "Polkadot"]>;
7
+ type Chain = (typeof Chains)[keyof typeof Chains];
8
+ declare const Assets: ArrayToMap<readonly ["FLIP", "USDC", "DOT", "ETH", "BTC"]>;
9
+ type Asset = (typeof Assets)[keyof typeof Assets];
10
+ declare const ChainflipNetworks: ArrayToMap<readonly ["backspin", "sisyphos", "perseverance", "mainnet"]>;
11
+ type ChainflipNetwork = (typeof ChainflipNetworks)[keyof typeof ChainflipNetworks];
12
+ declare const chainConstants: {
13
+ readonly Ethereum: {
14
+ readonly assets: ["ETH", "FLIP", "USDC"];
15
+ readonly gasAsset: "ETH";
16
+ readonly contractId: 1;
17
+ };
18
+ readonly Polkadot: {
19
+ readonly assets: ["DOT"];
20
+ readonly gasAsset: "DOT";
21
+ readonly contractId: 2;
22
+ };
23
+ readonly Bitcoin: {
24
+ readonly assets: ["BTC"];
25
+ readonly gasAsset: "BTC";
26
+ readonly contractId: 3;
27
+ };
28
+ };
29
+ type AssetOfChain<C extends Chain> = (typeof chainConstants)[C]['assets'][number];
30
+ type UncheckedAssetAndChain = {
31
+ asset: Asset | string;
32
+ chain: Chain | string;
33
+ };
34
+ type ChainAssetMap<T> = {
35
+ [C in Chain]: {
36
+ [A in AssetOfChain<C>]: T;
37
+ };
38
+ };
39
+ declare function getInternalAsset(asset: UncheckedAssetAndChain): InternalAsset;
40
+
41
+ type TransactionOptions = {
42
+ gasLimit?: bigint;
43
+ gasPrice?: bigint;
44
+ maxFeePerGas?: bigint;
45
+ maxPriorityFeePerGas?: bigint;
46
+ nonce?: number;
47
+ wait?: number;
48
+ };
49
+
50
+ export { type Asset as A, type ChainflipNetwork as C, type InternalAsset as I, type TransactionOptions as T, type Chain as a, type AssetOfChain as b, type ChainAssetMap as c, Chains as d, Assets as e, ChainflipNetworks as f, getInternalAsset as g };
@@ -0,0 +1,50 @@
1
+ type ArrayToMap<T extends readonly string[]> = {
2
+ [K in T[number]]: K;
3
+ };
4
+ declare const InternalAssets: ArrayToMap<readonly ["Flip", "Usdc", "Dot", "Eth", "Btc"]>;
5
+ type InternalAsset = (typeof InternalAssets)[keyof typeof InternalAssets];
6
+ declare const Chains: ArrayToMap<readonly ["Bitcoin", "Ethereum", "Polkadot"]>;
7
+ type Chain = (typeof Chains)[keyof typeof Chains];
8
+ declare const Assets: ArrayToMap<readonly ["FLIP", "USDC", "DOT", "ETH", "BTC"]>;
9
+ type Asset = (typeof Assets)[keyof typeof Assets];
10
+ declare const ChainflipNetworks: ArrayToMap<readonly ["backspin", "sisyphos", "perseverance", "mainnet"]>;
11
+ type ChainflipNetwork = (typeof ChainflipNetworks)[keyof typeof ChainflipNetworks];
12
+ declare const chainConstants: {
13
+ readonly Ethereum: {
14
+ readonly assets: ["ETH", "FLIP", "USDC"];
15
+ readonly gasAsset: "ETH";
16
+ readonly contractId: 1;
17
+ };
18
+ readonly Polkadot: {
19
+ readonly assets: ["DOT"];
20
+ readonly gasAsset: "DOT";
21
+ readonly contractId: 2;
22
+ };
23
+ readonly Bitcoin: {
24
+ readonly assets: ["BTC"];
25
+ readonly gasAsset: "BTC";
26
+ readonly contractId: 3;
27
+ };
28
+ };
29
+ type AssetOfChain<C extends Chain> = (typeof chainConstants)[C]['assets'][number];
30
+ type UncheckedAssetAndChain = {
31
+ asset: Asset | string;
32
+ chain: Chain | string;
33
+ };
34
+ type ChainAssetMap<T> = {
35
+ [C in Chain]: {
36
+ [A in AssetOfChain<C>]: T;
37
+ };
38
+ };
39
+ declare function getInternalAsset(asset: UncheckedAssetAndChain): InternalAsset;
40
+
41
+ type TransactionOptions = {
42
+ gasLimit?: bigint;
43
+ gasPrice?: bigint;
44
+ maxFeePerGas?: bigint;
45
+ maxPriorityFeePerGas?: bigint;
46
+ nonce?: number;
47
+ wait?: number;
48
+ };
49
+
50
+ export { type Asset as A, type ChainflipNetwork as C, type InternalAsset as I, type TransactionOptions as T, type Chain as a, type AssetOfChain as b, type ChainAssetMap as c, Chains as d, Assets as e, ChainflipNetworks as f, getInternalAsset as g };
@@ -1,5 +1,5 @@
1
1
  import { Signer } from 'ethers';
2
- import { C as ChainflipNetwork, T as TransactionOptions } from './contracts-auzntmd7.mjs';
2
+ import { C as ChainflipNetwork, T as TransactionOptions } from './contracts-b4ZS6VAh.mjs';
3
3
 
4
4
  type PendingRedemption = {
5
5
  amount: bigint;
package/dist/funding.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import { Signer } from 'ethers';
2
- import { C as ChainflipNetwork, T as TransactionOptions } from './contracts-auzntmd7.js';
2
+ import { C as ChainflipNetwork, T as TransactionOptions } from './contracts-b4ZS6VAh.js';
3
3
 
4
4
  type PendingRedemption = {
5
5
  amount: bigint;