Skip to content

Commit c69d372

Browse files
authored
Update Deploying.md (#231)
1 parent 6a46dfc commit c69d372

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

ethereum/Deploying.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ As a sanity check, it is recommended to deploy the migrations in `migrations/pr
2929

3030
As a result of this process for some files (with the network id in their name) in `networks` and `.openzeppelin` directory might change which need to be committed (if they are result of a production deployment).
3131

32+
If you are deploying to a new network, please add the new contract address to consumer facing libraries and documentations.
33+
34+
To do so, add the contract address to both [Pyth Gitbook EVM Page](https://github.com/pyth-network/pyth-gitbook/blob/main/consumers/evm.md) and [pyth-evm-js package](https://github.com/pyth-network/pyth-js/blob/main/pyth-evm-js/src/index.ts#L13). You also need to add the new network address to [pyth-evm-js relaying example](https://github.com/pyth-network/pyth-js/blob/main/pyth-evm-js/src/examples/EvmRelay.ts#L47).
35+
3236
## `networks` directory
3337
Truffle stores the address of the deployed contracts in the build artifacts, which can make local development difficult. We use [`truffle-deploy-registry`](https://github.com/MedXProtocol/truffle-deploy-registry) to store the addresses separately from the artifacts, in the [`networks`](networks) directory. When we need to perform operations on the deployed contracts, such as performing additional migrations, we can run `npx apply-registry` to populate the artifacts with the correct addresses.
3438

0 commit comments

Comments
 (0)