@gearbox-protocol/sdk 3.0.0-next.37 → 3.0.0-next.39
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/contracts/index.sol +3 -1
- package/lib/core/creditManager.d.ts +1 -3
- package/lib/core/creditManager.js +2 -10
- package/lib/core/gauge.d.ts +11 -1
- package/lib/core/gauge.js +24 -1
- package/lib/core/pool.d.ts +3 -0
- package/lib/core/pool.js +11 -0
- package/lib/core/transactions.d.ts +23 -3
- package/lib/core/transactions.js +73 -100
- package/lib/payload/gauge.d.ts +8 -1
- package/lib/types/IGearStakingV3.sol/IGearStakingV3.d.ts +385 -0
- package/lib/types/IGearStakingV3.sol/IGearStakingV3.js +2 -0
- package/lib/types/IGearStakingV3.sol/IGearStakingV3Events.d.ts +117 -0
- package/lib/types/IGearStakingV3.sol/IGearStakingV3Events.js +2 -0
- package/lib/types/IGearStakingV3.sol/index.d.ts +2 -0
- package/lib/types/IGearStakingV3.sol/index.js +2 -0
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3Events__factory.d.ts +113 -0
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3Events__factory.js +152 -0
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3__factory.d.ts +457 -0
- package/lib/types/factories/IGearStakingV3.sol/IGearStakingV3__factory.js +600 -0
- package/lib/types/factories/IGearStakingV3.sol/index.d.ts +2 -0
- package/lib/types/factories/IGearStakingV3.sol/index.js +10 -0
- package/lib/types/factories/index.d.ts +1 -0
- package/lib/types/factories/index.js +3 -2
- package/lib/types/index.d.ts +6 -0
- package/lib/types/index.js +5 -1
- package/package.json +4 -4
|
@@ -0,0 +1,152 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Autogenerated file. Do not edit manually. */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.IGearStakingV3Events__factory = void 0;
|
|
7
|
+
const ethers_1 = require("ethers");
|
|
8
|
+
const _abi = [
|
|
9
|
+
{
|
|
10
|
+
anonymous: false,
|
|
11
|
+
inputs: [
|
|
12
|
+
{
|
|
13
|
+
indexed: true,
|
|
14
|
+
internalType: "address",
|
|
15
|
+
name: "user",
|
|
16
|
+
type: "address",
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
indexed: false,
|
|
20
|
+
internalType: "address",
|
|
21
|
+
name: "to",
|
|
22
|
+
type: "address",
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
indexed: false,
|
|
26
|
+
internalType: "uint256",
|
|
27
|
+
name: "amount",
|
|
28
|
+
type: "uint256",
|
|
29
|
+
},
|
|
30
|
+
],
|
|
31
|
+
name: "ClaimGearWithdrawal",
|
|
32
|
+
type: "event",
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
anonymous: false,
|
|
36
|
+
inputs: [
|
|
37
|
+
{
|
|
38
|
+
indexed: true,
|
|
39
|
+
internalType: "address",
|
|
40
|
+
name: "user",
|
|
41
|
+
type: "address",
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
indexed: false,
|
|
45
|
+
internalType: "uint256",
|
|
46
|
+
name: "amount",
|
|
47
|
+
type: "uint256",
|
|
48
|
+
},
|
|
49
|
+
],
|
|
50
|
+
name: "DepositGear",
|
|
51
|
+
type: "event",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
anonymous: false,
|
|
55
|
+
inputs: [
|
|
56
|
+
{
|
|
57
|
+
indexed: true,
|
|
58
|
+
internalType: "address",
|
|
59
|
+
name: "user",
|
|
60
|
+
type: "address",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
indexed: true,
|
|
64
|
+
internalType: "address",
|
|
65
|
+
name: "successor",
|
|
66
|
+
type: "address",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
indexed: false,
|
|
70
|
+
internalType: "uint256",
|
|
71
|
+
name: "amount",
|
|
72
|
+
type: "uint256",
|
|
73
|
+
},
|
|
74
|
+
],
|
|
75
|
+
name: "MigrateGear",
|
|
76
|
+
type: "event",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
anonymous: false,
|
|
80
|
+
inputs: [
|
|
81
|
+
{
|
|
82
|
+
indexed: true,
|
|
83
|
+
internalType: "address",
|
|
84
|
+
name: "user",
|
|
85
|
+
type: "address",
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
indexed: false,
|
|
89
|
+
internalType: "uint256",
|
|
90
|
+
name: "amount",
|
|
91
|
+
type: "uint256",
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
name: "ScheduleGearWithdrawal",
|
|
95
|
+
type: "event",
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
anonymous: false,
|
|
99
|
+
inputs: [
|
|
100
|
+
{
|
|
101
|
+
indexed: true,
|
|
102
|
+
internalType: "address",
|
|
103
|
+
name: "migrator",
|
|
104
|
+
type: "address",
|
|
105
|
+
},
|
|
106
|
+
],
|
|
107
|
+
name: "SetMigrator",
|
|
108
|
+
type: "event",
|
|
109
|
+
},
|
|
110
|
+
{
|
|
111
|
+
anonymous: false,
|
|
112
|
+
inputs: [
|
|
113
|
+
{
|
|
114
|
+
indexed: true,
|
|
115
|
+
internalType: "address",
|
|
116
|
+
name: "successor",
|
|
117
|
+
type: "address",
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
name: "SetSuccessor",
|
|
121
|
+
type: "event",
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
anonymous: false,
|
|
125
|
+
inputs: [
|
|
126
|
+
{
|
|
127
|
+
indexed: true,
|
|
128
|
+
internalType: "address",
|
|
129
|
+
name: "votingContract",
|
|
130
|
+
type: "address",
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
indexed: false,
|
|
134
|
+
internalType: "enum VotingContractStatus",
|
|
135
|
+
name: "status",
|
|
136
|
+
type: "uint8",
|
|
137
|
+
},
|
|
138
|
+
],
|
|
139
|
+
name: "SetVotingContractStatus",
|
|
140
|
+
type: "event",
|
|
141
|
+
},
|
|
142
|
+
];
|
|
143
|
+
class IGearStakingV3Events__factory {
|
|
144
|
+
static abi = _abi;
|
|
145
|
+
static createInterface() {
|
|
146
|
+
return new ethers_1.utils.Interface(_abi);
|
|
147
|
+
}
|
|
148
|
+
static connect(address, signerOrProvider) {
|
|
149
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
150
|
+
}
|
|
151
|
+
}
|
|
152
|
+
exports.IGearStakingV3Events__factory = IGearStakingV3Events__factory;
|
|
@@ -0,0 +1,457 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { IGearStakingV3, IGearStakingV3Interface } from "../../IGearStakingV3.sol/IGearStakingV3";
|
|
4
|
+
export declare class IGearStakingV3__factory {
|
|
5
|
+
static readonly abi: readonly [{
|
|
6
|
+
readonly anonymous: false;
|
|
7
|
+
readonly inputs: readonly [{
|
|
8
|
+
readonly indexed: true;
|
|
9
|
+
readonly internalType: "address";
|
|
10
|
+
readonly name: "user";
|
|
11
|
+
readonly type: "address";
|
|
12
|
+
}, {
|
|
13
|
+
readonly indexed: false;
|
|
14
|
+
readonly internalType: "address";
|
|
15
|
+
readonly name: "to";
|
|
16
|
+
readonly type: "address";
|
|
17
|
+
}, {
|
|
18
|
+
readonly indexed: false;
|
|
19
|
+
readonly internalType: "uint256";
|
|
20
|
+
readonly name: "amount";
|
|
21
|
+
readonly type: "uint256";
|
|
22
|
+
}];
|
|
23
|
+
readonly name: "ClaimGearWithdrawal";
|
|
24
|
+
readonly type: "event";
|
|
25
|
+
}, {
|
|
26
|
+
readonly anonymous: false;
|
|
27
|
+
readonly inputs: readonly [{
|
|
28
|
+
readonly indexed: true;
|
|
29
|
+
readonly internalType: "address";
|
|
30
|
+
readonly name: "user";
|
|
31
|
+
readonly type: "address";
|
|
32
|
+
}, {
|
|
33
|
+
readonly indexed: false;
|
|
34
|
+
readonly internalType: "uint256";
|
|
35
|
+
readonly name: "amount";
|
|
36
|
+
readonly type: "uint256";
|
|
37
|
+
}];
|
|
38
|
+
readonly name: "DepositGear";
|
|
39
|
+
readonly type: "event";
|
|
40
|
+
}, {
|
|
41
|
+
readonly anonymous: false;
|
|
42
|
+
readonly inputs: readonly [{
|
|
43
|
+
readonly indexed: true;
|
|
44
|
+
readonly internalType: "address";
|
|
45
|
+
readonly name: "user";
|
|
46
|
+
readonly type: "address";
|
|
47
|
+
}, {
|
|
48
|
+
readonly indexed: true;
|
|
49
|
+
readonly internalType: "address";
|
|
50
|
+
readonly name: "successor";
|
|
51
|
+
readonly type: "address";
|
|
52
|
+
}, {
|
|
53
|
+
readonly indexed: false;
|
|
54
|
+
readonly internalType: "uint256";
|
|
55
|
+
readonly name: "amount";
|
|
56
|
+
readonly type: "uint256";
|
|
57
|
+
}];
|
|
58
|
+
readonly name: "MigrateGear";
|
|
59
|
+
readonly type: "event";
|
|
60
|
+
}, {
|
|
61
|
+
readonly anonymous: false;
|
|
62
|
+
readonly inputs: readonly [{
|
|
63
|
+
readonly indexed: true;
|
|
64
|
+
readonly internalType: "address";
|
|
65
|
+
readonly name: "user";
|
|
66
|
+
readonly type: "address";
|
|
67
|
+
}, {
|
|
68
|
+
readonly indexed: false;
|
|
69
|
+
readonly internalType: "uint256";
|
|
70
|
+
readonly name: "amount";
|
|
71
|
+
readonly type: "uint256";
|
|
72
|
+
}];
|
|
73
|
+
readonly name: "ScheduleGearWithdrawal";
|
|
74
|
+
readonly type: "event";
|
|
75
|
+
}, {
|
|
76
|
+
readonly anonymous: false;
|
|
77
|
+
readonly inputs: readonly [{
|
|
78
|
+
readonly indexed: true;
|
|
79
|
+
readonly internalType: "address";
|
|
80
|
+
readonly name: "migrator";
|
|
81
|
+
readonly type: "address";
|
|
82
|
+
}];
|
|
83
|
+
readonly name: "SetMigrator";
|
|
84
|
+
readonly type: "event";
|
|
85
|
+
}, {
|
|
86
|
+
readonly anonymous: false;
|
|
87
|
+
readonly inputs: readonly [{
|
|
88
|
+
readonly indexed: true;
|
|
89
|
+
readonly internalType: "address";
|
|
90
|
+
readonly name: "successor";
|
|
91
|
+
readonly type: "address";
|
|
92
|
+
}];
|
|
93
|
+
readonly name: "SetSuccessor";
|
|
94
|
+
readonly type: "event";
|
|
95
|
+
}, {
|
|
96
|
+
readonly anonymous: false;
|
|
97
|
+
readonly inputs: readonly [{
|
|
98
|
+
readonly indexed: true;
|
|
99
|
+
readonly internalType: "address";
|
|
100
|
+
readonly name: "votingContract";
|
|
101
|
+
readonly type: "address";
|
|
102
|
+
}, {
|
|
103
|
+
readonly indexed: false;
|
|
104
|
+
readonly internalType: "enum VotingContractStatus";
|
|
105
|
+
readonly name: "status";
|
|
106
|
+
readonly type: "uint8";
|
|
107
|
+
}];
|
|
108
|
+
readonly name: "SetVotingContractStatus";
|
|
109
|
+
readonly type: "event";
|
|
110
|
+
}, {
|
|
111
|
+
readonly inputs: readonly [{
|
|
112
|
+
readonly internalType: "address";
|
|
113
|
+
readonly name: "";
|
|
114
|
+
readonly type: "address";
|
|
115
|
+
}];
|
|
116
|
+
readonly name: "allowedVotingContract";
|
|
117
|
+
readonly outputs: readonly [{
|
|
118
|
+
readonly internalType: "enum VotingContractStatus";
|
|
119
|
+
readonly name: "";
|
|
120
|
+
readonly type: "uint8";
|
|
121
|
+
}];
|
|
122
|
+
readonly stateMutability: "view";
|
|
123
|
+
readonly type: "function";
|
|
124
|
+
}, {
|
|
125
|
+
readonly inputs: readonly [{
|
|
126
|
+
readonly internalType: "address";
|
|
127
|
+
readonly name: "user";
|
|
128
|
+
readonly type: "address";
|
|
129
|
+
}];
|
|
130
|
+
readonly name: "availableBalance";
|
|
131
|
+
readonly outputs: readonly [{
|
|
132
|
+
readonly internalType: "uint256";
|
|
133
|
+
readonly name: "";
|
|
134
|
+
readonly type: "uint256";
|
|
135
|
+
}];
|
|
136
|
+
readonly stateMutability: "view";
|
|
137
|
+
readonly type: "function";
|
|
138
|
+
}, {
|
|
139
|
+
readonly inputs: readonly [{
|
|
140
|
+
readonly internalType: "address";
|
|
141
|
+
readonly name: "user";
|
|
142
|
+
readonly type: "address";
|
|
143
|
+
}];
|
|
144
|
+
readonly name: "balanceOf";
|
|
145
|
+
readonly outputs: readonly [{
|
|
146
|
+
readonly internalType: "uint256";
|
|
147
|
+
readonly name: "";
|
|
148
|
+
readonly type: "uint256";
|
|
149
|
+
}];
|
|
150
|
+
readonly stateMutability: "view";
|
|
151
|
+
readonly type: "function";
|
|
152
|
+
}, {
|
|
153
|
+
readonly inputs: readonly [{
|
|
154
|
+
readonly internalType: "address";
|
|
155
|
+
readonly name: "to";
|
|
156
|
+
readonly type: "address";
|
|
157
|
+
}];
|
|
158
|
+
readonly name: "claimWithdrawals";
|
|
159
|
+
readonly outputs: readonly [];
|
|
160
|
+
readonly stateMutability: "nonpayable";
|
|
161
|
+
readonly type: "function";
|
|
162
|
+
}, {
|
|
163
|
+
readonly inputs: readonly [{
|
|
164
|
+
readonly internalType: "uint96";
|
|
165
|
+
readonly name: "amount";
|
|
166
|
+
readonly type: "uint96";
|
|
167
|
+
}, {
|
|
168
|
+
readonly components: readonly [{
|
|
169
|
+
readonly internalType: "address";
|
|
170
|
+
readonly name: "votingContract";
|
|
171
|
+
readonly type: "address";
|
|
172
|
+
}, {
|
|
173
|
+
readonly internalType: "uint96";
|
|
174
|
+
readonly name: "voteAmount";
|
|
175
|
+
readonly type: "uint96";
|
|
176
|
+
}, {
|
|
177
|
+
readonly internalType: "bool";
|
|
178
|
+
readonly name: "isIncrease";
|
|
179
|
+
readonly type: "bool";
|
|
180
|
+
}, {
|
|
181
|
+
readonly internalType: "bytes";
|
|
182
|
+
readonly name: "extraData";
|
|
183
|
+
readonly type: "bytes";
|
|
184
|
+
}];
|
|
185
|
+
readonly internalType: "struct MultiVote[]";
|
|
186
|
+
readonly name: "votes";
|
|
187
|
+
readonly type: "tuple[]";
|
|
188
|
+
}];
|
|
189
|
+
readonly name: "deposit";
|
|
190
|
+
readonly outputs: readonly [];
|
|
191
|
+
readonly stateMutability: "nonpayable";
|
|
192
|
+
readonly type: "function";
|
|
193
|
+
}, {
|
|
194
|
+
readonly inputs: readonly [{
|
|
195
|
+
readonly internalType: "uint96";
|
|
196
|
+
readonly name: "amount";
|
|
197
|
+
readonly type: "uint96";
|
|
198
|
+
}, {
|
|
199
|
+
readonly internalType: "address";
|
|
200
|
+
readonly name: "onBehalfOf";
|
|
201
|
+
readonly type: "address";
|
|
202
|
+
}, {
|
|
203
|
+
readonly components: readonly [{
|
|
204
|
+
readonly internalType: "address";
|
|
205
|
+
readonly name: "votingContract";
|
|
206
|
+
readonly type: "address";
|
|
207
|
+
}, {
|
|
208
|
+
readonly internalType: "uint96";
|
|
209
|
+
readonly name: "voteAmount";
|
|
210
|
+
readonly type: "uint96";
|
|
211
|
+
}, {
|
|
212
|
+
readonly internalType: "bool";
|
|
213
|
+
readonly name: "isIncrease";
|
|
214
|
+
readonly type: "bool";
|
|
215
|
+
}, {
|
|
216
|
+
readonly internalType: "bytes";
|
|
217
|
+
readonly name: "extraData";
|
|
218
|
+
readonly type: "bytes";
|
|
219
|
+
}];
|
|
220
|
+
readonly internalType: "struct MultiVote[]";
|
|
221
|
+
readonly name: "votes";
|
|
222
|
+
readonly type: "tuple[]";
|
|
223
|
+
}];
|
|
224
|
+
readonly name: "depositOnMigration";
|
|
225
|
+
readonly outputs: readonly [];
|
|
226
|
+
readonly stateMutability: "nonpayable";
|
|
227
|
+
readonly type: "function";
|
|
228
|
+
}, {
|
|
229
|
+
readonly inputs: readonly [];
|
|
230
|
+
readonly name: "firstEpochTimestamp";
|
|
231
|
+
readonly outputs: readonly [{
|
|
232
|
+
readonly internalType: "uint256";
|
|
233
|
+
readonly name: "";
|
|
234
|
+
readonly type: "uint256";
|
|
235
|
+
}];
|
|
236
|
+
readonly stateMutability: "view";
|
|
237
|
+
readonly type: "function";
|
|
238
|
+
}, {
|
|
239
|
+
readonly inputs: readonly [];
|
|
240
|
+
readonly name: "gear";
|
|
241
|
+
readonly outputs: readonly [{
|
|
242
|
+
readonly internalType: "address";
|
|
243
|
+
readonly name: "";
|
|
244
|
+
readonly type: "address";
|
|
245
|
+
}];
|
|
246
|
+
readonly stateMutability: "view";
|
|
247
|
+
readonly type: "function";
|
|
248
|
+
}, {
|
|
249
|
+
readonly inputs: readonly [];
|
|
250
|
+
readonly name: "getCurrentEpoch";
|
|
251
|
+
readonly outputs: readonly [{
|
|
252
|
+
readonly internalType: "uint16";
|
|
253
|
+
readonly name: "";
|
|
254
|
+
readonly type: "uint16";
|
|
255
|
+
}];
|
|
256
|
+
readonly stateMutability: "view";
|
|
257
|
+
readonly type: "function";
|
|
258
|
+
}, {
|
|
259
|
+
readonly inputs: readonly [{
|
|
260
|
+
readonly internalType: "address";
|
|
261
|
+
readonly name: "user";
|
|
262
|
+
readonly type: "address";
|
|
263
|
+
}];
|
|
264
|
+
readonly name: "getWithdrawableAmounts";
|
|
265
|
+
readonly outputs: readonly [{
|
|
266
|
+
readonly internalType: "uint256";
|
|
267
|
+
readonly name: "withdrawableNow";
|
|
268
|
+
readonly type: "uint256";
|
|
269
|
+
}, {
|
|
270
|
+
readonly internalType: "uint256[4]";
|
|
271
|
+
readonly name: "withdrawableInEpochs";
|
|
272
|
+
readonly type: "uint256[4]";
|
|
273
|
+
}];
|
|
274
|
+
readonly stateMutability: "view";
|
|
275
|
+
readonly type: "function";
|
|
276
|
+
}, {
|
|
277
|
+
readonly inputs: readonly [{
|
|
278
|
+
readonly internalType: "uint96";
|
|
279
|
+
readonly name: "amount";
|
|
280
|
+
readonly type: "uint96";
|
|
281
|
+
}, {
|
|
282
|
+
readonly components: readonly [{
|
|
283
|
+
readonly internalType: "address";
|
|
284
|
+
readonly name: "votingContract";
|
|
285
|
+
readonly type: "address";
|
|
286
|
+
}, {
|
|
287
|
+
readonly internalType: "uint96";
|
|
288
|
+
readonly name: "voteAmount";
|
|
289
|
+
readonly type: "uint96";
|
|
290
|
+
}, {
|
|
291
|
+
readonly internalType: "bool";
|
|
292
|
+
readonly name: "isIncrease";
|
|
293
|
+
readonly type: "bool";
|
|
294
|
+
}, {
|
|
295
|
+
readonly internalType: "bytes";
|
|
296
|
+
readonly name: "extraData";
|
|
297
|
+
readonly type: "bytes";
|
|
298
|
+
}];
|
|
299
|
+
readonly internalType: "struct MultiVote[]";
|
|
300
|
+
readonly name: "votesBefore";
|
|
301
|
+
readonly type: "tuple[]";
|
|
302
|
+
}, {
|
|
303
|
+
readonly components: readonly [{
|
|
304
|
+
readonly internalType: "address";
|
|
305
|
+
readonly name: "votingContract";
|
|
306
|
+
readonly type: "address";
|
|
307
|
+
}, {
|
|
308
|
+
readonly internalType: "uint96";
|
|
309
|
+
readonly name: "voteAmount";
|
|
310
|
+
readonly type: "uint96";
|
|
311
|
+
}, {
|
|
312
|
+
readonly internalType: "bool";
|
|
313
|
+
readonly name: "isIncrease";
|
|
314
|
+
readonly type: "bool";
|
|
315
|
+
}, {
|
|
316
|
+
readonly internalType: "bytes";
|
|
317
|
+
readonly name: "extraData";
|
|
318
|
+
readonly type: "bytes";
|
|
319
|
+
}];
|
|
320
|
+
readonly internalType: "struct MultiVote[]";
|
|
321
|
+
readonly name: "votesAfter";
|
|
322
|
+
readonly type: "tuple[]";
|
|
323
|
+
}];
|
|
324
|
+
readonly name: "migrate";
|
|
325
|
+
readonly outputs: readonly [];
|
|
326
|
+
readonly stateMutability: "nonpayable";
|
|
327
|
+
readonly type: "function";
|
|
328
|
+
}, {
|
|
329
|
+
readonly inputs: readonly [];
|
|
330
|
+
readonly name: "migrator";
|
|
331
|
+
readonly outputs: readonly [{
|
|
332
|
+
readonly internalType: "address";
|
|
333
|
+
readonly name: "";
|
|
334
|
+
readonly type: "address";
|
|
335
|
+
}];
|
|
336
|
+
readonly stateMutability: "view";
|
|
337
|
+
readonly type: "function";
|
|
338
|
+
}, {
|
|
339
|
+
readonly inputs: readonly [{
|
|
340
|
+
readonly components: readonly [{
|
|
341
|
+
readonly internalType: "address";
|
|
342
|
+
readonly name: "votingContract";
|
|
343
|
+
readonly type: "address";
|
|
344
|
+
}, {
|
|
345
|
+
readonly internalType: "uint96";
|
|
346
|
+
readonly name: "voteAmount";
|
|
347
|
+
readonly type: "uint96";
|
|
348
|
+
}, {
|
|
349
|
+
readonly internalType: "bool";
|
|
350
|
+
readonly name: "isIncrease";
|
|
351
|
+
readonly type: "bool";
|
|
352
|
+
}, {
|
|
353
|
+
readonly internalType: "bytes";
|
|
354
|
+
readonly name: "extraData";
|
|
355
|
+
readonly type: "bytes";
|
|
356
|
+
}];
|
|
357
|
+
readonly internalType: "struct MultiVote[]";
|
|
358
|
+
readonly name: "votes";
|
|
359
|
+
readonly type: "tuple[]";
|
|
360
|
+
}];
|
|
361
|
+
readonly name: "multivote";
|
|
362
|
+
readonly outputs: readonly [];
|
|
363
|
+
readonly stateMutability: "nonpayable";
|
|
364
|
+
readonly type: "function";
|
|
365
|
+
}, {
|
|
366
|
+
readonly inputs: readonly [{
|
|
367
|
+
readonly internalType: "address";
|
|
368
|
+
readonly name: "newMigrator";
|
|
369
|
+
readonly type: "address";
|
|
370
|
+
}];
|
|
371
|
+
readonly name: "setMigrator";
|
|
372
|
+
readonly outputs: readonly [];
|
|
373
|
+
readonly stateMutability: "nonpayable";
|
|
374
|
+
readonly type: "function";
|
|
375
|
+
}, {
|
|
376
|
+
readonly inputs: readonly [{
|
|
377
|
+
readonly internalType: "address";
|
|
378
|
+
readonly name: "newSuccessor";
|
|
379
|
+
readonly type: "address";
|
|
380
|
+
}];
|
|
381
|
+
readonly name: "setSuccessor";
|
|
382
|
+
readonly outputs: readonly [];
|
|
383
|
+
readonly stateMutability: "nonpayable";
|
|
384
|
+
readonly type: "function";
|
|
385
|
+
}, {
|
|
386
|
+
readonly inputs: readonly [{
|
|
387
|
+
readonly internalType: "address";
|
|
388
|
+
readonly name: "votingContract";
|
|
389
|
+
readonly type: "address";
|
|
390
|
+
}, {
|
|
391
|
+
readonly internalType: "enum VotingContractStatus";
|
|
392
|
+
readonly name: "status";
|
|
393
|
+
readonly type: "uint8";
|
|
394
|
+
}];
|
|
395
|
+
readonly name: "setVotingContractStatus";
|
|
396
|
+
readonly outputs: readonly [];
|
|
397
|
+
readonly stateMutability: "nonpayable";
|
|
398
|
+
readonly type: "function";
|
|
399
|
+
}, {
|
|
400
|
+
readonly inputs: readonly [];
|
|
401
|
+
readonly name: "successor";
|
|
402
|
+
readonly outputs: readonly [{
|
|
403
|
+
readonly internalType: "address";
|
|
404
|
+
readonly name: "";
|
|
405
|
+
readonly type: "address";
|
|
406
|
+
}];
|
|
407
|
+
readonly stateMutability: "view";
|
|
408
|
+
readonly type: "function";
|
|
409
|
+
}, {
|
|
410
|
+
readonly inputs: readonly [];
|
|
411
|
+
readonly name: "version";
|
|
412
|
+
readonly outputs: readonly [{
|
|
413
|
+
readonly internalType: "uint256";
|
|
414
|
+
readonly name: "";
|
|
415
|
+
readonly type: "uint256";
|
|
416
|
+
}];
|
|
417
|
+
readonly stateMutability: "view";
|
|
418
|
+
readonly type: "function";
|
|
419
|
+
}, {
|
|
420
|
+
readonly inputs: readonly [{
|
|
421
|
+
readonly internalType: "uint96";
|
|
422
|
+
readonly name: "amount";
|
|
423
|
+
readonly type: "uint96";
|
|
424
|
+
}, {
|
|
425
|
+
readonly internalType: "address";
|
|
426
|
+
readonly name: "to";
|
|
427
|
+
readonly type: "address";
|
|
428
|
+
}, {
|
|
429
|
+
readonly components: readonly [{
|
|
430
|
+
readonly internalType: "address";
|
|
431
|
+
readonly name: "votingContract";
|
|
432
|
+
readonly type: "address";
|
|
433
|
+
}, {
|
|
434
|
+
readonly internalType: "uint96";
|
|
435
|
+
readonly name: "voteAmount";
|
|
436
|
+
readonly type: "uint96";
|
|
437
|
+
}, {
|
|
438
|
+
readonly internalType: "bool";
|
|
439
|
+
readonly name: "isIncrease";
|
|
440
|
+
readonly type: "bool";
|
|
441
|
+
}, {
|
|
442
|
+
readonly internalType: "bytes";
|
|
443
|
+
readonly name: "extraData";
|
|
444
|
+
readonly type: "bytes";
|
|
445
|
+
}];
|
|
446
|
+
readonly internalType: "struct MultiVote[]";
|
|
447
|
+
readonly name: "votes";
|
|
448
|
+
readonly type: "tuple[]";
|
|
449
|
+
}];
|
|
450
|
+
readonly name: "withdraw";
|
|
451
|
+
readonly outputs: readonly [];
|
|
452
|
+
readonly stateMutability: "nonpayable";
|
|
453
|
+
readonly type: "function";
|
|
454
|
+
}];
|
|
455
|
+
static createInterface(): IGearStakingV3Interface;
|
|
456
|
+
static connect(address: string, signerOrProvider: Signer | Provider): IGearStakingV3;
|
|
457
|
+
}
|