Skip to content

Commit

Permalink
feat: store start block numbers for indexers
Browse files Browse the repository at this point in the history
  • Loading branch information
ameeshaagrawal committed Nov 16, 2023
1 parent 3bb35b6 commit cda1506
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions scripts/deploy/scripts/deploySocket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ export const deploySocket = async (
);
deployUtils.addresses["Counter"] = counter.address;

deployUtils.addresses.startBlock =
await socketSigner.provider?.getBlockNumber();

allDeployed = true;
console.log(deployUtils.addresses);
console.log("Contracts deployed!");
Expand Down
1 change: 1 addition & 0 deletions src/socket-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export type Configs = {
};

export interface ChainSocketAddresses {
startBlock?: number;
Counter: string;
CapacitorFactory: string;
ExecutionManager?: string;
Expand Down

0 comments on commit cda1506

Please sign in to comment.