Skip to content

Commit b8f84ae

Browse files
committed
fix: update toolshed interface and ops scripts
Signed-off-by: Tomás Migone <tomas@edgeandnode.com>
1 parent 6927618 commit b8f84ae

File tree

3 files changed

+3
-6
lines changed

3 files changed

+3
-6
lines changed

packages/interfaces/contracts/toolshed/ISubgraphServiceToolshed.sol

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,10 @@ interface ISubgraphServiceToolshed is
2727
* @dev Note that this storage getter actually returns a ISubgraphService.Indexer struct, but ethers v6 is not
2828
* good at dealing with dynamic types on return values.
2929
* @param indexer The address of the indexer
30-
* @return registeredAt The timestamp when the indexer registered
3130
* @return url The URL where the indexer can be reached at for queries
3231
* @return geoHash The indexer's geo location, expressed as a geo hash
3332
*/
34-
function indexers(
35-
address indexer
36-
) external view returns (uint256 registeredAt, string memory url, string memory geoHash);
33+
function indexers(address indexer) external view returns (string memory url, string memory geoHash);
3734

3835
/**
3936
* @notice Gets the allocation provision tracker

packages/subgraph-service/scripts/ops/protocol-activity.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ async function main() {
110110
console.log('📝 Subgraph Service - registering...')
111111
for (const signer of signers) {
112112
const indexer = await SubgraphService.indexers(signer.address)
113-
const isRegistered = indexer.registeredAt !== 0n
113+
const isRegistered = indexer.url.length > 0
114114
if (!isRegistered) {
115115
const paymentsDestination = Math.random() < 0.5 ? signer.address : ethers.ZeroAddress
116116
const data = abi.encode(['string', 'string', 'address'], ['http://indexer.xyz', '69y7mznpp', paymentsDestination])

packages/subgraph-service/tasks/test/seed.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ task('test:seed', 'Seed the test environment, must be run after deployment').set
9393

9494
const indexerData = await subgraphService.indexers(indexerSigner.address)
9595

96-
console.log(`Indexer registered at: ${indexerData.registeredAt}`)
96+
console.log(`Indexer registered at: ${indexerData.url} - ${indexerData.geoHash}`)
9797
}
9898

9999
console.log('\n--- STEP 3: Start allocations ---')

0 commit comments

Comments
 (0)