Skip to content

feat(sdk): add support for Bedrock#2701

Closed
smartcontracts wants to merge 6 commits intodevelopfrom
sc/sdk-bedrock
Closed

feat(sdk): add support for Bedrock#2701
smartcontracts wants to merge 6 commits intodevelopfrom
sc/sdk-bedrock

Conversation

@smartcontracts
Copy link
Contributor

Description
Adds support for Bedrock behind a bedrock flag. Specifically updates how
events are queried, hashed, and relayed.

@changeset-bot
Copy link

changeset-bot bot commented Jun 6, 2022

🦋 Changeset detected

Latest commit: 6be5e79

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@eth-optimism/sdk Minor
@eth-optimism/contracts-bedrock Patch
@eth-optimism/drippie-mon Patch
@eth-optimism/message-relayer Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@github-actions github-actions bot added the A-pkg-sdk Area: packages/sdk label Jun 6, 2022
@smartcontracts smartcontracts force-pushed the sc/sdk-bedrock branch 4 times, most recently from 5434991 to 9984163 Compare June 6, 2022 23:11
CanonicalTransactionChain:
'0x5E4e65926BA27467555EB562121fac00D24E9dD2' as const,
BondManager: '0xcd626E1328b41fCF24737F137BcD4CE0c32bc8d1' as const,
OptimismPortal: '0x0000000000000000000000000000000000000000' as const,
Copy link
Contributor Author

@smartcontracts smartcontracts Jun 6, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Will need to replace these addresses once they've been deployed

@smartcontracts smartcontracts force-pushed the sc/sdk-bedrock branch 2 times, most recently from 680694a to bb8b28d Compare June 6, 2022 23:31
);

emit SentMessage(_target, msg.sender, _message, messageNonce(), _minGasLimit);
emit SentMessageExtraData(msg.sender, msg.value);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

SentMessage is a legacy event that shouldn't be changed so we can preserve the interface. Instead of adding a completely new event, we add SentMessageExtraData.

@smartcontracts smartcontracts force-pushed the sc/sdk-bedrock branch 3 times, most recently from 9dd1059 to c522919 Compare June 7, 2022 03:36
@smartcontracts
Copy link
Contributor Author

CI issue driving me crazy, will fix tomorrow

@tynes
Copy link
Contributor

tynes commented Jun 8, 2022

Not sure why this error is happening, my guess its a bad import path or something about the docker build in CI

#27 218.1 src/utils/contracts.ts(3,47): error TS2307: Cannot find module '@eth-optimism/contracts-bedrock/artifacts/contracts/universal/CrossDomainMessenger.sol/CrossDomainMessenger.json' or its corresponding type declarations.

Skipping flaky geth tests here: #2720

Could look at .dockerignore to be sure artifacts isn't in it

@mergify
Copy link
Contributor

mergify bot commented Jun 8, 2022

Hey @smartcontracts! This PR has merge conflicts. Please fix them before continuing review.

@mergify mergify bot added conflict and removed conflict labels Jun 8, 2022
@smartcontracts smartcontracts force-pushed the sc/sdk-bedrock branch 2 times, most recently from 52bd275 to 78778bd Compare June 14, 2022 20:10
@mergify
Copy link
Contributor

mergify bot commented Jun 14, 2022

Hey @smartcontracts! This PR has merge conflicts. Please fix them before continuing review.

@mergify mergify bot added the conflict label Jun 14, 2022
@mergify mergify bot removed the conflict label Jun 27, 2022
@smartcontracts smartcontracts force-pushed the sc/sdk-bedrock branch 2 times, most recently from 5284f03 to 045e19d Compare June 27, 2022 21:35
@smartcontracts smartcontracts force-pushed the sc/sdk-bedrock branch 6 times, most recently from 28a7488 to bb0e7bb Compare June 28, 2022 19:39
@mergify
Copy link
Contributor

mergify bot commented Jun 28, 2022

Hey @smartcontracts! This PR has merge conflicts. Please fix them before continuing review.

@mergify mergify bot added the conflict label Jun 28, 2022
@smartcontracts smartcontracts force-pushed the sc/sdk-bedrock branch 2 times, most recently from 710f566 to e3153a3 Compare June 28, 2022 19:57
@mergify mergify bot removed the conflict label Jun 28, 2022
@smartcontracts smartcontracts force-pushed the sc/sdk-bedrock branch 3 times, most recently from 7f32954 to 5554f33 Compare June 28, 2022 21:20
@mergify
Copy link
Contributor

mergify bot commented Jun 28, 2022

Hey @smartcontracts! This PR has merge conflicts. Please fix them before continuing review.

@mergify mergify bot added the conflict label Jun 28, 2022
Adds a SentMessageV2 event to the XDM which includes all relevant
information in the sent message and properly indexes the sender address.
Adds support for Bedrock behind a bedrock flag. Specifically updates how
events are queried, hashed, and relayed.
@mergify mergify bot removed the conflict label Jun 29, 2022
@smartcontracts smartcontracts deleted the sc/sdk-bedrock branch August 18, 2022 15:23
theochap pushed a commit that referenced this pull request Dec 10, 2025
### Description

P2P Peer Scoring Example in the docs.

Progress on #2581
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-pkg-sdk Area: packages/sdk

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants