Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #13 from ar-io/PE-6425-v2-sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
dtfiedler authored Jul 12, 2024
2 parents bcfcbd4 + b099e31 commit 46dbd29
Show file tree
Hide file tree
Showing 3 changed files with 75 additions and 479 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"url": "https://github.com/ar-io/arns-resolver"
},
"dependencies": {
"@ar.io/sdk": "1.2.0-alpha.16",
"@ar.io/sdk": "^2.0.0",
"cors": "^2.8.5",
"dotenv": "^16.3.1",
"express": "^4.18.2",
Expand Down
6 changes: 5 additions & 1 deletion src/system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ import {
AoIORead,
IO,
ProcessId,
fetchAllArNSRecords,
isLeasedArNSRecord,
} from '@ar.io/sdk/node';
import pLimit from 'p-limit';
Expand Down Expand Up @@ -63,7 +64,10 @@ export async function evaluateArNSNames() {

// monitor the time it takes to evaluate the names
const startTime = Date.now();
const apexRecords = await contract.getArNSRecords();
const apexRecords = await fetchAllArNSRecords({
contract,
});

log.info('Retrieved apex records:', {
count: Object.keys(apexRecords).length,
});
Expand Down
Loading

0 comments on commit 46dbd29

Please sign in to comment.