Skip to content

NaNaFoNo/StacksTutorials

Repository files navigation

StacksTutorials

This is my repo for the Hiro Developer Tutorial.
Instructions to the code are listed there.
This is the Code Snippet Playground related to this tutorial.

Prerequisites

NodeJS 8.12.0 or higher

Installing the libraries

To install the required libraries use:

npm install

Stacks basics

Managing Accounts

[x] Generating an account
[x] Reviewing account info
[x] Reviewing account history
[x] Getting account balances

Sending Tokens

[x] Specifying a sender key
[x] Generating a token transfer transaction
[x] Broadcasting the transaction to the network
[x] Checking transaction completion
[x] Confirming updates account balances (optional)
git status

Developing with Clarinet

Hello World

[x] Create a new Clarinet project
[x] Add a new Clarity contract to the project
[x] Populate the contract with 2 types of functions
[x] Execute the functions in a local, simulated blockchain
[x] Optionally, deploy and test the contract on the testnet blockchain

Counter

[x] Create a new Clarinet project
[x] Add a new Clarity contract to the project
[x] Populate the contract with a variable and read variable function
[x] Populate the contract with an increment and a decrement function
[x] Execute the functions in a local, simulated blockchain
[x] Optionally, deploy and test the contract on the testnet blockchain

Billboard

[x] Set up a development environment with Clarinet
[x] Define codes for error handling
[x] Add a data storage variable with functions to get and set the variable
[x] Add a STX transfer function within the variable setter
[x] Develop a unit test to verify the contract works as expected

Non-fungible tokens

[x] Create a new Clarinet project
[x] Add contracts to the project, and set dependencies for those contracts
[x] Define an NFT contract based on the SIP-009 standard
[x] Verify the contract using Clarinet
[x] Optionally, deploy and test the contract on the testnet blockchain

About

Hiro Developers Tutorials

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published