Skip to content

Commit

Permalink
Add ledger module
Browse files Browse the repository at this point in the history
  • Loading branch information
earrietadev committed Dec 5, 2024
1 parent d8933ae commit 397ed62
Show file tree
Hide file tree
Showing 10 changed files with 1,154 additions and 100 deletions.
7 changes: 7 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,11 @@
</div>
<br><br>

<script type='module'>
import { Buffer } from 'buffer';
window.Buffer = Buffer;
</script>

<script type='module'>
import {
StellarWalletsKit,
Expand All @@ -81,12 +86,14 @@
allowAllModules,
} from './build/index.js';
import { WalletConnectModule, WalletConnectAllowedMethods } from './build/modules/walletconnect.module.js'
import { LedgerModule } from './build/modules/ledger.module.js'

const kit = new StellarWalletsKit({
selectedWalletId: XBULL_ID,
network: WalletNetwork.TESTNET,
modules: [
...allowAllModules(),
new LedgerModule(),
new WalletConnectModule({
url: 'https://stellarwalletskit.dev/',
projectId: '4e0b84f6ba6bedf7c7f041d919a9f039',
Expand Down
10 changes: 8 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@
"dependencies": {
"@albedo-link/intent": "0.12.0",
"@creit.tech/xbull-wallet-connect": "0.3.0",
"@ledgerhq/hw-app-str": "^7.0.4",
"@ledgerhq/hw-transport": "^6.31.4",
"@ledgerhq/hw-transport-webusb": "^6.29.4",
"@lobstrco/signer-extension-api": "1.0.0-beta.0",
"@ngneat/elf": "2.5.1",
"@ngneat/elf-devtools": "1.3.0",
Expand All @@ -50,6 +53,9 @@
"lit": "3.2.0",
"rxjs": "7.8.1"
},
"peerDependencies": {
"@stellar/stellar-base": "^12.1.1"
},
"devDependencies": {
"@ngneat/elf-cli": "3.1.0",
"@rollup/plugin-terser": "0.4.4",
Expand All @@ -61,10 +67,10 @@
"eslint": "9.9.1",
"prettier": "3.3.3",
"rimraf": "6.0.1",
"rollup": "4.21.0",
"rollup": "4.27.2",
"rollup-plugin-esbuild": "6.1.1",
"rollup-watch": "4.3.1",
"typescript": "5.5.4",
"vite": "5.4.2"
"vite": "5.4.11"
}
}
Loading

0 comments on commit 397ed62

Please sign in to comment.