-
Notifications
You must be signed in to change notification settings - Fork 9
feat(#689): updates to symbolic-ledger in sync with 2nd milestone #704
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
Merged
Changes from 65 commits
Commits
Show all changes
73 commits
Select commit
Hold shift + click to select a range
5c1f9bf
feat(#689): update ledger types
sourabhxyz 5a4aef6
fourmolu auto-commit
sourabhxyz 1fbbaa9
feat(#689): `sPreviousBatch` -> `sPreviousStateHash`
sourabhxyz 825373d
Merge branch '689-pivot-simplified-account' of github.com:zkFold/symb…
sourabhxyz 71cbce8
feat(#689): make `Nonce` a `FieldElement` instead
sourabhxyz b498951
fourmolu auto-commit
sourabhxyz edd0f3a
feat(#689): improve type for bridge out assets, bridge in assets, tra…
sourabhxyz db49032
feat(#689): handle merge conflicts
sourabhxyz 4af85e4
feat(#689): `AssetValues` -> `AssetValue` in `sAccountInfo`
sourabhxyz 51669d0
feat(#689): add state validation
sourabhxyz 201ee05
Merge remote-tracking branch 'origin/main' into upon-689
sourabhxyz 42cec29
fourmolu auto-commit
sourabhxyz 0c82c52
feat(#689): update wrt latest breaking changes in main
sourabhxyz 0828082
feat(#689): update wrt latest breaking changes in main
sourabhxyz 52039d2
fourmolu auto-commit
sourabhxyz 934ec89
feat(#689): remove redundant import
sourabhxyz 398ccf4
fourmolu auto-commit
sourabhxyz 328966f
feat(#689): parameterize maximum number of users
sourabhxyz f90a4f9
Merge branch 'upon-689' of github.com:zkFold/symbolic into upon-689
sourabhxyz b6aec34
fourmolu auto-commit
sourabhxyz aca9784
feat(#689): put just root hash of asset tree in account info
sourabhxyz 64a245b
Merge branch 'upon-689' of github.com:zkFold/symbolic into upon-689
sourabhxyz a6d60fc
feat(#689): add state witness type
sourabhxyz 077825a
fourmolu auto-commit
sourabhxyz 960d0d3
Merge remote-tracking branch 'origin/main' into upon-689
sourabhxyz e0547e9
Merge branch 'upon-689' of github.com:zkFold/symbolic into upon-689
sourabhxyz 813a703
feat(#689): saving progress related to vector of nonce, before trying…
sourabhxyz 1a2c4f5
feat(#689): modify types to have UTxO based ledger
sourabhxyz a0f2768
fourmolu auto-commit
sourabhxyz 92a5050
feat(#689): work out validation design
sourabhxyz e492c8d
fourmolu auto-commit
sourabhxyz 4935c39
feat(#689): state validation updates
sourabhxyz 4ec90fc
Merge branch '689-utxo' of github.com:zkFold/symbolic into 689-utxo
sourabhxyz 1435108
feat(#689): compute utxo set by incorporating bridged in assets
sourabhxyz 15c0e4f
fourmolu auto-commit
sourabhxyz e818899
feat(#689): compute state and batch validation
sourabhxyz 5dc9a94
fourmolu auto-commit
sourabhxyz 58589e9
feat(#689): remove comments
sourabhxyz 6b6d38b
Merge branch '689-utxo' of github.com:zkFold/symbolic into 689-utxo
sourabhxyz 057ef17
fourmolu auto-commit
sourabhxyz b355c5d
feat(#689): add some of tx validation checks
sourabhxyz 5eeab7d
Merge branch '689-utxo' of github.com:zkFold/symbolic into 689-utxo
sourabhxyz 5784b2f
fourmolu auto-commit
sourabhxyz 16efd6e
feat(#689): input tx validation check
sourabhxyz 4b65373
fourmolu auto-commit
sourabhxyz 3174263
feat(#689): complete tx validation checks
sourabhxyz cfa2dee
fourmolu auto-commit
sourabhxyz 8cfc7fb
style(#689): hlint suggestions
sourabhxyz 7aaf67b
fourmolu auto-commit
sourabhxyz 50845d0
feat(#689): also check that input utxo is not the null utxo
sourabhxyz d5148ec
fourmolu auto-commit
sourabhxyz 07fd7e5
feat(#689): check that output has atleast 1 ada
sourabhxyz 104b4f8
fourmolu auto-commit
sourabhxyz 0ee6ded
feat(#689): check that transaction is balanced
sourabhxyz 695a38e
fourmolu auto-commit
sourabhxyz 22842a5
feat(#689): check that bridged in outputs have at least one ada
sourabhxyz fe882ae
fourmolu auto-commit
sourabhxyz b9a9d66
feat(#689): remove redundant imports
sourabhxyz c981c81
fourmolu auto-commit
sourabhxyz e5968fa
fix(#689): bug in ifThenElse branch
sourabhxyz 8636aba
fourmolu auto-commit
sourabhxyz d836b77
docs(#689): add comments
sourabhxyz 89bb9fe
fourmolu auto-commit
sourabhxyz e7a590c
docs(#689): add comments
sourabhxyz 09257c7
fourmolu auto-commit
sourabhxyz 86af47c
docs(#689): add comments
sourabhxyz 53b1548
docs(#689): add comments
sourabhxyz a492cf8
feat(#689): bug fix to see output is null instead of utxo for bridged…
sourabhxyz 8a5e2b7
fourmolu auto-commit
sourabhxyz b527737
Merge branch 'main' into 689-utxo
sourabhxyz b2be619
feat(#689): rename from boutsValidAcc to outsValidAcc
sourabhxyz 082d9e8
Merge branch '689-utxo' of github.com:zkFold/symbolic into 689-utxo
sourabhxyz 0864a81
fourmolu auto-commit
sourabhxyz 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
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
19 changes: 9 additions & 10 deletions
19
symbolic-ledger/src/ZkFold/Symbolic/Ledger/Types/Address.hs
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,16 +1,15 @@ | ||
module ZkFold.Symbolic.Ledger.Types.Address ( | ||
Address, | ||
nullAddress, | ||
) where | ||
|
||
import GHC.Generics ((:*:)) | ||
|
||
import ZkFold.Symbolic.Ledger.Types.Circuit (Circuit) | ||
import ZkFold.Symbolic.Ledger.Types.DataAvailability | ||
import ZkFold.Symbolic.Ledger.Types.Hash (Hash) | ||
import ZkFold.Algebra.Class (Zero (..)) | ||
import ZkFold.Symbolic.Class (Symbolic) | ||
import ZkFold.Symbolic.Data.FieldElement (FieldElement) | ||
import Prelude hiding (Bool, Eq, length, splitAt, (*), (+)) | ||
|
||
-- | Address on the zkFold ledger. | ||
-- | ||
-- Circuit describes the smart contract that locks funds at this address. | ||
-- | ||
-- Data availability index points to a data availability source that posts data about the address's transactions. The data availability type indicates whether the address is associated with online or offline transactions. | ||
type Address = Hash (Circuit :*: DAIndex :*: DAType) | ||
type Address = FieldElement | ||
|
||
nullAddress :: Symbolic context => Address context | ||
nullAddress = zero |
13 changes: 0 additions & 13 deletions
13
symbolic-ledger/src/ZkFold/Symbolic/Ledger/Types/Circuit.hs
This file was deleted.
Oops, something went wrong.
25 changes: 0 additions & 25 deletions
25
symbolic-ledger/src/ZkFold/Symbolic/Ledger/Types/DataAvailability.hs
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
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
32 changes: 0 additions & 32 deletions
32
symbolic-ledger/src/ZkFold/Symbolic/Ledger/Types/Interval.hs
This file was deleted.
Oops, something went wrong.
28 changes: 0 additions & 28 deletions
28
symbolic-ledger/src/ZkFold/Symbolic/Ledger/Types/Output.hs
This file was deleted.
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.