Skip to content
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

Add version locked kairos deposit contract and contract client. #24

Closed
wants to merge 8 commits into from

Conversation

jonas089
Copy link
Contributor

See kairos-deposit-contract/readme.md for instructions on how to compile the .wasm binaries and run the tests against the execution engine. All dependencies on casper-node (including casper-types and the EE) are version locked to jonas089/casper-node --rev "0bcc25f4a203be4e78eed679b54127ab1ed848ab"

The kairos-contract-cli can be used as a binary or library to

  • call entry points of the deposit contract
  • deploy session code for deposit / withdrawal requests

The deposit contract stores deposit events in a dictionary, withdrawal events are not stored (yet).

Copy link
Contributor

@marijanp marijanp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removing the DS_Store file should not be part of the git history moreover commiting a DS_Store file should never be done in the first place. I would suggest you configure your git accordingly and rewrite history

kairos-deposit-contract/readme.md Outdated Show resolved Hide resolved
@jonas089 jonas089 force-pushed the feature/deposit-contract branch from 0934d92 to 8736ecb Compare February 20, 2024 09:16
@marijanp
Copy link
Contributor

You can drop the sign commit b8ed071

@marijanp
Copy link
Contributor

There is still a top-level DS_Store

@jonas089
Copy link
Contributor Author

There is still a top-level DS_Store

I'll have to check where it comes from and get rid of it.

marijanp and others added 8 commits February 20, 2024 12:04
	new file:   .github/workflows/pre-check.yml
	new file:   kairos-deposit-contract/.DS_Store

	modified:   Cargo.lock
	modified:   Cargo.toml
	new file:   kairos-contract-cli/Cargo.lock
	new file:   kairos-contract-cli/Cargo.toml
	new file:   kairos-contract-cli/src/cli.rs
	new file:   kairos-contract-cli/src/deployments.rs
	new file:   kairos-contract-cli/src/deployments/call_create_purse.rs
	new file:   kairos-contract-cli/src/deployments/call_incr_counter.rs
	new file:   kairos-contract-cli/src/deployments/deploy_handler.rs
	new file:   kairos-contract-cli/src/deployments/get_counter.rs
	new file:   kairos-contract-cli/src/deployments/get_deposit_event.rs
	new file:   kairos-contract-cli/src/deployments/put_deposit_session.rs
	new file:   kairos-contract-cli/src/deployments/put_withdrawal_session.rs
	new file:   kairos-contract-cli/src/lib.rs
	new file:   kairos-contract-cli/src/main.rs
	new file:   kairos-deposit-contract/build-macos-darwin-feat-2.0.sh
	new file:   kairos-deposit-contract/build-ubuntu-feat-2.0.sh
	new file:   kairos-deposit-contract/contract-types/Cargo.lock
	new file:   kairos-deposit-contract/contract-types/Cargo.toml
	new file:   kairos-deposit-contract/contract-types/src/lib.rs
	new file:   kairos-deposit-contract/contract/.cargo/config.toml
	new file:   kairos-deposit-contract/contract/Cargo.lock
	new file:   kairos-deposit-contract/contract/Cargo.toml
	new file:   kairos-deposit-contract/contract/src/address.rs
	new file:   kairos-deposit-contract/contract/src/constants.rs
	new file:   kairos-deposit-contract/contract/src/detail.rs
	new file:   kairos-deposit-contract/contract/src/error.rs
	new file:   kairos-deposit-contract/contract/src/main.rs
	new file:   kairos-deposit-contract/deposit-session/Cargo.lock
	new file:   kairos-deposit-contract/deposit-session/Cargo.toml
	new file:   kairos-deposit-contract/deposit-session/src/main.rs
	new file:   kairos-deposit-contract/malicious-reader/Cargo.lock
	new file:   kairos-deposit-contract/malicious-reader/Cargo.toml
	new file:   kairos-deposit-contract/malicious-reader/src/main.rs
	new file:   kairos-deposit-contract/malicious-session/Cargo.lock
	new file:   kairos-deposit-contract/malicious-session/Cargo.toml
	new file:   kairos-deposit-contract/malicious-session/src/main.rs
	new file:   kairos-deposit-contract/readme.md
	new file:   kairos-deposit-contract/rust-toolchain.toml
	new file:   kairos-deposit-contract/tests/Cargo.lock
	new file:   kairos-deposit-contract/tests/Cargo.toml
	new file:   kairos-deposit-contract/tests/rust-toolchain.toml
	new file:   kairos-deposit-contract/tests/src/integration_tests.rs
	new file:   kairos-deposit-contract/tests/src/test_fixture.rs
	new file:   kairos-deposit-contract/tests/src/test_fixture/utils.rs
	new file:   kairos-deposit-contract/withdrawal-session/Cargo.lock
	new file:   kairos-deposit-contract/withdrawal-session/Cargo.toml
	new file:   kairos-deposit-contract/withdrawal-session/src/main.rs
…ts and version lock casper-node and casper-client-rs dependencies.

	modified:   Cargo.lock
	modified:   kairos-deposit-contract/build-macos-darwin-feat-2.0.sh
	modified:   kairos-deposit-contract/build-ubuntu-feat-2.0.sh
	modified:   kairos-deposit-contract/contract-types/Cargo.toml
	modified:   kairos-deposit-contract/contract/Cargo.toml
	modified:   kairos-deposit-contract/deposit-session/Cargo.toml
	modified:   kairos-deposit-contract/malicious-reader/Cargo.toml
	modified:   kairos-deposit-contract/malicious-session/Cargo.toml
	modified:   kairos-deposit-contract/tests/Cargo.toml
	modified:   kairos-deposit-contract/withdrawal-session/Cargo.toml

	modified:   Cargo.lock
	modified:   kairos-deposit-contract/build-macos-darwin-feat-2.0.sh
	modified:   kairos-deposit-contract/build-ubuntu-feat-2.0.sh
	modified:   kairos-deposit-contract/contract-types/Cargo.toml
	modified:   kairos-deposit-contract/contract/Cargo.toml
	modified:   kairos-deposit-contract/deposit-session/Cargo.toml
	modified:   kairos-deposit-contract/malicious-reader/Cargo.toml
	modified:   kairos-deposit-contract/malicious-session/Cargo.toml
	modified:   kairos-deposit-contract/tests/Cargo.toml
	modified:   kairos-deposit-contract/withdrawal-session/Cargo.toml
	modified:   kairos-deposit-contract/readme.md

	modified:   kairos-deposit-contract/readme.md
	modified:   kairos-contract-cli/Cargo.toml

	modified:   kairos-contract-cli/Cargo.toml
	new file:   .DS_Store
	modified:   Cargo.lock
	modified:   kairos-deposit-contract/build-macos-darwin-feat-2.0.sh
	modified:   kairos-deposit-contract/build-ubuntu-feat-2.0.sh

	modified:   Cargo.lock
	modified:   kairos-deposit-contract/build-macos-darwin-feat-2.0.sh
	modified:   kairos-deposit-contract/build-ubuntu-feat-2.0.sh
	modified:   Cargo.lock
	modified:   kairos-contract-cli/Cargo.toml

	modified:   Cargo.lock
	modified:   kairos-contract-cli/Cargo.toml
@jonas089 jonas089 force-pushed the feature/deposit-contract branch from 8736ecb to 45b6018 Compare February 20, 2024 11:08
@jonas089 jonas089 closed this Feb 20, 2024
@jonas089 jonas089 deleted the feature/deposit-contract branch February 20, 2024 11:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants