Git Product home page Git Product logo

gsn-dapp's Introduction

Steps

  1. deploy

    npx oz create
    Nothing to compile, all contracts are up to date.
    ? Pick a contract to instantiate Counter
    ? Pick a network rinkeby
    ✓ Contract Counter deployed
    All contracts have been deployed
    ? Call a function to initialize the instance after creating it? Yes
    ? Select which function * initialize()
    ✓ Setting everything up to create contract instances
    ✓ Instance created at 0xe77899Bd49d2be3dB19084b4E9bC731E6485f45C
    0xe77899Bd49d2be3dB19084b4E9bC731E6485f45C
    
  2. use online gsn-tool funded contract

  3. cd client && npm start to lauch app to test or use command to test:

    npx oz call
    ? Pick a network rinkeby
    ? Pick an instance Counter at 0xe77899Bd49d2be3dB19084b4E9bC731E6485f45C
    ? Select which function value()
    ✓ Method 'value()' returned: 1
    1
    
    npx oz send-tx
    ? Pick a network rinkeby
    ? Pick an instance Counter at 0xe77899Bd49d2be3dB19084b4E9bC731E6485f45C
    ? Select which function increase()
    ✓ Transaction successful. Transaction hash: 0xeb313bf74933c7e22f7f35bee140696b188c62d8fc5480e2875eefd1899efbea
    
    npx oz call
    ? Pick a network rinkeby
    ? Pick an instance Counter at 0xe77899Bd49d2be3dB19084b4E9bC731E6485f45C
    ? Select which function value()
    ✓ Method 'value()' returned: 2
    2
    

gsn-dapp's People

Contributors

huhu2356 avatar

Watchers

 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.