@@ -307,6 +307,26 @@ export const start = {
307307 default : 1 ,
308308 group : 'Indexer Infrastructure' ,
309309 } )
310+ . option ( 'enable-dips' , {
311+ description : 'Whether to enable Indexing Fees (DIPs)' ,
312+ type : 'boolean' ,
313+ default : false ,
314+ group : 'Indexing Fees ("DIPs")' ,
315+ } )
316+ . option ( 'dipper-endpoint' , {
317+ description : 'Gateway endpoint for DIPs receipts' ,
318+ type : 'string' ,
319+ array : false ,
320+ required : false ,
321+ group : 'Indexing Fees ("DIPs")' ,
322+ } )
323+ . option ( 'dips-allocation-amount' , {
324+ description : 'Amount of GRT to allocate for DIPs' ,
325+ type : 'number' ,
326+ default : 1 ,
327+ required : false ,
328+ group : 'Indexing Fees ("DIPs")' ,
329+ } )
310330 . check ( argv => {
311331 if (
312332 ! argv [ 'network-subgraph-endpoint' ] &&
@@ -334,6 +354,9 @@ export const start = {
334354 ) {
335355 return 'Invalid --rebate-claim-max-batch-size provided. Must be > 0 and an integer.'
336356 }
357+ if ( argv [ 'enable-dips' ] && ! argv [ 'dipper-endpoint' ] ) {
358+ return 'Invalid --dipper-endpoint provided. Must be provided when --enable-dips is true.'
359+ }
337360 return true
338361 } )
339362 } ,
@@ -369,6 +392,10 @@ export async function createNetworkSpecification(
369392 allocateOnNetworkSubgraph : argv . allocateOnNetworkSubgraph ,
370393 register : argv . register ,
371394 finalityTime : argv . chainFinalizeTime ,
395+ enableDips : argv . enableDips ,
396+ dipperEndpoint : argv . dipperEndpoint ,
397+ dipsAllocationAmount : argv . dipsAllocationAmount ,
398+ dipsEpochsMargin : argv . dipsEpochsMargin ,
372399 }
373400
374401 const transactionMonitoring = {
@@ -585,6 +612,7 @@ export async function run(
585612 const network = await Network . create (
586613 logger ,
587614 networkSpecification ,
615+ managementModels ,
588616 queryFeeModels ,
589617 graphNode ,
590618 metrics ,
0 commit comments