Skip to content

Commit

Permalink
🧪 Added etherscan links to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arimgibson committed May 26, 2022
1 parent 02fa11b commit 337e8b9
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/providers/test/json-rpc-provider/get-logs.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,19 +12,28 @@ describe('provider.getLogs', () => {
const ethersProvider = new StaticJsonRpcProvider(rpcUrl);
const web3Provider = new Web3(rpcUrl);

// Example logs that should be returned
// https://etherscan.io/address/0xfbddadd80fe7bda00b901fbaf73803f2238ae655#events
// Address is for StrongBlock: Service
// Block(s) are 14809329
const filterAddressFromTo: Filter = {
address: '0xfbddadd80fe7bda00b901fbaf73803f2238ae655',
fromBlock: '0xE1F8F1',
toBlock: '0xE1F8F1',
};

// Example logs that should be returned
// https://etherscan.io/address/0x596a0f276ee432d8a28441e55737ff55cf30d0f7#events
// Address is for Rareland
const filterAddressTopics: Filter = {
address: '0x596a0f276ee432d8a28441e55737ff55cf30d0f7',
topics: [
'0x8c5be1e5ebec7d5bd14f71427d1e84f3dd0314c0f7b2291e5b200ac8c7c3b925',
],
};

// https://etherscan.io/address/0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2#events
// Address is for Wrapped Ether Contract
const filterAll: Filter = {
address: '0xc02aaa39b223fe8d0a0e5c4f27ead9083c756cc2',
topics: [
Expand Down

0 comments on commit 337e8b9

Please sign in to comment.