For TEALScript documentation, go to https://tealscript.algo.xyz
- Create a new TestNet account using a 3-character prefix to help you identify your account on the leaderboard:
algokit task vanity-address <PREFIX>
where is your 3-character identifier The response will contain your mnemonic - Fund your accoount using the TestNet Dispenser:
algokit dispenser login --ci
- Within the response, press Command + Click the URL link to open the Dispenser validation website
- Follow the prompts, enter your email, check your spam folder for the verification code, complete the verification
- You may close the Dispenser website after verification, which will return you to the CLI
- The response will contain the ALGOKIT_DISPENSER_ACCESS_TOKEN
- Bootstrap the project
algokit bootstrap all
- When prompted in the CLI, include the fields from #1 & #6
- Register your account on the Google Form
npx tsx src/level0.ts
- Confirm your account is now on the Leaderboard
ALGOD_SERVER="https://testnet-api.algonode.cloud" ALGOD_PORT=443 ALGOD_TOKEN="" npm run build
will compile the contract without using LocalNet but producing the same artifacts as the commands in the next section
npm run build
will compile the contract to TEAL and generate an ABI and appspec JSON in ./contracts/artifacts and a algokit TypeScript client in ./contracts/clients.
npm run compile-contract
or npm run generate-client
can be used to compile the contract or generate the contract seperately.
npm run test
will execute the tests defined in ./__test__
npm run lint
will lint the contracts and tests with ESLint.