Learn to read contracts that control money, identity and ownership.
The goal for today is to read as many contracts as you can.
Sometimes people aren’t sure how to complete this activity. These tips may help.
Consider that it is better to read many times quickly and NOT just one time slowly. Read How to survey? to better understand why and how you can do this
Try to figure out how to get to the contract code. Then move to quickly read the code. You want to see as much as you can. Ask yourself about the “purpose” of the contract (why is it?) and “code” (what is it?)
AssemblyScript contracts are files that end in .ts, usually main.ts or index.ts
The more you read the better so keep going if you can. Remember to focus on READING and avoid the temptation to build and run everything along the way because it’s a distraction at this point. You can build and run everything tomorrow.
Read ALL the contracts for your language of choice, not just 3
Read all the contracts from the OTHER language as well.
Going Deeper
If you’re feeling fearless, here’s about as far as you might take this road in a day
You should read a minimum of 3 contracts marked as CORE Activity.
Rust
If you intend to focus on Rust, [ OPEN the list of Rust contracts ]
Explore these Live Contract Reviews by Evgeny Kuzyakov, NEAR super 🌟 core developer:
Learn to read contracts that control money, identity and ownership.
Sometimes people aren’t sure how to complete this activity. These tips may help.
Consider that it is better to read many times quickly and NOT just one time slowly. Read How to survey? to better understand why and how you can do this
Try to figure out how to get to the contract code. Then move to quickly read the code. You want to see as much as you can. Ask yourself about the “purpose” of the contract (why is it?) and “code” (what is it?)
.ts
, usuallymain.ts
orindex.ts
lib.rs
.If you have the time to look around the corner, here’s a little more for you.
starter
repository for your language of choice and follow the instructionsThe more you read the better so keep going if you can. Remember to focus on READING and avoid the temptation to build and run everything along the way because it’s a distraction at this point. You can build and run everything tomorrow.
If you’re feeling fearless, here’s about as far as you might take this road in a day
REMEMBER: For this Step activity
AssemblyScript
If you intend to focus on AssemblyScript, [ OPEN the list of AssemblyScript contracts ]
You should read a minimum of 3 contracts marked as CORE Activity.
Rust
If you intend to focus on Rust, [ OPEN the list of Rust contracts ]
Explore these Live Contract Reviews by Evgeny Kuzyakov, NEAR super 🌟 core developer:
NEAR Live Contract Review | Part 1: Voting Contracts
NEAR Live Contract Review | Part 2: Staking Pool Contract
NEAR Live Contract Review | Part 3: Whitelist and Staking Pool Factory
You should read a minimum of 3 contracts marked as CORE Activity.