@swapkit/core 5.4.1 → 5.4.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/CHANGELOG.md CHANGED
@@ -1,5 +1,17 @@
1
1
  # @swapkit/core
2
2
 
3
+ ## 5.4.2
4
+
5
+ ### Patch Changes
6
+
7
+ - [#485](https://github.com/swapkit/sdk/pull/485) [`c380f81`](https://github.com/swapkit/sdk/commit/c380f812ad4e844a5a0782e020699b6d9ff5a10a) Thanks [@0xepicode](https://github.com/0xepicode)! - The UTXO toolbox's Blockchair host is now configurable via `SKConfig.set({ blockchairApiUrl })`. When set, every Blockchair read and broadcast routes through that host (the `/{chain-slug}` path is still appended), letting a consumer proxy the calls and keep the API key server-side instead of shipping it to the browser. Unset, it defaults to `https://api.blockchair.com` as before. (via @swapkit/helpers@6.4.2)
8
+ - [#472](https://github.com/swapkit/sdk/pull/472) [`f960277`](https://github.com/swapkit/sdk/commit/f960277adc6f9f20807f732858324eef971cb397) Thanks [@ice-chillios](https://github.com/ice-chillios)! - Solana token transfers now use the token program that owns the mint. Before, every transfer was built for the original SPL Token program, so transfers of Token-2022 tokens such as PYUSD failed with "incorrect program id". A mint that does not exist, or that neither program owns, now throws `toolbox_solana_unsupported_token_program` from `createTransaction`, `transfer` and `estimateTransactionFee`. `getBalanceFromRPC` also lists Token-2022 balances, and `checkPayerBalance` sizes a new Token-2022 token account like the payer's own. (via @swapkit/helpers@6.4.2)
9
+ - [#466](https://github.com/swapkit/sdk/pull/466) [`2957c2f`](https://github.com/swapkit/sdk/commit/2957c2fe6605b10b08e280acc0aefd43fb095d64) Thanks [@ice-chillios](https://github.com/ice-chillios)! - THORChain and Maya tokens whose denom contains more than one "/", such as staked RUJI (`x/staking-x/ruji`), now keep their full name. Their balances show under the right asset, and sending or depositing them uses the full denom instead of a cut-off one that the chain rejects. THORChain and Maya asset identifiers with an empty part, such as `THOR.ETH//ETH`, are now rejected with `helpers_invalid_asset_identifier` instead of being cut short. (via @swapkit/helpers@6.4.2)
10
+ - [#484](https://github.com/swapkit/sdk/pull/484) [`c03235b`](https://github.com/swapkit/sdk/commit/c03235b7a06fc3c71c67c0407a2c8c5159b4cb17) Thanks [@github-actions](https://github.com/apps/github-actions)! - Update generated token lists. (via @swapkit/helpers@6.4.2)
11
+ - [#481](https://github.com/swapkit/sdk/pull/481) [`b09262a`](https://github.com/swapkit/sdk/commit/b09262a0113cbd09f3c2b08711008dfbd55a0e76) Thanks [@hippocampusSK](https://github.com/hippocampusSK)! - Zcash transfers to ZIP-320 TEX addresses (`tex1…`), the format THORChain publishes its ZEC vault in, are now built instead of being rejected as invalid. TEX addresses are reported as their own `tex` address type, THORChain and Maya swaps accept them as the ZEC destination, and `toTransparentZcashAddress` converts one to the `t1` address it pays on chain. (via @swapkit/toolboxes@6.6.0)
12
+ - [#477](https://github.com/swapkit/sdk/pull/477) [`efc495d`](https://github.com/swapkit/sdk/commit/efc495df7dfb7851876e5d8ca7567ce64070b494) Thanks [@hippocampusSK](https://github.com/hippocampusSK)! - Selling from HyperCore now works through NEAR Intents as well as Flashnet, and each swap sends the funds to the account that provider credits. (via @swapkit/toolboxes@6.6.0)
13
+ - [#483](https://github.com/swapkit/sdk/pull/483) [`b717e30`](https://github.com/swapkit/sdk/commit/b717e309061c894fb7b6b9d27acffa1e58399efa) Thanks [@0xepicode](https://github.com/0xepicode)! - Transparent Zcash swaps now broadcast the extracted network transaction instead of the PCZT envelope. The toolbox signer discriminated the transaction it received with `instanceof ZcashPSBT` / `instanceof PCZT`, but the swap plugin builds that transaction through a dynamic import of `@swapkit/utxo-signer`, which a bundler can resolve to a different module instance than the toolbox's static import. The `instanceof` check then missed, the signer fell through to its generic branch, and the still-wrapped PSBT was broadcast as its PCZT envelope — which the network rejects. The signer now discriminates by shape — a PCZT and a ZcashPSBT both expose `extract`, a raw transaction does not — which is independent of class identity. (via @swapkit/toolboxes@6.6.0)
14
+
3
15
  ## 5.4.1
4
16
 
5
17
  ### Patch Changes
@@ -1547,7 +1547,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
1547
1547
  getAddressFromKeys: (keys: {
1548
1548
  publicKey: Uint8Array;
1549
1549
  }) => string;
1550
- getAddressType: (address: string) => "pkh" | "sh" | "sprout" | "sapling" | "unified" | "wpkh" | "wsh" | "tr" | null;
1550
+ getAddressType: (address: string) => "pkh" | "sh" | "tex" | "sprout" | "sapling" | "unified" | "wpkh" | "wsh" | "tr" | null;
1551
1551
  getBalance: (address: string, scamFilter?: boolean) => Promise<AssetValue[]>;
1552
1552
  getExtendedPublicKey: () => string | undefined;
1553
1553
  getExtendedPublicKeyInfo: ({ accountIndex }?: {
@@ -1711,7 +1711,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
1711
1711
  feeRate?: number;
1712
1712
  fetchTxHex?: boolean;
1713
1713
  }) => Promise<import("@swapkit/helpers").AssetValue>;
1714
- getAddressType: (address: string) => "pkh" | "sh" | "sprout" | "sapling" | "unified" | "wpkh" | "wsh" | "tr" | null;
1714
+ getAddressType: (address: string) => "pkh" | "sh" | "tex" | "sprout" | "sapling" | "unified" | "wpkh" | "wsh" | "tr" | null;
1715
1715
  getExtendedPublicKey: () => string | undefined;
1716
1716
  getExtendedPublicKeyInfo: ({ accountIndex }?: {
1717
1717
  accountIndex?: number;
@@ -2591,7 +2591,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
2591
2591
  getAddressFromKeys: (keys: {
2592
2592
  publicKey: Uint8Array;
2593
2593
  }) => string;
2594
- getAddressType: (address: string) => "pkh" | "sh" | "sprout" | "sapling" | "unified" | "wpkh" | "wsh" | "tr" | null;
2594
+ getAddressType: (address: string) => "pkh" | "sh" | "tex" | "sprout" | "sapling" | "unified" | "wpkh" | "wsh" | "tr" | null;
2595
2595
  getBalance: (address: string, scamFilter?: boolean) => Promise<AssetValue[]>;
2596
2596
  getExtendedPublicKey: () => string | undefined;
2597
2597
  getExtendedPublicKeyInfo: ({ accountIndex }?: {
@@ -2728,7 +2728,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
2728
2728
  getAddressFromKeys: (keys: {
2729
2729
  publicKey: Uint8Array;
2730
2730
  }) => string;
2731
- getAddressType: (address: string) => "pkh" | "sh" | "sprout" | "sapling" | "unified" | "wpkh" | "wsh" | "tr" | null;
2731
+ getAddressType: (address: string) => "pkh" | "sh" | "tex" | "sprout" | "sapling" | "unified" | "wpkh" | "wsh" | "tr" | null;
2732
2732
  getBalance: (address: string, scamFilter?: boolean) => Promise<AssetValue[]>;
2733
2733
  getExtendedPublicKey: () => string | undefined;
2734
2734
  getExtendedPublicKeyInfo: ({ accountIndex }?: {
@@ -3497,7 +3497,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
3497
3497
  getAddressFromKeys: (keys: {
3498
3498
  publicKey: Uint8Array;
3499
3499
  }) => string;
3500
- getAddressType: (address: string) => "pkh" | "sh" | "sprout" | "sapling" | "unified" | "wpkh" | "wsh" | "tr" | null;
3500
+ getAddressType: (address: string) => "pkh" | "sh" | "tex" | "sprout" | "sapling" | "unified" | "wpkh" | "wsh" | "tr" | null;
3501
3501
  getBalance: (address: string, scamFilter?: boolean) => Promise<AssetValue[]>;
3502
3502
  getExtendedPublicKey: () => string | undefined;
3503
3503
  getExtendedPublicKeyInfo: ({ accountIndex }?: {
@@ -5629,7 +5629,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
5629
5629
  getAddressFromKeys: (keys: {
5630
5630
  publicKey: Uint8Array;
5631
5631
  }) => string;
5632
- getAddressType: (address: string) => "pkh" | "sh" | "sprout" | "sapling" | "unified" | "wpkh" | "wsh" | "tr" | null;
5632
+ getAddressType: (address: string) => "pkh" | "sh" | "tex" | "sprout" | "sapling" | "unified" | "wpkh" | "wsh" | "tr" | null;
5633
5633
  getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
5634
5634
  getExtendedPublicKey: () => string | undefined;
5635
5635
  getExtendedPublicKeyInfo: ({ accountIndex }?: {
package/package.json CHANGED
@@ -1,10 +1,10 @@
1
1
  {
2
2
  "author": "swapkit-dev",
3
3
  "dependencies": {
4
- "@swapkit/helpers": "6.4.1",
5
- "@swapkit/plugins": "5.2.1",
6
- "@swapkit/toolboxes": "6.5.1",
7
- "@swapkit/wallet-core": "5.1.2"
4
+ "@swapkit/helpers": "6.4.2",
5
+ "@swapkit/plugins": "5.2.2",
6
+ "@swapkit/toolboxes": "6.6.0",
7
+ "@swapkit/wallet-core": "5.1.3"
8
8
  },
9
9
  "description": "SwapKit - Core",
10
10
  "devDependencies": {
@@ -34,5 +34,5 @@
34
34
  "type-check:go": "tsgo"
35
35
  },
36
36
  "type": "module",
37
- "version": "5.4.1"
37
+ "version": "5.4.2"
38
38
  }