-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial pass plumbing API Signed-off-by: sugargoat <[email protected]> * Logic is in place Signed-off-by: sugargoat <[email protected]> * Update to default bool Signed-off-by: sugargoat <[email protected]> * Rename for brevity & clarity Signed-off-by: sugargoat <[email protected]> * Add e2e tests for mode/build mismatch Signed-off-by: sugargoat <[email protected]> * Fix up db and migrations Signed-off-by: sugargoat <[email protected]> * Rename for conciseness & clarity Signed-off-by: sugargoat <[email protected]> * Add require_spend_sudaddress for import_view_only methods Signed-off-by: sugargoat <[email protected]> * Update schema to include autogenerated comment Signed-off-by: sugargoat <[email protected]> * Whitespace Signed-off-by: sugargoat <[email protected]> * Address case for spend even without require, use more proper error type, and clean up tests Signed-off-by: sugargoat <[email protected]> * Minor cleanups Signed-off-by: sugargoat <[email protected]> * Update test name for accuracy Signed-off-by: sugargoat <[email protected]> * Add "enable/disable" Signed-off-by: sugargoat <[email protected]> * add require_spend_subaddress to AccountMap Account model * update AccountSecrets model to expose require_from_subaddress when exporting * Debugging test Signed-off-by: sugargoat <[email protected]> * Rather than enable/disable: set Signed-off-by: sugargoat <[email protected]> * Expose `import` endpoints Signed-off-by: sugargoat <[email protected]> * Fixup import_view_only_account request create Signed-off-by: sugargoat <[email protected]> * Fix clippy Signed-off-by: sugargoat <[email protected]> --------- Signed-off-by: sugargoat <[email protected]> Co-authored-by: Henry Holtzman <[email protected]>
- Loading branch information
Showing
29 changed files
with
558 additions
and
58 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
full-service/migrations/2024-05-21-035622_subaddress-only-account/down.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
-- This file should undo anything in `up.sql` | ||
ALTER TABLE accounts DROP COLUMN require_spend_subaddress; |
3 changes: 3 additions & 0 deletions
3
full-service/migrations/2024-05-21-035622_subaddress-only-account/up.sql
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
-- Your SQL goes here | ||
ALTER TABLE accounts | ||
ADD COLUMN require_spend_subaddress BOOLEAN NOT NULL DEFAULT FALSE; |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.