Skip to content

taia-x/smart-contracts-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Counter Example

A Counter contract to display the basics of Tezos LIGO integration and deployment.

Prerequisites

  • Docker
    • Used for LIGO compilations and running a local sandbox Tezos node.
  • NodeJS

Usage

  • Compiling the example smart contracts

    yarn run compile
  • Starting the local sandbox Tezos node

    yarn run start-sandbox
  • Deploying contracts on local sandbox

    yarn run deploy:sandbox
  • OR: Deploying contracts on testnet (faucet must be obtained as explained at the bottom)

    yarn run deploy:testnet

Sandbox Management

A sandbox Tezos node is provided with RPC exposed at port 20000 and two accounts alice and bob.

Interacting with Sandbox Network

  • A secret can be obtained by running sandbox-info and import secret (only alice is needed) inside config/sandbox.config.js
yarn run sandbox-info

Interacting with Live Network

  • A test faucet key can be obtained from https://faucet.tzalpha.net/. Once saved, it can be imported inside faucet key of config/testnet.config.js

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published