@vultisig/core-chain 2.17.5 → 2.17.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/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # @vultisig/core-chain
2
2
 
3
+ ## 2.17.6
4
+
5
+ ### Patch Changes
6
+
7
+ - [#774](https://github.com/vultisig/vultisig-sdk/pull/774) [`0f350ff`](https://github.com/vultisig/vultisig-sdk/commit/0f350ff128a42764950e71b4c156907ec59a3c37) Thanks [@NeOMakinG](https://github.com/NeOMakinG)! - Add scanAddress method for Blockaid EVM address reputation scanning
8
+
9
+ - [#790](https://github.com/vultisig/vultisig-sdk/pull/790) [`6f53d2c`](https://github.com/vultisig/vultisig-sdk/commit/6f53d2cb3d1a56ff9377cc32c7c6f4e750fe8f21) Thanks [@rcoderdev](https://github.com/rcoderdev)! - Align Dogecoin Blockchair fee estimation with the app clients by using 25% of the reported baseline.
10
+
11
+ - Updated dependencies [[`b51902b`](https://github.com/vultisig/vultisig-sdk/commit/b51902bc08045e3977116565e430c1454d0ba607)]:
12
+ - @vultisig/lib-utils@0.10.2
13
+
3
14
  ## 2.17.5
4
15
 
5
16
  ### Patch Changes
@@ -11,9 +11,9 @@ export const getUtxoByteFee = async (chain) => {
11
11
  const { data: { suggested_transaction_fee_per_byte_sat }, } = await getUtxoStats(chain);
12
12
  const base = BigInt(suggested_transaction_fee_per_byte_sat);
13
13
  if (chain === UtxoChain.Dogecoin) {
14
- // According to iOS implementation: For Dogecoin, the API responds with 500,000 sats/byte, which exceeds what WalletCore expects.
15
- // To ensure compatibility with WalletCore, we divide the API value by 10 to bring it into an acceptable range.
16
- return base / 10n;
14
+ // Blockchair reports an inflated DOGE rate; 25% matches the iOS and Android
15
+ // Dogecoin fee multiplier while keeping the value in WalletCore's range.
16
+ return base / 4n;
17
17
  }
18
18
  return byteFeeMultiplier(BigInt(suggested_transaction_fee_per_byte_sat));
19
19
  };
@@ -1 +1 @@
1
- {"version":3,"file":"byteFee.js","sourceRoot":"","sources":["../../../../../../../packages/core/chain/chains/utxo/fee/byteFee.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,sDAAsD,CAAA;AAEnF,MAAM,iBAAiB,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,CAAC,KAAK,GAAG,GAAG,CAAC,GAAG,GAAG,CAAA;AAEhE,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,EAAE,KAAgB,EAAE,EAAE;IACvD,0EAA0E;IAC1E,4EAA4E;IAC5E,yEAAyE;IACzE,uEAAuE;IACvE,IAAI,KAAK,KAAK,SAAS,CAAC,KAAK;QAAE,OAAO,IAAI,CAAA;IAE1C,MAAM,EACJ,IAAI,EAAE,EAAE,sCAAsC,EAAE,GACjD,GAAG,MAAM,YAAY,CAAC,KAAK,CAAC,CAAA;IAE7B,MAAM,IAAI,GAAG,MAAM,CAAC,sCAAsC,CAAC,CAAA;IAE3D,IAAI,KAAK,KAAK,SAAS,CAAC,QAAQ,EAAE,CAAC;QACjC,iIAAiI;QACjI,+GAA+G;QAC/G,OAAO,IAAI,GAAG,GAAG,CAAA;IACnB,CAAC;IAED,OAAO,iBAAiB,CAAC,MAAM,CAAC,sCAAsC,CAAC,CAAC,CAAA;AAC1E,CAAC,CAAA"}
1
+ {"version":3,"file":"byteFee.js","sourceRoot":"","sources":["../../../../../../../packages/core/chain/chains/utxo/fee/byteFee.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,4BAA4B,CAAA;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,sDAAsD,CAAA;AAEnF,MAAM,iBAAiB,GAAG,CAAC,KAAa,EAAE,EAAE,CAAC,CAAC,KAAK,GAAG,GAAG,CAAC,GAAG,GAAG,CAAA;AAEhE,MAAM,CAAC,MAAM,cAAc,GAAG,KAAK,EAAE,KAAgB,EAAE,EAAE;IACvD,0EAA0E;IAC1E,4EAA4E;IAC5E,yEAAyE;IACzE,uEAAuE;IACvE,IAAI,KAAK,KAAK,SAAS,CAAC,KAAK;QAAE,OAAO,IAAI,CAAA;IAE1C,MAAM,EACJ,IAAI,EAAE,EAAE,sCAAsC,EAAE,GACjD,GAAG,MAAM,YAAY,CAAC,KAAK,CAAC,CAAA;IAE7B,MAAM,IAAI,GAAG,MAAM,CAAC,sCAAsC,CAAC,CAAA;IAE3D,IAAI,KAAK,KAAK,SAAS,CAAC,QAAQ,EAAE,CAAC;QACjC,4EAA4E;QAC5E,yEAAyE;QACzE,OAAO,IAAI,GAAG,EAAE,CAAA;IAClB,CAAC;IAED,OAAO,iBAAiB,CAAC,MAAM,CAAC,sCAAsC,CAAC,CAAC,CAAA;AAC1E,CAAC,CAAA"}
@@ -0,0 +1,5 @@
1
+ export type BlockaidAddressScanResult = {
2
+ resultType: 'Benign' | 'Warning' | 'Malicious';
3
+ features: string[];
4
+ };
5
+ //# sourceMappingURL=core.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/chain/security/blockaid/address/core.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,yBAAyB,GAAG;IACtC,UAAU,EAAE,QAAQ,GAAG,SAAS,GAAG,WAAW,CAAA;IAC9C,QAAQ,EAAE,MAAM,EAAE,CAAA;CACnB,CAAA"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=core.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"core.js","sourceRoot":"","sources":["../../../../../../../packages/core/chain/security/blockaid/address/core.ts"],"names":[],"mappings":""}
@@ -0,0 +1,3 @@
1
+ import type { BlockaidAddressScanResult } from './core.js';
2
+ export declare const scanAddressWithBlockaid: (address: string, chain: string) => Promise<BlockaidAddressScanResult>;
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../../../packages/core/chain/security/blockaid/address/index.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,yBAAyB,EAAE,MAAM,QAAQ,CAAA;AAOvD,eAAO,MAAM,uBAAuB,GAAU,SAAS,MAAM,EAAE,OAAO,MAAM,KAAG,OAAO,CAAC,yBAAyB,CAO/G,CAAA"}
@@ -0,0 +1,11 @@
1
+ import { productRootDomain } from '@vultisig/core-config';
2
+ import { queryBlockaid } from '../core/query.js';
3
+ export const scanAddressWithBlockaid = async (address, chain) => {
4
+ const { result_type, features } = await queryBlockaid('/evm/address/scan', {
5
+ address,
6
+ chain,
7
+ metadata: { domain: productRootDomain },
8
+ });
9
+ return { resultType: result_type, features: features ?? [] };
10
+ };
11
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/core/chain/security/blockaid/address/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAA;AAEzD,OAAO,EAAE,aAAa,EAAE,MAAM,eAAe,CAAA;AAQ7C,MAAM,CAAC,MAAM,uBAAuB,GAAG,KAAK,EAAE,OAAe,EAAE,KAAa,EAAsC,EAAE;IAClH,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,GAAG,MAAM,aAAa,CAA8B,mBAAmB,EAAE;QACtG,OAAO;QACP,KAAK;QACL,QAAQ,EAAE,EAAE,MAAM,EAAE,iBAAiB,EAAE;KACxC,CAAC,CAAA;IACF,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,QAAQ,EAAE,QAAQ,IAAI,EAAE,EAAE,CAAA;AAC9D,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vultisig/core-chain",
3
- "version": "2.17.5",
3
+ "version": "2.17.6",
4
4
  "description": "Blockchain chain logic shared across Vultisig clients",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -1182,6 +1182,16 @@
1182
1182
  "import": "./dist/scripts/printKnownTokens.js",
1183
1183
  "default": "./dist/scripts/printKnownTokens.js"
1184
1184
  },
1185
+ "./security/blockaid/address": {
1186
+ "types": "./dist/security/blockaid/address/index.d.ts",
1187
+ "import": "./dist/security/blockaid/address/index.js",
1188
+ "default": "./dist/security/blockaid/address/index.js"
1189
+ },
1190
+ "./security/blockaid/address/core": {
1191
+ "types": "./dist/security/blockaid/address/core.d.ts",
1192
+ "import": "./dist/security/blockaid/address/core.js",
1193
+ "default": "./dist/security/blockaid/address/core.js"
1194
+ },
1185
1195
  "./security/blockaid/config": {
1186
1196
  "types": "./dist/security/blockaid/config.d.ts",
1187
1197
  "import": "./dist/security/blockaid/config.js",
@@ -1889,7 +1899,7 @@
1889
1899
  "@cosmjs/proto-signing": "^0.39.0",
1890
1900
  "@cosmjs/stargate": "^0.39.0",
1891
1901
  "@lifi/sdk": "^4.0.0",
1892
- "@mysten/sui": "^2.17.0",
1902
+ "@mysten/sui": "^2.19.0",
1893
1903
  "@noble/hashes": "^1.8.0",
1894
1904
  "@polkadot/api": "^16.5.6",
1895
1905
  "@polkadot/util": "^14.0.3",
@@ -1898,16 +1908,16 @@
1898
1908
  "@solana/web3.js": "^1.98.4",
1899
1909
  "@ton/core": "^0.63.1",
1900
1910
  "@ton/crypto": "^3.3.0",
1901
- "@trustwallet/wallet-core": "^4.6.13",
1911
+ "@trustwallet/wallet-core": "^4.6.15",
1902
1912
  "@vultisig/core-config": "0.9.1",
1903
- "@vultisig/lib-utils": "0.10.1",
1913
+ "@vultisig/lib-utils": "0.10.2",
1904
1914
  "bip32": "^5.0.1",
1905
1915
  "bitcoinjs-lib": "^7.0.1",
1906
1916
  "bs58": "^6.0.0",
1907
1917
  "bs58check": "^4.0.0",
1908
1918
  "cbor-x": "^1.6.4",
1909
1919
  "date-fns": "^4.4.0",
1910
- "ethers": "^6.16.0",
1920
+ "ethers": "^6.17.0",
1911
1921
  "tiny-secp256k1": "^2.2.4",
1912
1922
  "viem": "^2.52.2",
1913
1923
  "xrpl": "^5.0.0"