Giter VIP home page Giter VIP logo

elrond-crowdfunding's Introduction

Interaction

On testnet

Create wallet:

erdpy --verbose wallet derive farmer.pem --mnemonic --index 0

Get HEX address from BECH32 address:

erdpy wallet bech32 --decode erd1q049n3qp2wc0jra5rd83za69u3ze0we0yqm7ax9hghjsde4jeeyqc78p2s

Deploy & interact with contract:

erdpy --verbose contract build contract
erdpy --verbose contract deploy --project=crowdfunding --recall-nonce --pem="../farmer.pem" --gas-limit=60000000 --arguments 100 1640822400 0x45474c44 --outfile="deploy-testnet.interaction.json" --send --proxy="https://testnet-api.elrond.com" --chain=T
erdpy contract call erd1qqqqqqqqqqqqqpgqg2xqcug6ghcftlrufdge3a5tx52r8z3yeeyq649nn6 --recall-nonce --pem="../farmer.pem" --gas-limit=10000000 --function="fund"  --value=5 --proxy="https://testnet-gateway.elrond.com" --chain=T --send
erdpy contract call erd1qqqqqqqqqqqqqpgqg2xqcug6ghcftlrufdge3a5tx52r8z3yeeyq649nn6 --recall-nonce --pem="../farmer.pem" --gas-limit=10000000 --function="claim"  --proxy="https://testnet-gateway.elrond.com" --chain=T --send

View contract info:

erdpy --verbose contract query erd1qqqqqqqqqqqqqpgqg2xqcug6ghcftlrufdge3a5tx52r8z3yeeyq649nn6 --function="getDeadline" --proxy="https://testnet-gateway.elrond.com"
erdpy --verbose contract query erd1qqqqqqqqqqqqqpgqg2xqcug6ghcftlrufdge3a5tx52r8z3yeeyq649nn6 --function="status" --proxy="https://testnet-gateway.elrond.com"
erdpy --verbose contract query erd1qqqqqqqqqqqqqpgqg2xqcug6ghcftlrufdge3a5tx52r8z3yeeyq649nn6 --function="getTarget" --proxy="https://testnet-gateway.elrond.com"
erdpy --verbose contract query erd1qqqqqqqqqqqqqpgqg2xqcug6ghcftlrufdge3a5tx52r8z3yeeyq649nn6 --function="getCrowdfundingTokenIdentifier" --proxy="https://testnet-gateway.elrond.com"
erdpy --verbose contract query erd1qqqqqqqqqqqqqpgqg2xqcug6ghcftlrufdge3a5tx52r8z3yeeyq649nn6 --function="getDeposit" --arguments "0x03EA59C40153B0F90FB41B4F117745E44597BB2F2037EE98B745E506E6B2CE48" --proxy="https://testnet-gateway.elrond.com"
erdpy --verbose contract query erd1qqqqqqqqqqqqqpgqg2xqcug6ghcftlrufdge3a5tx52r8z3yeeyq649nn6 --function="getCrowdfundingTokenName" --proxy="https://testnet-gateway.elrond.com"

elrond-crowdfunding's People

Contributors

0xleeaki 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.