@@ -307,6 +307,26 @@ export const start = {
307
307
default : 1 ,
308
308
group : 'Indexer Infrastructure' ,
309
309
} )
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
+ } )
310
330
. check ( argv => {
311
331
if (
312
332
! argv [ 'network-subgraph-endpoint' ] &&
@@ -334,6 +354,9 @@ export const start = {
334
354
) {
335
355
return 'Invalid --rebate-claim-max-batch-size provided. Must be > 0 and an integer.'
336
356
}
357
+ if ( argv [ 'enable-dips' ] && ! argv [ 'dipper-endpoint' ] ) {
358
+ return 'Invalid --dipper-endpoint provided. Must be provided when --enable-dips is true.'
359
+ }
337
360
return true
338
361
} )
339
362
} ,
@@ -369,6 +392,10 @@ export async function createNetworkSpecification(
369
392
allocateOnNetworkSubgraph : argv . allocateOnNetworkSubgraph ,
370
393
register : argv . register ,
371
394
finalityTime : argv . chainFinalizeTime ,
395
+ enableDips : argv . enableDips ,
396
+ dipperEndpoint : argv . dipperEndpoint ,
397
+ dipsAllocationAmount : argv . dipsAllocationAmount ,
398
+ dipsEpochsMargin : argv . dipsEpochsMargin ,
372
399
}
373
400
374
401
const transactionMonitoring = {
@@ -585,6 +612,7 @@ export async function run(
585
612
const network = await Network . create (
586
613
logger ,
587
614
networkSpecification ,
615
+ managementModels ,
588
616
queryFeeModels ,
589
617
graphNode ,
590
618
metrics ,
0 commit comments