Skip to content

Commit 7f594b0

Browse files
authored
Merge branch 'master' into pxrl/renameCher
2 parents 52fb81c + ceda866 commit 7f594b0

File tree

119 files changed

+13628
-5889
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

119 files changed

+13628
-5889
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ jobs:
3333
# Setup .npmrc file to publish to npm
3434
- uses: actions/setup-node@v3
3535
with:
36-
node-version: "18.x"
36+
node-version: "20.x"
3737
always-auth: true
3838
registry-url: "https://registry.npmjs.org"
3939

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,5 @@ target
3232
**/*.rs.bk
3333
test-ledger
3434
src/svm/assets
35+
src/svm/clients/*
36+
!src/svm/clients/index.ts

Anchor.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ wallet = "test/svm/keys/localnet-wallet.json"
2323
[scripts]
2424
test = "anchor run generateExternalTypes && yarn run ts-mocha -p ./tsconfig.json -t 1000000 test/svm/**/*.ts"
2525
queryEvents = "NODE_NO_WARNINGS=1 yarn run ts-node ./scripts/svm/queryEvents.ts"
26+
queryEventsV2 = "NODE_NO_WARNINGS=1 yarn run ts-node ./scripts/svm/queryEventsV2.ts"
2627
initialize = "NODE_NO_WARNINGS=1 yarn run ts-node ./scripts/svm/initialize.ts"
2728
queryState = "NODE_NO_WARNINGS=1 yarn run ts-node ./scripts/svm/queryState.ts"
2829
enableRoute = "NODE_NO_WARNINGS=1 yarn run ts-node ./scripts/svm/enableRoute.ts"

contracts/DoctorWho_SpokePool.sol

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
// SPDX-License-Identifier: BUSL-1.1
2+
pragma solidity ^0.8.0;
3+
import "@eth-optimism/contracts/libraries/constants/Lib_PredeployAddresses.sol";
4+
5+
import "./Ovm_SpokePool.sol";
6+
import "./external/interfaces/CCTPInterfaces.sol";
7+
8+
/**
9+
* @notice DoctorWho Spoke pool.
10+
* @custom:security-contact [email protected]
11+
*/
12+
contract DoctorWho_SpokePool is Ovm_SpokePool {
13+
/// @custom:oz-upgrades-unsafe-allow constructor
14+
constructor(
15+
address _wrappedNativeTokenAddress,
16+
uint32 _depositQuoteTimeBuffer,
17+
uint32 _fillDeadlineBuffer,
18+
IERC20 _l2Usdc,
19+
ITokenMessenger _cctpTokenMessenger
20+
)
21+
Ovm_SpokePool(
22+
_wrappedNativeTokenAddress,
23+
_depositQuoteTimeBuffer,
24+
_fillDeadlineBuffer,
25+
_l2Usdc,
26+
_cctpTokenMessenger
27+
)
28+
{} // solhint-disable-line no-empty-blocks
29+
30+
/**
31+
* @notice Construct the OVM DoctorWho SpokePool.
32+
* @param _initialDepositId Starting deposit ID. Set to 0 unless this is a re-deployment in order to mitigate
33+
* relay hash collisions.
34+
* @param _crossDomainAdmin Cross domain admin to set. Can be changed by admin.
35+
* @param _withdrawalRecipient Address which receives token withdrawals. Can be changed by admin. For Spoke Pools on L2, this will
36+
* likely be the hub pool.
37+
*/
38+
function initialize(
39+
uint32 _initialDepositId,
40+
address _crossDomainAdmin,
41+
address _withdrawalRecipient
42+
) public initializer {
43+
__OvmSpokePool_init(_initialDepositId, _crossDomainAdmin, _withdrawalRecipient, Lib_PredeployAddresses.OVM_ETH);
44+
}
45+
}

contracts/SpokePool.sol

Lines changed: 63 additions & 135 deletions
Large diffs are not rendered by default.

contracts/SpokePoolV3Periphery.sol

Lines changed: 0 additions & 493 deletions
This file was deleted.

0 commit comments

Comments
 (0)