Skip to content
This repository has been archived by the owner on Apr 25, 2024. It is now read-only.

Commit

Permalink
feat: add support for wallet uuid in configs (#297)
Browse files Browse the repository at this point in the history
* feat: add support for wallet uuid in configs

* chore(deps): update dependencies for new features
  • Loading branch information
bucko13 authored Apr 4, 2023
1 parent e28d856 commit 6675db4
Show file tree
Hide file tree
Showing 8 changed files with 266 additions and 19 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ build/
.DS_Store
junit.xml
.vscode
.npmrc
251 changes: 235 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@
"redux-thunk": "^2.3.0",
"reselect": "^4.0.0",
"sass": "^1.56.2",
"unchained-bitcoin": "^0.3.1",
"unchained-wallets": "^0.4.0"
"unchained-bitcoin": "^0.4.1",
"unchained-wallets": "^0.5.1"
}
}
8 changes: 8 additions & 0 deletions src/actions/walletActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export const UPDATE_DEPOSIT_SLICE = "UPDATE_DEPOSIT_SLICE";
export const UPDATE_CHANGE_SLICE = "UPDATE_CHANGE_SLICE";
export const RESET_NODES_SPEND = "RESET_NODES_SPEND";
export const UPDATE_WALLET_NAME = "UPDATE_WALLET_NAME";
export const UPDATE_WALLET_UUID = "UPDATE_WALLET_UUID";
export const UPDATE_WALLET_MODE = "UPDATE_WALLET_MODE";
export const RESET_WALLET_VIEW = "RESET_WALLET_VIEW";
export const RESET_WALLET = "RESET_WALLET";
Expand Down Expand Up @@ -306,6 +307,13 @@ export function updateWalletNameAction(number, value) {
};
}

export function updateWalletUuidAction(value) {
return {
type: UPDATE_WALLET_UUID,
value,
};
}

export function updateWalletPolicyRegistrationsAction({ xfp, policyHmac }) {
return {
type: UPDATE_POLICY_REGISTRATIONS,
Expand Down
7 changes: 6 additions & 1 deletion src/components/Wallet/RegisterWallet.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,12 @@ const WalletRegistrations = () => {
<Box my={1}>
<Alert severity="info">
<AlertTitle>Wallet Policy Details</AlertTitle>
Policy template: <code>{policy.template}</code>
<p>
Policy template: <code>{policy.template}</code>
</p>
<p>
Wallet Uuid: <code>{policy.name}</code>
</p>
</Alert>
</Box>
)}
Expand Down
Loading

0 comments on commit 6675db4

Please sign in to comment.