-
Notifications
You must be signed in to change notification settings - Fork 1
/
contracts.rs
133 lines (121 loc) · 4.64 KB
/
contracts.rs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
use ethers::prelude::abigen;
abigen!(
IChefV2,
r#"[
function poolLength() external view returns (uint256)
function poolInfo(uint256) external view returns (address, uint256, uint256, uint256, uint16, uint256, uint256)
function poolTotalLp(uint256) external view returns (uint256)
function poolRewarders(uint256) external view returns (address [])
function poolRewardsPerSec(uint256) external view returns (address[], string[], uint256[], uint256[])
function stellaPerSec() external view returns (uint256)
function totalAllocPoint() external view returns (uint256)
]"#,
);
abigen!(
IArthswapChef,
r#"[
function poolLength() external view returns (uint256)
function poolInfos(uint256) external view returns (uint128, uint64, uint64)
function ARSWPerBlock(uint256) external view returns (uint256)
function totalAllocPoint() external view returns (uint256)
function lpTokens(uint256) external view returns (address)
function getPeriod(uint256) external view returns (uint256)
]"#,
);
abigen!(
IFarming,
r#"[
function poolLength() external view returns (uint256)
function getPoolInfo(uint256) external view returns (address, uint256, address[], uint256[], uint256[], uint256, uint256, uint256)
]"#,
);
abigen!(
IStellaDistributorV1,
r#"[
function poolLength() external view returns (uint256)
function poolInfo(uint256) external view returns (address, uint256, uint256, uint256, uint16, uint256, uint256)
function stellaPerBlock() external view returns (uint256)
function totalAllocPoint() external view returns (uint256)
]"#,
);
abigen!(
IMiniChefV2,
r#"[
function poolLength() external view returns (uint256)
function poolInfo(uint256) external view returns (uint128, uint64, uint64)
function sushiPerSecond() external view returns (uint256)
function totalAllocPoint() external view returns (uint256)
function lpToken(uint256) external view returns (address)
]"#,
);
abigen!(
IComplexRewarderTime,
r#"[
function poolLength() external view returns (uint256)
function poolInfo(uint256) external view returns (uint128, uint64, uint64)
function rewardPerSecond() external view returns (uint256)
]"#,
);
abigen!(
IStandardLpToken,
r#"[
function name() external view returns (string)
function symbol() external view returns (string)
function token0() external view returns (address)
function token1() external view returns (address)
function totalSupply() external view returns (uint256)
]"#,
);
abigen!(
IStableLpToken,
r#"[
function name() external view returns (string)
function symbol() external view returns (string)
function owner() external view returns (address)
function totalSupply() external view returns (uint256)
function balanceOf(address) external view returns (uint256)
]"#,
);
abigen!(
IVestedToken,
r#"[
function name() external view returns (string)
function symbol() external view returns (string)
function owner() external view returns (address)
]"#,
);
abigen!(
IStableLpTokenOwner,
r#"[
function getNumberOfTokens() external view returns (uint256)
function getToken(uint8) external view returns (address)
function getTokenBalance(uint8) external view returns (uint256)
function getTokenBalances() external view returns (uint256[])
function getTokenIndex(address) external view returns (uint256)
function getTokenPrecisionMultipliers() external view returns (uint256[])
function getTokens() external view returns (address[])
function getVirtualPrice() external view returns (uint256)
]"#,
);
abigen!(
IAnyswapV5ERC20,
r#"[
function name() external view returns (string)
function symbol() external view returns (string)
function decimals() external view returns (uint8)
function balanceOf(address) external view returns (uint256)
]"#,
);
abigen!(
ILpToken,
r#"[
function name() external view returns (string)
function symbol() external view returns (string)
function decimals() external view returns (uint8)
function balanceOf(address) external view returns (uint256)
function token0() external view returns (address)
function token1() external view returns (address)
function getReserves() external view returns (uint112, uint112, uint32)
function totalSupply() external view returns (uint256)
]"#,
);