sync: Rise TypeScript v0.4.72 - #78
Open
jchen1 wants to merge 1 commit into
Open
Conversation
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.
Generated by
.github/scripts/sync_rise.py.Source
Phoenix commit:
6e87cca0c94f2daf3f64938b475bb0dc43564eccMode: automatic
Synced paths:
rise/ts->tsrise/README.md->README.mdrise/instructions.json->instructions.jsonrise/programs->programsrise/test-fixtures->test-fixturesChangelog Draft
This draft was also appended to package changelog file(s) in this PR so it can be manually edited before merge:
ts/CHANGELOG.mdSummary
buildFlameAtomicDepositFlow(plus the underlyingbuildFlameDepositToPhoenixIx,deriveFlameDepositToPhoenixAddresses,deriveFlameGlobalStateAddress, and a newDEPOSIT_PERMISSIONconstant) for a single-transaction, sponsor-cranked USDC deposit into Phoenix that works for wallets with no SOL.resolvePhoenixBuilderAddressesplusBETA_USDC_MINT_ADDRESS/EMBER_STATE_ADDRESSconstants, 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.computeDraftOrderMarginRequirementFromInputs/FromSnapshotandcomputeMaxDraftOrderSizeForAvailableMarginFromInputs/FromSnapshotfor pricing/sizing a not-yet-placed limit or market order against current margin.V1MarketsClient.getLatestMarketStats(symbol)andgetLatestMarketsStats(), backed by newLatestMarketStatsResponse(Schema)/LatestMarketsStatsResponse(Schema)exports.brace-expansion,postcss,nanoid) viabun.lock/package.json.Breaking Changes
Consumer Notes
buildFlameAtomicDepositFlowcurrently only supportstraderSubaccountIndex: 0; passing a non-zero value throws.resolvePhoenixBuilderAddressesis additive — existingresolvePhoenixInstructionAddressesusage is unaffected, but new code that needs a beta-safe USDC mint/Ember state should switch to the new helper.SubaccountMarginInputs/snapshot shapes, so no data migration is needed to adopt them.