Skip to content

Commit

Permalink
feat angle staked tokens
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeNervoXS committed Sep 22, 2023
1 parent d15f3d5 commit 4911355
Show file tree
Hide file tree
Showing 11 changed files with 2,191 additions and 9 deletions.
16 changes: 11 additions & 5 deletions scripts/fetch-event-blocknumber.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Network } from '../src/constants';
import { Address } from '../src/types';
import { generateConfig } from '../src/config';
// TODO: Import correct ABI
import ABI from '../src/abi/erc20.json';
import ABI from '../src/abi/angle/stagToken.json';

// This is a helper script to fetch blockNumbers where a certain
// event was released by a certain contract
Expand Down Expand Up @@ -40,12 +40,18 @@ async function getBlockNumbersForEvents(
}

// TODO: Set your values here
const network = Network.AVALANCHE;
const eventNames = ['Transfer'];
const address = '0xc0253c3cc6aa5ab407b5795a04c28fb063273894';
const network = Network.MAINNET;
const eventNames = [
'Accrued',
'Deposit',
'Withdraw',
'ToggledPause',
'RateUpdated',
];
const address = '0x004626a008b1acdc4c74ab51644093b155e59a23';
const provider = new StaticJsonRpcProvider(
generateConfig(network).privateHttpProvider,
network,
);

getBlockNumbersForEvents(address, ABI, eventNames, 0, 2000, provider);
getBlockNumbersForEvents(address, ABI, eventNames, 0, 200000000, provider);
Loading

0 comments on commit 4911355

Please sign in to comment.