File tree 2 files changed +10
-18
lines changed
2 files changed +10
-18
lines changed Original file line number Diff line number Diff line change @@ -166,10 +166,14 @@ export class GoldRushDecoder {
166
166
for ( const log of logs ) {
167
167
const {
168
168
raw_log_topics : [ topic0_hash ] ,
169
- sender_address : contract_address ,
169
+ sender_address,
170
+ sender_factory_address,
170
171
} = log ;
171
172
const decoding_index =
172
- this . decoders [ chain_name ] ?. [ contract_address ] ?. [ topic0_hash ] ;
173
+ this . decoders [ chain_name ] ?. [ sender_address ] ?. [ topic0_hash ] ??
174
+ this . decoders [ chain_name ] ?. [ sender_factory_address ] ?. [
175
+ topic0_hash
176
+ ] ;
173
177
const fallback_index = this . fallbacks [ topic0_hash ] ;
174
178
let logEvent : EventType | null = null ;
175
179
if ( decoding_index !== undefined ) {
Original file line number Diff line number Diff line change @@ -2,28 +2,16 @@ import { type Configs } from "../../decoder.types";
2
2
3
3
const configs : Configs = [
4
4
{
5
- protocol_name : "uniswap-v2" ,
6
- address : "0xaf31fd9c3b0350424bf96e551d2d1264d8466205" ,
7
- is_factory : false ,
8
- chain_name : "eth-mainnet" ,
9
- } ,
10
- {
11
- address : "0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc" ,
12
- is_factory : false ,
13
- protocol_name : "uniswap-v2" ,
14
- chain_name : "eth-mainnet" ,
15
- } ,
16
- {
17
- address : "0x0d4a11d5eeaac28ec3f61d100daf4d40471f1852" ,
18
- is_factory : false ,
5
+ address : "0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f" ,
6
+ is_factory : true ,
19
7
protocol_name : "uniswap-v2" ,
20
8
chain_name : "eth-mainnet" ,
21
9
} ,
22
10
{
23
- address : "0x5c69bee701ef814a2b6a3edd4b1652cb9cc5aa6f " ,
11
+ address : "0xcf329b34049033de26e4449aebcb41f1992724d3 " ,
24
12
is_factory : true ,
25
13
protocol_name : "uniswap-v2" ,
26
- chain_name : "eth -mainnet" ,
14
+ chain_name : "defi-kingdoms -mainnet" ,
27
15
} ,
28
16
] ;
29
17
You can’t perform that action at this time.
0 commit comments