SDP-1614: Add wallet creation type to TSS transactions - #680
Merged
Conversation
philipliu
temporarily deployed
to
Receiver Registration - E2E Integration Tests (Stellar)
May 14, 2025 03:20 — with
GitHub Actions
Inactive
philipliu
temporarily deployed
to
Anchor Integration Tests
May 14, 2025 03:20 — with
GitHub Actions
Inactive
philipliu
force-pushed
the
philip/sdp-1614-tss-table-update
branch
from
May 15, 2025 17:56
753b2b4 to
969c16c
Compare
philipliu
temporarily deployed
to
Anchor Integration Tests
May 15, 2025 17:56 — with
GitHub Actions
Inactive
philipliu
temporarily deployed
to
Receiver Registration - E2E Integration Tests (Stellar)
May 15, 2025 17:56 — with
GitHub Actions
Inactive
philipliu
force-pushed
the
philip/sdp-1614-tss-table-update
branch
from
May 15, 2025 18:29
969c16c to
4881eda
Compare
philipliu
temporarily deployed
to
Anchor Integration Tests
May 15, 2025 18:29 — with
GitHub Actions
Inactive
philipliu
temporarily deployed
to
Receiver Registration - E2E Integration Tests (Stellar)
May 15, 2025 18:29 — with
GitHub Actions
Inactive
philipliu
force-pushed
the
philip/sdp-1614-tss-table-update
branch
from
May 15, 2025 18:33
4881eda to
58a0cf6
Compare
philipliu
temporarily deployed
to
Receiver Registration - E2E Integration Tests (Stellar)
May 15, 2025 18:33 — with
GitHub Actions
Inactive
philipliu
temporarily deployed
to
Anchor Integration Tests
May 15, 2025 18:33 — with
GitHub Actions
Inactive
philipliu
force-pushed
the
philip/sdp-1614-tss-table-update
branch
from
May 15, 2025 18:39
58a0cf6 to
2591fa9
Compare
philipliu
temporarily deployed
to
Anchor Integration Tests
May 15, 2025 18:39 — with
GitHub Actions
Inactive
philipliu
temporarily deployed
to
Receiver Registration - E2E Integration Tests (Stellar)
May 15, 2025 18:39 — with
GitHub Actions
Inactive
philipliu
marked this pull request as ready for review
May 15, 2025 18:44
philipliu
commented
May 15, 2025
Comment on lines
+74
to
+86
| type Payment struct { | ||
| AssetCode string `db:"asset_code"` | ||
| AssetIssuer string `db:"asset_issuer"` | ||
| Amount float64 `db:"amount"` | ||
| Destination string `db:"destination"` | ||
| Memo string `db:"memo"` | ||
| MemoType schema.MemoType `db:"memo_type"` | ||
| } | ||
|
|
||
| type WalletCreation struct { | ||
| PublicKey string `db:"public_key"` | ||
| WasmHash string `db:"wasm_hash"` | ||
| } |
Contributor
Author
There was a problem hiding this comment.
@marcelosalloum brought up whether or not we want to prefix the columns with the transaction type in the database.
I'm leaning towards not doing it since it doesn't really help too much with code readability IMO since we are accessing these fields through the Transaction struct, and it doesn't do much to prevent misuse of these columns. Instead, we are baking a lot of the safety into the validate method, which is called before the methods are inserted into the database.
philipliu
had a problem deploying
to
Anchor Integration Tests
May 22, 2025 21:54 — with
GitHub Actions
Failure
philipliu
had a problem deploying
to
Receiver Registration - E2E Integration Tests (Stellar)
May 22, 2025 21:54 — with
GitHub Actions
Failure
|
Something went wrong with PR preview build please check |
marcelosalloum
approved these changes
May 23, 2025
marcelosalloum
left a comment
Contributor
There was a problem hiding this comment.
LGTM! Plz, feel free to merge it after addressing the comments below.
philipliu
temporarily deployed
to
Receiver Registration - E2E Integration Tests (Stellar)
May 26, 2025 15:39 — with
GitHub Actions
Inactive
philipliu
temporarily deployed
to
Anchor Integration Tests
May 26, 2025 15:39 — with
GitHub Actions
Inactive
philipliu
temporarily deployed
to
Receiver Registration - E2E Integration Tests (Stellar)
May 26, 2025 15:50 — with
GitHub Actions
Inactive
philipliu
temporarily deployed
to
Anchor Integration Tests
May 26, 2025 15:50 — with
GitHub Actions
Inactive
philipliu
force-pushed
the
philip/sdp-1614-tss-table-update
branch
from
May 26, 2025 16:12
6fb232c to
3b46aab
Compare
philipliu
temporarily deployed
to
Anchor Integration Tests
May 26, 2025 16:12 — with
GitHub Actions
Inactive
philipliu
temporarily deployed
to
Receiver Registration - E2E Integration Tests (Stellar)
May 26, 2025 16:12 — with
GitHub Actions
Inactive
philipliu
force-pushed
the
philip/sdp-1614-tss-table-update
branch
from
May 26, 2025 16:15
3b46aab to
ee6c59c
Compare
philipliu
temporarily deployed
to
Anchor Integration Tests
May 26, 2025 16:15 — with
GitHub Actions
Inactive
philipliu
temporarily deployed
to
Receiver Registration - E2E Integration Tests (Stellar)
May 26, 2025 16:15 — with
GitHub Actions
Inactive
|
Something went wrong with PR preview build please check |
philipliu
force-pushed
the
philip/sdp-1614-tss-table-update
branch
from
May 26, 2025 16:19
ee6c59c to
0647693
Compare
philipliu
temporarily deployed
to
Receiver Registration - E2E Integration Tests (Stellar)
May 26, 2025 16:19 — with
GitHub Actions
Inactive
philipliu
temporarily deployed
to
Anchor Integration Tests
May 26, 2025 16:19 — with
GitHub Actions
Inactive
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
The
/embedded-wallets/createendpoint will submit a new type of transaction for wallet creation to TSS. This makes the necessary changes to theTransactionmodel to support building the TSS workers and scheduled jobs/event handlers on top of it.Why
TSS will be submitting wallet creation transactions, but it's built for payment transactions and needs to be generalized to support other transaction types. This will require making changes to the transaction type, the transaction worker, and the payment sync jobs and event handlers.
Known limitations
[TODO or N/A]
Checklist
SDP-1234: Add new featureorChore: Refactor package xyzformat. The Jira ticket code was included if available.CHANGELOG.mdis updated (if applicable)