GithubHelp home page GithubHelp logo

bridgecrew-perf7 / eth-contracts Goto Github PK

View Code? Open in Web Editor NEW

This project forked from attrace/eth-contracts

0.0 0.0 0.0 207 KB

This repository contains contracts deployed to mainnet ethereum

Home Page: https://attrace.com

JavaScript 71.24% Solidity 28.76%

eth-contracts's Introduction


Attrace logo
Attrace Ethereum Contracts

This repository contains contracts deployed to mainnet ethereum.

More information: https://attrace.com

Development

Intro

Make sure to learn https://docs.openzeppelin.com/upgrades-plugins/1.x/proxies

Yarn users

Use npm instead in this project

Once

npm i

# https://hardhat.org/guides/shorthand.html
npm i -g hardhat-shorthand 

Dev workflow

# Running scripts
hh run --verbose scripts/filename.js...  [--network hardhat|localhost|rinkeby|...]

# Running tests
hh test

Workflow evm node

# In separate thread
hh node

# Now run any command with network suffix
hh test --network localhost

Create .env

.env is not tracked in git

Depending on environment, the scripts expect these files with the right settings when deploying to them.

Before deploying, make sure you have the right .env loaded.

cat .env.shared >> .env
cat .env.NETWORK >> .env
# Now edit and fill out all missing values

Console logging example

โš ๏ธ Uncomment these statements import+usage before deploys!

import "hardhat/console.sol";
console.log("Changing greeting from '%s' to '%s'", greeting, _greeting);

Deployment

Scripts are ran in a migration style and state of addresses and migrations should be tracked in the repo (manually).

We maintain a markdown file per network. Where we paste all commands with output and reference addresses which successfully complete.

Attrace classic migration

The token starts as a fork of the Attrace classic network.

Due to change in address structure (ed25519 => ethereum secp256k1), transfering the tokens will happen through a bridge. The bridge collects the relationship between classic network and ethereum addresses.

Etherscan verification

https://github.com/hjubb/solt

./devutils/solt write --npm contracts/ATTRToken.sol

eth-contracts's People

Contributors

roelentless 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.