xuxinlai2002 / pressTest.solidity

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Elastos.ELA.StakeTicket.Solidity: Decentralized pledge contract based on Elastos main chain and ESC side chain

All Contributors golang c++

Overview

Elastos.ELA.StakeTicket.Solidity is a ticket pledge system based on Elastos main chain and ESC side chain, which includes functions such as claim, mint and burn

Dependencies

Either make sure you're running a version of node compliant with the engines requirement in package.json, or install Node Version Manager nvm and run nvm use to use the correct version of node.

Requires nodejs ,yarn and npm.

# node -v 
v16.0.0
# yarn version
yarn version v1.22.17 
# npm -v
8.5.3

Quick Start

Take the test environment as an example, including the deployment of contracts, the implementation of Burn and Claim functions

  1. Install the package
yarn install
  1. deploy the contract NFT contract
yarn scripts scripts/0deployErc721.js --network test
  1. deploy the contract Ticket contract
yarn scripts scripts/1deployStakeTicket.js --network test
  1. run claim function
yarn scripts scripts/2claim.js --network test
  1. run burn function
yarn scripts scripts/3burnTick.js --network test

License

And of course: MIT: https://rem.mit-license.org

Contribution

Thank you for considering to help out with the source code! We welcome contributions from anyone on the internet, and are grateful for even the smallest of fixes!

If you'd like to contribute to Elastos.ELA.StakeTicket.Solidity , please fork, fix, commit and send a pull request for the maintainers to review and merge into the main code base.

About


Languages

Language:JavaScript 87.1%Language:Solidity 12.9%