defisaver-v3-contracts – defisaver-v3-合同区块链毕设代写

区块链毕设代写本文提供国外最新区块链项目源码下载,包括solidity,eth,fabric等blockchain区块链,defisaver-v3-contracts – defisaver-v3-合同区块链毕设代写 是一篇很好的国外资料

defisaver-v3-contracts

All the contracts related to the Defi Saver ecosystem.

Detailed overview about that code can be found https://docs.defisaver.com

To install

Run npm install or yarn in the repo folder. You will also need to create a .env file as in the .env.example and fill it in with appropriate api keys.

How to run tests

All of the tests are ran from the forked state of the mainnet. In the hardhat config you can change the block number the fork starts from. If it starts from an old state some tests might not work.

  1. You first need to start a hardhat node from the forked mainnet with the following command:

npx hardhat node --max-memory 8192 --fork ETHEREUM_NODE_URL

  1. In a different terminal window you can now deploy the recipe system:

npm run deploy local deploy-core

  1. After that you can run the tests, for example:

npm run test local ./mcd/mcd-supply.js

Common commands

npm run compile – will compile all the contracts

npm run deploy [network] [deploy-script] – will deploy to the specified network by calling the script from the /scripts folder

npm run test [network] [test-file] – will run a test to the specified network by calling the script from the /test folder

npm run verify [network] [contract-name] – will verify contract based on address and arguments from /deployments folder


defisaver-v3-contracts的地址和参数来验证契约

所有与Defi Saver生态系统相关的合同

可以找到有关该代码的详细概述https://docs.defisaver.com

以安装

运行repo文件夹中的npm install或yarn。您还需要创建一个.env文件,如.env.example中所示,并用适当的api键填充它

如何运行测试

所有测试都是从主网的分叉状态运行的。在hardhat配置中,您可以更改fork的起始块号。如果它从一个旧的状态开始,一些测试可能无法工作

  1. 首先需要使用以下命令从分叉的mainnet启动一个hardhat节点:

npm run deploy local deploy core

  1. 在不同的终端窗口中,现在可以部署配方系统:

npm run test local./mcd/mcd-supply.js

  1. 然后可以运行测试,例如:

npm run compile-将编译所有契约

常用命令

npm run deploy[network][deploy script]-将通过从/脚本文件夹

npm run test[network][test file]-将通过从/test文件夹调用脚本来对指定网络运行测试

npm run verify[network][contract name]-将基于/deployments文件夹

npm run verify [network] [contract-name] – will verify contract based on address and arguments from /deployments folder

部分转自网络,侵权联系删除区块链源码网

www.interchains.cc

https://www.interchains.cc/22601.html

区块链毕设网(www.interchains.cc)全网最靠谱的原创区块链毕设代做网站 部分资料来自网络,侵权联系删除! 最全最大的区块链源码站 ! QQ3039046426
区块链知识分享网, 以太坊dapp资源网, 区块链教程, fabric教程下载, 区块链书籍下载, 区块链资料下载, 区块链视频教程下载, 区块链基础教程, 区块链入门教程, 区块链资源 » defisaver-v3-contracts – defisaver-v3-合同区块链毕设代写

提供最优质的资源集合

立即查看 了解详情