@@ -9,57 +9,8 @@ pub struct SubmitAgreementProposalRequest {
99 #[ prost( bytes = "vec" , tag = "1" ) ]
1010 pub agreement_id : :: prost:: alloc:: vec:: Vec < u8 > ,
1111 /// / The voucher of the agreement.
12- #[ prost( message, optional, tag = "20" ) ]
13- pub voucher : :: core:: option:: Option < Voucher > ,
14- /// / The signature of the message.
15- #[ prost( bytes = "vec" , tag = "99" ) ]
16- pub signature : :: prost:: alloc:: vec:: Vec < u8 > ,
17- }
18- /// *
19- /// A voucher of an _indexing agreement_.
20- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
21- pub struct Voucher {
22- /// / The agreement payer.
23- #[ prost( bytes = "vec" , tag = "1" ) ]
24- pub payer : :: prost:: alloc:: vec:: Vec < u8 > ,
25- /// / The voucher recipient address.
26- #[ prost( bytes = "vec" , tag = "2" ) ]
27- pub recipient : :: prost:: alloc:: vec:: Vec < u8 > ,
28- /// / Service address that will initiate the payment collection.
29- #[ prost( bytes = "vec" , tag = "3" ) ]
30- pub service : :: prost:: alloc:: vec:: Vec < u8 > ,
31- /// / The duration of the agreement in epochs.
32- #[ prost( uint32, tag = "10" ) ]
33- pub duration_epochs : u32 ,
34- /// / The maximum amount, in _wei GRT_, that can be collected for the initial subgraph sync.
35- #[ prost( bytes = "vec" , tag = "20" ) ]
36- pub max_initial_amount : :: prost:: alloc:: vec:: Vec < u8 > ,
37- /// / The maximum amount, in _wei GRT_, that can be collected per epoch (after the initial sync).
38- #[ prost( bytes = "vec" , tag = "21" ) ]
39- pub min_ongoing_amount_per_epoch : :: prost:: alloc:: vec:: Vec < u8 > ,
40- /// / The maximum number of epochs that can be collected at once.
41- #[ prost( uint32, tag = "30" ) ]
42- pub max_epochs_per_collection : u32 ,
43- /// / The minimum number of epochs that can be collected at once.
44- #[ prost( uint32, tag = "31" ) ]
45- pub min_epochs_per_collection : u32 ,
46- /// / The voucher metadata.
47- #[ prost( message, optional, tag = "50" ) ]
48- pub metadata : :: core:: option:: Option < VoucherMetadata > ,
49- }
50- /// *
51- /// The indexing agreement voucher metadata.
52- #[ derive( Clone , PartialEq , :: prost:: Message ) ]
53- pub struct VoucherMetadata {
54- /// / The Subgraph deployment ID to index.
55- #[ prost( bytes = "vec" , tag = "1" ) ]
56- pub deployment_id : :: prost:: alloc:: vec:: Vec < u8 > ,
57- /// / The amount to pay per indexed block in _wei GRT per block_.
5812 #[ prost( bytes = "vec" , tag = "20" ) ]
59- pub price_per_block : :: prost:: alloc:: vec:: Vec < u8 > ,
60- /// / The amount to pay per indexed and stored entity in _wei GRT per entity per epoch_.
61- #[ prost( bytes = "vec" , tag = "21" ) ]
62- pub price_per_entity_per_epoch : :: prost:: alloc:: vec:: Vec < u8 > ,
13+ pub signed_voucher : :: prost:: alloc:: vec:: Vec < u8 > ,
6314}
6415/// *
6516/// A response to a request to propose a new _indexing agreement_ to an _indexer_.
0 commit comments