-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add support for pending send (#48)
- Loading branch information
Showing
6 changed files
with
257 additions
and
124 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,19 @@ | ||
pub(crate) fn current_migrations() -> Vec<&'static str> { | ||
vec![ | ||
"CREATE TABLE IF NOT EXISTS ongoing_swaps ( | ||
"CREATE TABLE IF NOT EXISTS ongoing_receive_swaps ( | ||
id TEXT NOT NULL PRIMARY KEY, | ||
preimage TEXT NOT NULL, | ||
redeem_script TEXT NOT NULL, | ||
blinding_key TEXT NOT NULL, | ||
invoice_amount_sat INTEGER NOT NULL, | ||
onchain_amount_sat INTEGER NOT NULL | ||
onchain_amount_sat INTEGER NOT NULL, | ||
created_at TEXT DEFAULT CURRENT_TIMESTAMP | ||
) STRICT;", | ||
"CREATE TABLE IF NOT EXISTS ongoing_send_swaps ( | ||
id TEXT NOT NULL PRIMARY KEY, | ||
amount_sat INTEGER NOT NULL, | ||
funding_address TEXT NOT NULL, | ||
created_at TEXT DEFAULT CURRENT_TIMESTAMP | ||
) STRICT;", | ||
] | ||
} |
Oops, something went wrong.