Skip to content

maint(ct): clean up L2StdBridge tests#2491

Merged
mergify[bot] merged 2 commits intodevelopfrom
sc/ct-test-cleanup-11
Apr 24, 2022
Merged

maint(ct): clean up L2StdBridge tests#2491
mergify[bot] merged 2 commits intodevelopfrom
sc/ct-test-cleanup-11

Conversation

@smartcontracts
Copy link
Contributor

Description
Cleans up the L2StandardBridge tests using the same techniques as
previous cleanup PRs.

Cleans up the L2StandardBridge tests using the same techniques as
previous cleanup PRs.
@changeset-bot
Copy link

changeset-bot bot commented Apr 22, 2022

⚠️ No Changeset found

Latest commit: 060ecc3

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@mergify
Copy link
Contributor

mergify bot commented Apr 24, 2022

This PR has been added to the merge queue, and will be merged soon.

@mergify
Copy link
Contributor

mergify bot commented Apr 24, 2022

This PR is next in line to be merged, and will be merged as soon as checks pass.

@mergify mergify bot merged commit 7f52efb into develop Apr 24, 2022
@mergify mergify bot deleted the sc/ct-test-cleanup-11 branch April 24, 2022 13:09
nebojsa94 pushed a commit to Tenderly/optimism that referenced this pull request Apr 26, 2022
Cleans up the L2StandardBridge tests using the same techniques as
previous cleanup PRs.

Co-authored-by: mergify[bot] <37929162+mergify[bot]@users.noreply.github.com>
@mslipper mslipper mentioned this pull request Apr 28, 2022
theochap pushed a commit that referenced this pull request Dec 10, 2025
## Summary

Adds comprehensive documentation for all rollup RPC methods in the
`docs/` directory, following the established format of the P2P RPC
documentation.

## Changes

- **Replaced placeholder content** in
`docs/docs/pages/node/rpc/rollup.mdx` with complete documentation
- **Documented all 4 supported rollup RPC methods** with detailed
specifications:
- `optimism_outputAtBlock` - Get output root and block info at specific
block
- `optimism_syncStatus` - Get comprehensive L1/L2 synchronization status
- `optimism_rollupConfig` - Get complete rollup configuration parameters
  - `optimism_version` - Get Kona software version
- **Documented deprecated method** `optimism_safeHeadAtL1Block` as
unsupported with explanation
- **Added comprehensive examples** with realistic JSON-RPC
request/response pairs
- **Included parameter and return type specifications** for all methods

## Documentation Quality

✅ **Follows established patterns** - Uses same structure and format as
existing P2P RPC docs
✅ **Method signatures verified** - Confirmed against trait definitions
in `crates/node/rpc/src/jsonrpsee.rs`
✅ **Implementation validated** - Cross-referenced with actual usage in
test files
✅ **Complete coverage** - Documents all methods found in
`RollupNodeApiServer` trait
✅ **Properly integrated** - Already listed in sidebar navigation and
overview

## Before/After

**Before:**
```markdown
# Rollup RPC Methods

Coming soon...
```

**After:** 354 lines of comprehensive documentation including:
- Detailed method descriptions and purpose
- Parameter specifications with types and valid values  
- Complete response structure documentation
- Realistic JSON-RPC examples for each method
- Clear indication of unsupported methods with explanations

## Example Usage

The documentation now provides clear guidance for developers:

```bash
# Get current sync status
curl -X POST -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","id":1,"method":"optimism_syncStatus","params":[]}' \
  http://localhost:8545

# Get output at latest block  
curl -X POST -H "Content-Type: application/json" \
  --data '{"jsonrpc":"2.0","id":1,"method":"optimism_outputAtBlock","params":["latest"]}' \
  http://localhost:8545
```

Closes the documentation gap for rollup RPC methods and provides
developers with complete reference material for interacting with Kona's
rollup functionality.

<!-- START COPILOT CODING AGENT TIPS -->
---

💬 Share your feedback on Copilot coding agent for the chance to win a
$200 gift card! Click
[here](https://survey.alchemer.com/s3/8343779/Copilot-Coding-agent) to
start the survey.

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: refcell <21288394+refcell@users.noreply.github.com>
Co-authored-by: refcell <abigger87@gmail.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants