@@ -26,7 +26,10 @@ use tap_core::{
26
26
} ,
27
27
signed_message:: Eip712SignedMessage ,
28
28
} ;
29
- use thegraph_core:: alloy:: { hex:: ToHexExt , primitives:: Address , sol_types:: Eip712Domain } ;
29
+ use thegraph_core:: {
30
+ alloy:: { hex:: ToHexExt , primitives:: Address , sol_types:: Eip712Domain } ,
31
+ CollectionId ,
32
+ } ;
30
33
use thiserror:: Error ;
31
34
use tokio:: sync:: watch:: Receiver ;
32
35
@@ -1263,7 +1266,7 @@ impl DatabaseInteractions for SenderAllocationState<Horizon> {
1263
1266
"# ,
1264
1267
BigDecimal :: from( min_timestamp) ,
1265
1268
BigDecimal :: from( max_timestamp) ,
1266
- self . allocation_id. to_string ( ) ,
1269
+ CollectionId :: from ( self . allocation_id) . encode_hex ( ) ,
1267
1270
self . indexer_address. encode_hex( ) ,
1268
1271
& signers,
1269
1272
)
@@ -1288,7 +1291,7 @@ impl DatabaseInteractions for SenderAllocationState<Horizon> {
1288
1291
collection_id = $1
1289
1292
AND signer_address IN (SELECT unnest($2::text[]))
1290
1293
"# ,
1291
- self . allocation_id. to_string ( ) ,
1294
+ CollectionId :: from ( self . allocation_id) . encode_hex ( ) ,
1292
1295
& signers
1293
1296
)
1294
1297
. fetch_one ( & self . pgpool )
@@ -1337,7 +1340,7 @@ impl DatabaseInteractions for SenderAllocationState<Horizon> {
1337
1340
AND signer_address IN (SELECT unnest($4::text[]))
1338
1341
AND timestamp_ns > $5
1339
1342
"# ,
1340
- self . allocation_id. to_string ( ) ,
1343
+ CollectionId :: from ( self . allocation_id) . encode_hex ( ) ,
1341
1344
self . indexer_address. encode_hex( ) ,
1342
1345
last_id,
1343
1346
& signers,
@@ -1388,7 +1391,7 @@ impl DatabaseInteractions for SenderAllocationState<Horizon> {
1388
1391
AND payer = $2
1389
1392
AND service_provider = $3
1390
1393
"# ,
1391
- self . allocation_id. to_string ( ) ,
1394
+ CollectionId :: from ( self . allocation_id) . encode_hex ( ) ,
1392
1395
self . sender. encode_hex( ) ,
1393
1396
self . indexer_address. encode_hex( ) ,
1394
1397
)
0 commit comments