-
Notifications
You must be signed in to change notification settings - Fork 134
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
Fix parity between local blockchain and network APIs #1422
Merged
Merged
Changes from all commits
Commits
Show all changes
63 commits
Select commit
Hold shift + click to select a range
9fe48d7
refactor(mina.ts, mina-instance.ts): rename TransactionId interface t…
MartinMinkov 1655306
refactor(fetch.ts): add generic type support to FetchResponse and rel…
MartinMinkov 168a546
feat(fetch.ts, mina.ts): add missing properties to PendingTransaction
MartinMinkov a48ec9a
feat(fetch.ts): add type for `lastBlockQuery`
MartinMinkov 25bd926
feat(fetch.ts): add type for `lastBlockQueryFailure`
MartinMinkov d105637
feat(fetch.ts): add response type for 'transactionStatus'
MartinMinkov 82c4913
refactor(fetch.ts): remove temporary fix for fetching event/action da…
MartinMinkov e77dd4f
feat(fetch.ts): add type for 'getActions'
MartinMinkov fa4208c
refactor(graphql.ts): add a graphql module under mina dir
MartinMinkov c861ff7
feat(mina.ts): add IncludedTransaction type to handle transactions th…
MartinMinkov 4a9af9d
feat(mina.ts): modify wait function to return IncludedTransaction
MartinMinkov 89d2bcc
refactor(mina.ts): simplify transaction status polling logic
MartinMinkov 50a7e5c
fix(run_live.ts): change types from Mina.TransactionId to Mina.Pendin…
MartinMinkov 08ab94f
feat(mina.ts): add IncludedTransaction to exports to allow access to …
MartinMinkov 9f6a8b4
refactor(mina.ts): simplify IncludedTransaction type definition using…
MartinMinkov cd3808e
feat(mina.ts): add sendOrThrowIfError method to Transaction type
MartinMinkov 2329353
feat(mina.ts): add RejectedTransaction type and waitOrThrowIfError
MartinMinkov 6e49d78
feat(mina.ts): add RejectedTransaction to exports
MartinMinkov baa33d3
fix(mina.ts): throw error when transaction is rejected to handle tran…
MartinMinkov a9de01e
Merge branch 'main' into feat/transaction-flow-txn-type
MartinMinkov 63999a5
Merge branch 'main' into feat/transaction-flow-txn-type
MartinMinkov b06cfcf
refactor(graphql.ts): rename import from 'account_update.js' to 'acco…
MartinMinkov 8cf9baf
refactor(fetch.ts, account.ts, graphql.ts): move FetchedAccount type …
MartinMinkov 4060d89
feat(fetch.ts, graphql.ts): add GenesisConstants type to handle genes…
MartinMinkov f3906d2
feat(fetch.ts, graphql.ts): add fetchCurrentSlot function and Current…
MartinMinkov bc35163
feat(tests): add transaction-flow test suite for zkApp
MartinMinkov d0e3043
feat(run-ci-live-tests.sh): add transaction-flow test to CI live test…
MartinMinkov cff8b4d
feat(mina.ts): use 'hashZkAppCommand' to hash transaction
MartinMinkov 06ecf3e
feat(submodule): update mina to b9ed54 and o1js-bindings to 4c847f
MartinMinkov ec34710
refactor(fetch.ts, graphql.ts): move removeJsonQuotes function from f…
MartinMinkov 166a501
refactor(transaction-flow.ts): replace let with const for immutability
MartinMinkov 0a3f4a0
refactor(fetch.unit-test.ts): replace Fetch.removeJsonQuotes with rem…
MartinMinkov f1ec38f
refactor(graphql.ts): modify import statements
MartinMinkov 6b4c68c
refactor(fetch.ts): rename 'txnId' to 'transactionHash'
MartinMinkov 1ede894
refactor(mina.ts): improve error handling and transaction status chec…
MartinMinkov 76574c2
refactor(transaction-flow.ts): modify tests to test throwing methods
MartinMinkov 9b78cc0
refactor(fetch.ts): simplify failureReason mapping in checkZkappTrans…
MartinMinkov 23b32ec
refactor(errors.ts): improve error handling for fee payer and account…
MartinMinkov aac4e34
refactor(mina.ts): simplify error handling in sendOrThrowIfError, Loc…
MartinMinkov 111bae1
refactor(precondition.test.ts, token.test.ts): replace send() with se…
MartinMinkov 9c214e5
refactor(transaction-flow.ts): remove outdated comments about current…
MartinMinkov 023d31d
feat(mina.ts): add detailed comments for PendingTransaction, Included…
MartinMinkov 671c35e
docs(mina.ts): update comments for better clarity and add examples
MartinMinkov c8d1d14
style(mina.ts): remove unnecessary comment lines
MartinMinkov 78f96f7
Merge branch 'main' into feat/transaction-flow-txn-type
MartinMinkov 9ca996b
refactor: replace 'send' method with 'sendOrThrowIfError' in dex/run.…
MartinMinkov d2322e0
refactor(run.ts): replace send() with sendOrThrowIfError() for better…
MartinMinkov 88fa9e2
feat(mina.ts): add error handling for JSON parsing in LocalBlockchain…
MartinMinkov c4aefd4
fix(run.ts): correct function call syntax for sendOrThrowIfError method
MartinMinkov 9747048
refactor(transaction): move transaction implementations to new module
MartinMinkov 62eade2
feat(local-blockchain): seperate local-blockchain into it's own module
MartinMinkov 1aa462b
refactor(mina.ts): move transaction validation functions to separate …
MartinMinkov cdad58f
refactor(mina.ts, local-blockchain.ts, transaction.ts): change hash m…
MartinMinkov 0fdac18
refactor(errors.ts): simplify error handling logic by removing accoun…
MartinMinkov f1ffe88
feat(local-blockchain.ts): add error handling for rejected transactions
MartinMinkov b13b3e8
chore(bindings): update bindings submodule to a7ade
MartinMinkov 463768a
refactor(transaction-flow.ts): replace try-catch block with assert.re…
MartinMinkov 2551979
Merge branch 'main' into feat/transaction-flow-txn-type
MartinMinkov 638f42a
refactor(mina.ts, transaction.ts): move transaction function from min…
MartinMinkov e12d29e
refactor(run-live.ts): replace hash() method with hash property for b…
MartinMinkov 39645aa
docs(CHANGELOG.md): update changelog with recent fixes and changes
MartinMinkov 5ea85ac
refactor(mina.ts, mina-instance.ts): move function definitions from m…
MartinMinkov 069921c
docs(CHANGELOG.md): move transaction changes to 'Breaking changes' se…
MartinMinkov 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 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 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
Submodule bindings
updated
13 files
+1 −1 | MINA_COMMIT | |
+87,601 −87,580 | compiled/node_bindings/o1js_node.bc.cjs | |
+1 −1 | compiled/node_bindings/o1js_node.bc.map | |
+504 −504 | compiled/node_bindings/plonk_wasm.cjs | |
+124 −124 | compiled/node_bindings/plonk_wasm.d.cts | |
+ − | compiled/node_bindings/plonk_wasm_bg.wasm | |
+213 −213 | compiled/node_bindings/plonk_wasm_bg.wasm.d.ts | |
+21 −21 | compiled/web_bindings/o1js_web.bc.js | |
+204 −204 | compiled/web_bindings/plonk_wasm.d.ts | |
+248 −248 | compiled/web_bindings/plonk_wasm.js | |
+ − | compiled/web_bindings/plonk_wasm_bg.wasm | |
+80 −80 | compiled/web_bindings/plonk_wasm_bg.wasm.d.ts | |
+10 −0 | ocaml/lib/consistency_test.ml |
This file contains 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 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 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 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 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 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 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 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
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we need updates to the code in https://github.com/o1-labs/docs2/blob/main/examples/zkapps/interacting-with-zkApps-server-side/src/main.ts and https://docs.minaprotocol.com/zkapps/tutorials/interacting-with-zkapps-server-side ?