-
Notifications
You must be signed in to change notification settings - Fork 0
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
Improved version of Deposit contract #51
Merged
Merged
Changes from 113 commits
Commits
Show all changes
131 commits
Select commit
Hold shift + click to select a range
843bc0b
merge improved deposit contract with integration tests
jonas089 7e8625a
remove outdated readme, due for recreation
jonas089 5337582
bugfix: do not add the caller to the admin list
jonas089 c453024
dotenv -> dotenvy
jonas089 59d2d41
casper deps from crates.io
jonas089 b625d1a
Update contracts/deposit-contracts/Cargo.toml
jonas089 7cd7559
Update contracts/contract-types/Cargo.toml
jonas089 ce530f6
Update contracts/deposit-contracts/malicious-reader/Cargo.toml
jonas089 1c83c18
Update contracts/deposit-contracts/withdrawal-session/Cargo.toml
jonas089 2acfaaf
Update contracts/deposit-contracts/malicious-session/Cargo.toml
jonas089 aeea7ed
Update contracts/deposit-contracts/deposit-session/Cargo.toml
jonas089 13b946f
Update contracts/contract-types/Cargo.toml
jonas089 3e2423c
Update contracts/deposit-contract-tests/Cargo.toml
jonas089 90a8c06
Update contracts/deposit-contracts/contract/Cargo.toml
jonas089 a10d11e
Update contracts/deposit-contract-tests/src/test_fixture.rs
jonas089 50d36df
Update contracts/deposit-contract-tests/src/test_fixture.rs
jonas089 6e9a17b
Update contracts/deposit-contract-tests/src/test_fixture/utils.rs
jonas089 1899d7a
remove the withdrawal EP, add comments, explain malicious session cod…
jonas089 3370111
add .env to gitignore for contract tests
jonas089 14b709c
remove .env
jonas089 4c90b4d
improved tests and expect rather than unwrap in session code
jonas089 7827f9e
improve existing tests, add comments, add tests for access control / …
jonas089 9666736
improve deposit contract error handling by being more explicit and ad…
jonas089 d053438
update function name for contract installation
jonas089 2c215a6
add constants for EP names, minor cleanups
jonas089 0732633
remove upgradability from deposit contract
jonas089 9af7c30
kairos-contracts: package with nix
marijanp 9b1bc57
ci: build kairos-contracts
marijanp c7a6960
ci: run on any pull request
marijanp eec3780
flake/kairos-contracts: add darwin targets
marijanp 8bdae6c
flake/checks: add kairos-contract check outputs
marijanp 9e27d13
deposit-contracts-tests: fix linter warnings
marijanp 52b9016
flake/kairos: ignore contracts
marijanp cbb1a52
flake/kairos-contracts: remove unused mv comment
marijanp 62f6ec6
flake/kairos-contracts: remove darwin targets
marijanp 5498538
kairos-contracts-test: refactor to test only crate
marijanp f9c63f4
kairos-contracts: dont exclude deposit-contracts
marijanp d322a57
flake/coverage-report: fix issue with rust-nightly and tarpaulin
marijanp a06b8dc
kairos-contracts: fix linter issues
marijanp c512fc2
kairos-contracts: rename workspace name
marijanp 23d0db2
flake/rust: use latest toolchain
marijanp 9fddb76
Merge pull request #55 from cspr-rad/nixify-deposit
marijanp 53a1a30
Merge remote-tracking branch 'origin/main' into feature/deposit-contract
marijanp 39a0535
rename contracts -> kairos-contracts
marijanp 8303247
kairos-test-utils: fix lint error
marijanp ac334b0
propagate optional argument errors in utils.rs
jonas089 d8c908d
improve comments in main.rs & remove unused variable
jonas089 fb06eed
Merge branch 'main' into feature/deposit-contract
marijanp d8593c8
Merge branch 'main' into feature/deposit-contract
marijanp c55b5ad
Merge branch 'main' into feature/deposit-contract
marijanp b44b3ae
additional test cases, CES deposit event
jonas089 61471cc
create a locked contract and store contract package in installer name…
jonas089 e5a98f8
Merge pull request #66 from cspr-rad/main
jonas089 73fef22
fix linter warnings
marijanp ba4e580
remove access control -> self governance and mono contract design for…
jonas089 f81652d
minor resturcturing of test_fixture crate for demo-contract
jonas089 095a8e4
flake/coverage: remove -Cstrip=none rust flag
marijanp 3e8ec27
flake: update nixpkgs
marijanp f9affdf
flake/risc0pkgs: don't follow our nixpkgs revision
marijanp d2c2c10
kairos-contracts/demo-contracts-test: remove unused import
marijanp 25352c3
Merge pull request #69 from cspr-rad/remove-cstrip-option
jonas089 42afe4c
improve function name for callstack element
jonas089 0dca31e
add abstract for submit_batch entry point
jonas089 3458cd0
add counter query function for 1.5.x, using Casper Client as a library
jonas089 559634b
add missing newlines at end of file
marijanp 870dc97
add contract utils for installation and counter query
jonas089 44a7c6e
Merge branch 'feature/deposit-contract' into feature/counter-query
jonas089 602a0e5
Merge pull request #76 from cspr-rad/feature/counter-query
jonas089 ef1d2c3
apply clippy suggestions
jonas089 ade4d3c
default arbitrary RPC id to 0
jonas089 328c222
depend on casper node with risc0 verifier
jonas089 0cab310
flake: update fenix
marijanp 7536053
Merge remote-tracking branch 'origin/main' into feature/deposit-contract
marijanp 21b8328
Merge remote-tracking branch 'origin/main' into feature/deposit-contract
marijanp 7c69acc
update Cargo.lock
marijanp 377cd69
kairos-l1-utils: fix integration test
marijanp 07f623c
flake/kairos: don't filter kairos-contracts and kairos-l1-utils
marijanp a54da4c
kairos-contracts/demo-contract: remove unused import
marijanp 3ccd97c
kairos-l1-utils: add all-tests feature and cctl-tests feature
marijanp af1c00a
add function to query contract urefs
jonas089 b428c69
depend on casper-client from crates.io
jonas089 f536bb1
typecheck for amount - u64
jonas089 9b7733e
remove unused code
jonas089 5f38284
fix u64 unwrap error
jonas089 11ed98d
remove .DS_Store
jonas089 3a19d12
use latest nightly
jonas089 75a57d5
reintroduce nightly version lock & update
jonas089 dfec934
Add wasm32-unknown-unknown to deposit-contract rust-toolchain.toml & …
Avi-D-coder abdf5cc
Provide more toolchain components in deposit-contract workspace
Avi-D-coder 36f1736
move nested workspace to root, fix pathbuf in tests
jonas089 bbc25f1
add test that queries last_processed_deposit_counter
jonas089 e272f3b
fix formatting
jonas089 aa86bd3
temporary fix
jonas089 3b599c8
Fix nix build
Avi-D-coder ea90d7f
Merge remote-tracking branch 'origin/main' into feature/deposit-contract
marijanp 9454305
kairos-l1-utils: format
marijanp 589941e
fix lint errors
marijanp 40822ed
kairos-test-utils: wait for block 1
marijanp 606fd1d
kairos-l1-utils: remove
marijanp 2cd0cb4
demo-contract-tests: refactor fixture and tests
marijanp f54df4f
demo-contract-tests: refactor fixture
marijanp 33ea2fc
demo-contract-tests: add tests to check that admin can't take funds
marijanp 5f04db2
demo-contract-tests: remove unused dependency
marijanp 164a60b
don't ignore .env
marijanp 34a0738
demo-contract: remove u64::from
marijanp 5a2a899
Merge branch 'main' into deposit-contract-marijan
marijanp 496d377
fix lockfile
marijanp 5da25a9
demo-contract: account -> depositor
marijanp 09da0ad
demo-contract: minor init refactor
marijanp b663b89
demo-contract: remove timestamp from deposit event
marijanp da68b21
Merge pull request #95 from cspr-rad/deposit-contract-marijan
marijanp 2e05eb8
Merge branch 'main' into feature/deposit-contract
marijanp 5241499
update lockfile
marijanp 8440fa4
Remove outdated comment about security badges.
koxu1996 25a70d1
Simplify comment about contract utilities.
koxu1996 9ec324f
Remove unused `test-support` feature from contract dependency.
koxu1996 8d648e4
Remove unused `bincode` dependency and use `no-std-helpers`.
koxu1996 b17471f
Remove unused `base64` dependency.
koxu1996 46b1fc4
Unify format of `Cargo.toml` files.
koxu1996 0709c3e
Switch to Casper dependencies from crates.
koxu1996 8cf3bc5
Disable default features where possible.
koxu1996 757c612
Fix misplaced args with contract package/uref.
koxu1996 8010d8e
Stored contract name is actually a contract hash.
koxu1996 4bcb72e
Avoid using "deposit contract" name.
koxu1996 5ef3efd
Switch back to stable toolchain for non-WASM targets.
koxu1996 ce89f53
Replace compile-time env with helper for WASM directory.
koxu1996 fe652c1
Add `wasm-opt` dependency.
koxu1996 6119d49
Run WASM optimization in tests runtime.
koxu1996 42fff34
Refactor WASM helper for tests.
koxu1996 0c3ff1a
Revert "Switch back to stable toolchain for non-WASM targets."
koxu1996 a5b73c6
Merge pull request #102 from cspr-rad/deposit-contract-suggestions
koxu1996 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
Original file line number | Diff line number | Diff line change | ||||||||
---|---|---|---|---|---|---|---|---|---|---|
@@ -1,7 +1,6 @@ | ||||||||||
name: check | ||||||||||
on: | ||||||||||
pull_request: | ||||||||||
branches: [main] | ||||||||||
push: | ||||||||||
branches: [main] | ||||||||||
|
||||||||||
|
@@ -51,6 +50,18 @@ jobs: | |||||||||
with: | ||||||||||
path: coverage-result/cobertura.xml | ||||||||||
minimum_coverage: 60 | ||||||||||
|
||||||||||
- name: kairos-contracts x86_64-linux | ||||||||||
if: matrix.os == 'ubuntu-latest' | ||||||||||
run: nix build -L --no-link --show-trace .#packages.x86_64-linux.kairos-contracts | ||||||||||
|
||||||||||
- name: kairos-contracts x86_64-darwin | ||||||||||
if: matrix.os == 'macos-latest' | ||||||||||
run: nix build -L --no-link --show-trace .#packages.x86_64-darwin.kairos-contracts | ||||||||||
Comment on lines
+57
to
+60
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Let's not add back x86_64-darwin.
Suggested change
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Will be addressed in other PR as discussed. |
||||||||||
|
||||||||||
- name: kairos-contracts aarch64-darwin | ||||||||||
if: matrix.os == 'macos-14' | ||||||||||
run: nix build -L --no-link --show-trace .#packages.aarch64-darwin.kairos-contracts | ||||||||||
|
||||||||||
- name: kairos x86_64-linux | ||||||||||
if: matrix.os == 'ubuntu-latest' | ||||||||||
|
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.
Somehow this sneaked in