@swapkit/helpers 6.1.1 → 6.1.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 +8 -0
- package/dist/api/index.js +1 -1
- package/dist/{chunk-ne9mm59j.js → chunk-8nb97rpv.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/types/modules/assetValue.d.ts +1 -1
- package/dist/types/types/derivationPath.d.ts +1 -1
- package/dist/types/utils/derivationPath.d.ts +2 -2
- package/package.json +4 -4
|
@@ -10,4 +10,4 @@ export type DerivationPathArray = ReturnType<typeof getChainConfig>["networkDeri
|
|
|
10
10
|
* tuples also freezes `getChainConfig(chain).networkDerivationPath` in `@swapkit/types`, which is
|
|
11
11
|
* intentional: nothing may rewrite a chain's derivation path at runtime.
|
|
12
12
|
*/
|
|
13
|
-
export declare const NetworkDerivationPath: Readonly<Record<Chain, readonly [44, 118, 0, 0, 0] | readonly [44, 931, 0, 0, 0] | readonly [number, number, number, number, number] | readonly [44, 683, 0, 0] | readonly [44, 637, 0, 0, 0] | readonly [44, 60, 0, 0, 0] | readonly [44, 397, 0, 0, 0] | readonly [0, 0, 0, 0, 0] | readonly [44, 144, 0, 0, 0] | readonly [44, 501, 0, 0
|
|
13
|
+
export declare const NetworkDerivationPath: Readonly<Record<Chain, readonly [44, 118, 0, 0, 0] | readonly [44, 931, 0, 0, 0] | readonly [number, number, number, number, number] | readonly [44, 683, 0, 0] | readonly [44, 637, 0, 0, 0] | readonly [44, 60, 0, 0, 0] | readonly [44, 397, 0, 0, 0] | readonly [0, 0, 0, 0, 0] | readonly [44, 144, 0, 0, 0] | readonly [44, 501, 0, 0] | readonly [8797555, 1, 0, 0, 0] | readonly [44, 607, 0, 0, 0] | readonly [44, 195, 0, 0, 0] | readonly [44, 148, 0, 0, 0] | readonly [44, 784, 0, 0, 0] | readonly [1852, 1815, 0, 0, 0] | readonly [44, 9004, 0, 0, 0] | readonly [number, number, number, number, (number | undefined)?] | readonly [44, 145, 0, 0, 0] | readonly [84, 2, 0, 0, 0] | readonly [44, 3, 0, 0, 0] | readonly [44, 5, 0, 0, 0] | readonly [44, 133, 0, 0, 0]>>;
|
|
@@ -126,7 +126,7 @@ export declare const ACCOUNT_INDEXED_CHAINS: readonly Chain[];
|
|
|
126
126
|
* index. Multi-chain connectors can isolate that rejection while connecting supported siblings.
|
|
127
127
|
*/
|
|
128
128
|
export declare const SINGLE_WALLET_CHAINS: readonly Chain[];
|
|
129
|
-
export declare function resolveDerivationPath({ chain, derivationPath, index }: ResolveDerivationPathParams): readonly [44, 118, 0, 0, 0] | readonly [44, 931, 0, 0, 0] | readonly [number, number, number, number, number] | readonly [44, 683, 0, 0] | readonly [44, 637, 0, 0, 0] | readonly [44, 60, 0, 0, 0] | readonly [44, 397, 0, 0, 0] | readonly [0, 0, 0, 0, 0] | readonly [44, 144, 0, 0, 0] | readonly [44, 501, 0, 0
|
|
129
|
+
export declare function resolveDerivationPath({ chain, derivationPath, index }: ResolveDerivationPathParams): readonly [44, 118, 0, 0, 0] | readonly [44, 931, 0, 0, 0] | readonly [number, number, number, number, number] | readonly [44, 683, 0, 0] | readonly [44, 637, 0, 0, 0] | readonly [44, 60, 0, 0, 0] | readonly [44, 397, 0, 0, 0] | readonly [0, 0, 0, 0, 0] | readonly [44, 144, 0, 0, 0] | readonly [44, 501, 0, 0] | readonly [8797555, 1, 0, 0, 0] | readonly [44, 607, 0, 0, 0] | readonly [44, 195, 0, 0, 0] | readonly [44, 148, 0, 0, 0] | readonly [44, 784, 0, 0, 0] | readonly [1852, 1815, 0, 0, 0] | readonly [44, 9004, 0, 0, 0] | readonly [number, number, number, number, (number | undefined)?] | readonly [44, 145, 0, 0, 0] | readonly [84, 2, 0, 0, 0] | readonly [44, 3, 0, 0, 0] | readonly [44, 5, 0, 0, 0] | readonly [44, 133, 0, 0, 0];
|
|
130
130
|
export declare function derivationPathToString([network, chainId, account, change, index]: DerivationPathLike, { allHardened }?: {
|
|
131
131
|
allHardened?: boolean;
|
|
132
132
|
}): string;
|
|
@@ -147,7 +147,7 @@ export declare function derivationPathToString([network, chainId, account, chang
|
|
|
147
147
|
* whatever path the chain declares. That is long-standing behaviour and callers rely on nothing
|
|
148
148
|
* throwing here.
|
|
149
149
|
*/
|
|
150
|
-
export declare function getDerivationPathFor({ chain, index, addressIndex, type }: Params): readonly [44, 118, 0, 0, 0] | readonly [44, 931, 0, 0, 0] | readonly [number, number, number, number, number] | readonly [44, 683, 0, 0] | readonly [44, 637, 0, 0, 0] | readonly [44, 60, 0, 0, 0] | readonly [44, 397, 0, 0, 0] | readonly [0, 0, 0, 0, 0] | readonly [44, 144, 0, 0, 0] | readonly [44, 501, 0, 0
|
|
150
|
+
export declare function getDerivationPathFor({ chain, index, addressIndex, type }: Params): readonly [44, 118, 0, 0, 0] | readonly [44, 931, 0, 0, 0] | readonly [number, number, number, number, number] | readonly [44, 683, 0, 0] | readonly [44, 637, 0, 0, 0] | readonly [44, 60, 0, 0, 0] | readonly [44, 397, 0, 0, 0] | readonly [0, 0, 0, 0, 0] | readonly [44, 144, 0, 0, 0] | readonly [44, 501, 0, 0] | readonly [8797555, 1, 0, 0, 0] | readonly [44, 607, 0, 0, 0] | readonly [44, 195, 0, 0, 0] | readonly [44, 148, 0, 0, 0] | readonly [44, 784, 0, 0, 0] | readonly [1852, 1815, 0, 0, 0] | readonly [44, 9004, 0, 0, 0] | readonly [number, number, number, number, (number | undefined)?] | readonly [44, 145, 0, 0, 0] | readonly [84, 2, 0, 0, 0] | readonly [44, 3, 0, 0, 0] | readonly [44, 5, 0, 0, 0] | readonly [44, 133, 0, 0, 0] | number[];
|
|
151
151
|
export declare function getWalletFormatFor(path: string): "legacy" | "p2sh" | "bech32";
|
|
152
152
|
export declare const DerivationPath: Readonly<Record<Chain, string>>;
|
|
153
153
|
export {};
|
package/package.json
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
3
3
|
"dependencies": {
|
|
4
4
|
"@noble/hashes": "2.2.0",
|
|
5
5
|
"@swapkit/contracts": "5.0.0",
|
|
6
|
-
"@swapkit/tokens": "5.0.
|
|
7
|
-
"@swapkit/types": "2.
|
|
6
|
+
"@swapkit/tokens": "5.0.14",
|
|
7
|
+
"@swapkit/types": "2.1.0"
|
|
8
8
|
},
|
|
9
9
|
"description": "SwapKit - Helpers",
|
|
10
|
-
"devDependencies": { "@swapkit/toolboxes": "6.
|
|
10
|
+
"devDependencies": { "@swapkit/toolboxes": "6.3.0" },
|
|
11
11
|
"exports": {
|
|
12
12
|
".": { "default": "./dist/index.js", "types": "./dist/types/index.d.ts" },
|
|
13
13
|
"./api": { "default": "./dist/api/index.js", "types": "./dist/types/api/index.d.ts" },
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"type-check:go": "tsgo"
|
|
31
31
|
},
|
|
32
32
|
"type": "module",
|
|
33
|
-
"version": "6.1.
|
|
33
|
+
"version": "6.1.2"
|
|
34
34
|
}
|