|
|
3 yıl önce | |
|---|---|---|
| .. | ||
| .openzeppelin | a9a1fb7b5a Add deployment files of optimism goerli + fix bugs (#364) | 3 yıl önce |
| contracts | d9e94b284d Refactor the governance code a bit (#359) | 3 yıl önce |
| forge-test | 1c17499d03 Add foundry base (#362) | 3 yıl önce |
| lib | 1c17499d03 Add foundry base (#362) | 3 yıl önce |
| migrations | a9a1fb7b5a Add deployment files of optimism goerli + fix bugs (#364) | 3 yıl önce |
| networks | a9a1fb7b5a Add deployment files of optimism goerli + fix bugs (#364) | 3 yıl önce |
| scripts | d3d10f2ce2 Add set fee to tests + add some sanity checks (#350) | 3 yıl önce |
| test | bdc492f919 [eth] Some contract improvements (#356) | 3 yıl önce |
| .dockerignore | 4f4bec508e EVM deployment scripts and documentation (#141) | 3 yıl önce |
| .env.cluster.mainnet | a9a1fb7b5a Add deployment files of optimism goerli + fix bugs (#364) | 3 yıl önce |
| .env.cluster.testnet | a9a1fb7b5a Add deployment files of optimism goerli + fix bugs (#364) | 3 yıl önce |
| .env.prod.arbitrum | f7958e387f [eth] Add set fee migration step + deployment process improvement (#346) | 3 yıl önce |
| .env.prod.aurora | f7958e387f [eth] Add set fee migration step + deployment process improvement (#346) | 3 yıl önce |
| .env.prod.aurora_testnet | f7958e387f [eth] Add set fee migration step + deployment process improvement (#346) | 3 yıl önce |
| .env.prod.avalanche | f7958e387f [eth] Add set fee migration step + deployment process improvement (#346) | 3 yıl önce |
| .env.prod.bnb | f7958e387f [eth] Add set fee migration step + deployment process improvement (#346) | 3 yıl önce |
| .env.prod.bnb_testnet | f7958e387f [eth] Add set fee migration step + deployment process improvement (#346) | 3 yıl önce |
| .env.prod.development | f7958e387f [eth] Add set fee migration step + deployment process improvement (#346) | 3 yıl önce |
| .env.prod.ethereum | f7958e387f [eth] Add set fee migration step + deployment process improvement (#346) | 3 yıl önce |
| .env.prod.fantom | f7958e387f [eth] Add set fee migration step + deployment process improvement (#346) | 3 yıl önce |
| .env.prod.fantom_testnet | f7958e387f [eth] Add set fee migration step + deployment process improvement (#346) | 3 yıl önce |
| .env.prod.fuji | f7958e387f [eth] Add set fee migration step + deployment process improvement (#346) | 3 yıl önce |
| .env.prod.goerli | f7958e387f [eth] Add set fee migration step + deployment process improvement (#346) | 3 yıl önce |
| .env.prod.mumbai | f7958e387f [eth] Add set fee migration step + deployment process improvement (#346) | 3 yıl önce |
| .env.prod.optimism | f7958e387f [eth] Add set fee migration step + deployment process improvement (#346) | 3 yıl önce |
| .env.prod.optimism_goerli | a9a1fb7b5a Add deployment files of optimism goerli + fix bugs (#364) | 3 yıl önce |
| .env.prod.polygon | f7958e387f [eth] Add set fee migration step + deployment process improvement (#346) | 3 yıl önce |
| .env.template | a9a1fb7b5a Add deployment files of optimism goerli + fix bugs (#364) | 3 yıl önce |
| .env.test | f7958e387f [eth] Add set fee migration step + deployment process improvement (#346) | 3 yıl önce |
| .gitignore | 1c17499d03 Add foundry base (#362) | 3 yıl önce |
| Deploying.md | 62ef9d7d1f Add set fee mainnet deployment info (#349) | 3 yıl önce |
| README.md | 1c17499d03 Add foundry base (#362) | 3 yıl önce |
| VERIFY.md | 05c631b022 Add mainnet networks (#274) | 3 yıl önce |
| deploy.sh | c47199d6cb [eth] contract improvement (#348) | 3 yıl önce |
| devnet_mnemonic.txt | 2ea41b8176 [WIP] Pr/drozdziak1/p2w batching/5e704f8b (#877) | 3 yıl önce |
| foundry.toml | 1c17499d03 Add foundry base (#362) | 3 yıl önce |
| mine.js | da768a09c4 ethereum: mine ganache blocks in the background | 5 yıl önce |
| package-lock.json | a9a1fb7b5a Add deployment files of optimism goerli + fix bugs (#364) | 3 yıl önce |
| package.json | a9a1fb7b5a Add deployment files of optimism goerli + fix bugs (#364) | 3 yıl önce |
| truffle-config.js | a9a1fb7b5a Add deployment files of optimism goerli + fix bugs (#364) | 3 yıl önce |
| truffle-verify-constants.patch | 60d313b23c ethereum: Add contract verification instructions (#792) | 3 yıl önce |
This directory contains The Pyth contract on Ethereum and utilities to deploy it in EVM chains.
Run the following command to install required dependencies for the contract:
# xc-governance-sdk-js is a local dependency that should be built
# it is used in deployment (truffle migrations) to generate/sanity check
# the governance VAAs
pushd third_party/pyth/xc-governance-sdk-js && npm ci && popd
npm ci
Please refer to Deploying.md for more information.
Foundry can be installed by the official installer, or by running our helper script which will automatically pull the correct installation script individually for Foundry and the Solidity compiler for your current OS. This may work better if you are running into networking/firewall issues using Foundry's Solidity installer. To use helper script, run the command below from this directory:
pyth-crosschain/ethereum $ bash ../scripts/install-foundry.sh
You need to install npm dependencies as described in Installation. Also, you need to run the following command to install forge dependencies:
npm run install-forge-deps
After installing the dependencies. Run forge build to build the contracts and forge test to
test the contracts using tests in forge-test directory.