sync: Rise TypeScript v0.4.73 - #79
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:
78c281b8371c6653c52b1dfe4e57873beabde5d9Mode: 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
@ellipsis-labs/risefrom0.4.66to0.4.73.AuthorizedTransferCollateralcollateral-transfer path for collecting the builder fee.Breaking Changes
PhoenixFlightClient.tryWrapFlightInstructionis renamed totryWrapOrderInstructionand now takes(instruction, signer, usePositionAuthority?)instead of(instruction, authority). Update any direct calls to the old method name/signature.flight.wrapInstructionWithFlight'sauthorityparam is renamed tosigner; wrapping an instruction where the signer is a position authority now requires passingusePositionAuthority: trueand aresolveRootAuthoritycallback (the call throws ifusePositionAuthorityis set without one)."Fee bps override must be in the range 0..=10000"to"Invalid fee bps override (must be in 0..=10000)"— update any code matching on the old string.Consumer Notes
client.ixsplacement methods (market/limit orders, delegated market orders) now acceptpositionAuthority; when it differs fromauthority, the Flight wrap automatically routes through the new position-authority path and appends the collateral-transfer tail.ClientPlaceMarketOrderDelegatedInput.traderWalletis deprecated in favor ofpositionAuthoritybut remains supported.buildFlameAtomicDepositFlowbuilds a single sponsor-payable instruction bundle (permission setup + FlameDepositToPhoenix) for wallets with no SOL; also exportsbuildFlameDepositToPhoenixIxandderiveFlameDepositToPhoenixAddresses.V1MarketsClientgainsgetLatestMarketStats(symbol)andgetLatestMarketsStats(), backed by newLatestMarketStatsResponse/LatestMarketsStatsResponseschemas.computeDraftOrderMarginRequirementFromInputs/FromSnapshotandcomputeMaxDraftOrderSizeForAvailableMarginFromInputs/FromSnapshotsupport pre-trade margin sizing for draft orders.resolvePhoenixBuilderAddresses(plusBETA_USDC_MINT_ADDRESSandEMBER_STATE_ADDRESSexports) resolves the full env-correct address set — including USDC mint and Ember state — for constructing builder instructions, avoiding silent fallback to the mainnet USDC mint on beta.