@swapkit/core 4.4.40 → 4.4.41

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @swapkit/core
2
2
 
3
+ ## 4.4.41
4
+
5
+ ### Patch Changes
6
+
7
+ - [#294](https://github.com/swapkit/sdk/pull/294) [`01a1d86`](https://github.com/swapkit/sdk/commit/01a1d869ec879ee80f4118719d7746c1b4f8e9bf) Thanks [@ice-chillios](https://github.com/ice-chillios)! - Leaner published bundles: externalize sibling `@swapkit/*` workspace packages and enable ESM code-splitting for every package (builder change in `@swapkit/tools-builder`).
8
+ - [#294](https://github.com/swapkit/sdk/pull/294) [`01a1d86`](https://github.com/swapkit/sdk/commit/01a1d869ec879ee80f4118719d7746c1b4f8e9bf) Thanks [@ice-chillios](https://github.com/ice-chillios)! - Remove eager work from toolbox construction so `getToolbox()` does no network I/O and doesn't load heavy chain SDKs until a method actually needs them. (via @swapkit/toolboxes@4.20.0)
9
+ - [#299](https://github.com/swapkit/sdk/pull/299) [`78d430d`](https://github.com/swapkit/sdk/commit/78d430df03f86dfe2cea5dd4bdc5884de5ba1529) Thanks [@towanTG](https://github.com/towanTG)! - Fail TRC-20 transaction creation when both Tron energy probes fail instead of falling back to a hardcoded 65k energy estimate. (via @swapkit/toolboxes@4.20.0)
10
+
3
11
  ## 4.4.40
4
12
 
5
13
  ### Patch Changes
@@ -1919,7 +1919,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
1919
1919
  XRD: ChainWallet<Chain.Radix> & {
1920
1920
  getAddress: () => string;
1921
1921
  getBalance: (address: string) => Promise<AssetValue[]>;
1922
- networkApi: import("@radixdlt/babylon-gateway-api-sdk").GatewayApiClient;
1922
+ getNetworkApi: () => Promise<import("@radixdlt/babylon-gateway-api-sdk").GatewayApiClient>;
1923
1923
  signAndBroadcast: (params: any) => Promise<string>;
1924
1924
  validateAddress: typeof import("@swapkit/toolboxes/radix/index").validateRadixAddress;
1925
1925
  };
@@ -1939,7 +1939,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
1939
1939
  }) => Promise<import("xrpl").Payment>;
1940
1940
  disconnect: () => void;
1941
1941
  estimateTransactionFee: () => Promise<AssetValue>;
1942
- getAddress: () => string | Promise<string>;
1942
+ getAddress: () => Promise<string>;
1943
1943
  getBalance: (checkAddress?: string) => Promise<AssetValue[]>;
1944
1944
  getTrustLines: (address?: string) => Promise<import("@swapkit/toolboxes/ripple/index").TrustLineInfo[]>;
1945
1945
  hasTrustLine: ({ address, currency, issuer, }: {
@@ -1950,10 +1950,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
1950
1950
  setTrustLine: ({ currency, issuer, limit, sender }: import("@swapkit/toolboxes/ripple/index").TrustLineParams) => Promise<import("xrpl").Transaction>;
1951
1951
  setTrustLineAndBroadcast: (params: import("@swapkit/toolboxes/ripple/index").TrustLineParams) => Promise<string>;
1952
1952
  signAndBroadcastTransaction: (tx: import("xrpl").Transaction) => Promise<string>;
1953
- signTransaction: (tx: import("xrpl").Transaction) => {
1954
- tx_blob: string;
1955
- hash: string;
1956
- } | Promise<{
1953
+ signTransaction: (tx: import("xrpl").Transaction) => Promise<{
1957
1954
  tx_blob: string;
1958
1955
  hash: string;
1959
1956
  }>;
@@ -2088,7 +2085,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
2088
2085
  };
2089
2086
  THOR: ChainWallet<Chain.THORChain> & import("@swapkit/toolboxes/cosmos").ThorchainWallet;
2090
2087
  TON: ChainWallet<Chain.Ton> & {
2091
- broadcastTransaction: (transferCell: import("@ton/ton/dist").Cell) => Promise<string>;
2088
+ broadcastTransaction: (transferCell: import("@ton/core").Cell) => Promise<string>;
2092
2089
  createTransaction: ({ sender, ...params }: GenericTransferParams & {
2093
2090
  sender?: string;
2094
2091
  sweep?: boolean;
@@ -2101,8 +2098,8 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
2101
2098
  getJettonWalletAddress: ({ jettonMasterAddress, ownerAddress, }: {
2102
2099
  jettonMasterAddress: string;
2103
2100
  ownerAddress: string;
2104
- }) => Promise<import("@ton/ton/dist").Address>;
2105
- sign: (messages: import("@swapkit/toolboxes/ton/types").TONTransactionMessage[]) => Promise<import("@ton/ton/dist").Cell>;
2101
+ }) => Promise<import("@ton/core").Address>;
2102
+ sign: (messages: import("@swapkit/toolboxes/ton/types").TONTransactionMessage[]) => Promise<import("@ton/core").Cell>;
2106
2103
  signAndBroadcastTransaction: (messages: import("@swapkit/toolboxes/ton/types").TONTransactionMessage[]) => Promise<string>;
2107
2104
  transfer: ({ assetValue, recipient, memo, sweep }: GenericTransferParams & {
2108
2105
  sweep?: boolean;
package/package.json CHANGED
@@ -1,13 +1,18 @@
1
1
  {
2
2
  "author": "swapkit-dev",
3
3
  "dependencies": {
4
- "@swapkit/helpers": "4.15.1",
5
- "@swapkit/plugins": "4.6.54",
6
- "@swapkit/toolboxes": "4.19.0",
7
- "@swapkit/wallet-core": "4.3.8"
4
+ "@swapkit/helpers": "4.15.2",
5
+ "@swapkit/plugins": "4.6.55",
6
+ "@swapkit/toolboxes": "4.20.0",
7
+ "@swapkit/wallet-core": "4.3.9"
8
8
  },
9
9
  "description": "SwapKit - Core",
10
- "devDependencies": { "@stricahq/typhonjs": "3.1.0", "cosmjs-types": "0.11.0", "ts-pattern": "5.9.0" },
10
+ "devDependencies": {
11
+ "@stricahq/typhonjs": "3.1.0",
12
+ "@ton/core": "0.63.1",
13
+ "cosmjs-types": "0.11.0",
14
+ "ts-pattern": "5.9.0"
15
+ },
11
16
  "exports": {
12
17
  ".": { "import": "./dist/index.js", "require": "./dist/index.cjs", "types": "./dist/types/index.d.ts" }
13
18
  },
@@ -15,7 +20,12 @@
15
20
  "homepage": "https://github.com/swapkit/SwapKit",
16
21
  "license": "SEE LICENSE IN LICENSE",
17
22
  "name": "@swapkit/core",
18
- "peerDependencies": { "@stricahq/typhonjs": "3.1.0", "cosmjs-types": "0.11.0", "ts-pattern": "5.9.0" },
23
+ "peerDependencies": {
24
+ "@stricahq/typhonjs": "3.1.0",
25
+ "@ton/core": "0.63.1",
26
+ "cosmjs-types": "0.11.0",
27
+ "ts-pattern": "5.9.0"
28
+ },
19
29
  "publishConfig": { "access": "public" },
20
30
  "repository": { "directory": "packages/core", "type": "git", "url": "git+https://github.com/swapkit/SwapKit.git" },
21
31
  "scripts": {
@@ -26,5 +36,5 @@
26
36
  "type-check:go": "tsgo"
27
37
  },
28
38
  "type": "module",
29
- "version": "4.4.40"
39
+ "version": "4.4.41"
30
40
  }