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
Updated tests

Fix Dashboard tests

Refactor

Bugfixes

Update CopyField to have a disabled property

Refactor

Fix tests

Fixes

Address review comments

Move CopyField to lib/components

Add Error handling to the NetworkSyncPrgress

Add interpolation to the ProgressBar

Updates
  • Loading branch information
ascartabelli authored and nortonandreev committed Aug 31, 2024
1 parent 8879b48 commit e5e7481
Show file tree
Hide file tree
Showing 53 changed files with 12,347 additions and 273 deletions.
6 changes: 5 additions & 1 deletion web-wallet/.eslintignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,14 @@ node_modules
/.svelte-kit
/package
.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,11 +9,14 @@ 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]
- Added allocation (shield/unshield) page and UI [#2196]

### 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 @@ -227,7 +230,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 e5e7481

Please sign in to comment.