This is a good project to use as a starting point for your AssemblyScript project.
./src/simple/assembly
In here we changed helloWorld function and transaction in blockchain. Transactions:
1.practice https://explorer.testnet.near.org/transactions/CJQ3RU7GjFzMsa9bhpbvEyYFYDFWZQDPRxyEBiyqgeU9
2.practice https://explorer.testnet.near.org/transactions/6vGF42nnnv7RK8Uu8u6BLSLP1SxHjoKy1J1LeTyBQ4RC
INSTALL NEAR CLI
first like this: npm i -g near-cli
- clone this repo to a local folder
- run
yarn
- run
./scripts/1.dev-deploy.sh
- run
./scripts/2.use-contract.sh
- run
./scripts/2.use-contract.sh
(yes, run it to see changes) - run
./scripts/3.cleanup.sh
https://explorer.testnet.near.org/transactions/7s5nU5DJtJUKsaXMGhAceYEFAkTPo8fHNfyd473yRhoL
- yarn build:release
- near dev-deploy ./build/release/simple.wasm
- near call <CONTRACT_NAME> whatsYourName --accountId ***.testnet