Skip to content
This repository was archived by the owner on Jan 12, 2026. It is now read-only.

Commit c49949f

Browse files
authored
Merge pull request #22 from danyalprout/tips-rpc
feat: TIPS Metering RPC
2 parents dcab1ed + 0643ccb commit c49949f

21 files changed

Lines changed: 316 additions & 20 deletions

.github/workflows/checks_docker.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
jobs:
1111
build-docker:
1212
name: Build Docker image
13-
runs-on: warp-ubuntu-latest-x64-16x
13+
runs-on: ubuntu-24.04
1414

1515
steps:
1616
- name: Checkout sources

.github/workflows/docker_build.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
extract-version:
1010
name: Extract version
11-
runs-on: warp-ubuntu-latest-x64-16x
11+
runs-on: ubuntu-24.04
1212
outputs:
1313
VERSION: ${{ steps.extract_version.outputs.VERSION }}
1414
steps:
@@ -43,7 +43,7 @@ jobs:
4343
matrix:
4444
configs:
4545
- target: linux/amd64
46-
runner: warp-ubuntu-latest-x64-16x
46+
runner: ubuntu-24.04
4747
- target: linux/arm64
4848
runner: warp-ubuntu-latest-arm64-16x
4949
docker_target:

.github/workflows/op_rbuilder_checks.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ env:
1313
jobs:
1414
lint_and_test:
1515
name: Lint and test
16-
runs-on: warp-ubuntu-latest-x64-16x
16+
runs-on: ubuntu-24.04
1717
env:
1818
# Set features for the Makefile
1919
FEATURES: ${{ matrix.features }}

.github/workflows/op_rbuilder_release.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ on:
3434
jobs:
3535
extract-version:
3636
name: Extract version
37-
runs-on: warp-ubuntu-latest-x64-16x
37+
runs-on: ubuntu-24.04
3838
outputs:
3939
VERSION: ${{ steps.extract-version.outputs.VERSION }}
4040
steps:
@@ -73,7 +73,7 @@ jobs:
7373
matrix:
7474
configs:
7575
- target: x86_64-unknown-linux-gnu
76-
runner: warp-ubuntu-latest-x64-16x
76+
runner: ubuntu-24.04
7777
- target: aarch64-unknown-linux-gnu
7878
runner: warp-ubuntu-latest-arm64-32x
7979
# Paused until docker is pre-installed https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
@@ -120,7 +120,7 @@ jobs:
120120
name: Draft release
121121
if: ${{ github.event.inputs.draft-release == 'true' || github.event_name == 'push'}} # when manually triggered or version tagged
122122
needs: [extract-version, build-binary]
123-
runs-on: warp-ubuntu-latest-x64-16x
123+
runs-on: ubuntu-24.04
124124
env:
125125
VERSION: ${{ needs.extract-version.outputs.VERSION }}
126126
permissions:
@@ -179,7 +179,7 @@ jobs:
179179
matrix:
180180
configs:
181181
- platform: linux/amd64
182-
runner: warp-ubuntu-latest-x64-16x
182+
runner: ubuntu-24.04
183183
- platform: linux/arm64
184184
runner: warp-ubuntu-latest-arm64-16x
185185
steps:
@@ -249,7 +249,7 @@ jobs:
249249

250250
publish-container-index:
251251
name: Publish container index
252-
runs-on: warp-ubuntu-latest-x64-16x
252+
runs-on: ubuntu-24.04
253253
env:
254254
VERSION: ${{ needs.extract-version.outputs.VERSION }}
255255
needs:

.github/workflows/tdx_quote_provider_checks.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ env:
1111
jobs:
1212
check:
1313
name: Check
14-
runs-on: warp-ubuntu-latest-x64-16x
14+
runs-on: ubuntu-24.04
1515
defaults:
1616
run:
1717
working-directory: "./crates/tdx-quote-provider"
@@ -48,7 +48,7 @@ jobs:
4848

4949
docker:
5050
name: Docker Build
51-
runs-on: warp-ubuntu-latest-x64-16x
51+
runs-on: ubuntu-24.04
5252
defaults:
5353
run:
5454
working-directory: "./crates/tdx-quote-provider"

.github/workflows/tdx_quote_provider_release.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ on:
2222
jobs:
2323
extract-version:
2424
name: Extract version
25-
runs-on: warp-ubuntu-latest-x64-16x
25+
runs-on: ubuntu-24.04
2626
outputs:
2727
VERSION: ${{ steps.extract_version.outputs.VERSION }}
2828
steps:
@@ -58,7 +58,7 @@ jobs:
5858
matrix:
5959
configs:
6060
- target: x86_64-unknown-linux-gnu
61-
runner: warp-ubuntu-latest-x64-16x
61+
runner: ubuntu-24.04
6262
- target: aarch64-unknown-linux-gnu
6363
runner: warp-ubuntu-latest-arm64-32x
6464
# Paused until docker is pre-installed https://github.com/actions/runner-images/blob/main/images/macos/macos-14-arm64-Readme.md
@@ -100,7 +100,7 @@ jobs:
100100
name: Draft release
101101
if: ${{ github.event.inputs.draft-release == 'true' || github.event_name == 'push'}} # when manually triggered or version tagged
102102
needs: [extract-version, build-binary]
103-
runs-on: warp-ubuntu-latest-x64-16x
103+
runs-on: ubuntu-24.04
104104
env:
105105
VERSION: op-${{ needs.extract-version.outputs.VERSION }}
106106
permissions:

Cargo.lock

Lines changed: 21 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -213,3 +213,7 @@ time = { version = "0.3.36", features = ["macros", "formatting", "parsing"] }
213213
vergen = "9.0.4"
214214
vergen-git2 = "1.0.5"
215215
opentelemetry = { version = "0.31", features = ["trace"] }
216+
217+
# Base Path
218+
concurrent-queue = "2.5.0"
219+
tips-core = { git = "https://github.com/base/tips", rev = "c08eaa4fe10c26de8911609b41ddab4918698325", default-features = false }

crates/op-rbuilder/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ workspace = true
1414
[dependencies]
1515
p2p = { path = "../p2p" }
1616

17+
tips-core.workspace = true
18+
1719
reth.workspace = true
1820
reth-optimism-node.workspace = true
1921
reth-optimism-cli.workspace = true
@@ -112,6 +114,7 @@ url.workspace = true
112114
anyhow = "1"
113115
opentelemetry = { workspace = true, optional = true }
114116
dashmap.workspace = true
117+
concurrent-queue.workspace = true
115118
hex = { workspace = true }
116119
futures = { workspace = true }
117120
futures-util = { workspace = true }

crates/op-rbuilder/src/args/op.rs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,15 @@ pub struct OpRbuilderArgs {
4848
/// Whether to enable revert protection by default
4949
#[arg(long = "builder.enable-revert-protection", default_value = "false")]
5050
pub enable_revert_protection: bool,
51+
/// Whether to enable TIPS Resource Metering
52+
#[arg(long = "builder.enable-resource-metering", default_value = "false")]
53+
pub enable_resource_metering: bool,
54+
/// Whether to enable TIPS Resource Metering
55+
#[arg(
56+
long = "builder.resource-metering-buffer-size",
57+
default_value = "10000"
58+
)]
59+
pub resource_metering_buffer_size: usize,
5160

5261
/// Path to builder playgorund to automatically start up the node connected to it
5362
#[arg(

0 commit comments

Comments
 (0)