2.2.0 • Published 6 days ago

@venusprotocol/oracle v2.2.0

Weekly downloads
-
License
-
Repository
-
Last release
6 days ago

Venus Oracle

Usage

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_MAINNET=true PRIVATE_KEY and QUICK_NODE_KEY 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.3.0-dev.1

6 days ago

2.2.0

7 days ago

2.2.0-dev.2

8 days ago

2.2.0-dev.3

7 days ago

2.2.0-dev.1

14 days ago

2.1.0

16 days ago

2.1.0-dev.1

16 days ago

2.0.0

22 days ago

2.0.0-dev.1

22 days ago

1.11.0-dev.1

1 month ago

1.10.0-dev.7

2 months ago

1.10.0-dev.8

2 months ago

1.10.0

2 months ago

1.10.0-dev.6

2 months ago

1.10.0-dev.5

2 months ago

1.10.0-dev.4

3 months ago

1.10.0-dev.3

3 months ago

1.10.0-dev.2

3 months ago

1.10.0-dev.1

3 months ago

1.9.0-dev.2

3 months ago

1.9.0-dev.3

3 months ago

1.9.0

3 months ago

1.9.0-dev.1

3 months ago

1.8.0

4 months ago

1.8.0-dev.13

4 months ago

1.8.0-dev.12

4 months ago

1.8.0-dev.11

5 months ago

1.8.0-dev.10

5 months ago

1.8.0-dev.9

5 months ago

1.8.0-dev.8

5 months ago

1.8.0-dev.7

5 months ago

1.8.0-dev.6

5 months ago

1.8.0-dev.5

5 months ago

1.6.12-dev.3

10 months ago

1.6.12-dev.5

10 months ago

1.7.4-dev.1

6 months ago

1.6.12-dev.4

10 months ago

1.6.12-dev.7

10 months ago

1.6.12-dev.6

10 months ago

1.7.1-dev.1

9 months ago

1.7.0-dev.1

10 months ago

1.6.13

10 months ago

1.7.0-dev.6

10 months ago

1.7.0-dev.5

10 months ago

1.7.0-dev.4

10 months ago

1.7.0-dev.3

10 months ago

1.7.0-dev.2

10 months ago

1.7.3

7 months ago

1.7.2

9 months ago

1.7.1

9 months ago

1.7.0

10 months ago

1.7.3-dev.1

7 months ago

1.7.2-dev.1

9 months ago

1.8.0-dev.4

5 months ago

1.8.0-dev.3

5 months ago

1.8.0-dev.2

5 months ago

1.8.0-dev.1

5 months ago

1.0.0

11 months ago

1.6.11-dev.12

11 months ago

1.6.11-dev.10

11 months ago

1.6.11-dev.11

11 months ago

1.6.12-dev.1

11 months ago

1.6.12-dev.2

11 months ago

1.6.11-dev.8

11 months ago

1.6.11

11 months ago

1.6.12

11 months ago

1.6.11-dev.9

11 months ago

1.6.4

1 year ago

1.6.3

1 year ago

1.6.2

1 year ago

1.6.1

1 year ago

1.0.0-dev.1

12 months ago

1.6.11-dev.7

12 months ago

1.6.11-dev.6

12 months ago

1.6.11-dev.5

12 months ago

1.6.9

1 year ago

1.6.11-dev.4

12 months ago

1.6.8

1 year ago

1.6.11-dev.3

12 months ago

1.6.10

1 year ago

1.6.7

1 year ago

1.6.11-dev.2

12 months ago

1.6.6

1 year ago

1.6.5

1 year ago

1.6.0

1 year ago

1.5.1

1 year ago

1.5.0

1 year ago

1.3.3

1 year ago

1.4.1

1 year ago

1.3.2

1 year ago

1.2.3

1 year ago

1.4.0

1 year ago

1.3.1

1 year ago

1.2.2

1 year ago

1.3.0

1 year ago

1.2.1

1 year ago

1.2.0

2 years ago

1.1.3

2 years ago

1.1.2

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago