Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions crates/dips/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,5 @@ fn main() {
.protoc_arg("--experimental_allow_proto3_optional")
.compile_protos(&["proto/indexer.proto"], &["proto/"])
.expect("Failed to compile DIPs indexer RPC proto(s)");

tonic_prost_build::configure()
.build_server(true)
.out_dir("src/proto")
.include_file("gateway.rs")
.protoc_arg("--experimental_allow_proto3_optional")
.compile_protos(&["proto/gateway.proto"], &["proto"])
.expect("Failed to compile DIPs gateway RPC proto(s)");
}
}
73 changes: 0 additions & 73 deletions crates/dips/proto/gateway.proto

This file was deleted.

26 changes: 1 addition & 25 deletions crates/dips/proto/indexer.proto
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,6 @@ service IndexerDipsService {
* The _indexer_ can `ACCEPT` or `REJECT` the agreement.
*/
rpc SubmitAgreementProposal(SubmitAgreementProposalRequest) returns (SubmitAgreementProposalResponse);

/**
* Request to cancel an existing _indexing agreement_.
*/
rpc CancelAgreement(CancelAgreementRequest) returns (CancelAgreementResponse);
}

/**
Expand All @@ -23,7 +18,7 @@ service IndexerDipsService {
*/
message SubmitAgreementProposalRequest {
uint64 version = 1;
bytes signed_voucher = 2; /// An ERC-712 signed indexing agreement voucher
bytes signed_rca = 2; /// ABI-encoded SignedRCA (RecurringCollectionAgreement plus signature).
}

/**
Expand Down Expand Up @@ -60,22 +55,3 @@ enum RejectReason {
REJECT_REASON_AGREEMENT_EXPIRED = 8; /// The agreement end time has already passed.
REJECT_REASON_UNSUPPORTED_METADATA_VERSION = 9; /// The metadata version is not supported.
}

/**
* A request to cancel an _indexing agreement_.
*
* See the `DipsService.CancelAgreement` method.
*/
message CancelAgreementRequest {
uint64 version = 1;
bytes signed_cancellation = 2; /// a signed ERC-712 message cancelling an agreement
}

/**
* A response to a request to cancel an existing _indexing agreement_.
*
* See the `DipsService.CancelAgreement` method.
*/
message CancelAgreementResponse {
// Empty message, eventually we may add custom status codes
}
8 changes: 0 additions & 8 deletions crates/dips/src/proto/gateway.rs

This file was deleted.

Loading
Loading