Coder Social home page Coder Social logo

tz-demo-app's Introduction

Interaction with Smart Contract using Taquito

Running

  1. npm install
  2. npm run serve
  3. Go to http://localhost:8080

Updating Smart Contract

Getting & Activating Faucet Account

  1. Go to https://faucet.tzalpha.net/
  2. Click Get Testnet after proving you're not a robot ;)
  3. Copy (or download) the JSON obtained.
  4. Go to https://smartpy.io/wallet.html
  5. Under Faucet Importer point 2, paste the JSON obtained.
  6. Click Compute your private key, and save the key somewhere.
  7. Click Activate account

Deploying Smart Contract

  1. Go to http://smartpy.io/ide
  2. Paste the contract in the editor.
  3. Click on RUN button.
  4. If all the tests pass, a tab named Deploy Michelson Contract will appear on the right, go to that.
  5. Click Deploy Michilson Contract button.
  6. Choose Edonet (of SmartPy.io Nodes) in Node and Network.
  7. Choose Wallet > SmartPy > Faucet
  8. Under Copy & Paste, paste the JSON of Faucet account.
  9. Click Deploy Contract at the end.

Changing the app code

  1. Update /src/contract.py (for future reference)
  2. Change variable RPC_ADDRESS to the address of RPC node (https://edonet.smartpy.io/ in our case)
  3. Change variable KEY to the account's private key
  4. Change variable CONTRACT_ADDRESS to the address of deployed contract

tz-demo-app's People

Contributors

tichnas avatar pk13055 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.