Skip to content

Main repo for the AERX-contribution to the NEAR MetaBUILD hackathon.

License

Notifications You must be signed in to change notification settings

aerx-dev/metabuild-hackathon

Repository files navigation

MetaBUILD Hackathon

Our contribution to the NEAR MetaBUILD hackathon. This is the backend repo, it includesthe smart-contracts and an interface for dezentralized data storage.

Badges

MIT License GitHub language count GitHub top language Lines of code GitHub commit activity

Smart Contracts

Smart contracts are stored in contracts. Here's what you do with them:

  1. Install cargo install wasm-pack to build the WASM file.
  2. Install rustup target add wasm32-unknown-unknown to compile WASM on any machine to any target.
  3. Compile all contracts and test with bash ./build.sh =, the wasm contracts will end up in res.
  4. Install near-cli
  5. Login to near near login with you <ID
  6. 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.

Decentralized Data Storage

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.

Testing:

cargo test -- --nocapture
# Test python scripts
pytest

Contracts: Rust, Near-cli

Interface: JavaScript, Python

Authors

  • @3lLobo
  • @innazh
  • @samullman
  • @pashq1
  • @Kondwani7

Acknowledgements

I thank the trees, for giving us planetary life, be kind!

🌱