@ape.swap/bonds-sdk 1.0.473 → 1.0.475
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/config/abi/bondNft.json +424 -0
- package/dist/config/abi/ens-public-resolver.json +816 -0
- package/dist/config/abi/ens-registrar.json +422 -0
- package/dist/config/abi/erc20_bytes32.json +30 -0
- package/dist/config/abi/jungleChef.json +291 -0
- package/dist/config/abi/launchBonds.json +2014 -0
- package/dist/config/abi/lockVeAbond.json +2198 -0
- package/dist/config/abi/migrationBond.json +1639 -0
- package/dist/config/abi/migrationFveAbond.json +160 -0
- package/dist/config/abi/multicallv3.json +92 -0
- package/dist/config/abi/sousChef.json +649 -0
- package/dist/config/abi/types/Banana.d.ts +417 -0
- package/dist/config/abi/types/Banana.js +1 -0
- package/dist/config/abi/types/Bond.d.ts +803 -0
- package/dist/config/abi/types/Bond.js +1 -0
- package/dist/config/abi/types/BondNft.d.ts +603 -0
- package/dist/config/abi/types/BondNft.js +1 -0
- package/dist/config/abi/types/EnsPublicResolver.d.ts +513 -0
- package/dist/config/abi/types/EnsPublicResolver.js +1 -0
- package/dist/config/abi/types/EnsRegistrar.d.ts +274 -0
- package/dist/config/abi/types/EnsRegistrar.js +1 -0
- package/dist/config/abi/types/Erc20.d.ts +168 -0
- package/dist/config/abi/types/Erc20.js +1 -0
- package/dist/config/abi/types/Erc20_bytes32.d.ts +50 -0
- package/dist/config/abi/types/Erc20_bytes32.js +1 -0
- package/dist/config/abi/types/JungleChef.d.ts +260 -0
- package/dist/config/abi/types/JungleChef.js +1 -0
- package/dist/config/abi/types/LaunchBonds.d.ts +1362 -0
- package/dist/config/abi/types/LaunchBonds.js +1 -0
- package/dist/config/abi/types/LensContract.d.ts +295 -0
- package/dist/config/abi/types/LensContract.js +1 -0
- package/dist/config/abi/types/LockVeAbond.d.ts +1279 -0
- package/dist/config/abi/types/LockVeAbond.js +1 -0
- package/dist/config/abi/types/MigrationBond.d.ts +1136 -0
- package/dist/config/abi/types/MigrationBond.js +1 -0
- package/dist/config/abi/types/MigrationFveAbond.d.ts +290 -0
- package/dist/config/abi/types/MigrationFveAbond.js +1 -0
- package/dist/config/abi/types/MiniComplexRewarder.d.ts +469 -0
- package/dist/config/abi/types/MiniComplexRewarder.js +1 -0
- package/dist/config/abi/types/Multicallv2.d.ts +150 -0
- package/dist/config/abi/types/Multicallv2.js +1 -0
- package/dist/config/abi/types/Multicallv3.d.ts +98 -0
- package/dist/config/abi/types/Multicallv3.js +1 -0
- package/dist/config/abi/types/NonFungibleApes.d.ts +532 -0
- package/dist/config/abi/types/NonFungibleApes.js +1 -0
- package/dist/config/abi/types/NonFungibleBananas.d.ts +505 -0
- package/dist/config/abi/types/NonFungibleBananas.js +1 -0
- package/dist/config/abi/types/PriceGetter.d.ts +713 -0
- package/dist/config/abi/types/PriceGetter.js +1 -0
- package/dist/config/abi/types/PriceGetterLinea.d.ts +789 -0
- package/dist/config/abi/types/PriceGetterLinea.js +1 -0
- package/dist/config/abi/types/PriceGetterV2.d.ts +729 -0
- package/dist/config/abi/types/PriceGetterV2.js +1 -0
- package/dist/config/abi/types/SousChef.d.ts +579 -0
- package/dist/config/abi/types/SousChef.js +1 -0
- package/dist/config/abi/types/Treasury.d.ts +277 -0
- package/dist/config/abi/types/Treasury.js +1 -0
- package/dist/config/abi/types/Weth.d.ts +221 -0
- package/dist/config/abi/types/Weth.js +1 -0
- package/dist/config/abi/types/Zap.d.ts +528 -0
- package/dist/config/abi/types/Zap.js +1 -0
- package/dist/config/abi/types/common.d.ts +22 -0
- package/dist/config/abi/types/common.js +1 -0
- package/dist/config/abi/types/factories/Banana__factory.d.ts +475 -0
- package/dist/config/abi/types/factories/Banana__factory.js +628 -0
- package/dist/config/abi/types/factories/BondNft__factory.d.ts +723 -0
- package/dist/config/abi/types/factories/BondNft__factory.js +951 -0
- package/dist/config/abi/types/factories/Bond__factory.d.ts +799 -0
- package/dist/config/abi/types/factories/Bond__factory.js +1042 -0
- package/dist/config/abi/types/factories/EnsPublicResolver__factory.d.ts +649 -0
- package/dist/config/abi/types/factories/EnsPublicResolver__factory.js +833 -0
- package/dist/config/abi/types/factories/EnsRegistrar__factory.d.ts +338 -0
- package/dist/config/abi/types/factories/EnsRegistrar__factory.js +439 -0
- package/dist/config/abi/types/factories/Erc20__factory.d.ts +175 -0
- package/dist/config/abi/types/factories/Erc20__factory.js +239 -0
- package/dist/config/abi/types/factories/Erc20_bytes32__factory.d.ts +30 -0
- package/dist/config/abi/types/factories/Erc20_bytes32__factory.js +47 -0
- package/dist/config/abi/types/factories/JungleChef__factory.d.ts +247 -0
- package/dist/config/abi/types/factories/JungleChef__factory.js +326 -0
- package/dist/config/abi/types/factories/LaunchBonds__factory.d.ts +1560 -0
- package/dist/config/abi/types/factories/LaunchBonds__factory.js +2031 -0
- package/dist/config/abi/types/factories/LensContract__factory.d.ts +254 -0
- package/dist/config/abi/types/factories/LensContract__factory.js +338 -0
- package/dist/config/abi/types/factories/LockVeAbond__factory.d.ts +1698 -0
- package/dist/config/abi/types/factories/LockVeAbond__factory.js +2215 -0
- package/dist/config/abi/types/factories/MigrationBond__factory.d.ts +1268 -0
- package/dist/config/abi/types/factories/MigrationBond__factory.js +1656 -0
- package/dist/config/abi/types/factories/MigrationFveAbond__factory.d.ts +262 -0
- package/dist/config/abi/types/factories/MigrationFveAbond__factory.js +346 -0
- package/dist/config/abi/types/factories/MiniComplexRewarder__factory.d.ts +448 -0
- package/dist/config/abi/types/factories/MiniComplexRewarder__factory.js +586 -0
- package/dist/config/abi/types/factories/Multicallv2__factory.d.ts +115 -0
- package/dist/config/abi/types/factories/Multicallv2__factory.js +160 -0
- package/dist/config/abi/types/factories/Multicallv3__factory.d.ts +76 -0
- package/dist/config/abi/types/factories/Multicallv3__factory.js +109 -0
- package/dist/config/abi/types/factories/NonFungibleApes__factory.d.ts +617 -0
- package/dist/config/abi/types/factories/NonFungibleApes__factory.js +810 -0
- package/dist/config/abi/types/factories/NonFungibleBananas__factory.d.ts +576 -0
- package/dist/config/abi/types/factories/NonFungibleBananas__factory.js +756 -0
- package/dist/config/abi/types/factories/PriceGetterLinea__factory.d.ts +1105 -0
- package/dist/config/abi/types/factories/PriceGetterLinea__factory.js +1465 -0
- package/dist/config/abi/types/factories/PriceGetterV2__factory.d.ts +1027 -0
- package/dist/config/abi/types/factories/PriceGetterV2__factory.js +1364 -0
- package/dist/config/abi/types/factories/PriceGetter__factory.d.ts +999 -0
- package/dist/config/abi/types/factories/PriceGetter__factory.js +1326 -0
- package/dist/config/abi/types/factories/SousChef__factory.d.ts +511 -0
- package/dist/config/abi/types/factories/SousChef__factory.js +666 -0
- package/dist/config/abi/types/factories/Treasury__factory.d.ts +235 -0
- package/dist/config/abi/types/factories/Treasury__factory.js +309 -0
- package/dist/config/abi/types/factories/Weth__factory.d.ts +220 -0
- package/dist/config/abi/types/factories/Weth__factory.js +296 -0
- package/dist/config/abi/types/factories/Zap__factory.d.ts +695 -0
- package/dist/config/abi/types/factories/Zap__factory.js +889 -0
- package/dist/config/abi/types/factories/index.d.ts +25 -0
- package/dist/config/abi/types/factories/index.js +28 -0
- package/dist/config/abi/types/index.d.ts +51 -0
- package/dist/config/abi/types/index.js +26 -0
- package/dist/config/abi/weth.json +279 -0
- package/dist/hooks/useClaimBill.d.ts +4 -0
- package/dist/hooks/useClaimBill.js +59 -0
- package/dist/hooks/useContract.d.ts +25 -0
- package/dist/hooks/useContract.js +107 -0
- package/dist/pages/YourBonds/YourBonds.js +37 -10
- package/dist/utils/index.d.ts +16 -0
- package/dist/utils/index.js +127 -0
- package/dist/utils/track.d.ts +7 -0
- package/dist/utils/track.js +17 -0
- package/package.json +1 -1
|
@@ -0,0 +1,254 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { LensContract, LensContractInterface } from "../LensContract";
|
|
4
|
+
export declare class LensContract__factory {
|
|
5
|
+
static readonly abi: readonly [{
|
|
6
|
+
readonly inputs: readonly [];
|
|
7
|
+
readonly stateMutability: "nonpayable";
|
|
8
|
+
readonly type: "constructor";
|
|
9
|
+
}, {
|
|
10
|
+
readonly inputs: readonly [];
|
|
11
|
+
readonly name: "DurationsNotDescendingOrder";
|
|
12
|
+
readonly type: "error";
|
|
13
|
+
}, {
|
|
14
|
+
readonly inputs: readonly [];
|
|
15
|
+
readonly name: "MismatchedLengths";
|
|
16
|
+
readonly type: "error";
|
|
17
|
+
}, {
|
|
18
|
+
readonly inputs: readonly [];
|
|
19
|
+
readonly name: "MultiplierBelowPrecision";
|
|
20
|
+
readonly type: "error";
|
|
21
|
+
}, {
|
|
22
|
+
readonly inputs: readonly [];
|
|
23
|
+
readonly name: "NotLockOwner";
|
|
24
|
+
readonly type: "error";
|
|
25
|
+
}, {
|
|
26
|
+
readonly anonymous: false;
|
|
27
|
+
readonly inputs: readonly [{
|
|
28
|
+
readonly indexed: false;
|
|
29
|
+
readonly internalType: "uint8";
|
|
30
|
+
readonly name: "version";
|
|
31
|
+
readonly type: "uint8";
|
|
32
|
+
}];
|
|
33
|
+
readonly name: "Initialized";
|
|
34
|
+
readonly type: "event";
|
|
35
|
+
}, {
|
|
36
|
+
readonly anonymous: false;
|
|
37
|
+
readonly inputs: readonly [{
|
|
38
|
+
readonly indexed: false;
|
|
39
|
+
readonly internalType: "uint256[]";
|
|
40
|
+
readonly name: "durationThresholds";
|
|
41
|
+
readonly type: "uint256[]";
|
|
42
|
+
}, {
|
|
43
|
+
readonly indexed: false;
|
|
44
|
+
readonly internalType: "uint256[]";
|
|
45
|
+
readonly name: "multipliers";
|
|
46
|
+
readonly type: "uint256[]";
|
|
47
|
+
}];
|
|
48
|
+
readonly name: "MultipliersUpdated";
|
|
49
|
+
readonly type: "event";
|
|
50
|
+
}, {
|
|
51
|
+
readonly anonymous: false;
|
|
52
|
+
readonly inputs: readonly [{
|
|
53
|
+
readonly indexed: true;
|
|
54
|
+
readonly internalType: "address";
|
|
55
|
+
readonly name: "previousOwner";
|
|
56
|
+
readonly type: "address";
|
|
57
|
+
}, {
|
|
58
|
+
readonly indexed: true;
|
|
59
|
+
readonly internalType: "address";
|
|
60
|
+
readonly name: "newOwner";
|
|
61
|
+
readonly type: "address";
|
|
62
|
+
}];
|
|
63
|
+
readonly name: "OwnershipTransferred";
|
|
64
|
+
readonly type: "event";
|
|
65
|
+
}, {
|
|
66
|
+
readonly inputs: readonly [];
|
|
67
|
+
readonly name: "MULTIPLIER_PRECISION";
|
|
68
|
+
readonly outputs: readonly [{
|
|
69
|
+
readonly internalType: "uint256";
|
|
70
|
+
readonly name: "";
|
|
71
|
+
readonly type: "uint256";
|
|
72
|
+
}];
|
|
73
|
+
readonly stateMutability: "view";
|
|
74
|
+
readonly type: "function";
|
|
75
|
+
}, {
|
|
76
|
+
readonly inputs: readonly [{
|
|
77
|
+
readonly internalType: "uint256";
|
|
78
|
+
readonly name: "";
|
|
79
|
+
readonly type: "uint256";
|
|
80
|
+
}];
|
|
81
|
+
readonly name: "durationDaysThresholds";
|
|
82
|
+
readonly outputs: readonly [{
|
|
83
|
+
readonly internalType: "uint256";
|
|
84
|
+
readonly name: "";
|
|
85
|
+
readonly type: "uint256";
|
|
86
|
+
}];
|
|
87
|
+
readonly stateMutability: "view";
|
|
88
|
+
readonly type: "function";
|
|
89
|
+
}, {
|
|
90
|
+
readonly inputs: readonly [{
|
|
91
|
+
readonly internalType: "address";
|
|
92
|
+
readonly name: "escrowOwner";
|
|
93
|
+
readonly type: "address";
|
|
94
|
+
}];
|
|
95
|
+
readonly name: "getEscrowWeight";
|
|
96
|
+
readonly outputs: readonly [{
|
|
97
|
+
readonly internalType: "uint256";
|
|
98
|
+
readonly name: "totalWeight";
|
|
99
|
+
readonly type: "uint256";
|
|
100
|
+
}, {
|
|
101
|
+
readonly internalType: "uint256";
|
|
102
|
+
readonly name: "maxMultiplier";
|
|
103
|
+
readonly type: "uint256";
|
|
104
|
+
}, {
|
|
105
|
+
readonly internalType: "uint256";
|
|
106
|
+
readonly name: "maxTier";
|
|
107
|
+
readonly type: "uint256";
|
|
108
|
+
}];
|
|
109
|
+
readonly stateMutability: "view";
|
|
110
|
+
readonly type: "function";
|
|
111
|
+
}, {
|
|
112
|
+
readonly inputs: readonly [{
|
|
113
|
+
readonly internalType: "address";
|
|
114
|
+
readonly name: "escrowOwner";
|
|
115
|
+
readonly type: "address";
|
|
116
|
+
}, {
|
|
117
|
+
readonly internalType: "uint256[]";
|
|
118
|
+
readonly name: "tokenIds";
|
|
119
|
+
readonly type: "uint256[]";
|
|
120
|
+
}];
|
|
121
|
+
readonly name: "getEscrowWeightForTokenIds";
|
|
122
|
+
readonly outputs: readonly [{
|
|
123
|
+
readonly internalType: "uint256";
|
|
124
|
+
readonly name: "totalWeight";
|
|
125
|
+
readonly type: "uint256";
|
|
126
|
+
}, {
|
|
127
|
+
readonly internalType: "uint256";
|
|
128
|
+
readonly name: "maxMultiplier";
|
|
129
|
+
readonly type: "uint256";
|
|
130
|
+
}, {
|
|
131
|
+
readonly internalType: "uint256";
|
|
132
|
+
readonly name: "maxTier";
|
|
133
|
+
readonly type: "uint256";
|
|
134
|
+
}];
|
|
135
|
+
readonly stateMutability: "view";
|
|
136
|
+
readonly type: "function";
|
|
137
|
+
}, {
|
|
138
|
+
readonly inputs: readonly [{
|
|
139
|
+
readonly internalType: "uint256";
|
|
140
|
+
readonly name: "durationDays";
|
|
141
|
+
readonly type: "uint256";
|
|
142
|
+
}];
|
|
143
|
+
readonly name: "getMultiplierForDaysLocked";
|
|
144
|
+
readonly outputs: readonly [{
|
|
145
|
+
readonly internalType: "uint256";
|
|
146
|
+
readonly name: "multiplier";
|
|
147
|
+
readonly type: "uint256";
|
|
148
|
+
}, {
|
|
149
|
+
readonly internalType: "uint256";
|
|
150
|
+
readonly name: "tier";
|
|
151
|
+
readonly type: "uint256";
|
|
152
|
+
}];
|
|
153
|
+
readonly stateMutability: "view";
|
|
154
|
+
readonly type: "function";
|
|
155
|
+
}, {
|
|
156
|
+
readonly inputs: readonly [];
|
|
157
|
+
readonly name: "getMultipliers";
|
|
158
|
+
readonly outputs: readonly [{
|
|
159
|
+
readonly internalType: "uint256[]";
|
|
160
|
+
readonly name: "_durationDaysThresholds";
|
|
161
|
+
readonly type: "uint256[]";
|
|
162
|
+
}, {
|
|
163
|
+
readonly internalType: "uint256[]";
|
|
164
|
+
readonly name: "_multipliers";
|
|
165
|
+
readonly type: "uint256[]";
|
|
166
|
+
}];
|
|
167
|
+
readonly stateMutability: "view";
|
|
168
|
+
readonly type: "function";
|
|
169
|
+
}, {
|
|
170
|
+
readonly inputs: readonly [{
|
|
171
|
+
readonly internalType: "address";
|
|
172
|
+
readonly name: "_votingEscrowAddress";
|
|
173
|
+
readonly type: "address";
|
|
174
|
+
}, {
|
|
175
|
+
readonly internalType: "uint256[]";
|
|
176
|
+
readonly name: "_durationDaysThresholds";
|
|
177
|
+
readonly type: "uint256[]";
|
|
178
|
+
}, {
|
|
179
|
+
readonly internalType: "uint256[]";
|
|
180
|
+
readonly name: "_multipliers";
|
|
181
|
+
readonly type: "uint256[]";
|
|
182
|
+
}];
|
|
183
|
+
readonly name: "initialize";
|
|
184
|
+
readonly outputs: readonly [];
|
|
185
|
+
readonly stateMutability: "nonpayable";
|
|
186
|
+
readonly type: "function";
|
|
187
|
+
}, {
|
|
188
|
+
readonly inputs: readonly [{
|
|
189
|
+
readonly internalType: "uint256";
|
|
190
|
+
readonly name: "";
|
|
191
|
+
readonly type: "uint256";
|
|
192
|
+
}];
|
|
193
|
+
readonly name: "multipliers";
|
|
194
|
+
readonly outputs: readonly [{
|
|
195
|
+
readonly internalType: "uint256";
|
|
196
|
+
readonly name: "";
|
|
197
|
+
readonly type: "uint256";
|
|
198
|
+
}];
|
|
199
|
+
readonly stateMutability: "view";
|
|
200
|
+
readonly type: "function";
|
|
201
|
+
}, {
|
|
202
|
+
readonly inputs: readonly [];
|
|
203
|
+
readonly name: "owner";
|
|
204
|
+
readonly outputs: readonly [{
|
|
205
|
+
readonly internalType: "address";
|
|
206
|
+
readonly name: "";
|
|
207
|
+
readonly type: "address";
|
|
208
|
+
}];
|
|
209
|
+
readonly stateMutability: "view";
|
|
210
|
+
readonly type: "function";
|
|
211
|
+
}, {
|
|
212
|
+
readonly inputs: readonly [];
|
|
213
|
+
readonly name: "renounceOwnership";
|
|
214
|
+
readonly outputs: readonly [];
|
|
215
|
+
readonly stateMutability: "nonpayable";
|
|
216
|
+
readonly type: "function";
|
|
217
|
+
}, {
|
|
218
|
+
readonly inputs: readonly [{
|
|
219
|
+
readonly internalType: "uint256[]";
|
|
220
|
+
readonly name: "_durationDaysThresholds";
|
|
221
|
+
readonly type: "uint256[]";
|
|
222
|
+
}, {
|
|
223
|
+
readonly internalType: "uint256[]";
|
|
224
|
+
readonly name: "_multipliers";
|
|
225
|
+
readonly type: "uint256[]";
|
|
226
|
+
}];
|
|
227
|
+
readonly name: "setMultipliers";
|
|
228
|
+
readonly outputs: readonly [];
|
|
229
|
+
readonly stateMutability: "nonpayable";
|
|
230
|
+
readonly type: "function";
|
|
231
|
+
}, {
|
|
232
|
+
readonly inputs: readonly [{
|
|
233
|
+
readonly internalType: "address";
|
|
234
|
+
readonly name: "newOwner";
|
|
235
|
+
readonly type: "address";
|
|
236
|
+
}];
|
|
237
|
+
readonly name: "transferOwnership";
|
|
238
|
+
readonly outputs: readonly [];
|
|
239
|
+
readonly stateMutability: "nonpayable";
|
|
240
|
+
readonly type: "function";
|
|
241
|
+
}, {
|
|
242
|
+
readonly inputs: readonly [];
|
|
243
|
+
readonly name: "votingEscrow";
|
|
244
|
+
readonly outputs: readonly [{
|
|
245
|
+
readonly internalType: "contract IVotingEscrowV2Upgradeable";
|
|
246
|
+
readonly name: "";
|
|
247
|
+
readonly type: "address";
|
|
248
|
+
}];
|
|
249
|
+
readonly stateMutability: "view";
|
|
250
|
+
readonly type: "function";
|
|
251
|
+
}];
|
|
252
|
+
static createInterface(): LensContractInterface;
|
|
253
|
+
static connect(address: string, signerOrProvider: Signer | Provider): LensContract;
|
|
254
|
+
}
|
|
@@ -0,0 +1,338 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
import { Contract, utils } from "ethers";
|
|
5
|
+
var _abi = [
|
|
6
|
+
{
|
|
7
|
+
inputs: [],
|
|
8
|
+
stateMutability: "nonpayable",
|
|
9
|
+
type: "constructor",
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
inputs: [],
|
|
13
|
+
name: "DurationsNotDescendingOrder",
|
|
14
|
+
type: "error",
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
inputs: [],
|
|
18
|
+
name: "MismatchedLengths",
|
|
19
|
+
type: "error",
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
inputs: [],
|
|
23
|
+
name: "MultiplierBelowPrecision",
|
|
24
|
+
type: "error",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
inputs: [],
|
|
28
|
+
name: "NotLockOwner",
|
|
29
|
+
type: "error",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
anonymous: false,
|
|
33
|
+
inputs: [
|
|
34
|
+
{
|
|
35
|
+
indexed: false,
|
|
36
|
+
internalType: "uint8",
|
|
37
|
+
name: "version",
|
|
38
|
+
type: "uint8",
|
|
39
|
+
},
|
|
40
|
+
],
|
|
41
|
+
name: "Initialized",
|
|
42
|
+
type: "event",
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
anonymous: false,
|
|
46
|
+
inputs: [
|
|
47
|
+
{
|
|
48
|
+
indexed: false,
|
|
49
|
+
internalType: "uint256[]",
|
|
50
|
+
name: "durationThresholds",
|
|
51
|
+
type: "uint256[]",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
indexed: false,
|
|
55
|
+
internalType: "uint256[]",
|
|
56
|
+
name: "multipliers",
|
|
57
|
+
type: "uint256[]",
|
|
58
|
+
},
|
|
59
|
+
],
|
|
60
|
+
name: "MultipliersUpdated",
|
|
61
|
+
type: "event",
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
anonymous: false,
|
|
65
|
+
inputs: [
|
|
66
|
+
{
|
|
67
|
+
indexed: true,
|
|
68
|
+
internalType: "address",
|
|
69
|
+
name: "previousOwner",
|
|
70
|
+
type: "address",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
indexed: true,
|
|
74
|
+
internalType: "address",
|
|
75
|
+
name: "newOwner",
|
|
76
|
+
type: "address",
|
|
77
|
+
},
|
|
78
|
+
],
|
|
79
|
+
name: "OwnershipTransferred",
|
|
80
|
+
type: "event",
|
|
81
|
+
},
|
|
82
|
+
{
|
|
83
|
+
inputs: [],
|
|
84
|
+
name: "MULTIPLIER_PRECISION",
|
|
85
|
+
outputs: [
|
|
86
|
+
{
|
|
87
|
+
internalType: "uint256",
|
|
88
|
+
name: "",
|
|
89
|
+
type: "uint256",
|
|
90
|
+
},
|
|
91
|
+
],
|
|
92
|
+
stateMutability: "view",
|
|
93
|
+
type: "function",
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
inputs: [
|
|
97
|
+
{
|
|
98
|
+
internalType: "uint256",
|
|
99
|
+
name: "",
|
|
100
|
+
type: "uint256",
|
|
101
|
+
},
|
|
102
|
+
],
|
|
103
|
+
name: "durationDaysThresholds",
|
|
104
|
+
outputs: [
|
|
105
|
+
{
|
|
106
|
+
internalType: "uint256",
|
|
107
|
+
name: "",
|
|
108
|
+
type: "uint256",
|
|
109
|
+
},
|
|
110
|
+
],
|
|
111
|
+
stateMutability: "view",
|
|
112
|
+
type: "function",
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
inputs: [
|
|
116
|
+
{
|
|
117
|
+
internalType: "address",
|
|
118
|
+
name: "escrowOwner",
|
|
119
|
+
type: "address",
|
|
120
|
+
},
|
|
121
|
+
],
|
|
122
|
+
name: "getEscrowWeight",
|
|
123
|
+
outputs: [
|
|
124
|
+
{
|
|
125
|
+
internalType: "uint256",
|
|
126
|
+
name: "totalWeight",
|
|
127
|
+
type: "uint256",
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
internalType: "uint256",
|
|
131
|
+
name: "maxMultiplier",
|
|
132
|
+
type: "uint256",
|
|
133
|
+
},
|
|
134
|
+
{
|
|
135
|
+
internalType: "uint256",
|
|
136
|
+
name: "maxTier",
|
|
137
|
+
type: "uint256",
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
stateMutability: "view",
|
|
141
|
+
type: "function",
|
|
142
|
+
},
|
|
143
|
+
{
|
|
144
|
+
inputs: [
|
|
145
|
+
{
|
|
146
|
+
internalType: "address",
|
|
147
|
+
name: "escrowOwner",
|
|
148
|
+
type: "address",
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
internalType: "uint256[]",
|
|
152
|
+
name: "tokenIds",
|
|
153
|
+
type: "uint256[]",
|
|
154
|
+
},
|
|
155
|
+
],
|
|
156
|
+
name: "getEscrowWeightForTokenIds",
|
|
157
|
+
outputs: [
|
|
158
|
+
{
|
|
159
|
+
internalType: "uint256",
|
|
160
|
+
name: "totalWeight",
|
|
161
|
+
type: "uint256",
|
|
162
|
+
},
|
|
163
|
+
{
|
|
164
|
+
internalType: "uint256",
|
|
165
|
+
name: "maxMultiplier",
|
|
166
|
+
type: "uint256",
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
internalType: "uint256",
|
|
170
|
+
name: "maxTier",
|
|
171
|
+
type: "uint256",
|
|
172
|
+
},
|
|
173
|
+
],
|
|
174
|
+
stateMutability: "view",
|
|
175
|
+
type: "function",
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
inputs: [
|
|
179
|
+
{
|
|
180
|
+
internalType: "uint256",
|
|
181
|
+
name: "durationDays",
|
|
182
|
+
type: "uint256",
|
|
183
|
+
},
|
|
184
|
+
],
|
|
185
|
+
name: "getMultiplierForDaysLocked",
|
|
186
|
+
outputs: [
|
|
187
|
+
{
|
|
188
|
+
internalType: "uint256",
|
|
189
|
+
name: "multiplier",
|
|
190
|
+
type: "uint256",
|
|
191
|
+
},
|
|
192
|
+
{
|
|
193
|
+
internalType: "uint256",
|
|
194
|
+
name: "tier",
|
|
195
|
+
type: "uint256",
|
|
196
|
+
},
|
|
197
|
+
],
|
|
198
|
+
stateMutability: "view",
|
|
199
|
+
type: "function",
|
|
200
|
+
},
|
|
201
|
+
{
|
|
202
|
+
inputs: [],
|
|
203
|
+
name: "getMultipliers",
|
|
204
|
+
outputs: [
|
|
205
|
+
{
|
|
206
|
+
internalType: "uint256[]",
|
|
207
|
+
name: "_durationDaysThresholds",
|
|
208
|
+
type: "uint256[]",
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
internalType: "uint256[]",
|
|
212
|
+
name: "_multipliers",
|
|
213
|
+
type: "uint256[]",
|
|
214
|
+
},
|
|
215
|
+
],
|
|
216
|
+
stateMutability: "view",
|
|
217
|
+
type: "function",
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
inputs: [
|
|
221
|
+
{
|
|
222
|
+
internalType: "address",
|
|
223
|
+
name: "_votingEscrowAddress",
|
|
224
|
+
type: "address",
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
internalType: "uint256[]",
|
|
228
|
+
name: "_durationDaysThresholds",
|
|
229
|
+
type: "uint256[]",
|
|
230
|
+
},
|
|
231
|
+
{
|
|
232
|
+
internalType: "uint256[]",
|
|
233
|
+
name: "_multipliers",
|
|
234
|
+
type: "uint256[]",
|
|
235
|
+
},
|
|
236
|
+
],
|
|
237
|
+
name: "initialize",
|
|
238
|
+
outputs: [],
|
|
239
|
+
stateMutability: "nonpayable",
|
|
240
|
+
type: "function",
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
inputs: [
|
|
244
|
+
{
|
|
245
|
+
internalType: "uint256",
|
|
246
|
+
name: "",
|
|
247
|
+
type: "uint256",
|
|
248
|
+
},
|
|
249
|
+
],
|
|
250
|
+
name: "multipliers",
|
|
251
|
+
outputs: [
|
|
252
|
+
{
|
|
253
|
+
internalType: "uint256",
|
|
254
|
+
name: "",
|
|
255
|
+
type: "uint256",
|
|
256
|
+
},
|
|
257
|
+
],
|
|
258
|
+
stateMutability: "view",
|
|
259
|
+
type: "function",
|
|
260
|
+
},
|
|
261
|
+
{
|
|
262
|
+
inputs: [],
|
|
263
|
+
name: "owner",
|
|
264
|
+
outputs: [
|
|
265
|
+
{
|
|
266
|
+
internalType: "address",
|
|
267
|
+
name: "",
|
|
268
|
+
type: "address",
|
|
269
|
+
},
|
|
270
|
+
],
|
|
271
|
+
stateMutability: "view",
|
|
272
|
+
type: "function",
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
inputs: [],
|
|
276
|
+
name: "renounceOwnership",
|
|
277
|
+
outputs: [],
|
|
278
|
+
stateMutability: "nonpayable",
|
|
279
|
+
type: "function",
|
|
280
|
+
},
|
|
281
|
+
{
|
|
282
|
+
inputs: [
|
|
283
|
+
{
|
|
284
|
+
internalType: "uint256[]",
|
|
285
|
+
name: "_durationDaysThresholds",
|
|
286
|
+
type: "uint256[]",
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
internalType: "uint256[]",
|
|
290
|
+
name: "_multipliers",
|
|
291
|
+
type: "uint256[]",
|
|
292
|
+
},
|
|
293
|
+
],
|
|
294
|
+
name: "setMultipliers",
|
|
295
|
+
outputs: [],
|
|
296
|
+
stateMutability: "nonpayable",
|
|
297
|
+
type: "function",
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
inputs: [
|
|
301
|
+
{
|
|
302
|
+
internalType: "address",
|
|
303
|
+
name: "newOwner",
|
|
304
|
+
type: "address",
|
|
305
|
+
},
|
|
306
|
+
],
|
|
307
|
+
name: "transferOwnership",
|
|
308
|
+
outputs: [],
|
|
309
|
+
stateMutability: "nonpayable",
|
|
310
|
+
type: "function",
|
|
311
|
+
},
|
|
312
|
+
{
|
|
313
|
+
inputs: [],
|
|
314
|
+
name: "votingEscrow",
|
|
315
|
+
outputs: [
|
|
316
|
+
{
|
|
317
|
+
internalType: "contract IVotingEscrowV2Upgradeable",
|
|
318
|
+
name: "",
|
|
319
|
+
type: "address",
|
|
320
|
+
},
|
|
321
|
+
],
|
|
322
|
+
stateMutability: "view",
|
|
323
|
+
type: "function",
|
|
324
|
+
},
|
|
325
|
+
];
|
|
326
|
+
var LensContract__factory = /** @class */ (function () {
|
|
327
|
+
function LensContract__factory() {
|
|
328
|
+
}
|
|
329
|
+
LensContract__factory.createInterface = function () {
|
|
330
|
+
return new utils.Interface(_abi);
|
|
331
|
+
};
|
|
332
|
+
LensContract__factory.connect = function (address, signerOrProvider) {
|
|
333
|
+
return new Contract(address, _abi, signerOrProvider);
|
|
334
|
+
};
|
|
335
|
+
LensContract__factory.abi = _abi;
|
|
336
|
+
return LensContract__factory;
|
|
337
|
+
}());
|
|
338
|
+
export { LensContract__factory };
|