@vleap/warps-adapter-fastset 0.1.0-beta.40 → 0.1.0-beta.42
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/index.d.cts +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +17 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +17 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.d.cts
CHANGED
|
@@ -27,6 +27,7 @@ declare class WarpFastsetWallet implements AdapterWarpWallet {
|
|
|
27
27
|
create(mnemonic: string): WarpWalletDetails;
|
|
28
28
|
generate(): WarpWalletDetails;
|
|
29
29
|
getAddress(): string | null;
|
|
30
|
+
getPublicKey(): string | null;
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
export { NativeTokenSet, WarpFastsetExecutor, WarpFastsetWallet, getFastsetAdapter };
|
package/dist/index.d.ts
CHANGED
|
@@ -27,6 +27,7 @@ declare class WarpFastsetWallet implements AdapterWarpWallet {
|
|
|
27
27
|
create(mnemonic: string): WarpWalletDetails;
|
|
28
28
|
generate(): WarpWalletDetails;
|
|
29
29
|
getAddress(): string | null;
|
|
30
|
+
getPublicKey(): string | null;
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
export { NativeTokenSet, WarpFastsetExecutor, WarpFastsetWallet, getFastsetAdapter };
|
package/dist/index.js
CHANGED
|
@@ -1507,7 +1507,7 @@ var getConfiguredFastsetClient = (config, chain2) => {
|
|
|
1507
1507
|
var FastsetTokens = [
|
|
1508
1508
|
{
|
|
1509
1509
|
chain: "fastset",
|
|
1510
|
-
identifier: "
|
|
1510
|
+
identifier: "0x37bb8861c49c6f59d869634557245b8640c2de6a2d3dffd6ad4065f6f67989f1",
|
|
1511
1511
|
name: "Ethereum",
|
|
1512
1512
|
symbol: "ETH",
|
|
1513
1513
|
decimals: 18,
|
|
@@ -1540,6 +1540,15 @@ var FastsetTokens = [
|
|
|
1540
1540
|
decimals: 6,
|
|
1541
1541
|
logoUrl: "https://assets.coingecko.com/coins/images/6319/small/USD_Coin_icon.png",
|
|
1542
1542
|
amount: 0n
|
|
1543
|
+
},
|
|
1544
|
+
{
|
|
1545
|
+
chain: "fastset",
|
|
1546
|
+
identifier: "0xfa575e7000000000000000000000000000000000000000000000000000000000",
|
|
1547
|
+
name: "Wrapped SET",
|
|
1548
|
+
symbol: "WSET",
|
|
1549
|
+
decimals: 18,
|
|
1550
|
+
logoUrl: "https://vleap.ai/images/tokens/set.svg",
|
|
1551
|
+
amount: 0n
|
|
1543
1552
|
}
|
|
1544
1553
|
];
|
|
1545
1554
|
|
|
@@ -2942,6 +2951,13 @@ var WarpFastsetWallet = class {
|
|
|
2942
2951
|
getAddress() {
|
|
2943
2952
|
return (0, import_warps5.getWarpWalletAddressFromConfig)(this.config, this.chain.name);
|
|
2944
2953
|
}
|
|
2954
|
+
getPublicKey() {
|
|
2955
|
+
const privateKey = (0, import_warps5.getWarpWalletPrivateKeyFromConfig)(this.config, this.chain.name);
|
|
2956
|
+
if (!privateKey) return null;
|
|
2957
|
+
const privateKeyBytes = hexToUint8Array(privateKey);
|
|
2958
|
+
const publicKey = ed25519_exports.getPublicKey(privateKeyBytes);
|
|
2959
|
+
return uint8ArrayToHex(publicKey);
|
|
2960
|
+
}
|
|
2945
2961
|
};
|
|
2946
2962
|
|
|
2947
2963
|
// src/main.ts
|