https://github.com/elastos/elastos.ela.staketicket.solidity
https://github.com/elastos/elastos.ela.staketicket.solidity
Last synced: 4 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/elastos/elastos.ela.staketicket.solidity
- Owner: elastos
- Created: 2022-09-16T05:36:50.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2024-12-24T13:29:44.000Z (5 months ago)
- Last Synced: 2024-12-24T15:12:33.729Z (5 months ago)
- Language: Solidity
- Size: 63.7 MB
- Stars: 1
- Watchers: 17
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Elastos.ELA.StakeTicket.Solidity: Decentralized pledge contract based on Elastos main chain and ESC side chain
[](#contributors)
[](#solidity)
[](#License)## 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`](https://github.com/creationix/nvm) and run `nvm use` to use the correct version of node.Requires `nodejs` ,`yarn` and `npm`.
```shell
# 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
```shell
yarn install
```
2. deploy the contract NFT contract
```shell
yarn scripts scripts/0deployErc721.js --network test
```3. deploy the contract Ticket contract
```shell
yarn scripts scripts/1deployStakeTicket.js --network test
```4. run claim function
```shell
yarn scripts scripts/2claim.js --network test
```5. run burn function
```shell
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.