# Configure public IP - required for peer connection.
export PUBLIC_IP_ADDRESS=$(curl -sS4 ifconfig.me)
# Configure prover key - used for proof submission.
export PROVER_PUBLISHER_PRIVATE_KEY=0xd9......redacted.......
# Configure RPC.
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
[package] | |
name = "casper-example-contract" | |
version = "0.1.0" | |
edition = "2021" | |
[lib] | |
crate-type = ["cdylib"] | |
[dependencies] | |
casper-contract = { version = "4.0.0", default-features = false } |
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
#!/usr/bin/env sh | |
set -e | |
CONTRACT_HASH_RAW="$1" | |
echo "> Calling 'batch' entrypoint." | |
DEPLOY_HASH=$(casper-client put-deploy \ | |
--node-address http://127.0.0.1:11101/rpc \ | |
--chain-name casper-net-1 \ | |
--payment-amount 9991000000000 \ |
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
{ | |
"particles":{ | |
"number":{ | |
"value":80, | |
"density":{ | |
"enable":true, | |
"value_area":800 | |
} | |
}, | |
"color":{ |