Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(contract_manager): add monad testnet deplmnt on beta channel #2452

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion contract_manager/store/chains/EvmChains.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -851,7 +851,7 @@
type: EvmChain
- id: monad_testnet
mainnet: false
rpcUrl: https://rpc.monad-testnet.category.xyz/rpc/nSyzM1wlIgaALWzbh3oIg5rW65AC6yjqrslOE8wb
rpcUrl: https://testnet-rpc.monad.xyz
networkId: 10143
type: EvmChain
- id: berachain_mainnet
Expand Down
3 changes: 3 additions & 0 deletions contract_manager/store/contracts/EvmPriceFeedContracts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -490,3 +490,6 @@
- chain: bittensor_mainnet
address: "0x2880aB155794e7179c9eE2e38200202908C17B43"
type: EvmPriceFeedContract
- chain: monad_testnet # This is on beta channel
address: "0xad2B52D2af1a9bD5c561894Cdd84f7505e1CD0B5"
type: EvmPriceFeedContract
3 changes: 3 additions & 0 deletions contract_manager/store/contracts/EvmWormholeContracts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -484,3 +484,6 @@
- chain: bittensor_mainnet
address: "0xb27e5ca259702f209a29225d0eDdC131039C9933"
type: EvmWormholeContract
- chain: monad_testnet # this is on beta channel
address: "0xd74CdD8Eef0E97a5a7678F907991316f88E7965A"
type: EvmWormholeContract
4 changes: 2 additions & 2 deletions contract_manager/store/contracts/NearPriceFeedContracts.yaml
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
- chain: near
address: pyth-oracle.near
type: NearPriceFeedContract
governanceDataSourceChain: 1
governanceDataSourceAddress: 5635979a221c34931e32620b9293a463065555ea71fe97cd6237ade875b12e9e
lastExecutedGovernanceSequence: 408
type: NearPriceFeedContract
- chain: near_testnet
address: pyth-oracle.testnet
type: NearPriceFeedContract
governanceDataSourceChain: 1
governanceDataSourceAddress: 63278d271099bfd491951b3e648f08b1c71631e4a53674ad43e8f9f98068c385
lastExecutedGovernanceSequence: 100
type: NearPriceFeedContract
14 changes: 3 additions & 11 deletions target_chains/ethereum/contracts/deploy.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,24 +11,16 @@
# $ ./deploy.sh ethereum bnb avalanche
set -euo pipefail

echo "=========== Building dependencies ==========="
pushd ../../../
pnpm turbo build --filter @pythnetwork/pyth-evm-contract
popd

echo "=========== Compiling ==========="

if [[ -e contracts/pyth/PythUpgradable_merged.sol ]]; then
echo "Flattened contract PythUpgradable_merged.sol exists. Removing before compiling."
rm contracts/pyth/PythUpgradable_merged.sol
fi

echo "Building the contracts..."
# Ensure that we deploy a fresh build with up-to-date dependencies.
rm -rf build && pnpm exec truffle compile --all
echo "=========== Building dependencies & compiling contract ==========="
pnpm turbo build --filter @pythnetwork/pyth-evm-contract

echo "Deploying the contracts..."

pushd ../../../contract_manager/

pnpm exec ts-node scripts/deploy_evm_pricefeed_contracts.ts --std-output-dir ../target_chains/ethereum/contracts/build/contracts --private-key $PK --chain "$@"
pnpm exec ts-node scripts/deploy_evm_pricefeed_contracts.ts --std-output-dir ../target_chains/ethereum/contracts/build/contracts --private-key $PK --deployment-type "stable" --chain "$@"
Loading