Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
N
nebula
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
exchain
nebula
Commits
3f0e0c03
Unverified
Commit
3f0e0c03
authored
Jul 20, 2023
by
mergify[bot]
Committed by
GitHub
Jul 20, 2023
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'develop' into willc/changeset-fix
parents
6edb8c09
a97d50eb
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
157 additions
and
71 deletions
+157
-71
violet-pants-dress.md
.changeset/violet-pants-dress.md
+5
-0
config.yml
.circleci/config.yml
+15
-0
tag-service.yml
.github/workflows/tag-service.yml
+4
-3
example.env
packages/sdk/example.env
+4
-0
cross-chain-messenger.ts
packages/sdk/src/cross-chain-messenger.ts
+78
-68
README.md
packages/sdk/test-next/README.md
+1
-0
messageStatus.spec.ts
packages/sdk/test-next/messageStatus.spec.ts
+50
-0
No files found.
.changeset/violet-pants-dress.md
0 → 100644
View file @
3f0e0c03
---
'
@eth-optimism/sdk'
:
minor
---
Added to and from block filters to several methods in CrossChainMessenger
.circleci/config.yml
View file @
3f0e0c03
...
...
@@ -1745,6 +1745,21 @@ workflows:
-
oplabs-gcr-release
requires
:
-
hold
-
docker-release
:
name
:
op-ufm-docker-release
filters
:
tags
:
only
:
/^op-ufm\/v.*/
branches
:
ignore
:
/.*/
docker_file
:
op-ufm/Dockerfile
docker_name
:
op-ufm
docker_tags
:
<<pipeline.git.revision>>,<<pipeline.git.branch>>
docker_context
:
.
context
:
-
oplabs-gcr-release
requires
:
-
hold
-
docker-release
:
name
:
proxyd-docker-release
filters
:
...
...
.github/workflows/tag-service.yml
View file @
3f0e0c03
...
...
@@ -18,13 +18,14 @@ on:
required
:
true
type
:
choice
options
:
-
ci-builder
-
fault-detector
-
indexer
-
op-node
-
op-batcher
-
op-proposer
-
op-ufm
-
proxyd
-
indexer
-
fault-detector
-
ci-builder
prerelease
:
description
:
Increment major/minor/patch as prerelease?
required
:
false
...
...
packages/sdk/example.env
0 → 100644
View file @
3f0e0c03
// public rpcs are heavily throttled/rate limited so replace these with rpcs with apikeys. These are meant to be testnet rpcs
// in future these will get renamed to VITE_E2E_RPC_URL_GOERLI etc.
VITE_E2E_RPC_URL_L1=https://ethereum-goerli.publicnode.com
VITE_E2E_RPC_URL_L2=https://goerli.optimism.io
\ No newline at end of file
packages/sdk/src/cross-chain-messenger.ts
View file @
3f0e0c03
This diff is collapsed.
Click to expand it.
packages/sdk/test-next/README.md
View file @
3f0e0c03
...
...
@@ -2,3 +2,4 @@
-
The new tests for the next version of sdk will use vitest
-
The vitest tests are kept here seperated from mocha tests for now
-
Can find values needed in a
`.env`
file in
`example.env`
packages/sdk/test-next/messageStatus.ts
→
packages/sdk/test-next/messageStatus.
spec.
ts
View file @
3f0e0c03
...
...
@@ -11,22 +11,40 @@ const crossChainMessenger = new CrossChainMessenger({
bedrock
:
true
,
})
describe
(
'
prove message
'
,
()
=>
{
describe
(
'
getMessageStatus
'
,
()
=>
{
it
(
`should be able to correctly find a finalized withdrawal`
,
async
()
=>
{
/**
* Tx hash of
legacy withdrawal that was claimed
* Tx hash of
a withdrawal
*
* @see https://goerli-optimism.etherscan.io/tx/0x
da9e9c8dfc7718bc1499e1e64d8df6cddbabc46e819475a6c755db286a41b9fa
* @see https://goerli-optimism.etherscan.io/tx/0x
8fb235a61079f3fa87da66e78c9da075281bc4ba5f1af4b95197dd9480e03bb5
*/
const
txWithdrawalHash
=
'
0x
da9e9c8dfc7718bc1499e1e64d8df6cddbabc46e819475a6c755db286a41b9fa
'
'
0x
8fb235a61079f3fa87da66e78c9da075281bc4ba5f1af4b95197dd9480e03bb5
'
const
txReceipt
=
await
l2Provider
.
getTransactionReceipt
(
txWithdrawalHash
)
expect
(
txReceipt
).
toBeDefined
()
expect
(
await
crossChainMessenger
.
getMessageStatus
(
txWithdrawalHash
)).
toBe
(
MessageStatus
.
RELAYED
)
expect
(
await
crossChainMessenger
.
getMessageStatus
(
txWithdrawalHash
,
0
,
9370789
-
1000
,
9370789
)
).
toBe
(
MessageStatus
.
RELAYED
)
},
20
_000
)
it
(
`should return READY_FOR_RELAY if not in block range`
,
async
()
=>
{
const
txWithdrawalHash
=
'
0x8fb235a61079f3fa87da66e78c9da075281bc4ba5f1af4b95197dd9480e03bb5
'
const
txReceipt
=
await
l2Provider
.
getTransactionReceipt
(
txWithdrawalHash
)
expect
(
txReceipt
).
toBeDefined
()
expect
(
await
crossChainMessenger
.
getMessageStatus
(
txWithdrawalHash
,
0
,
0
,
0
)
).
toBe
(
MessageStatus
.
READY_FOR_RELAY
)
},
20
_000
)
})
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment