- Quickly build apps backed by the NEAR blockchain
- Prerequisites
cargo make call-self init
cargo make call new_shop '{"name" : "tdtu shop", "desc": "shop danh cho nguoi hoc tdtu"}' --account-id eamondev.testnet
cargo make view get_all_shops
cargo make call get_shop_by_id '{"owner": "eamondev.testnet"}' --account-id eamon.testnet
cargo make call new_product '{"product_id": "quan-3lo-01", "name" : "quan 3 lo sieu ben", "total_supply": 100, "price": 1, "desc" : "mo ta cua cai quan 3 lo ne"}' --account-id eamondev.testnet
cargo make view get_all_products
cargo make view get_product_by_id '{"product_id" : "quan-3lo-01"}'
cargo make view get_products_by_owner '{"owner" : "eamondev.testnet"}'
cargo make call payment '{"product_id" : "quan-3lo-01"}' --account-id eamon.testnet --amount 200
cargo make call update_price '{"new_price": 1, "product_id" : "quan-3lo-01"}' --account-id eamondev.testnet
near send dev-1688137082515-73052742077030 eamon.testnet 190
dev-1688561098681-55522353456979
near call {usdt_contract} ft_transfer_call '{"receiver_id": "dev-1688561098681-5552235345697", "amount" : 5, "memo": "memo ne", "msg" : "OK"}' --account-id eamondev.testnet --amount 5