@deserialize/multi-vm-wallet 1.5.31 → 1.5.33
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/dist/constant.js +17 -0
- package/dist/walletBip32.js +0 -3
- package/package.json +1 -1
- package/utils/constant.ts +23 -0
- package/utils/walletBip32.ts +3 -3
package/dist/constant.js
CHANGED
|
@@ -19,6 +19,23 @@ exports.DefaultChains = [{
|
|
|
19
19
|
tokens: []
|
|
20
20
|
}
|
|
21
21
|
},
|
|
22
|
+
{
|
|
23
|
+
chainId: 42101,
|
|
24
|
+
name: "Push Chain Donut Testnet",
|
|
25
|
+
rpcUrl: "https://evm.donut.rpc.push.org",
|
|
26
|
+
explorerUrl: "https://donut.push.network",
|
|
27
|
+
nativeToken: {
|
|
28
|
+
name: "PC",
|
|
29
|
+
symbol: "PC",
|
|
30
|
+
decimals: 18,
|
|
31
|
+
},
|
|
32
|
+
testnet: true,
|
|
33
|
+
logoUrl: "https://push.org/assets/website/favicons/favicon.svg",
|
|
34
|
+
vmType: "EVM",
|
|
35
|
+
savings: {
|
|
36
|
+
tokens: []
|
|
37
|
+
}
|
|
38
|
+
},
|
|
22
39
|
{
|
|
23
40
|
chainId: 1,
|
|
24
41
|
name: "Ethereum",
|
package/dist/walletBip32.js
CHANGED
|
@@ -110,9 +110,6 @@ function derivePathEclipticCurve(path, seed) {
|
|
|
110
110
|
.split("/")
|
|
111
111
|
.slice(1)
|
|
112
112
|
.map((seg) => {
|
|
113
|
-
if (!seg.endsWith("'")) {
|
|
114
|
-
throw new Error("Only hardened derivation is supported");
|
|
115
|
-
}
|
|
116
113
|
return parseInt(seg.slice(0, -1), 10) + 0x80000000;
|
|
117
114
|
});
|
|
118
115
|
let hmacResult = (0, hmac_1.hmac)(sha2_1.sha512, buffer_1.Buffer.from("ed25519 seed"), seed);
|
package/package.json
CHANGED
package/utils/constant.ts
CHANGED
|
@@ -18,6 +18,29 @@ export const DefaultChains: ChainWalletConfig[] = [{
|
|
|
18
18
|
tokens: []
|
|
19
19
|
}
|
|
20
20
|
}
|
|
21
|
+
|
|
22
|
+
,
|
|
23
|
+
{
|
|
24
|
+
chainId: 42101,
|
|
25
|
+
name: "Push Chain Donut Testnet",
|
|
26
|
+
rpcUrl: "https://evm.donut.rpc.push.org",
|
|
27
|
+
explorerUrl: "https://donut.push.network",
|
|
28
|
+
nativeToken: {
|
|
29
|
+
name: "PC",
|
|
30
|
+
symbol: "PC",
|
|
31
|
+
decimals: 18,
|
|
32
|
+
},
|
|
33
|
+
testnet: true,
|
|
34
|
+
logoUrl: "https://push.org/assets/website/favicons/favicon.svg",
|
|
35
|
+
vmType: "EVM",
|
|
36
|
+
savings: {
|
|
37
|
+
tokens: []
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
21
44
|
, {
|
|
22
45
|
chainId: 1,
|
|
23
46
|
name: "Ethereum",
|
package/utils/walletBip32.ts
CHANGED
|
@@ -180,9 +180,9 @@ function derivePathEclipticCurve(path: string, seed: Uint8Array): { key: Uint8Ar
|
|
|
180
180
|
.split("/")
|
|
181
181
|
.slice(1)
|
|
182
182
|
.map((seg) => {
|
|
183
|
-
if (!seg.endsWith("'")) {
|
|
184
|
-
|
|
185
|
-
}
|
|
183
|
+
// if (!seg.endsWith("'")) {
|
|
184
|
+
// throw new Error("Only hardened derivation is supported");
|
|
185
|
+
// }
|
|
186
186
|
return parseInt(seg.slice(0, -1), 10) + 0x80000000;
|
|
187
187
|
});
|
|
188
188
|
|