-
Notifications
You must be signed in to change notification settings - Fork 0
Harden Ledger interactive submission end to end #384
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
HardlyDifficult
wants to merge
27
commits into
main
Choose a base branch
from
codex/ledger-interactive-submission-foundation
base: main
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+3,949
−780
Open
Changes from all commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
92297a9
feat: make request retries explicit and safe
HardlyDifficult c21f390
fix: align Scan failover retryability
HardlyDifficult bc00876
fix: preserve read option types internally
HardlyDifficult 8eeca33
fix: preserve Scan rotation predicates
HardlyDifficult c7a9c41
fix: stabilize derived retry parameters
HardlyDifficult 852e5ba
fix: reject unsafe retry snapshot values
HardlyDifficult 9d21bf6
fix: validate derived retry configuration
HardlyDifficult f3c5141
feat: harden interactive submissions end to end
HardlyDifficult a06669d
fix: align interactive submissions with live Ledger
HardlyDifficult 2549f60
test: surface interactive submission errors
HardlyDifficult 65aa083
test: align interactive E2E with pinned Splice
HardlyDifficult 21764a3
ci: read pinned Splice version from source
HardlyDifficult 8f7e8e6
test: align Quickstart fixture with pinned Splice
HardlyDifficult 03e1f96
Merge origin/main into typed retry strategies
HardlyDifficult bed904d
fix: materialize cost estimation wire defaults
HardlyDifficult dfb886f
Merge codex/typed-operation-retry-strategies into codex/ledger-intera…
HardlyDifficult de5c3ae
fix: preserve interactive hashing scheme types
HardlyDifficult a743fd8
fix: make mutating operation semantics unrepresentable
HardlyDifficult 6f3af6e
test: align external signing fixtures with strict APIs
HardlyDifficult d203f44
Merge remote-tracking branch 'origin/main' into codex/typed-operation…
HardlyDifficult be32b7e
fix: match interactive transaction wire formats
HardlyDifficult 587985d
fix: enforce mutation-only operation semantics
HardlyDifficult 067b9ef
Merge remote-tracking branch 'origin/codex/typed-operation-retry-stra…
HardlyDifficult edf1c11
fix(http): require request body snapshots
HardlyDifficult 3875cc5
Merge remote-tracking branch 'origin/codex/typed-operation-retry-stra…
HardlyDifficult 514c900
Merge origin/main into interactive submission foundation
HardlyDifficult e48c1ca
fix(traffic): make actor fallback total
HardlyDifficult File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
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
34 changes: 0 additions & 34 deletions
34
src/clients/ledger-json-api/operations/v2/interactive-submission/allocate-party.ts
This file was deleted.
Oops, something went wrong.
39 changes: 0 additions & 39 deletions
39
src/clients/ledger-json-api/operations/v2/interactive-submission/create-user.ts
This file was deleted.
Oops, something went wrong.
22 changes: 22 additions & 0 deletions
22
.../ledger-json-api/operations/v2/interactive-submission/execute-and-wait-for-transaction.ts
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| import { createApiOperation } from '../../../../../core'; | ||
| import { | ||
| InteractiveSubmissionExecuteAndWaitForTransactionRequestSchema, | ||
| InteractiveSubmissionExecuteAndWaitForTransactionResponseSchema, | ||
| type InteractiveSubmissionExecuteAndWaitForTransactionRequest, | ||
| type InteractiveSubmissionExecuteAndWaitForTransactionResponse, | ||
| } from '../../../schemas/api/interactive-submission'; | ||
| /** Execute an interactive submission and wait for the resulting transaction. */ | ||
| export const InteractiveSubmissionExecuteAndWaitForTransaction = createApiOperation< | ||
| InteractiveSubmissionExecuteAndWaitForTransactionRequest, | ||
| InteractiveSubmissionExecuteAndWaitForTransactionResponse | ||
| >({ | ||
| paramsSchema: InteractiveSubmissionExecuteAndWaitForTransactionRequestSchema, | ||
| responseSchema: InteractiveSubmissionExecuteAndWaitForTransactionResponseSchema, | ||
| method: 'POST', | ||
| buildUrl: (_params, apiUrl) => `${apiUrl}/v2/interactive-submission/executeAndWaitForTransaction`, | ||
| buildRequestData: (params) => ({ | ||
| ...params, | ||
| deduplicationPeriod: params.deduplicationPeriod ?? { Empty: {} }, | ||
| }), | ||
| getFreshRetryIdentifier: (params) => params.submissionId, | ||
| }); |
22 changes: 22 additions & 0 deletions
22
src/clients/ledger-json-api/operations/v2/interactive-submission/execute-and-wait.ts
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| import { createApiOperation } from '../../../../../core'; | ||
| import { | ||
| InteractiveSubmissionExecuteAndWaitRequestSchema, | ||
| InteractiveSubmissionExecuteAndWaitResponseSchema, | ||
| type InteractiveSubmissionExecuteAndWaitRequest, | ||
| type InteractiveSubmissionExecuteAndWaitResponse, | ||
| } from '../../../schemas/api/interactive-submission'; | ||
| /** Execute an interactive submission and wait for its completion. */ | ||
| export const InteractiveSubmissionExecuteAndWait = createApiOperation< | ||
| InteractiveSubmissionExecuteAndWaitRequest, | ||
| InteractiveSubmissionExecuteAndWaitResponse | ||
| >({ | ||
| paramsSchema: InteractiveSubmissionExecuteAndWaitRequestSchema, | ||
| responseSchema: InteractiveSubmissionExecuteAndWaitResponseSchema, | ||
| method: 'POST', | ||
| buildUrl: (_params, apiUrl) => `${apiUrl}/v2/interactive-submission/executeAndWait`, | ||
| buildRequestData: (params) => ({ | ||
| ...params, | ||
| deduplicationPeriod: params.deduplicationPeriod ?? { Empty: {} }, | ||
| }), | ||
| getFreshRetryIdentifier: (params) => params.submissionId, | ||
| }); |
9 changes: 7 additions & 2 deletions
9
src/clients/ledger-json-api/operations/v2/interactive-submission/execute.ts
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,18 +1,23 @@ | ||
| import { createApiOperation } from '../../../../../core'; | ||
| import { | ||
| InteractiveSubmissionExecuteRequestSchema, | ||
| InteractiveSubmissionExecuteResponseSchema, | ||
| type InteractiveSubmissionExecuteRequest, | ||
| type InteractiveSubmissionExecuteResponse, | ||
| } from '../../../schemas/api/interactive-submission'; | ||
|
|
||
| /** Execute an interactive submission that has been previously prepared and signed. */ | ||
| export const InteractiveSubmissionExecute = createApiOperation< | ||
| InteractiveSubmissionExecuteRequest, | ||
| InteractiveSubmissionExecuteResponse | ||
| >({ | ||
| paramsSchema: InteractiveSubmissionExecuteRequestSchema, | ||
| responseSchema: InteractiveSubmissionExecuteResponseSchema, | ||
| method: 'POST', | ||
| buildUrl: (_params: InteractiveSubmissionExecuteRequest, apiUrl: string) => | ||
| `${apiUrl}/v2/interactive-submission/execute`, | ||
| buildRequestData: (params) => params, | ||
| buildRequestData: (params) => ({ | ||
| ...params, | ||
| deduplicationPeriod: params.deduplicationPeriod ?? { Empty: {} }, | ||
| }), | ||
| getFreshRetryIdentifier: (params) => params.submissionId, | ||
| }); |
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
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
5 changes: 2 additions & 3 deletions
5
src/clients/ledger-json-api/operations/v2/interactive-submission/index.ts
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,6 @@ | ||
| export * from './allocate-party'; | ||
| export * from './create-user'; | ||
| export * from './execute'; | ||
| export * from './execute-and-wait'; | ||
| export * from './execute-and-wait-for-transaction'; | ||
| export * from './get-preferred-package-version'; | ||
| export * from './get-preferred-packages'; | ||
| export * from './prepare'; | ||
| export * from './upload-dar'; |
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
30 changes: 0 additions & 30 deletions
30
src/clients/ledger-json-api/operations/v2/interactive-submission/upload-dar.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.
Oops, something went wrong.
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.
Uh oh!
There was an error while loading. Please reload this page.