Skip to content

feat(sdk-core): added OFC BitGo signing on trading accounts object#8666

Open
alextse-bg wants to merge 3 commits intomasterfrom
WCN-217
Open

feat(sdk-core): added OFC BitGo signing on trading accounts object#8666
alextse-bg wants to merge 3 commits intomasterfrom
WCN-217

Conversation

@alextse-bg
Copy link
Copy Markdown
Contributor

TICKET: WCN-217

@linear
Copy link
Copy Markdown

linear Bot commented Apr 30, 2026

@alextse-bg alextse-bg force-pushed the WCN-217 branch 6 times, most recently from 467a1cc to d75bd7a Compare May 5, 2026 16:21
@alextse-bg
Copy link
Copy Markdown
Contributor Author

reimplements the reverted PR: #8624

Taken out the changes to ofcToken/ofc.ts. Changes to these files has no impact on current code path (since we are signing with the user key right now, prv is always passed in). Removing those changes to keep things simple. If there is a need to make the SDK more flexible we can re-introduce the changes.

@alextse-bg
Copy link
Copy Markdown
Contributor Author

@claude

@alextse-bg alextse-bg marked this pull request as ready for review May 5, 2026 17:02
@alextse-bg alextse-bg requested review from a team as code owners May 5, 2026 17:02
@alextse-bg alextse-bg changed the title chore: fixup feat(sdk-core): added OFC BitGo signing on trading accounts object May 5, 2026
@alextse-bg alextse-bg requested a review from zahin-mohammad May 5, 2026 18:13
Comment thread modules/sdk-core/src/bitgo/trading/network/network.ts
Copy link
Copy Markdown
Contributor

@zahin-mohammad zahin-mohammad left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In general lgtm, but please address the as any

Comment thread modules/sdk-core/src/bitgo/trading/iTradingAccount.ts Outdated
Comment thread modules/sdk-core/src/bitgo/trading/iTradingAccount.ts
Comment thread modules/sdk-core/src/bitgo/trading/tradingAccount.ts Outdated
@alextse-bg alextse-bg force-pushed the WCN-217 branch 2 times, most recently from 4c63875 to 4a7666a Compare May 6, 2026 16:30
@alextse-bg alextse-bg requested a review from zahin-mohammad May 6, 2026 16:30
alextse-bg and others added 3 commits May 6, 2026 14:11
make wallet passphrase optional when signing trading account TXs
allow the use of prv when signing trading account TXs

Ticket: WCN-217-1
When no walletPassphrase is present in the request body or environment,
pass undefined to tradingAccount.signPayload() instead of throwing.
The SDK routes passphrase-less signing through KMS internally.

Ticket: WCN-215-1
@alextse-bg
Copy link
Copy Markdown
Contributor Author

@claude

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants