This repository is a Web3 payment system designed for use in the recently commissioned Nairobi expressway. This project utilises NEAR Rust SDK for the smart contracts to compile Rust to Web Assembly (WASM), the low-level language used by the NEAR platform. Toll rates were obtained from the Nairobi expressway website.
To get started:
-
Clone this repository
-
Set up the prerequisites
-
Test the contract
cargo test -- --nocapture
-
Build the contract
RUSTFLAGS='-C link-arg=-s' cargo build --target wasm32-unknown-unknown --release
Get more info at: