-
Notifications
You must be signed in to change notification settings - Fork 0
feat: DEFI-2671: schedule task for processing withdrawals #48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
bcf34bf
e47b9e4
c842913
b55b8a2
d787c74
11329e9
3c9ab21
6140a01
f6bf491
122cd02
ac07f54
2b668af
025f466
4b936d5
f7b8aa2
9af949d
a788455
94339b8
3ee8179
aa0c0ac
7eb11f0
ac29698
6c576c8
79fa9a4
1bdcc61
a4ec853
b921445
d3ea570
290a1ea
0832d69
1cefdc3
0e7644d
fcaac88
865a179
8345a63
c07cc54
4dc482e
27c930e
500e445
dcb8495
d2775ca
9450205
5a548dc
61543a5
dc334d2
a908be2
a0e3a37
b0d0ad7
25cabd2
6aa53e5
90d334e
db65a1f
9aeca1e
cfcf254
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -207,10 +207,6 @@ pub enum WithdrawSolStatus { | |||||
| /// Withdrawal request is waiting to be processed. | ||||||
| Pending, | ||||||
|
|
||||||
|
maciejdfinity marked this conversation as resolved.
|
||||||
| /// Transaction fees were estimated and a Solana transaction was created. | ||||||
| /// Transaction is not signed yet. | ||||||
| TxCreated, | ||||||
|
|
||||||
| /// Solana transaction was signed and is sent to the network. | ||||||
|
||||||
| /// Solana transaction was signed and is sent to the network. | |
| /// Solana transaction was signed and is ready to be sent to the network. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -208,10 +208,6 @@ type WithdrawSolStatus = variant { | |
| // Withdrawal request is waiting to be processed. | ||
| Pending; | ||
|
|
||
|
maciejdfinity marked this conversation as resolved.
|
||
| // Transaction fees were estimated and a Solana transaction was created. | ||
| // Transaction is not signed yet. | ||
| TxCreated; | ||
|
|
||
| // Solana transaction was signed and is sent to the network. | ||
|
maciejdfinity marked this conversation as resolved.
|
||
| TxSent : SolTransaction; | ||
|
|
||
|
Comment on lines
211
to
213
|
||
|
|
@@ -299,6 +295,11 @@ type EventType = variant { | |
| // and the amount consolidated from each account. | ||
| deposits: vec record { Account; Lamport }; | ||
| }; | ||
| // A withdrawal transaction was signed and is ready to be sent to the network. | ||
| SentWithdrawalTransaction : record { | ||
| // The burn block indices and corresponding transaction signatures. | ||
| transactions: vec record { nat64; Signature }; | ||
| }; | ||
| // A previously submitted transaction was resubmitted with a new signature. | ||
| ResubmittedTransaction : record { | ||
| // The signature of the old transaction being replaced. | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,8 +29,8 @@ pub enum CreateTransferError { | |
| } | ||
|
|
||
| /// Creates a signed Solana transaction that transfers lamports from | ||
| /// each minter-controlled address (identified by its account) to the | ||
| /// destination account's derived address. | ||
| /// each minter-controlled address (identified by its account) | ||
| /// to `target_address` Solana address. | ||
| /// | ||
| /// Returns the signed transaction and the list of signer accounts | ||
| /// (in signature order: fee payer first, then sources). | ||
|
|
@@ -41,7 +41,7 @@ pub enum CreateTransferError { | |
| pub async fn create_signed_transfer_transaction( | ||
| fee_payer_account: Account, | ||
| sources: &[(Account, Lamport)], | ||
| destination_account: Account, | ||
| target_address: Address, | ||
| recent_blockhash: Hash, | ||
|
Comment on lines
41
to
45
|
||
| signer: &impl SchnorrSigner, | ||
| ) -> Result<(Transaction, Vec<Account>), CreateTransferError> { | ||
|
|
@@ -52,7 +52,6 @@ pub async fn create_signed_transfer_transaction( | |
| (derivation_path, public_key.serialize_raw().into()) | ||
| }; | ||
|
|
||
| let (_, target_address) = derive_address(&destination_account); | ||
| let (fee_payer_derivation_path, fee_payer_address) = derive_address(&fee_payer_account); | ||
|
|
||
| let (source_derivation_paths, source_addresses): (Vec<_>, Vec<_>) = sources | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.