Skip to content

Commit

Permalink
web-wallet: Update Wallet service to use dusk-wallet-js 0.4.4
Browse files Browse the repository at this point in the history
  • Loading branch information
ascartabelli authored and nortonandreev committed Aug 22, 2024
1 parent 20a9006 commit f2e899a
Show file tree
Hide file tree
Showing 39 changed files with 11,558 additions and 213 deletions.
7 changes: 6 additions & 1 deletion web-wallet/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,15 @@ node_modules
/.svelte-kit
/package
.env
.env.*
.env.\*
!.env.example

# Ignore files for PNPM, NPM and YARN

pnpm-lock.yaml
package-lock.json
yarn.lock

# Ignore locally served libs

lib
3 changes: 3 additions & 0 deletions web-wallet/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Ignore locally served libs

lib
6 changes: 6 additions & 0 deletions web-wallet/CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

- Add option to sync from a custom block height on Wallet Restoration [#1568]
- Show current block height on Wallet Creation [#1561]
- Added gas settings validation on Unstake / Widthdraw Rewards flows [#2000]

### Changed

- Newly created Wallet does not sync from genesis [#1567]
- Update font-display to swap for custom fonts to improve performance [#2026]
- Update anchor colors to ensure better accessibility [#1765]
- Update Transactions list design [#1922]
Expand Down Expand Up @@ -225,7 +228,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
[#1545]: https://github.com/dusk-network/rusk/issues/1545
[#1547]: https://github.com/dusk-network/rusk/issues/1547
[#1552]: https://github.com/dusk-network/rusk/issues/1552
[#1561]: https://github.com/dusk-network/rusk/issues/1561
[#1565]: https://github.com/dusk-network/rusk/issues/1565
[#1568]: https://github.com/dusk-network/rusk/issues/1568
[#1567]: https://github.com/dusk-network/rusk/issues/1567
[#1576]: https://github.com/dusk-network/rusk/issues/1576
[#1591]: https://github.com/dusk-network/rusk/issues/1591
[#1598]: https://github.com/dusk-network/rusk/issues/1598
Expand Down
10 changes: 5 additions & 5 deletions web-wallet/__mocks__/Wallet.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
class Wallet {
constructor(seed, gasLimit = 2900000000, gasPrice = 1) {
this.gasLimit = gasLimit;
this.gasPrice = gasPrice;
constructor(seed) {
this.seed = seed;
this.wasm = {};
}

gasLimit;
gasPrice;
static get networkBlockHeight() {
return Promise.resolve(0);
}

seed;
wasm;

Expand Down
3 changes: 2 additions & 1 deletion web-wallet/jsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@
"./node_modules/@testing-library/jest-dom/types/vitest.d.ts",
"lamb-types"
]
}
},
"exclude": ["./lib"]
}
2 changes: 2 additions & 0 deletions web-wallet/lib/dusk-wallet-js/dusk_wallet_core.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions web-wallet/lib/dusk-wallet-js/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { Wallet } from "./wallet.js";
13 changes: 13 additions & 0 deletions web-wallet/lib/dusk-wallet-js/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"name": "@dusk-network/dusk-wallet-js",
"version": "0.0.0",
"main": "index.js",
"exports": {
".": "./wallet.js"
},
"files": [
"dusk_wallet_core.js",
"wallet.js",
"index.js"
]
}
Loading

0 comments on commit f2e899a

Please sign in to comment.