Skip to content

Commit f9453c4

Browse files
authored
refactor: changes to dips to better support payment collection in indexer-agent (#608)
* refactor: changes to dips to better support payment collection in indexer-agent * chore: rename dipper to gateway dips, remove dipper-rpc, publish js 0.2.1 * chore: fmt
1 parent d436023 commit f9453c4

20 files changed

+561
-109
lines changed

.sqlx/query-47f848e049f3ff22e65bb53edc7ddc1646e68d6db58124b6e0d780c037f73513.json

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

.sqlx/query-cb01d485323ed4b697d3c0c645f5174cc42ea3884e5b54ffb5c94605637d0baa.json renamed to .sqlx/query-5c973791bb27465b198eafbab7d63850617919fa84bfaecb0518fd6d4ab70bec.json

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

.sqlx/query-d0258d53c19174720f2d4d9cde481e457931b65eca471efed650b10d70d2282a.json

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

Cargo.lock

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

Cargo.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ typed-builder = "0.20.0"
8080
tonic = { version = "0.12.3", features = ["tls-roots", "gzip"] }
8181
prost = "0.13.4"
8282
prost-types = "0.13.3"
83-
dipper-rpc = { git = "https://github.com/edgeandnode/dipper/", rev = "c8700e2", default-features = false }
8483
tonic-build = "0.12.3"
8584
serde_yaml = "0.9.21"
8685

crates/dips/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ version = "0.1.0"
44
edition = "2021"
55

66
[dependencies]
7+
axum.workspace = true
8+
build-info.workspace = true
79
thiserror.workspace = true
810
anyhow.workspace = true
911
alloy-rlp = "0.3.10"
@@ -15,6 +17,7 @@ prost-types.workspace = true
1517
uuid.workspace = true
1618
base64.workspace = true
1719
tokio.workspace = true
20+
sqlx.workspace = true
1821
futures = "0.3"
1922

2023
http = "0.2"

crates/dips/build.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,13 @@ fn main() {
66
tonic_build::configure()
77
.out_dir("src/proto")
88
.include_file("indexer.rs")
9-
.build_client(false)
109
.protoc_arg("--experimental_allow_proto3_optional")
1110
.compile_protos(&["proto/indexer.proto"], &["proto/"])
1211
.expect("Failed to compile DIPs indexer RPC proto(s)");
1312

1413
tonic_build::configure()
1514
.out_dir("src/proto")
1615
.include_file("gateway.rs")
17-
.build_server(false)
1816
.protoc_arg("--experimental_allow_proto3_optional")
1917
.compile_protos(&["proto/gateway.proto"], &["proto"])
2018
.expect("Failed to compile DIPs gateway RPC proto(s)");

crates/dips/package-lock.json

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

crates/dips/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@graphprotocol/dips-proto",
3-
"version": "0.1.0",
3+
"version": "0.2.1",
44
"main": "generated/index.js",
55
"types": "generated/index.d.ts",
66
"files": [

crates/dips/proto/gateway.proto

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ syntax = "proto3";
22

33
package graphprotocol.gateway.dips;
44

5-
service DipsService {
5+
service GatewayDipsService {
66
/**
77
* Cancel an _indexing agreement_.
88
*

0 commit comments

Comments
 (0)