@swapkit/core 5.0.6 → 5.0.8
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 +24 -0
- package/dist/types/index.d.ts +190 -4
- package/package.json +5 -5
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,29 @@
|
|
|
1
1
|
# @swapkit/core
|
|
2
2
|
|
|
3
|
+
## 5.0.8
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- [#404](https://github.com/swapkit/sdk/pull/404) [`ce7f02d`](https://github.com/swapkit/sdk/commit/ce7f02def2c25307c403b20f213a383834ab8bcc) Thanks [@towanTG](https://github.com/towanTG)! - Changes base url for token icons (via @swapkit/helpers@5.4.1)
|
|
8
|
+
- [#401](https://github.com/swapkit/sdk/pull/401) [`7f87112`](https://github.com/swapkit/sdk/commit/7f871121b2949d12de4e5809be7fb544f119dec8) Thanks [@ice-chillios](https://github.com/ice-chillios)! - `generatePhrase` now defaults to a 24-word (256-bit entropy) seed phrase, accepts every BIP39 length (12, 15, 18, 21 or 24 words) and throws `wallet_keystore_invalid_word_count` (21903, added to `@swapkit/helpers`) for anything else instead of silently using 256 bits. New `generateKeystore({ password, wordCount })` creates a phrase and its encrypted keystore in one call; `PhraseWordCount` is exported for wallet-creation UIs offering the choice. (via @swapkit/helpers@5.4.1)
|
|
9
|
+
- [#405](https://github.com/swapkit/sdk/pull/405) [`cbbfdcf`](https://github.com/swapkit/sdk/commit/cbbfdcfbf676855f5bff53547854a725b29f1a7b) Thanks [@hippocampusSK](https://github.com/hippocampusSK)! - Add public Arc mainnet RPC (`https://rpc.mainnet.arc.io`) as the default `rpcUrls` entry for `Chain.Arc` (via @swapkit/helpers@5.4.1)
|
|
10
|
+
- [#399](https://github.com/swapkit/sdk/pull/399) [`70749e7`](https://github.com/swapkit/sdk/commit/70749e7899630daabc371a36c498f62b9da1c62f) Thanks [@github-actions](https://github.com/apps/github-actions)! - Update generated token lists. (via @swapkit/helpers@5.4.1)
|
|
11
|
+
|
|
12
|
+
## 5.0.7
|
|
13
|
+
|
|
14
|
+
### Patch Changes
|
|
15
|
+
|
|
16
|
+
- [#382](https://github.com/swapkit/sdk/pull/382) [`2ef09ec`](https://github.com/swapkit/sdk/commit/2ef09ec782e61176e2576554c25cca6d8f2374de) Thanks [@hippocampusSK](https://github.com/hippocampusSK)! - Add Arc (`5042`) EVM chain: chain/chainId enums, chain config, EVM toolbox wiring, and native `ARC.USDC` gas-asset handling in `isGasAsset` / `getCommonAssetInfo` / `getAssetType` / `getTokenAddress`. Arc ships with rpcUrls: [], so connectKeystore skips it and toolbox calls fail with helpers_chain_no_public_or_set_rpc_url until SKConfig.setRpcUrl(Chain.Arc, […]) is set (via @swapkit/toolboxes@5.4.0)
|
|
17
|
+
- [#385](https://github.com/swapkit/sdk/pull/385) [`c8e9da7`](https://github.com/swapkit/sdk/commit/c8e9da74d13ad5b8c533d626400feff9364420fa) Thanks [@hippocampusSK](https://github.com/hippocampusSK)! - Expose the address form an address string decodes to, instead of discarding it behind a boolean. Address validation already computed the script type; new siblings surface it without changing any existing validator's return type: (via @swapkit/toolboxes@5.4.0)
|
|
18
|
+
- [#374](https://github.com/swapkit/sdk/pull/374) [`54d0f14`](https://github.com/swapkit/sdk/commit/54d0f14ec3d58e66b0036ad6c8dcfd0f823dbd2a) Thanks [@ice-chillios](https://github.com/ice-chillios)! - `getAddressValidator` now handles the Substrate chains. Polkadot (DOT) and Chainflip (FLIP) had no arm in the chain match, so they fell through to the catch-all and every address — including valid ones — was reported as invalid. Consumers of `swapKit.validateAddress`, which is built on this validator, were affected; the server-side `validateChainAddress` already covered these chains. (via @swapkit/toolboxes@5.4.0)
|
|
19
|
+
- [#393](https://github.com/swapkit/sdk/pull/393) [`25570ca`](https://github.com/swapkit/sdk/commit/25570ca23f90b4ed104061b5561c35ab1c47f1c6) Thanks [@hippocampusSK](https://github.com/hippocampusSK)! - **One table describes the UTXO script types.** `@swapkit/helpers` now exports `UTXOScriptType` (with `P2SH_P2WPKH` and `P2TR` alongside `P2PKH` and `P2WPKH`), `UTXO_SCRIPT_TYPES` (BIP43 purpose, input and output size in vBytes, witness flag per type), `UTXO_SCRIPT_TYPE_LIST`, and the path helpers `getPurposeFromPath`, `getUTXOScriptTypeForPurpose` and `getUTXOScriptTypeForPath`. Error key `toolbox_utxo_unsupported_script_type` (50315) is reserved for the toolboxes. (via @swapkit/toolboxes@5.4.0)
|
|
20
|
+
- [#391](https://github.com/swapkit/sdk/pull/391) [`cf94a27`](https://github.com/swapkit/sdk/commit/cf94a27a52ac37c78d3a72bbbe7ee3acf14c192e) Thanks [@hippocampusSK](https://github.com/hippocampusSK)! - **Eight fixes to the UTXO send path**, reached today by external signers spending from legacy Bitcoin and Litecoin addresses, and by every chain without segwit. (via @swapkit/toolboxes@5.4.0)
|
|
21
|
+
- [#391](https://github.com/swapkit/sdk/pull/391) [`cf94a27`](https://github.com/swapkit/sdk/commit/cf94a27a52ac37c78d3a72bbbe7ee3acf14c192e) Thanks [@hippocampusSK](https://github.com/hippocampusSK)! - **Three fixes to `createReplacementTransaction`/`bumpFee`** (Bitcoin, the only chain in `rbfSupportedChains`): (via @swapkit/toolboxes@5.4.0)
|
|
22
|
+
- [#379](https://github.com/swapkit/sdk/pull/379) [`4450ac4`](https://github.com/swapkit/sdk/commit/4450ac4200a565d5ce38a26d31f3836a3713ff75) Thanks [@ice-chillios](https://github.com/ice-chillios)! - `derivationPathToString` now accepts sliced derivation paths through the new `DerivationPathLike` (`readonly (number | undefined)[]`) type, so prefixes no longer need to be cast to `DerivationPathArray`. (via @swapkit/toolboxes@5.4.0)
|
|
23
|
+
- [#362](https://github.com/swapkit/sdk/pull/362) [`cbbfccd`](https://github.com/swapkit/sdk/commit/cbbfccdcbbe3e5ad3ffb531a030e2562c8e3f470) Thanks [@towanTG](https://github.com/towanTG)! - Preserve stored numeric precision across comparisons, arithmetic operands, copies, `set`, and AssetValue conversion instead of converting through display-rounded strings. Compare exact values regardless of declared asset decimals, and cap arithmetic results at 64 decimal places without mis-scaling longer inputs or turning small nonzero divisors into zero. Fix half-up display carries and explicit base-unit rescaling while preserving asset identity and destination decimals. (via @swapkit/toolboxes@5.4.0)
|
|
24
|
+
- [#399](https://github.com/swapkit/sdk/pull/399) [`70749e7`](https://github.com/swapkit/sdk/commit/70749e7899630daabc371a36c498f62b9da1c62f) Thanks [@github-actions](https://github.com/apps/github-actions)! - Update generated token lists. (via @swapkit/toolboxes@5.4.0)
|
|
25
|
+
- [#374](https://github.com/swapkit/sdk/pull/374) [`54d0f14`](https://github.com/swapkit/sdk/commit/54d0f14ec3d58e66b0036ad6c8dcfd0f823dbd2a) Thanks [@ice-chillios](https://github.com/ice-chillios)! - `ChainflipBroker.fundStateChainAccount` accepts a hex state chain account explicitly instead of relying on the substrate address validator, which no longer treats hex as an address. Hex accounts must now be a full 32-byte `AccountId32`; shorter hex values used to pass validation and then fail in the gateway call. (via @swapkit/plugins@5.0.7)
|
|
26
|
+
|
|
3
27
|
## 5.0.6
|
|
4
28
|
|
|
5
29
|
### Patch Changes
|
package/dist/types/index.d.ts
CHANGED
|
@@ -444,6 +444,178 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
444
444
|
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
445
445
|
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
446
446
|
};
|
|
447
|
+
ARC: ChainWallet<Chain.Arc> & {
|
|
448
|
+
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
|
|
449
|
+
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
450
|
+
broadcastTransaction: (signedTx: string) => Promise<import("ethers").TransactionResponse>;
|
|
451
|
+
call: <T_1>({ callProvider, contractAddress, abi, funcName, funcParams, txOverrides, feeOption, }: import("@swapkit/toolboxes/evm").CallParams) => Promise<T_1>;
|
|
452
|
+
createApprovalTx: ({ assetAddress, spenderAddress, amount, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<{
|
|
453
|
+
value: string;
|
|
454
|
+
to: string;
|
|
455
|
+
data: string;
|
|
456
|
+
from?: string;
|
|
457
|
+
type?: number;
|
|
458
|
+
nonce?: number;
|
|
459
|
+
gasLimit?: bigint;
|
|
460
|
+
gasPrice?: bigint;
|
|
461
|
+
maxPriorityFeePerGas?: bigint;
|
|
462
|
+
maxFeePerGas?: bigint;
|
|
463
|
+
chainId?: bigint;
|
|
464
|
+
accessList?: import("ethers").AccessList;
|
|
465
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
466
|
+
customData?: any;
|
|
467
|
+
blockTag?: import("ethers").BlockTag;
|
|
468
|
+
enableCcipRead?: boolean;
|
|
469
|
+
}>;
|
|
470
|
+
createContract: (address: string, abi: readonly (import("ethers").JsonFragment | import("ethers").Fragment)[]) => import("ethers").Contract;
|
|
471
|
+
createContractTxObject: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").CallParams) => Promise<{
|
|
472
|
+
value: string;
|
|
473
|
+
to: string;
|
|
474
|
+
data: string;
|
|
475
|
+
from?: string;
|
|
476
|
+
type?: number;
|
|
477
|
+
nonce?: number;
|
|
478
|
+
gasLimit?: bigint;
|
|
479
|
+
gasPrice?: bigint;
|
|
480
|
+
maxPriorityFeePerGas?: bigint;
|
|
481
|
+
maxFeePerGas?: bigint;
|
|
482
|
+
chainId?: bigint;
|
|
483
|
+
accessList?: import("ethers").AccessList;
|
|
484
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
485
|
+
customData?: any;
|
|
486
|
+
blockTag?: import("ethers").BlockTag;
|
|
487
|
+
enableCcipRead?: boolean;
|
|
488
|
+
}>;
|
|
489
|
+
createTransaction: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
490
|
+
gasLimit: bigint;
|
|
491
|
+
value: string;
|
|
492
|
+
data: string;
|
|
493
|
+
from: string;
|
|
494
|
+
to: string;
|
|
495
|
+
maxFeePerGas: bigint;
|
|
496
|
+
maxPriorityFeePerGas: bigint;
|
|
497
|
+
gasPrice?: undefined;
|
|
498
|
+
type?: number | undefined;
|
|
499
|
+
nonce?: number | undefined;
|
|
500
|
+
} | {
|
|
501
|
+
gasLimit: bigint;
|
|
502
|
+
value: string;
|
|
503
|
+
data: string;
|
|
504
|
+
from: string;
|
|
505
|
+
to: string;
|
|
506
|
+
gasPrice: bigint;
|
|
507
|
+
maxFeePerGas?: undefined;
|
|
508
|
+
maxPriorityFeePerGas?: undefined;
|
|
509
|
+
type?: number | undefined;
|
|
510
|
+
nonce?: number | undefined;
|
|
511
|
+
} | {
|
|
512
|
+
value: string;
|
|
513
|
+
to: string;
|
|
514
|
+
data: string;
|
|
515
|
+
from?: string;
|
|
516
|
+
type?: number;
|
|
517
|
+
nonce?: number;
|
|
518
|
+
gasLimit?: bigint;
|
|
519
|
+
gasPrice?: bigint;
|
|
520
|
+
maxPriorityFeePerGas?: bigint;
|
|
521
|
+
maxFeePerGas?: bigint;
|
|
522
|
+
chainId?: bigint;
|
|
523
|
+
accessList?: import("ethers").AccessList;
|
|
524
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
525
|
+
customData?: any;
|
|
526
|
+
blockTag?: import("ethers").BlockTag;
|
|
527
|
+
enableCcipRead?: boolean;
|
|
528
|
+
}>;
|
|
529
|
+
createTransferTx: ({ assetValue, authorizations, memo, recipient, data, feeOptionKey, gasLimit, sender: fromOverride, sweep, type, maxFeePerGas, maxPriorityFeePerGas, gasPrice, ...tx }: import("@swapkit/toolboxes/evm").EVMCreateTransactionParams) => Promise<{
|
|
530
|
+
gasLimit: bigint;
|
|
531
|
+
value: string;
|
|
532
|
+
data: string;
|
|
533
|
+
from: string;
|
|
534
|
+
to: string;
|
|
535
|
+
maxFeePerGas: bigint;
|
|
536
|
+
maxPriorityFeePerGas: bigint;
|
|
537
|
+
gasPrice?: undefined;
|
|
538
|
+
type?: number | undefined;
|
|
539
|
+
nonce?: number | undefined;
|
|
540
|
+
} | {
|
|
541
|
+
gasLimit: bigint;
|
|
542
|
+
value: string;
|
|
543
|
+
data: string;
|
|
544
|
+
from: string;
|
|
545
|
+
to: string;
|
|
546
|
+
gasPrice: bigint;
|
|
547
|
+
maxFeePerGas?: undefined;
|
|
548
|
+
maxPriorityFeePerGas?: undefined;
|
|
549
|
+
type?: number | undefined;
|
|
550
|
+
nonce?: number | undefined;
|
|
551
|
+
} | {
|
|
552
|
+
value: string;
|
|
553
|
+
to: string;
|
|
554
|
+
data: string;
|
|
555
|
+
from?: string;
|
|
556
|
+
type?: number;
|
|
557
|
+
nonce?: number;
|
|
558
|
+
gasLimit?: bigint;
|
|
559
|
+
gasPrice?: bigint;
|
|
560
|
+
maxPriorityFeePerGas?: bigint;
|
|
561
|
+
maxFeePerGas?: bigint;
|
|
562
|
+
chainId?: bigint;
|
|
563
|
+
accessList?: import("ethers").AccessList;
|
|
564
|
+
authorizationList?: Array<import("ethers").Authorization>;
|
|
565
|
+
customData?: any;
|
|
566
|
+
blockTag?: import("ethers").BlockTag;
|
|
567
|
+
enableCcipRead?: boolean;
|
|
568
|
+
}>;
|
|
569
|
+
EIP1193SendTransaction: ({ value, ...params }: import("@swapkit/toolboxes/evm").EVMTxParams | import("ethers").ContractTransaction) => Promise<string>;
|
|
570
|
+
estimateCall: ({ contractAddress, abi, funcName, funcParams, txOverrides }: import("@swapkit/toolboxes/evm").EstimateCallParams) => Promise<bigint>;
|
|
571
|
+
estimateGasLimit: ({ assetValue, recipient, memo, data, sender, funcName, funcParams, txOverrides, }: import("@swapkit/toolboxes/evm").EVMTransferParams & {
|
|
572
|
+
assetValue: import("@swapkit/helpers").AssetValue;
|
|
573
|
+
funcName?: string;
|
|
574
|
+
funcParams?: unknown[];
|
|
575
|
+
txOverrides?: import("@swapkit/toolboxes/evm").EVMTxParams;
|
|
576
|
+
data?: string;
|
|
577
|
+
}) => Promise<bigint>;
|
|
578
|
+
estimateGasPrices: () => Promise<{
|
|
579
|
+
average: {
|
|
580
|
+
gasPrice?: bigint;
|
|
581
|
+
l1GasPrice?: bigint;
|
|
582
|
+
maxFeePerGas?: bigint;
|
|
583
|
+
maxPriorityFeePerGas?: bigint;
|
|
584
|
+
};
|
|
585
|
+
fast: {
|
|
586
|
+
gasPrice?: bigint;
|
|
587
|
+
l1GasPrice?: bigint;
|
|
588
|
+
maxFeePerGas?: bigint;
|
|
589
|
+
maxPriorityFeePerGas?: bigint;
|
|
590
|
+
};
|
|
591
|
+
fastest: {
|
|
592
|
+
gasPrice?: bigint;
|
|
593
|
+
l1GasPrice?: bigint;
|
|
594
|
+
maxFeePerGas?: bigint;
|
|
595
|
+
maxPriorityFeePerGas?: bigint;
|
|
596
|
+
};
|
|
597
|
+
}>;
|
|
598
|
+
estimateTransactionFee: ({ feeOption, ...txObject }: import("@swapkit/toolboxes/evm").EIP1559TxParams & {
|
|
599
|
+
feeOption: FeeOption;
|
|
600
|
+
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
601
|
+
getAddress: () => string | Promise<string> | undefined;
|
|
602
|
+
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
603
|
+
getNetworkParams: () => import("@swapkit/helpers").NetworkParams | undefined;
|
|
604
|
+
isApproved: ({ assetAddress, spenderAddress, from, amount }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<boolean>;
|
|
605
|
+
sendTransaction: ({ feeOptionKey, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTxParams & {
|
|
606
|
+
feeOptionKey?: FeeOption;
|
|
607
|
+
sweep?: boolean;
|
|
608
|
+
}) => Promise<string>;
|
|
609
|
+
signAuthorization: ((params: {
|
|
610
|
+
address: string;
|
|
611
|
+
nonce?: number | bigint;
|
|
612
|
+
chainId?: bigint;
|
|
613
|
+
}) => Promise<import("ethers").Authorization>) | undefined;
|
|
614
|
+
signMessage: ((message: string | Uint8Array) => Promise<string>) | undefined;
|
|
615
|
+
signTypedData: (({ domain, types, value }: import("@swapkit/toolboxes/evm").SignTypedDataParams) => Promise<string>) | undefined;
|
|
616
|
+
transfer: ({ assetValue, memo, recipient, feeOptionKey, sender, sweep, ...tx }: import("@swapkit/toolboxes/evm").EVMTransferParams) => Promise<string>;
|
|
617
|
+
validateAddress: typeof import("@swapkit/toolboxes/evm").validateEVMAddress;
|
|
618
|
+
};
|
|
447
619
|
AURORA: ChainWallet<Chain.Aurora> & {
|
|
448
620
|
approve: ({ assetAddress, spenderAddress, feeOptionKey, amount, gasLimitFallback, from: fromParam, nonce, }: import("@swapkit/toolboxes/evm").ApproveParams) => Promise<string>;
|
|
449
621
|
approvedAmount: ({ assetAddress, spenderAddress, from }: import("@swapkit/toolboxes/evm").IsApprovedParams) => Promise<bigint>;
|
|
@@ -1373,6 +1545,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1373
1545
|
getAddressFromKeys: (keys: {
|
|
1374
1546
|
publicKey: Uint8Array;
|
|
1375
1547
|
}) => string;
|
|
1548
|
+
getAddressType: (address: string) => "pkh" | "sh" | "sprout" | "sapling" | "unified" | "wpkh" | "wsh" | "tr" | null;
|
|
1376
1549
|
getBalance: (address: string, scamFilter?: boolean) => Promise<AssetValue[]>;
|
|
1377
1550
|
getExtendedPublicKey: () => string | undefined;
|
|
1378
1551
|
getExtendedPublicKeyInfo: ({ accountIndex }?: {
|
|
@@ -1437,7 +1610,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1437
1610
|
recipient: string;
|
|
1438
1611
|
assetValue: AssetValue;
|
|
1439
1612
|
memo?: string;
|
|
1440
|
-
feeRate
|
|
1613
|
+
feeRate? /**
|
|
1614
|
+
* @Public
|
|
1615
|
+
*/: number;
|
|
1441
1616
|
feeOptionKey?: FeeOption;
|
|
1442
1617
|
changeAddress?: string;
|
|
1443
1618
|
sweep?: boolean;
|
|
@@ -1534,6 +1709,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
1534
1709
|
feeRate?: number;
|
|
1535
1710
|
fetchTxHex?: boolean;
|
|
1536
1711
|
}) => Promise<import("@swapkit/helpers").AssetValue>;
|
|
1712
|
+
getAddressType: (address: string) => "pkh" | "sh" | "sprout" | "sapling" | "unified" | "wpkh" | "wsh" | "tr" | null;
|
|
1537
1713
|
getExtendedPublicKey: () => string | undefined;
|
|
1538
1714
|
getExtendedPublicKeyInfo: ({ accountIndex }?: {
|
|
1539
1715
|
accountIndex?: number;
|
|
@@ -2411,6 +2587,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2411
2587
|
getAddressFromKeys: (keys: {
|
|
2412
2588
|
publicKey: Uint8Array;
|
|
2413
2589
|
}) => string;
|
|
2590
|
+
getAddressType: (address: string) => "pkh" | "sh" | "sprout" | "sapling" | "unified" | "wpkh" | "wsh" | "tr" | null;
|
|
2414
2591
|
getBalance: (address: string, scamFilter?: boolean) => Promise<AssetValue[]>;
|
|
2415
2592
|
getExtendedPublicKey: () => string | undefined;
|
|
2416
2593
|
getExtendedPublicKeyInfo: ({ accountIndex }?: {
|
|
@@ -2475,7 +2652,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2475
2652
|
recipient: string;
|
|
2476
2653
|
assetValue: AssetValue;
|
|
2477
2654
|
memo?: string;
|
|
2478
|
-
feeRate
|
|
2655
|
+
feeRate? /**
|
|
2656
|
+
* @Public
|
|
2657
|
+
*/: number;
|
|
2479
2658
|
feeOptionKey?: FeeOption;
|
|
2480
2659
|
changeAddress?: string;
|
|
2481
2660
|
sweep?: boolean;
|
|
@@ -2545,6 +2724,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2545
2724
|
getAddressFromKeys: (keys: {
|
|
2546
2725
|
publicKey: Uint8Array;
|
|
2547
2726
|
}) => string;
|
|
2727
|
+
getAddressType: (address: string) => "pkh" | "sh" | "sprout" | "sapling" | "unified" | "wpkh" | "wsh" | "tr" | null;
|
|
2548
2728
|
getBalance: (address: string, scamFilter?: boolean) => Promise<AssetValue[]>;
|
|
2549
2729
|
getExtendedPublicKey: () => string | undefined;
|
|
2550
2730
|
getExtendedPublicKeyInfo: ({ accountIndex }?: {
|
|
@@ -2609,7 +2789,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
2609
2789
|
recipient: string;
|
|
2610
2790
|
assetValue: AssetValue;
|
|
2611
2791
|
memo?: string;
|
|
2612
|
-
feeRate
|
|
2792
|
+
feeRate? /**
|
|
2793
|
+
* @Public
|
|
2794
|
+
*/: number;
|
|
2613
2795
|
feeOptionKey?: FeeOption;
|
|
2614
2796
|
changeAddress?: string;
|
|
2615
2797
|
sweep?: boolean;
|
|
@@ -3311,6 +3493,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3311
3493
|
getAddressFromKeys: (keys: {
|
|
3312
3494
|
publicKey: Uint8Array;
|
|
3313
3495
|
}) => string;
|
|
3496
|
+
getAddressType: (address: string) => "pkh" | "sh" | "sprout" | "sapling" | "unified" | "wpkh" | "wsh" | "tr" | null;
|
|
3314
3497
|
getBalance: (address: string, scamFilter?: boolean) => Promise<AssetValue[]>;
|
|
3315
3498
|
getExtendedPublicKey: () => string | undefined;
|
|
3316
3499
|
getExtendedPublicKeyInfo: ({ accountIndex }?: {
|
|
@@ -3375,7 +3558,9 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
3375
3558
|
recipient: string;
|
|
3376
3559
|
assetValue: AssetValue;
|
|
3377
3560
|
memo?: string;
|
|
3378
|
-
feeRate
|
|
3561
|
+
feeRate? /**
|
|
3562
|
+
* @Public
|
|
3563
|
+
*/: number;
|
|
3379
3564
|
feeOptionKey?: FeeOption;
|
|
3380
3565
|
changeAddress?: string;
|
|
3381
3566
|
sweep?: boolean;
|
|
@@ -5441,6 +5626,7 @@ export declare function SwapKit<Plugins extends ReturnType<typeof createPlugin>,
|
|
|
5441
5626
|
getAddressFromKeys: (keys: {
|
|
5442
5627
|
publicKey: Uint8Array;
|
|
5443
5628
|
}) => string;
|
|
5629
|
+
getAddressType: (address: string) => "pkh" | "sh" | "sprout" | "sapling" | "unified" | "wpkh" | "wsh" | "tr" | null;
|
|
5444
5630
|
getBalance: (address: string, scamFilter?: boolean) => Promise<import("@swapkit/helpers").AssetValue[]>;
|
|
5445
5631
|
getExtendedPublicKey: () => string | undefined;
|
|
5446
5632
|
getExtendedPublicKeyInfo: ({ accountIndex }?: {
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "swapkit-dev",
|
|
3
3
|
"dependencies": {
|
|
4
|
-
"@swapkit/helpers": "5.
|
|
5
|
-
"@swapkit/plugins": "5.0.
|
|
6
|
-
"@swapkit/toolboxes": "5.
|
|
7
|
-
"@swapkit/wallet-core": "5.0.
|
|
4
|
+
"@swapkit/helpers": "5.4.1",
|
|
5
|
+
"@swapkit/plugins": "5.0.8",
|
|
6
|
+
"@swapkit/toolboxes": "5.4.1",
|
|
7
|
+
"@swapkit/wallet-core": "5.0.8"
|
|
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.0.
|
|
37
|
+
"version": "5.0.8"
|
|
38
38
|
}
|