This is a cab service contract where clients can book and pay for a cab using Near tokens.They can check available cabs at the moment, book a cab, travel and also pay for their trip when it is done. This can all be done securely and anonymously by leveraging on the characteristics of the Near Blockchain.
The smart contract is currently deployed and initialized on:
maryjane.mememan.testnet
near deploy --account-id maryjane.mememan.testnet --wasmFile target/wasm32-unknown-unknown/release/rust_template.wasm
near view maryjane.mememan.testnet welcome --account-id YOUR_ACCOUNT_ID_HERE
near call maryjane.mememan.testnet destination --account-id YOUR_ACCOUNT_ID_HERE
near call maryjane.mememan.testnet order '{"cab_number": 3 , "driver_choice": "kiki"}' --account-id YOUR_ACCOUNT_ID_HERE
near view maryjane.mememan.testnet charges '{"cab_number": 3 }' --account-id YOUR_ACCOUNT_ID_HERE
near call maryjane.mememan.testnet payement '{"cab_number": 3 }' --account-id YOUR_ACCOUNT_ID_HERE --deposit 5
near call maryjane.mememan.testnet payement '{"cab_number": 3 }' --account-id YOUR_ACCOUNT_ID_HERE --deposit 3
near call maryjane.mememan.testnet payement '{"cab_number": 3}' --account-id YOUR_ACCOUNT_ID_HERE --deposit 1
Built with the Near Rust Template
Get more info at: