2.4.0 • Published 5 days ago

@venusprotocol/token-bridge v2.4.0

Weekly downloads
-
License
ISC
Repository
-
Last release
5 days ago

GitHub Actions GitHub Actions

Development

Prerequisites

Installing

yarn install

Linting and code formatting

Linting is done using eslint for typescript and solhint for solidity. Prettier is used to format solidity and typescript files.

To check linting and formatting on all files run:

$ yarn lint

Linting command can be run with the fix flag to fix eligible errors automatically

$ yarn lint:sol --fix
$ yarn lint:ts --fix

To pretty all files run:

$ yarn prettier

Run Tests

npx hardhat test
  • To run fork tests add FORK=true, FORKED_NETWORK and one ARCHIVE_NODE var in the .env file.

Releases and Versioning

Releases are automatically managed using semantic-release and commit messages.

Deployment

npx hardhat deploy
  • This command will execute all the deployment scripts in ./deploy directory
  • The default network will be hardhat
  • Deployment to another network: - Make sure the desired network is configured in hardhat.config.ts - Add PRIVATE_KEY variable in .env file - Execute deploy command by adding --network <network_name> in the deploy command above - E.g. npx hardhat deploy --network bsctestnet
  • Execution of single or custom set of scripts is possible, if:
    • In the deployment scripts you have added tags for example: - func.tags = ["MockTokens"];
    • Once this is done, adding --tags "<tag_name>,<tag_name>..." to the deployment command will execute only the scripts containing the tags.

Verify Contracts

npx hardhat etherscan-verify --network <network-name>

Hardhat Commands

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

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

Documentation

Documentation is autogenerated using solidity-docgen.

They can be generated by running yarn docgen

2.4.0

5 days ago

2.4.0-dev.2

8 days ago

2.4.0-dev.1

20 days ago

2.3.0

2 months ago

2.3.0-dev.2

3 months ago

2.3.0-dev.3

2 months ago

2.2.0

3 months ago

2.3.0-dev.1

3 months ago

2.2.0-dev.2

4 months ago

2.2.0-dev.3

3 months ago

2.2.0-dev.1

5 months ago

2.1.0-dev.1

7 months ago

2.1.0

7 months ago

2.0.0-dev.3

8 months ago

2.0.0

8 months ago

2.0.0-dev.2

8 months ago

2.0.0-dev.1

8 months ago

1.1.0

10 months ago

1.0.1-dev.1

11 months ago

1.1.0-dev.1

11 months ago

1.0.0

12 months ago

1.0.0-dev.12

12 months ago

1.0.0-dev.11

12 months ago

1.0.0-dev.10

12 months ago

1.0.0-dev.9

12 months ago

1.0.0-dev.7

1 year ago

1.0.0-dev.8

1 year ago

1.0.0-dev.6

1 year ago

1.0.0-dev.5

1 year ago

1.0.0-dev.4

1 year ago

1.0.0-dev.3

1 year ago

1.0.0-dev.2

1 year ago

1.0.0-dev.1

1 year ago