Skip to content

sync: Rise TypeScript v0.4.72 - #78

Open
jchen1 wants to merge 1 commit into
masterfrom
sync/rise-ts-v0.4.72
Open

sync: Rise TypeScript v0.4.72#78
jchen1 wants to merge 1 commit into
masterfrom
sync/rise-ts-v0.4.72

Conversation

@jchen1

@jchen1 jchen1 commented Jul 23, 2026

Copy link
Copy Markdown
Contributor

Generated by .github/scripts/sync_rise.py.

Source

  • Phoenix commit: 6e87cca0c94f2daf3f64938b475bb0dc43564ecc

  • Mode: automatic

  • Synced paths:

  • rise/ts -> ts

  • rise/README.md -> README.md

  • rise/instructions.json -> instructions.json

  • rise/programs -> programs

  • rise/test-fixtures -> test-fixtures

Changelog Draft

This draft was also appended to package changelog file(s) in this PR so it can be manually edited before merge:

  • ts/CHANGELOG.md

Summary

  • Adds buildFlameAtomicDepositFlow (plus the underlying buildFlameDepositToPhoenixIx, deriveFlameDepositToPhoenixAddresses, deriveFlameGlobalStateAddress, and a new DEPOSIT_PERMISSION constant) for a single-transaction, sponsor-cranked USDC deposit into Phoenix that works for wallets with no SOL.
  • Adds resolvePhoenixBuilderAddresses plus BETA_USDC_MINT_ADDRESS / EMBER_STATE_ADDRESS constants, giving a single call that resolves the full per-environment address set (program, log authority, global config, USDC mint, Ember state) instead of defaulting silently to mainnet USDC on a beta client.
  • Adds new margin helpers computeDraftOrderMarginRequirementFromInputs/FromSnapshot and computeMaxDraftOrderSizeForAvailableMarginFromInputs/FromSnapshot for pricing/sizing a not-yet-placed limit or market order against current margin.
  • Adds V1MarketsClient.getLatestMarketStats(symbol) and getLatestMarketsStats(), backed by new LatestMarketStatsResponse(Schema) / LatestMarketsStatsResponse(Schema) exports.
  • Bumps transitive dependency overrides (brace-expansion, postcss, nanoid) via bun.lock/package.json.

Breaking Changes

  • None identified in the synced diff.

Consumer Notes

  • buildFlameAtomicDepositFlow currently only supports traderSubaccountIndex: 0; passing a non-zero value throws.
  • resolvePhoenixBuilderAddresses is additive — existing resolvePhoenixInstructionAddresses usage is unaffected, but new code that needs a beta-safe USDC mint/Ember state should switch to the new helper.
  • The margin draft-order helpers reuse existing SubaccountMarginInputs/snapshot shapes, so no data migration is needed to adopt them.

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