Skip to content

feat(sdk-core): add execType to txrequest intent (CSHLD-972)#8972

Draft
bitgo-ai-agent-dev[bot] wants to merge 1 commit into
masterfrom
sreeraj/cshld-972-exec-unspecified-intent
Draft

feat(sdk-core): add execType to txrequest intent (CSHLD-972)#8972
bitgo-ai-agent-dev[bot] wants to merge 1 commit into
masterfrom
sreeraj/cshld-972-exec-unspecified-intent

Conversation

@bitgo-ai-agent-dev

Copy link
Copy Markdown

Summary

  • Adds ExecType enum (EXEC_UNSPECIFIED, EXEC_TRY) to baseTypes.ts, re-exported through the standard utils path
  • Adds optional execType?: ExecType to IntentOptionsBase (input) and PopulatedIntentBase (output), so it is inherited by all intent variants
  • Wires execType from PrebuildTransactionOptions through populateIntent in mpcUtils.ts into the intent object sent to POST /api/v2/wallet/{id}/txrequests
  • Threads execType: params.execType in all prebuildTxWithIntent call sites in wallet.ts

The field lands at intent.execType in the request body, not as a top-level txrequest param, which is what Figure Markets needs to defer execution via EXEC_UNSPECIFIED.

Test plan

  • Unit-check: no new TypeScript errors in changed files (tsc --noEmit)
  • Integration test: call wallet.send* with execType: ExecType.EXEC_UNSPECIFIED and verify the intent.execType field is present in the outgoing request body

Ticket: CSHLD-972

Add ExecType enum (EXEC_UNSPECIFIED, EXEC_TRY) and wire it through
the intent layer so callers can set execType on txrequests.

The field flows from PrebuildTransactionOptions → IntentOptionsBase →
PopulatedIntentBase → the POST /wallet/{id}/txrequests body under
intent.execType, without introducing a top-level txrequest param.

Ticket: CSHLD-972
Session-Id: caa99360-6177-4227-8aba-5043f8cb453f
Task-Id: 49710c31-924d-41fb-b44b-2dc4a10bce34
@linear-code

linear-code Bot commented Jun 9, 2026

Copy link
Copy Markdown

CSHLD-972

@bitgo-ai-agent-dev bitgo-ai-agent-dev Bot force-pushed the sreeraj/cshld-972-exec-unspecified-intent branch from a8d9d07 to 5cd582e Compare June 9, 2026 13:54
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.

1 participant