Skip to content

Commit

Permalink
Improve
Browse files Browse the repository at this point in the history
  • Loading branch information
guibescos committed Mar 13, 2024
1 parent a852e9b commit 8d03143
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions docs/pips/operational/op-pip-1.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,12 @@ Branch: [`chore/evm/blast-claim-gas`](https://github.com/pyth-network/pyth-cros
* Verify the implementation following the guide below:

1. Make sure you node-js, forge and jq installed.
a. node-js: install `nvm` from [here](https://github.com/nvm-sh/nvm). Install node 18 (`nvm install 18; nvm use 18`)
b. forge: install it from [here](https://getfoundry.sh/)
c. jq: install it from [here](https://jqlang.github.io/jq/)
1. node-js: install `nvm` from [here](https://github.com/nvm-sh/nvm). Install node 18 (`nvm install 18; nvm use 18`)
2. forge: install it from [here](https://getfoundry.sh/)
3. jq: install it from [here](https://jqlang.github.io/jq/)
2. Clone the `pyth-crosschain` repo (`git clone https://github.com/pyth-network/pyth-crosschain.git`). Go to the `pyth-crosschain` directory and run the following command: `npm ci && npx lerna run build`
3. Go to the proposal code branch (`git checkout <branch name>`)
4. Get the on-chain implementation code digest by going to the `contract_manager` directory and running `npx ts-node scripts/check_proposal.ts --cluster mainnet-beta --proposal <proposal id>`
5. Get the source code digest by going to the `target_chains/ethereum/contracts` directory and running `npx truffle compile --all && cat build/contracts/PythUpgradable.json | jq -r .deployedBytecode | tr -d '\r\n' | cast keccak`
6. Check the hash digest from the on-chain implementation (from step 6) matches the hash digest from the source code (from step 7).
6. Check the hash digest from the on-chain implementation (from step 4) matches the hash digest from the source code (from step 5).
p.s: the codes above are not merged in our contract because these are one-off and cannot be in our generic smart-contract. We will store the diff in the repo like [this](https://github.com/pyth-network/pyth-crosschain/blob/main/target_chains/ethereum/contracts/canto-deployment-patch.diff) one.
8 changes: 4 additions & 4 deletions docs/pips/operational/op-pip-2.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,13 @@ Branch: [`chore/evm/mode-claim-gas`](https://github.com/pyth-network/pyth-cross
* Verify the implementation following the guide below:

1. Make sure you node-js, forge and jq installed.
a. node-js: install `nvm` from [here](https://github.com/nvm-sh/nvm). Install node 18 (`nvm install 18; nvm use 18`)
b. forge: install it from [here](https://getfoundry.sh/)
c. jq: install it from [here](https://jqlang.github.io/jq/)
1. node-js: install `nvm` from [here](https://github.com/nvm-sh/nvm). Install node 18 (`nvm install 18; nvm use 18`)
2. forge: install it from [here](https://getfoundry.sh/)
3. jq: install it from [here](https://jqlang.github.io/jq/)
2. Clone the `pyth-crosschain` repo (`git clone https://github.com/pyth-network/pyth-crosschain.git`). Go to the `pyth-crosschain` directory and run the following command: `npm ci && npx lerna run build`
3. Go to the proposal code branch (`git checkout <branch name>`)
4. Get the on-chain implementation code digest by going to the `contract_manager` directory and running `npx ts-node scripts/check_proposal.ts --cluster mainnet-beta --proposal <proposal id>`
5. Get the source code digest by going to the `target_chains/ethereum/contracts` directory and running `npx truffle compile --all && cat build/contracts/PythUpgradable.json | jq -r .deployedBytecode | tr -d '\r\n' | cast keccak`
6. Check the hash digest from the on-chain implementation (from step 6) matches the hash digest from the source code (from step 7).
6. Check the hash digest from the on-chain implementation (from step 4) matches the hash digest from the source code (from step 5).

p.s: the codes above are not merged in our contract because these are one-off and cannot be in our generic smart-contract. We will store the diff in the repo like [this](https://github.com/pyth-network/pyth-crosschain/blob/main/target_chains/ethereum/contracts/canto-deployment-patch.diff) one.

0 comments on commit 8d03143

Please sign in to comment.