Skip to content

Commit

Permalink
bump deployment addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
e00dan committed Jan 9, 2024
1 parent 86be59a commit d3aa8dd
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 10 deletions.
19 changes: 13 additions & 6 deletions EXISTING_DEPLOYMENT.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,25 @@

For demo purposes here are example contracts deployed on Sepolia and Mumbai.

1. Sepolia Proxy: https://sepolia.etherscan.io/address/0x43d4e075bdF270513d6c76F59eCC5C4479322A3a#readProxyContract
2. Mumbai Proxy: https://mumbai.polygonscan.com/address/0x43d4e075bdF270513d6c76F59eCC5C4479322A3a
1. Sepolia Proxy: https://sepolia.etherscan.io/address/0xb90bC30922CF87F0CCD44402d8bAfE5c6d736F6e#readProxyContract
2. Mumbai Proxy: https://mumbai.polygonscan.com/address/0xb90bC30922CF87F0CCD44402d8bAfE5c6d736F6e

Both proxies and implementations are verified on [Sourcify](https://sourcify.dev/#/lookup/0x43d4e075bdF270513d6c76F59eCC5C4479322A3a).
Both proxies and implementations are verified on [Sourcify](https://sourcify.dev/#/lookup/0xb90bC30922CF87F0CCD44402d8bAfE5c6d736F6e).

```
== Logs ==
Counter address: 0xA13e2fa62b771887F383F4a95c4D8E9eA1A0d748
Counter Proxy address: 0x43d4e075bdF270513d6c76F59eCC5C4479322A3a
Deploying to chain: sepolia
Counter address: 0x2ac921D0E2ae6F9248CD4a5D92e4Ad7B1f0777F6
Counter Proxy address: 0xb90bC30922CF87F0CCD44402d8bAfE5c6d736F6e
Deploying to chain: mumbai
Counter address: 0x2ac921D0E2ae6F9248CD4a5D92e4Ad7B1f0777F6
Counter Proxy address: 0xb90bC30922CF87F0CCD44402d8bAfE5c6d736F6e
```

Example cross-chain transaction from Sepolia to Mumbai: [LayerZero Scan](https://testnet.layerzeroscan.com/tx/0xa236623f7cab080c706edf3889fe8dd2c55f0750fc5dc29cb4794dffc361b0e7)
Example cross-chain transaction from Sepolia to Mumbai: [LayerZero Scan](https://testnet.layerzeroscan.com/tx/0x10afbb616943a29187b3e268a89c9eefc7672858dff77c52b5609b81497543ab)

Example message options that can be used for quoting and then calling `increment()`: `0x00030100110100000000000000000000000000030d40` (pay 200k gas to Executor and trigger LZ Receive).

Expand Down
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ Add `--broadcast` when you're ready to send actual transactions ([example tx](ht

[Read EXISTING_DEPLOYMENT.md.](./EXISTING_DEPLOYMENT.md)

### Compatibility

Tested with:
```
forge 0.2.0 (71d8ea5 2024-01-09T14:41:14.837767655Z)
```

## Inspiration 💡

This repository is, to a significant extent, a compilation of other people's work. I just put these separate pieces together to achieve best developer experience possible.
Expand Down
4 changes: 2 additions & 2 deletions VERIFICATION.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@ Verifying UUPSProxy seems to require marking the contract as proxy in Etherscan
Full verification can be done by manually obtaining constructor args and executing following command:
```
forge verify-contract PROXY_ADDRESS UUPSProxy \
--constructor-args "0x000000000000000000000000a13e2fa62b771887f383f4a95c4d8e9ea1a0d74800000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000044485cc955000000000000000000000000464570ada09869d8741132183721b4f0769a028700000000000000000000000073b31ac967f46db2c45280c7f5d1d3ee7f38e12200000000000000000000000000000000000000000000000000000000" \
--constructor-args "0x0000000000000000000000002ac921d0e2ae6f9248cd4a5d92e4ad7b1f0777f600000000000000000000000000000000000000000000000000000000000000400000000000000000000000000000000000000000000000000000000000000044485cc955000000000000000000000000464570ada09869d8741132183721b4f0769a028700000000000000000000000073b31ac967f46db2c45280c7f5d1d3ee7f38e12200000000000000000000000000000000000000000000000000000000" \
--watch --chain sepolia
```

Constructor arguments can be obtained from `./broadcast/multi/Counter.s.sol-latest/deployCounterTestnet.json` after running deployment script.
Constructor arguments can be obtained from `./broadcast/multi/Counter.s.sol-latest/deployCounterTestnet.json` after running deployment script. Last 384 characters prefixed by 0x of transaction data from `UUPSProxy` deployment.
4 changes: 2 additions & 2 deletions script/Counter.s.sol
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ contract DeployCounter is Script, BaseDeployer {

/// @dev Helper to iterate over chains and select fork.
function createDeployMultichain() private {
address[] memory deployedContracts = new address[](2);
uint256[] memory forkIds = new uint256[](2);
address[] memory deployedContracts = new address[](targetChains.length);
uint256[] memory forkIds = new uint256[](targetChains.length);

for (uint256 i; i < targetChains.length;) {
console2.log("Deploying to chain:", forks[targetChains[i].chain], "\n");
Expand Down

0 comments on commit d3aa8dd

Please sign in to comment.