@@ -63,7 +63,7 @@ const mockSubgraphDeployment = (id: string) => {
63
63
stakedTokens : BigNumber . from ( '1000' ) ,
64
64
signalledTokens : BigNumber . from ( '1000' ) ,
65
65
queryFeesAmount : BigNumber . from ( '0' ) ,
66
- protocolNetwork : 'arbitrum-one ' ,
66
+ protocolNetwork : 'eip155:42161 ' ,
67
67
}
68
68
}
69
69
@@ -303,6 +303,9 @@ describe('DipsManager', () => {
303
303
identifierType : SubgraphIdentifierType . DEPLOYMENT ,
304
304
decisionBasis : IndexingDecisionBasis . ALWAYS ,
305
305
allocationLifetime : 16 ,
306
+ requireSupported : true ,
307
+ safety : true ,
308
+ protocolNetwork : 'eip155:42161' ,
306
309
} )
307
310
// Mock fetch the subgraph deployment from the network subgraph
308
311
network . networkMonitor . subgraphDeployment = jest
@@ -435,14 +438,13 @@ describe('DipsCollector', () => {
435
438
436
439
const client = dipsCollector . gatewayDipsServiceClient
437
440
438
- client . CollectPayment = jest
439
- . fn ( )
441
+ client . CollectPayment = jest . fn ( ) . mockResolvedValue ( {
442
+ version : 1 ,
443
+ status : CollectPaymentStatus . ACCEPT ,
444
+ tapReceipt : Buffer . from ( '1234' , 'hex' ) ,
445
+ } )
446
+ ; ( decodeTapReceipt as jest . Mock )
440
447
. mockResolvedValue ( {
441
- version : 1 ,
442
- status : CollectPaymentStatus . ACCEPT ,
443
- tapReceipt : Buffer . from ( '1234' , 'hex' ) ,
444
- } ) ( decodeTapReceipt as jest . Mock )
445
- . mockReturnValue ( {
446
448
allocation_id : toAddress ( testAllocationId ) ,
447
449
signer_address : toAddress ( '0xabcd56df41234949a75a6693c77834c00b8abbbb' ) ,
448
450
signature : Buffer . from ( '1234' , 'hex' ) ,
0 commit comments