This has not been audited, or tested frankly. Do not use it.
As-is this will send your NFTs and CW20 tokens to my wallet.(It won't be it could... so don't use it yet ok)
- Core - Implementation of fee splitter.
- Rust v1.56.1+
wasm32-unknown-unknown
target- Docker
-
Install
rustup
via https://rustup.rs/ -
Run the following:
rustup default stable
rustup target add wasm32-unknown-unknown
- Make sure Docker is installed
Each contract contains Rust unit and integration tests embedded within the contract source directories. You can run:
cargo unit-test
cargo integration-test
After making sure tests pass, you can compile each contract with the following:
RUSTFLAGS='-C link-arg=-s' cargo wasm
cp ../../target/wasm32-unknown-unknown/release/cw1_subkeys.wasm .
ls -l cw1_subkeys.wasm
sha256sum cw1_subkeys.wasm
For production builds, run the following:
docker run --rm -v "$(pwd)":/code \
--mount type=volume,source="$(basename "$(pwd)")_cache",target=/code/target \
--mount type=volume,source=registry_cache,target=/usr/local/cargo/registry \
cosmwasm/workspace-optimizer:0.10.4
This performs several optimizations which can significantly reduce the final size of the contract binaries, which will
be available inside the artifacts/
directory.
ASL 2.0 - see LICENSE
If you think this was useful, feel free to delegate to the PFC validator. It will help defray the costs.
PFC - As Terra is all about the Perpetual Fee Chain right... feel free to drop me a line