-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add base deployment.json + script updates (#12)
- Loading branch information
Showing
6 changed files
with
75 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
"addresses": { | ||
"queryClient": "0x80c0a42F808d6f35e83F4939482A485caE536e6a", | ||
"registryImpl": "0x7fc914f86A8eC5bCDA00d6F0D4655b5716f5f12d", | ||
"registryProxy": "0x2584665Beff871534118aAbAE781BC267Af142f9", | ||
"storageContract": "0x0000000000000000000000000000000000000000" | ||
}, | ||
"chainInfo": { | ||
"chainId": 8453, | ||
"deploymentBlock": 13885371 | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
// SPDX-License-Identifier: MIT | ||
pragma solidity ^0.8.13; | ||
|
||
import {BaseScript} from "../BaseScript.s.sol"; | ||
import {LPNRegistryV0} from "../../src/LPNRegistryV0.sol"; | ||
import {LPNQueryV0} from "../../src/client/LPNQueryV0.sol"; | ||
import {PUDGEY_PENGUINS, L1_BASE_BRIDGE} from "../../src/utils/Constants.sol"; | ||
|
||
contract Bridge is BaseScript { | ||
function run() external broadcaster { | ||
IBaseBridge baseBridge = IBaseBridge(L1_BASE_BRIDGE); | ||
baseBridge.bridgeETH{value: 0.01 ether}(200_000, new bytes(0)); | ||
} | ||
} | ||
|
||
interface IBaseBridge { | ||
/** | ||
* @notice Sends ETH to the sender's address on the other chain. | ||
* | ||
* @param _minGasLimit Minimum amount of gas that the bridge can be relayed with. | ||
* @param _extraData Extra data to be sent with the transaction. Note that the recipient will | ||
* not be triggered with this data, but it will be emitted and can be used | ||
* to identify the transaction. | ||
*/ | ||
function bridgeETH(uint32 _minGasLimit, bytes calldata _extraData) | ||
external | ||
payable; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters