Our contribution to the NEAR MetaBUILD hackathon. This is the backend repo, it includesthe smart-contracts and an interface for dezentralized data storage.
Smart contracts are stored in contracts
. Here's what you do with them:
- Install
cargo install wasm-pack
to build the WASM file. - Install
rustup target add wasm32-unknown-unknown
to compile WASM on any machine to any target. - Compile all contracts and test with
bash ./build.sh
=, the wasm contracts will end up in res. - Install
near-cli
- Login to near
near login
with you<ID
- Deploy, init and run predefined function calls with:
bash ./run.sh <your-id>
Every contract has its own readme.
The run.sh
walks you through the basic functionalities, from deployment till nft minting.
IPFS is a gawd dam PROTOCOL, not a place you upload your files. Luckily we have Crust, a hosting-incentivize layer. You can run your own node and contribute to the network or use the public gateway. If you run your own node, it makes sense to pin your files so these will be available while you are online.
To store your files, you'll need a Crust account, also a NEAR account but I suppose you already have one if you read till here. Crust offers a testnet, I highly recommend that to play around. Once you made your account, define the environment variables as told in the instructions.
cargo test -- --nocapture
# Test python scripts
pytest
Contracts: Rust, Near-cli
Interface: JavaScript, Python
- @3lLobo
- @innazh
- @samullman
- @pashq1
- @Kondwani7
I thank the trees, for giving us planetary life, be kind!