sync: Rise TypeScript v0.4.74 - #80
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:
e5cc47a90b5069779e5e5b647a1ce07d446b31bfMode: 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
client.ixsorder builders now acceptpositionAuthority, and Flight-wrapped instructions automatically append collateral-transfer tail accounts backed by a new on-chainAuthorizedTransferCollateralinstruction.buildFlameAtomicDepositFlow,buildFlameDepositToPhoenixIx) so wallets holding no SOL can deposit in a single sponsored transaction.getLatestMarketStats/getLatestMarketsStatsREST endpoints and new draft-order margin helpers (computeDraftOrderMarginRequirementFrom*,computeMaxDraftOrderSizeForAvailableMarginFrom*).resolvePhoenixBuilderAddressesplus beta-environment USDC mint / Ember state constants for building instructions against non-mainnet environments.Breaking Changes
flight.tryWrapFlightInstructionis renamed totryWrapOrderInstructionand gains a requiredusePositionAuthorityboolean parameter — direct callers of the Flight client wrap API must update both the method name and call signature (README.md's example illustrates the new call shape).wrapInstructionWithFlight'sauthorityoption is renamed tosigner; wrapping a position-authority order now also requires aresolveRootAuthoritycallback, or the call throws.Consumer Notes
client.ixsorder methods, pass a delegate aspositionAuthority; whenever it differs fromauthoritythe wrap automatically takes the position-authority path and resolves the Phoenix root authority live from the exchange snapshot — no manual configuration needed.ClientPlaceMarketOrderDelegatedInput.traderWalletis deprecated in favor ofpositionAuthority; it still works but should be migrated.LatestMarketStatsResponse.timestamp_msis typed asbigint, parsed via the shared numeric-bigint schema, consistent with other large-integer API fields.