@@ -17,12 +17,21 @@ export const BASE_TOKENS: BaseTokens = {
1717 name : "Solana" ,
1818 image : require ( "@/assets/pic/solana.token.svg" ) ,
1919 symbol : "sol" ,
20+ coinGeckoId : "solana" ,
2021 } ,
2122 [ Chains . ETHEREUM ] : {
2223 id : 2 ,
2324 name : "Ethereum" ,
2425 image : require ( "@/assets/pic/ethereum.network.png" ) ,
2526 symbol : "eth" ,
27+ coinGeckoId : "ethereum" ,
28+ } ,
29+ [ Chains . ROOTSTOCK ] : {
30+ id : 3 ,
31+ name : "Rootstock" ,
32+ image : require ( "@/assets/pic/rootstock.png" ) ,
33+ symbol : "rif" ,
34+ coinGeckoId : "rif-token" ,
2635 }
2736} ;
2837
@@ -31,6 +40,11 @@ export const chainsData: ChainData = {
3140 id : "solana" ,
3241 name : "Solana" ,
3342 image : require ( "@/assets/pic/solana.network.png" ) ,
43+ } ,
44+ [ Chains . ROOTSTOCK ] : {
45+ id : "rootstock" ,
46+ name : "Rootstock" ,
47+ image : require ( "@/assets/pic/rootstock.png" ) ,
3448 }
3549}
3650
@@ -49,6 +63,61 @@ export const validators: {
4963 image : require ( "@/assets/pic/p2p.validator.svg" ) ,
5064 address : "FKsC411dik9ktS6xPADxs4Fk2SCENvAiuccQHLAPndvk" ,
5165 }
66+ } ,
67+ [ Chains . ROOTSTOCK ] : {
68+ apy : "" ,
69+ fee : "" ,
70+ validatorData : {
71+ id : "p2p" ,
72+ name : "P2P.org" ,
73+ image : require ( "@/assets/pic/p2p.validator.svg" ) ,
74+ address : "0x0000000000000000000000000000000000000000" ,
75+ }
5276 }
5377 }
5478}
79+
80+ export const ROOTSTOCK_RIF_TOKEN_ADDRESS = "0x2acc95758f8b5f583470ba265eb685a8f45fc9d5" ;
81+ export const ROOTSTOCK_STRIF_TOKEN_ADDRESS = "0x5db91e24bd32059584bbdb831a901f1199f3d459" ;
82+ export const ROOTSTOCK_RBTC_TOKEN_ADDRESS = "0xf7ab6cfaebbadfe8b5494022c4c6db776bd63b6b" ;
83+ export const ROOTSTOCK_BUILDER_REGISTRY_ADDRESS = "0x8cb62c58AC3D1253c6467537FDDc563857eD76cb" ;
84+ export const ROOTSTOCK_REWARD_DISTRIBUTOR_ADDRESS = "0x5603Ba40257e317e45BA13C3732819Af5E81a9A1" ;
85+ export const ROOTSTOCK_BACKER_MANAGER_ADDRESS = "0x7995C48D987941291d8008695A4133E557a11530" ;
86+
87+ export const RIF_TOKEN_ABI = [
88+ "function balanceOf(address owner) view returns (uint256)" ,
89+ "function approve(address spender, uint256 amount) returns (bool)" ,
90+ ] ;
91+
92+ export const STRIF_TOKEN_ABI = [
93+ "function balanceOf(address owner) view returns (uint256)" ,
94+ "function depositAndDelegate(address to, uint256 value)" ,
95+ "function withdrawTo(address account, uint256 value) returns (bool)" ,
96+ ] ;
97+
98+ export const ROOTSTOCK_BUILDER_REGISTRY_ABI = [
99+ "function getGaugesLength() view returns (uint256)" ,
100+ "function getHaltedGaugesLength() view returns (uint256)" ,
101+ "function getGaugeAt(uint256 index_) view returns (address)" ,
102+ "function getHaltedGaugeAt(uint256 index_) view returns (address)" ,
103+ "function gaugeToBuilder(address gauge) view returns (address builder)" ,
104+ "function backerRewardPercentage(address builder) view returns (uint64 previous, uint64 next, uint128 cooldownEndTime)" ,
105+ ] ;
106+
107+ export const ROOTSTOCK_GAUGE_ABI = [
108+ "function rewardShares() view returns (uint256)" ,
109+ "function earned(address rewardToken_, address backer_) external view returns (uint256)" ,
110+ "function allocationOf(address backer) external view returns (uint256 allocation)" ,
111+ ] ;
112+
113+ export const ROOTSTOCK_REWARD_DISTRIBUTOR_ABI = [
114+ "function defaultRifAmount() view returns (uint256)" ,
115+ "function defaultNativeAmount() view returns (uint256)" ,
116+ ] ;
117+
118+ export const ROOTSTOCK_BACKER_MANAGER_ABI = [
119+ "function totalPotentialReward() view returns (uint256)" ,
120+ "function backerTotalAllocation(address backer) view returns (uint256 allocation)" ,
121+ "function allocateBatch(address[] gauges_, uint256[] allocations_) external" ,
122+ "function claimBackerRewards(address[] gauges_) external" ,
123+ ] ;
0 commit comments