@swapkit/core 1.0.0-rc.22 → 1.0.0-rc.24

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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "author": "swapkit-oss-team",
3
3
  "dependencies": {
4
4
  "@swapkit/types": "1.0.0-rc.7",
5
- "@swapkit/helpers": "1.0.0-rc.16"
5
+ "@swapkit/helpers": "1.0.0-rc.18"
6
6
  },
7
7
  "description": "SwapKit Lib core",
8
8
  "devDependencies": {
@@ -15,16 +15,16 @@
15
15
  "@internal/config": "0.0.0-internal.0",
16
16
  "@swapkit/api": "1.0.0-rc.7",
17
17
  "@swapkit/tokens": "1.0.0-rc.7",
18
- "@swapkit/toolbox-cosmos": "1.0.0-rc.18",
19
- "@swapkit/toolbox-evm": "1.0.0-rc.18",
20
- "@swapkit/toolbox-utxo": "1.0.0-rc.17"
18
+ "@swapkit/toolbox-cosmos": "1.0.0-rc.20",
19
+ "@swapkit/toolbox-evm": "1.0.0-rc.20",
20
+ "@swapkit/toolbox-utxo": "1.0.0-rc.19"
21
21
  },
22
22
  "peerDependencies": {
23
23
  "@swapkit/api": "1.0.0-rc.7",
24
24
  "@swapkit/tokens": "1.0.0-rc.7",
25
- "@swapkit/toolbox-cosmos": "1.0.0-rc.18",
26
- "@swapkit/toolbox-evm": "1.0.0-rc.18",
27
- "@swapkit/toolbox-utxo": "1.0.0-rc.17"
25
+ "@swapkit/toolbox-cosmos": "1.0.0-rc.20",
26
+ "@swapkit/toolbox-evm": "1.0.0-rc.20",
27
+ "@swapkit/toolbox-utxo": "1.0.0-rc.19"
28
28
  },
29
29
  "eslintConfig": {
30
30
  "extends": "../../../internal/eslint-config"
@@ -52,7 +52,7 @@
52
52
  "repository": "https://github.com/thorswap/SwapKit.git",
53
53
  "type": "module",
54
54
  "types": "./dist/index.d.ts",
55
- "version": "1.0.0-rc.22",
55
+ "version": "1.0.0-rc.24",
56
56
  "scripts": {
57
57
  "build": "NODE_OPTIONS=--max_old_space_size=16384 vite build",
58
58
  "clean": "rm -rf dist vite.config.ts.* .turbo node_modules",
@@ -105,7 +105,7 @@ export class SwapKitCore<T = ''> {
105
105
  value: value
106
106
  ? new SwapKitNumber({
107
107
  value: !isHexString(value) ? parseUnits(value, 'wei').toString(16) : value,
108
- }).baseValueBigInt
108
+ }).getBaseValue('bigint')
109
109
  : 0n,
110
110
  };
111
111
 
@@ -495,7 +495,7 @@ export class SwapKitCore<T = ''> {
495
495
  type === 'bond' ? MemoType.BOND : type === 'unbond' ? MemoType.UNBOND : MemoType.LEAVE;
496
496
  const memo = getMemoFor(memoType, {
497
497
  address,
498
- unbondAmount: type === 'unbond' ? assetValue.baseValueNumber : undefined,
498
+ unbondAmount: type === 'unbond' ? assetValue.getBaseValue('number') : undefined,
499
499
  });
500
500
 
501
501
  return this.#thorchainTransfer({
@@ -627,7 +627,7 @@ export class SwapKitCore<T = ''> {
627
627
  };
628
628
 
629
629
  #approve = async <T = string>({
630
- assetValue: { baseValueBigInt, address, chain, isGasAsset, isSynthetic },
630
+ assetValue: { getBaseValue, address, chain, isGasAsset, isSynthetic },
631
631
  type = 'checkOnly',
632
632
  contractAddress,
633
633
  }: {
@@ -653,7 +653,7 @@ export class SwapKitCore<T = ''> {
653
653
  contractAddress || ((await this.#getInboundDataByChain(chain)).router as string);
654
654
 
655
655
  return walletAction({
656
- amount: baseValueBigInt,
656
+ amount: getBaseValue('bigint'),
657
657
  assetAddress: address,
658
658
  from,
659
659
  spenderAddress,