@@ -37,6 +37,10 @@ const abis = {
37
37
const contract_interface = new ethers . Interface ( Object . values ( abis ) ) ;
38
38
39
39
const JamContract = new ethers . Contract ( '0xbebebeb035351f58602e0c1c8b59ecbff5d5f47b' , JAM_ABI )
40
+ const jamAddress = {
41
+ era :'0x574d1fcF950eb48b11de5DF22A007703cbD2b129' ,
42
+ default : '0xbebebeb035351f58602e0c1c8b59ecbff5d5f47b'
43
+ }
40
44
41
45
42
46
const fetch = async ( timestamp : number , _ : ChainBlocks , { createBalances, getLogs, chain, api } : FetchOptions ) => {
@@ -80,7 +84,7 @@ const fetch = async (timestamp: number, _: ChainBlocks, { createBalances, getLog
80
84
}
81
85
82
86
const jamLogs = await getLogs ( {
83
- target : '0xbebebeb035351f58602e0c1c8b59ecbff5d5f47b' ,
87
+ target : jamAddress [ chain ] || jamAddress . default ,
84
88
topics : [ '0x7a70845dec8dc098eecb16e760b0c1569874487f0459ae689c738e281b28ed38' ] // Settlement,
85
89
86
90
} ) ;
@@ -111,6 +115,7 @@ const adapter: any = {
111
115
polygon : { fetch, start : 1685491200 , } ,
112
116
bsc : { fetch, start : 1685491200 , } ,
113
117
blast : { fetch, start : 1685491200 , } ,
118
+ era : { fetch, start : 1685491200 , } ,
114
119
} ,
115
120
} ;
116
121
0 commit comments