Project structure for writing smart contracts in Rust for NEAR Protocol
- Rust 1.61 + cargo
- Node.js
- NEAR CLI 3.2
Compiles the smart contract to a WebAssembly binary. The binary path is ./target/wasm32-unknown-unknown/release/near_smart_contract_rust_template.wasm.
Calls the NEAR CLI, where <dev-account> is the account ID of the most recent dev deployment on testnet:
near <command> <dev-account> <...arguments>Deploys the most recently built WASM binary to <account-id> on mainnet, and calls the new function with arguments generated by init-args.js.
Deploys the most recently built WASM binary to the dev account in neardev/, or to a new dev account if neardev/ is not found or --force is set. Calls the new function with arguments generated by init-args.js.
- Jacob Lindahl [email protected] @sudo_build