RightFS / parami-chainbridge-solidity

Solidity contracts for ChainBridge

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Compilation finished successfully
bridge address 0x4C2db4545c1b7ACfb653544868CA6E61757Fb2e9
0x7ad7d598b79160d3186f0d027681eca517ebb032eeddbd4acc50aae691d78d1a
bridge deployed
ERC20HandlerContract address 0x68CA1d8944aA990bd5d616e60C53b2110D4DE996
0xb06337cc2ab6db9660bf1a5b393912bef9d265eb87bc7752d1013d2b8c8f1087
ERC20HandlerContract deployed

https://rinkeby.etherscan.io/address/0x4C2db4545c1b7ACfb653544868CA6E61757Fb2e9

Advanced Sample Hardhat Project

This project demonstrates an advanced Hardhat use case, integrating other tools commonly used alongside Hardhat in the ecosystem.

The project comes with a sample contract, a test for that contract, a sample script that deploys that contract, and an example of a task implementation, which simply lists the available accounts. It also comes with a variety of other tools, preconfigured to work with the project code.

Try running some of the following tasks:

npx hardhat accounts
npx hardhat compile
npx hardhat clean
npx hardhat test
npx hardhat node
npx hardhat help
REPORT_GAS=true npx hardhat test
npx hardhat coverage
npx hardhat run scripts/deploy.ts
TS_NODE_FILES=true npx ts-node scripts/deploy.ts
npx eslint '**/*.{js,ts}'
npx eslint '**/*.{js,ts}' --fix
npx prettier '**/*.{json,sol,md}' --check
npx prettier '**/*.{json,sol,md}' --write
npx solhint 'contracts/**/*.sol'
npx solhint 'contracts/**/*.sol' --fix

Etherscan verification

To try out Etherscan verification, you first need to deploy a contract to an Ethereum network that's supported by Etherscan, such as Ropsten.

In this project, copy the .env.example file to a file named .env, and then edit it to fill in the details. Enter your Etherscan API key, your Ropsten node URL (eg from Alchemy), and the private key of the account which will send the deployment transaction. With a valid .env file in place, first deploy your contract:

hardhat run --network ropsten scripts/sample-script.ts

Then, copy the deployment address and paste it in to replace DEPLOYED_CONTRACT_ADDRESS in this command:

npx hardhat verify --network ropsten DEPLOYED_CONTRACT_ADDRESS "Hello, Hardhat!"

Performance optimizations

For faster runs of your tests and scripts, consider skipping ts-node's type checking by setting the environment variable TS_NODE_TRANSPILE_ONLY to 1 in hardhat's environment. For more details see the documentation.

About

Solidity contracts for ChainBridge

License:GNU Lesser General Public License v3.0


Languages

Language:JavaScript 74.4%Language:Solidity 24.1%Language:TypeScript 1.2%Language:Makefile 0.2%Language:Shell 0.0%