Skip to content

Commit

Permalink
feat: integrate superchainerc20 redesign
Browse files Browse the repository at this point in the history
  • Loading branch information
tremarkley committed Oct 16, 2024
1 parent d642dd4 commit b757a9b
Show file tree
Hide file tree
Showing 34 changed files with 1,701 additions and 525 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,9 @@ go.work.sum

.DS_Store

# vendored packages
lib

/main
dist/
cache/
2 changes: 1 addition & 1 deletion Justfile
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ calculate-artifact-url:
echo "https://storage.googleapis.com/oplabs-contract-artifacts/artifacts-v1-$checksum.tar.gz"
generate-monorepo-bindings:
./scripts/generate-bindings.sh -u $(just calculate-artifact-url) -n CrossL2Inbox,L2ToL2CrossDomainMessenger,L1BlockInterop,SuperchainWETH -o ./bindings
./scripts/generate-bindings.sh -u $(just calculate-artifact-url) -n CrossL2Inbox,L2ToL2CrossDomainMessenger,L1BlockInterop,SuperchainWETH,SuperchainERC20 -o ./bindings

generate-genesis: build-contracts checkout-optimism-monorepo
go run ./genesis/cmd/main.go --monorepo-artifacts $(just calculate-artifact-url) --periphery-artifacts ./contracts/out --outdir ./genesis/generated
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ cast send 0x420beeF000000000000000000000000000000001 "mint(address _to, uint256
Send the tokens from Chain 901 to Chain 902 using the following command:
```sh
cast send 0x420beeF000000000000000000000000000000001 "sendERC20(address _to, uint256 _amount, uint256 _chainId)" 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 1000 902 --rpc-url http://127.0.0.1:9545 --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
cast send 0x4200000000000000000000000000000000000028 "sendERC20(address _token, address _to, uint256 _amount, uint256 _chainId)" 0x420beeF000000000000000000000000000000001 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266 1000 902 --rpc-url http://127.0.0.1:9545 --private-key 0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf4f2ff80
```
**4. Wait for the relayed message to appear on chain 902**
Expand All @@ -148,7 +148,7 @@ In a few seconds, you should see the RelayedMessage on chain 902:
```sh
# example
INFO [08-30|14:30:14.698] L2ToL2CrossChainMessenger#RelayedMessage sourceChainID=901 destinationChainID=902 nonce=0 sender=0x420beeF000000000000000000000000000000001 target=0x420beeF000000000000000000000000000000001
INFO [08-30|14:30:14.698] L2ToL2CrossChainMessenger#RelayedMessage sourceChainID=901 destinationChainID=902 nonce=0 sender=0x4200000000000000000000000000000000000028 target=0x4200000000000000000000000000000000000028
```
**5. Check the balance on chain 902**
Expand Down
5 changes: 3 additions & 2 deletions bindings/crossl2inbox.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions bindings/l1blockinterop.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

303 changes: 142 additions & 161 deletions bindings/l2nativesuperchainerc20.go

Large diffs are not rendered by default.

5 changes: 3 additions & 2 deletions bindings/l2tol2crossdomainmessenger.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b757a9b

Please sign in to comment.