@swapkit/wallet-hardware 4.9.34 → 4.10.0
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/ledger/index.cjs +2 -2
- package/dist/ledger/index.cjs.map +6 -6
- package/dist/ledger/index.js +2 -2
- package/dist/ledger/index.js.map +6 -6
- package/dist/types/ledger/clients/evm.d.ts +1 -0
- package/dist/types/ledger/clients/evm.d.ts.map +1 -1
- package/dist/types/ledger/helpers/getLedgerAddress.d.ts.map +1 -1
- package/dist/types/ledger/helpers/getLedgerClient.d.ts +2 -1
- package/dist/types/ledger/helpers/getLedgerClient.d.ts.map +1 -1
- package/dist/types/ledger/index.d.ts +2 -2
- package/dist/types/ledger/index.d.ts.map +1 -1
- package/package.json +5 -5
- package/src/ledger/clients/evm.ts +1 -0
- package/src/ledger/helpers/getLedgerAddress.ts +1 -0
- package/src/ledger/helpers/getLedgerClient.ts +4 -0
- package/src/ledger/index.ts +3 -0
package/package.json
CHANGED
|
@@ -22,10 +22,10 @@
|
|
|
22
22
|
"@near-js/transactions": "~2.5.0",
|
|
23
23
|
"@scure/base": "2.2.0",
|
|
24
24
|
"@scure/bip32": "2.2.0",
|
|
25
|
-
"@swapkit/helpers": "^5.
|
|
26
|
-
"@swapkit/toolboxes": "^5.
|
|
27
|
-
"@swapkit/utxo-signer": "^3.
|
|
28
|
-
"@swapkit/wallet-core": "^5.0.
|
|
25
|
+
"@swapkit/helpers": "^5.4.1",
|
|
26
|
+
"@swapkit/toolboxes": "^5.4.1",
|
|
27
|
+
"@swapkit/utxo-signer": "^3.1.0",
|
|
28
|
+
"@swapkit/wallet-core": "^5.0.8",
|
|
29
29
|
"@trezor/connect-web": "~9.7.3",
|
|
30
30
|
"cosmjs-types": "~0.10.1",
|
|
31
31
|
"ethers": "^6.14.0",
|
|
@@ -109,5 +109,5 @@
|
|
|
109
109
|
"type-check:go": "tsgo"
|
|
110
110
|
},
|
|
111
111
|
"type": "module",
|
|
112
|
-
"version": "4.
|
|
112
|
+
"version": "4.10.0"
|
|
113
113
|
}
|
|
@@ -189,6 +189,7 @@ type LedgerParams = { provider: Provider; derivationPath?: DerivationPathArray;
|
|
|
189
189
|
|
|
190
190
|
export const ArbitrumLedger = (params: LedgerParams) =>
|
|
191
191
|
new EVMLedgerInterface({ ...params, chainId: ChainId.Arbitrum });
|
|
192
|
+
export const ArcLedger = (params: LedgerParams) => new EVMLedgerInterface({ ...params, chainId: ChainId.Arc });
|
|
192
193
|
export const AuroraLedger = (params: LedgerParams) => new EVMLedgerInterface({ ...params, chainId: ChainId.Aurora });
|
|
193
194
|
export const AvalancheLedger = (params: LedgerParams) =>
|
|
194
195
|
new EVMLedgerInterface({ ...params, chainId: ChainId.Avalanche });
|
|
@@ -4,6 +4,7 @@ import { Chain, type DerivationPathArray, type EVMChain, SwapKitError, WalletOpt
|
|
|
4
4
|
import { CosmosLedger } from "../clients/cosmos";
|
|
5
5
|
import {
|
|
6
6
|
ArbitrumLedger,
|
|
7
|
+
ArcLedger,
|
|
7
8
|
AuroraLedger,
|
|
8
9
|
AvalancheLedger,
|
|
9
10
|
BaseLedger,
|
|
@@ -32,6 +33,7 @@ import { XRPLedger } from "../clients/xrp";
|
|
|
32
33
|
|
|
33
34
|
type LedgerSignerMap = {
|
|
34
35
|
[Chain.Arbitrum]: ReturnType<typeof ArbitrumLedger>;
|
|
36
|
+
[Chain.Arc]: ReturnType<typeof ArcLedger>;
|
|
35
37
|
[Chain.Aurora]: ReturnType<typeof AuroraLedger>;
|
|
36
38
|
[Chain.Avalanche]: ReturnType<typeof AvalancheLedger>;
|
|
37
39
|
[Chain.Base]: ReturnType<typeof BaseLedger>;
|
|
@@ -94,6 +96,7 @@ export const getLedgerClient = async <T extends LedgerSupportedChain>({
|
|
|
94
96
|
})
|
|
95
97
|
.with(
|
|
96
98
|
Chain.Arbitrum,
|
|
99
|
+
Chain.Arc,
|
|
97
100
|
Chain.Aurora,
|
|
98
101
|
Chain.Avalanche,
|
|
99
102
|
Chain.Berachain,
|
|
@@ -113,6 +116,7 @@ export const getLedgerClient = async <T extends LedgerSupportedChain>({
|
|
|
113
116
|
.with(Chain.BinanceSmartChain, () => BinanceSmartChainLedger(params) as LedgerSignerMap[T])
|
|
114
117
|
.with(Chain.Avalanche, () => AvalancheLedger(params) as LedgerSignerMap[T])
|
|
115
118
|
.with(Chain.Arbitrum, () => ArbitrumLedger(params) as LedgerSignerMap[T])
|
|
119
|
+
.with(Chain.Arc, () => ArcLedger(params) as LedgerSignerMap[T])
|
|
116
120
|
.with(Chain.Berachain, () => BerachainLedger(params) as LedgerSignerMap[T])
|
|
117
121
|
.with(Chain.Optimism, () => OptimismLedger(params) as LedgerSignerMap[T])
|
|
118
122
|
.with(Chain.Polygon, () => PolygonLedger(params) as LedgerSignerMap[T])
|
package/src/ledger/index.ts
CHANGED
|
@@ -60,6 +60,7 @@ export const ledgerWallet = createWallet({
|
|
|
60
60
|
},
|
|
61
61
|
directSigningSupport: {
|
|
62
62
|
[Chain.Arbitrum]: true,
|
|
63
|
+
[Chain.Arc]: true,
|
|
63
64
|
[Chain.Aurora]: true,
|
|
64
65
|
[Chain.Avalanche]: true,
|
|
65
66
|
[Chain.Base]: true,
|
|
@@ -88,6 +89,7 @@ export const ledgerWallet = createWallet({
|
|
|
88
89
|
name: "connectLedger",
|
|
89
90
|
supportedChains: [
|
|
90
91
|
Chain.Arbitrum,
|
|
92
|
+
Chain.Arc,
|
|
91
93
|
Chain.Aurora,
|
|
92
94
|
Chain.Avalanche,
|
|
93
95
|
Chain.Base,
|
|
@@ -400,6 +402,7 @@ async function getWalletMethods({
|
|
|
400
402
|
case Chain.Ethereum:
|
|
401
403
|
case Chain.Avalanche:
|
|
402
404
|
case Chain.Arbitrum:
|
|
405
|
+
case Chain.Arc:
|
|
403
406
|
case Chain.Berachain:
|
|
404
407
|
case Chain.Optimism:
|
|
405
408
|
case Chain.Polygon:
|