aiia-vault-sdk 1.3.3 → 1.4.1
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/Erc20Staking.d.ts +367 -0
- package/dist/Erc20Staking.js +1 -0
- package/dist/EthStaking.d.ts +1 -1
- package/dist/EthStaking.js +1 -1
- package/dist/abis/Erc20Staking.json +1013 -0
- package/dist/contracts/Erc20Staking.d.ts +534 -0
- package/dist/contracts/Erc20Staking.js +1 -0
- package/dist/contracts.json +5 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -1
- package/dist/types.d.ts +80 -0
- package/package.json +1 -1
@@ -0,0 +1,534 @@
|
|
1
|
+
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../common";
|
3
|
+
export interface Erc20StakingInterface extends Interface {
|
4
|
+
getFunction(nameOrSignature: "DEFAULT_ADMIN_ROLE" | "OPERATOR_ROLE" | "SIGNER_ROLE" | "addRewards" | "addSigner" | "emergencyWithdraw" | "getRoleAdmin" | "getUserInfo" | "grantRole" | "harvestReward" | "hasRole" | "initialize" | "maxRewardAmount" | "minStakeAmount" | "owner" | "pause" | "paused" | "removeSigner" | "renounceOwnership" | "renounceRole" | "revokeRole" | "setMinStakeAmount" | "stake" | "stakingToken" | "supportsInterface" | "totalRewards" | "totalStaked" | "transferOwnership" | "unpause" | "unstake" | "unstakeAndHarvest" | "updateMaxRewardAmount" | "updateStakingToken" | "userNonces" | "userStakes" | "userTotalRewardsHarvested"): FunctionFragment;
|
5
|
+
getEvent(nameOrSignatureOrTopic: "Initialized" | "MinStakeUpdated" | "OwnershipTransferred" | "Paused" | "RewardHarvested" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked" | "SignerUpdated" | "Staked" | "TokenUpdated" | "Unpaused" | "Unstaked"): EventFragment;
|
6
|
+
encodeFunctionData(functionFragment: "DEFAULT_ADMIN_ROLE", values?: undefined): string;
|
7
|
+
encodeFunctionData(functionFragment: "OPERATOR_ROLE", values?: undefined): string;
|
8
|
+
encodeFunctionData(functionFragment: "SIGNER_ROLE", values?: undefined): string;
|
9
|
+
encodeFunctionData(functionFragment: "addRewards", values: [BigNumberish]): string;
|
10
|
+
encodeFunctionData(functionFragment: "addSigner", values: [AddressLike]): string;
|
11
|
+
encodeFunctionData(functionFragment: "emergencyWithdraw", values: [AddressLike]): string;
|
12
|
+
encodeFunctionData(functionFragment: "getRoleAdmin", values: [BytesLike]): string;
|
13
|
+
encodeFunctionData(functionFragment: "getUserInfo", values: [AddressLike]): string;
|
14
|
+
encodeFunctionData(functionFragment: "grantRole", values: [BytesLike, AddressLike]): string;
|
15
|
+
encodeFunctionData(functionFragment: "harvestReward", values: [BigNumberish, BigNumberish, BigNumberish, BytesLike]): string;
|
16
|
+
encodeFunctionData(functionFragment: "hasRole", values: [BytesLike, AddressLike]): string;
|
17
|
+
encodeFunctionData(functionFragment: "initialize", values: [AddressLike, AddressLike, AddressLike, BigNumberish, BigNumberish]): string;
|
18
|
+
encodeFunctionData(functionFragment: "maxRewardAmount", values?: undefined): string;
|
19
|
+
encodeFunctionData(functionFragment: "minStakeAmount", values?: undefined): string;
|
20
|
+
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
21
|
+
encodeFunctionData(functionFragment: "pause", values?: undefined): string;
|
22
|
+
encodeFunctionData(functionFragment: "paused", values?: undefined): string;
|
23
|
+
encodeFunctionData(functionFragment: "removeSigner", values: [AddressLike]): string;
|
24
|
+
encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
|
25
|
+
encodeFunctionData(functionFragment: "renounceRole", values: [BytesLike, AddressLike]): string;
|
26
|
+
encodeFunctionData(functionFragment: "revokeRole", values: [BytesLike, AddressLike]): string;
|
27
|
+
encodeFunctionData(functionFragment: "setMinStakeAmount", values: [BigNumberish]): string;
|
28
|
+
encodeFunctionData(functionFragment: "stake", values: [BigNumberish]): string;
|
29
|
+
encodeFunctionData(functionFragment: "stakingToken", values?: undefined): string;
|
30
|
+
encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
|
31
|
+
encodeFunctionData(functionFragment: "totalRewards", values?: undefined): string;
|
32
|
+
encodeFunctionData(functionFragment: "totalStaked", values?: undefined): string;
|
33
|
+
encodeFunctionData(functionFragment: "transferOwnership", values: [AddressLike]): string;
|
34
|
+
encodeFunctionData(functionFragment: "unpause", values?: undefined): string;
|
35
|
+
encodeFunctionData(functionFragment: "unstake", values: [BigNumberish]): string;
|
36
|
+
encodeFunctionData(functionFragment: "unstakeAndHarvest", values: [BigNumberish, BigNumberish, BigNumberish, BigNumberish, BytesLike]): string;
|
37
|
+
encodeFunctionData(functionFragment: "updateMaxRewardAmount", values: [BigNumberish]): string;
|
38
|
+
encodeFunctionData(functionFragment: "updateStakingToken", values: [AddressLike]): string;
|
39
|
+
encodeFunctionData(functionFragment: "userNonces", values: [AddressLike]): string;
|
40
|
+
encodeFunctionData(functionFragment: "userStakes", values: [AddressLike]): string;
|
41
|
+
encodeFunctionData(functionFragment: "userTotalRewardsHarvested", values: [AddressLike]): string;
|
42
|
+
decodeFunctionResult(functionFragment: "DEFAULT_ADMIN_ROLE", data: BytesLike): Result;
|
43
|
+
decodeFunctionResult(functionFragment: "OPERATOR_ROLE", data: BytesLike): Result;
|
44
|
+
decodeFunctionResult(functionFragment: "SIGNER_ROLE", data: BytesLike): Result;
|
45
|
+
decodeFunctionResult(functionFragment: "addRewards", data: BytesLike): Result;
|
46
|
+
decodeFunctionResult(functionFragment: "addSigner", data: BytesLike): Result;
|
47
|
+
decodeFunctionResult(functionFragment: "emergencyWithdraw", data: BytesLike): Result;
|
48
|
+
decodeFunctionResult(functionFragment: "getRoleAdmin", data: BytesLike): Result;
|
49
|
+
decodeFunctionResult(functionFragment: "getUserInfo", data: BytesLike): Result;
|
50
|
+
decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result;
|
51
|
+
decodeFunctionResult(functionFragment: "harvestReward", data: BytesLike): Result;
|
52
|
+
decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result;
|
53
|
+
decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
|
54
|
+
decodeFunctionResult(functionFragment: "maxRewardAmount", data: BytesLike): Result;
|
55
|
+
decodeFunctionResult(functionFragment: "minStakeAmount", data: BytesLike): Result;
|
56
|
+
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
57
|
+
decodeFunctionResult(functionFragment: "pause", data: BytesLike): Result;
|
58
|
+
decodeFunctionResult(functionFragment: "paused", data: BytesLike): Result;
|
59
|
+
decodeFunctionResult(functionFragment: "removeSigner", data: BytesLike): Result;
|
60
|
+
decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result;
|
61
|
+
decodeFunctionResult(functionFragment: "renounceRole", data: BytesLike): Result;
|
62
|
+
decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result;
|
63
|
+
decodeFunctionResult(functionFragment: "setMinStakeAmount", data: BytesLike): Result;
|
64
|
+
decodeFunctionResult(functionFragment: "stake", data: BytesLike): Result;
|
65
|
+
decodeFunctionResult(functionFragment: "stakingToken", data: BytesLike): Result;
|
66
|
+
decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result;
|
67
|
+
decodeFunctionResult(functionFragment: "totalRewards", data: BytesLike): Result;
|
68
|
+
decodeFunctionResult(functionFragment: "totalStaked", data: BytesLike): Result;
|
69
|
+
decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result;
|
70
|
+
decodeFunctionResult(functionFragment: "unpause", data: BytesLike): Result;
|
71
|
+
decodeFunctionResult(functionFragment: "unstake", data: BytesLike): Result;
|
72
|
+
decodeFunctionResult(functionFragment: "unstakeAndHarvest", data: BytesLike): Result;
|
73
|
+
decodeFunctionResult(functionFragment: "updateMaxRewardAmount", data: BytesLike): Result;
|
74
|
+
decodeFunctionResult(functionFragment: "updateStakingToken", data: BytesLike): Result;
|
75
|
+
decodeFunctionResult(functionFragment: "userNonces", data: BytesLike): Result;
|
76
|
+
decodeFunctionResult(functionFragment: "userStakes", data: BytesLike): Result;
|
77
|
+
decodeFunctionResult(functionFragment: "userTotalRewardsHarvested", data: BytesLike): Result;
|
78
|
+
}
|
79
|
+
export declare namespace InitializedEvent {
|
80
|
+
type InputTuple = [version: BigNumberish];
|
81
|
+
type OutputTuple = [version: bigint];
|
82
|
+
interface OutputObject {
|
83
|
+
version: bigint;
|
84
|
+
}
|
85
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
86
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
87
|
+
type Log = TypedEventLog<Event>;
|
88
|
+
type LogDescription = TypedLogDescription<Event>;
|
89
|
+
}
|
90
|
+
export declare namespace MinStakeUpdatedEvent {
|
91
|
+
type InputTuple = [oldAmount: BigNumberish, newAmount: BigNumberish];
|
92
|
+
type OutputTuple = [oldAmount: bigint, newAmount: bigint];
|
93
|
+
interface OutputObject {
|
94
|
+
oldAmount: bigint;
|
95
|
+
newAmount: bigint;
|
96
|
+
}
|
97
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
98
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
99
|
+
type Log = TypedEventLog<Event>;
|
100
|
+
type LogDescription = TypedLogDescription<Event>;
|
101
|
+
}
|
102
|
+
export declare namespace OwnershipTransferredEvent {
|
103
|
+
type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
|
104
|
+
type OutputTuple = [previousOwner: string, newOwner: string];
|
105
|
+
interface OutputObject {
|
106
|
+
previousOwner: string;
|
107
|
+
newOwner: string;
|
108
|
+
}
|
109
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
110
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
111
|
+
type Log = TypedEventLog<Event>;
|
112
|
+
type LogDescription = TypedLogDescription<Event>;
|
113
|
+
}
|
114
|
+
export declare namespace PausedEvent {
|
115
|
+
type InputTuple = [account: AddressLike];
|
116
|
+
type OutputTuple = [account: string];
|
117
|
+
interface OutputObject {
|
118
|
+
account: string;
|
119
|
+
}
|
120
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
121
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
122
|
+
type Log = TypedEventLog<Event>;
|
123
|
+
type LogDescription = TypedLogDescription<Event>;
|
124
|
+
}
|
125
|
+
export declare namespace RewardHarvestedEvent {
|
126
|
+
type InputTuple = [
|
127
|
+
user: AddressLike,
|
128
|
+
amount: BigNumberish,
|
129
|
+
timestamp: BigNumberish,
|
130
|
+
signatureHash: BytesLike
|
131
|
+
];
|
132
|
+
type OutputTuple = [
|
133
|
+
user: string,
|
134
|
+
amount: bigint,
|
135
|
+
timestamp: bigint,
|
136
|
+
signatureHash: string
|
137
|
+
];
|
138
|
+
interface OutputObject {
|
139
|
+
user: string;
|
140
|
+
amount: bigint;
|
141
|
+
timestamp: bigint;
|
142
|
+
signatureHash: string;
|
143
|
+
}
|
144
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
145
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
146
|
+
type Log = TypedEventLog<Event>;
|
147
|
+
type LogDescription = TypedLogDescription<Event>;
|
148
|
+
}
|
149
|
+
export declare namespace RoleAdminChangedEvent {
|
150
|
+
type InputTuple = [
|
151
|
+
role: BytesLike,
|
152
|
+
previousAdminRole: BytesLike,
|
153
|
+
newAdminRole: BytesLike
|
154
|
+
];
|
155
|
+
type OutputTuple = [
|
156
|
+
role: string,
|
157
|
+
previousAdminRole: string,
|
158
|
+
newAdminRole: string
|
159
|
+
];
|
160
|
+
interface OutputObject {
|
161
|
+
role: string;
|
162
|
+
previousAdminRole: string;
|
163
|
+
newAdminRole: string;
|
164
|
+
}
|
165
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
166
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
167
|
+
type Log = TypedEventLog<Event>;
|
168
|
+
type LogDescription = TypedLogDescription<Event>;
|
169
|
+
}
|
170
|
+
export declare namespace RoleGrantedEvent {
|
171
|
+
type InputTuple = [
|
172
|
+
role: BytesLike,
|
173
|
+
account: AddressLike,
|
174
|
+
sender: AddressLike
|
175
|
+
];
|
176
|
+
type OutputTuple = [role: string, account: string, sender: string];
|
177
|
+
interface OutputObject {
|
178
|
+
role: string;
|
179
|
+
account: string;
|
180
|
+
sender: string;
|
181
|
+
}
|
182
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
183
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
184
|
+
type Log = TypedEventLog<Event>;
|
185
|
+
type LogDescription = TypedLogDescription<Event>;
|
186
|
+
}
|
187
|
+
export declare namespace RoleRevokedEvent {
|
188
|
+
type InputTuple = [
|
189
|
+
role: BytesLike,
|
190
|
+
account: AddressLike,
|
191
|
+
sender: AddressLike
|
192
|
+
];
|
193
|
+
type OutputTuple = [role: string, account: string, sender: string];
|
194
|
+
interface OutputObject {
|
195
|
+
role: string;
|
196
|
+
account: string;
|
197
|
+
sender: string;
|
198
|
+
}
|
199
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
200
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
201
|
+
type Log = TypedEventLog<Event>;
|
202
|
+
type LogDescription = TypedLogDescription<Event>;
|
203
|
+
}
|
204
|
+
export declare namespace SignerUpdatedEvent {
|
205
|
+
type InputTuple = [newSigner: AddressLike];
|
206
|
+
type OutputTuple = [newSigner: string];
|
207
|
+
interface OutputObject {
|
208
|
+
newSigner: string;
|
209
|
+
}
|
210
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
211
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
212
|
+
type Log = TypedEventLog<Event>;
|
213
|
+
type LogDescription = TypedLogDescription<Event>;
|
214
|
+
}
|
215
|
+
export declare namespace StakedEvent {
|
216
|
+
type InputTuple = [
|
217
|
+
user: AddressLike,
|
218
|
+
amount: BigNumberish,
|
219
|
+
timestamp: BigNumberish
|
220
|
+
];
|
221
|
+
type OutputTuple = [user: string, amount: bigint, timestamp: bigint];
|
222
|
+
interface OutputObject {
|
223
|
+
user: string;
|
224
|
+
amount: bigint;
|
225
|
+
timestamp: bigint;
|
226
|
+
}
|
227
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
228
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
229
|
+
type Log = TypedEventLog<Event>;
|
230
|
+
type LogDescription = TypedLogDescription<Event>;
|
231
|
+
}
|
232
|
+
export declare namespace TokenUpdatedEvent {
|
233
|
+
type InputTuple = [newToken: AddressLike];
|
234
|
+
type OutputTuple = [newToken: string];
|
235
|
+
interface OutputObject {
|
236
|
+
newToken: string;
|
237
|
+
}
|
238
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
239
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
240
|
+
type Log = TypedEventLog<Event>;
|
241
|
+
type LogDescription = TypedLogDescription<Event>;
|
242
|
+
}
|
243
|
+
export declare namespace UnpausedEvent {
|
244
|
+
type InputTuple = [account: AddressLike];
|
245
|
+
type OutputTuple = [account: string];
|
246
|
+
interface OutputObject {
|
247
|
+
account: string;
|
248
|
+
}
|
249
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
250
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
251
|
+
type Log = TypedEventLog<Event>;
|
252
|
+
type LogDescription = TypedLogDescription<Event>;
|
253
|
+
}
|
254
|
+
export declare namespace UnstakedEvent {
|
255
|
+
type InputTuple = [
|
256
|
+
user: AddressLike,
|
257
|
+
amount: BigNumberish,
|
258
|
+
timestamp: BigNumberish
|
259
|
+
];
|
260
|
+
type OutputTuple = [user: string, amount: bigint, timestamp: bigint];
|
261
|
+
interface OutputObject {
|
262
|
+
user: string;
|
263
|
+
amount: bigint;
|
264
|
+
timestamp: bigint;
|
265
|
+
}
|
266
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
267
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
268
|
+
type Log = TypedEventLog<Event>;
|
269
|
+
type LogDescription = TypedLogDescription<Event>;
|
270
|
+
}
|
271
|
+
export interface Erc20Staking extends BaseContract {
|
272
|
+
connect(runner?: ContractRunner | null): Erc20Staking;
|
273
|
+
waitForDeployment(): Promise<this>;
|
274
|
+
interface: Erc20StakingInterface;
|
275
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
276
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
277
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
278
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
279
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
280
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
281
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
282
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
283
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
284
|
+
DEFAULT_ADMIN_ROLE: TypedContractMethod<[], [string], "view">;
|
285
|
+
OPERATOR_ROLE: TypedContractMethod<[], [string], "view">;
|
286
|
+
SIGNER_ROLE: TypedContractMethod<[], [string], "view">;
|
287
|
+
addRewards: TypedContractMethod<[
|
288
|
+
_amount: BigNumberish
|
289
|
+
], [
|
290
|
+
void
|
291
|
+
], "nonpayable">;
|
292
|
+
addSigner: TypedContractMethod<[_signer: AddressLike], [void], "nonpayable">;
|
293
|
+
emergencyWithdraw: TypedContractMethod<[
|
294
|
+
_recipient: AddressLike
|
295
|
+
], [
|
296
|
+
void
|
297
|
+
], "nonpayable">;
|
298
|
+
getRoleAdmin: TypedContractMethod<[role: BytesLike], [string], "view">;
|
299
|
+
getUserInfo: TypedContractMethod<[
|
300
|
+
_user: AddressLike
|
301
|
+
], [
|
302
|
+
[bigint, bigint] & {
|
303
|
+
stake: bigint;
|
304
|
+
harvested: bigint;
|
305
|
+
}
|
306
|
+
], "view">;
|
307
|
+
grantRole: TypedContractMethod<[
|
308
|
+
role: BytesLike,
|
309
|
+
account: AddressLike
|
310
|
+
], [
|
311
|
+
void
|
312
|
+
], "nonpayable">;
|
313
|
+
harvestReward: TypedContractMethod<[
|
314
|
+
_amount: BigNumberish,
|
315
|
+
_nonce: BigNumberish,
|
316
|
+
_deadline: BigNumberish,
|
317
|
+
_signature: BytesLike
|
318
|
+
], [
|
319
|
+
void
|
320
|
+
], "nonpayable">;
|
321
|
+
hasRole: TypedContractMethod<[
|
322
|
+
role: BytesLike,
|
323
|
+
account: AddressLike
|
324
|
+
], [
|
325
|
+
boolean
|
326
|
+
], "view">;
|
327
|
+
initialize: TypedContractMethod<[
|
328
|
+
_owner: AddressLike,
|
329
|
+
_signer: AddressLike,
|
330
|
+
_stakingToken: AddressLike,
|
331
|
+
_maxRewardAmount: BigNumberish,
|
332
|
+
_minStakeAmount: BigNumberish
|
333
|
+
], [
|
334
|
+
void
|
335
|
+
], "nonpayable">;
|
336
|
+
maxRewardAmount: TypedContractMethod<[], [bigint], "view">;
|
337
|
+
minStakeAmount: TypedContractMethod<[], [bigint], "view">;
|
338
|
+
owner: TypedContractMethod<[], [string], "view">;
|
339
|
+
pause: TypedContractMethod<[], [void], "nonpayable">;
|
340
|
+
paused: TypedContractMethod<[], [boolean], "view">;
|
341
|
+
removeSigner: TypedContractMethod<[
|
342
|
+
_signer: AddressLike
|
343
|
+
], [
|
344
|
+
void
|
345
|
+
], "nonpayable">;
|
346
|
+
renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
|
347
|
+
renounceRole: TypedContractMethod<[
|
348
|
+
role: BytesLike,
|
349
|
+
callerConfirmation: AddressLike
|
350
|
+
], [
|
351
|
+
void
|
352
|
+
], "nonpayable">;
|
353
|
+
revokeRole: TypedContractMethod<[
|
354
|
+
role: BytesLike,
|
355
|
+
account: AddressLike
|
356
|
+
], [
|
357
|
+
void
|
358
|
+
], "nonpayable">;
|
359
|
+
setMinStakeAmount: TypedContractMethod<[
|
360
|
+
_newMinStake: BigNumberish
|
361
|
+
], [
|
362
|
+
void
|
363
|
+
], "nonpayable">;
|
364
|
+
stake: TypedContractMethod<[_amount: BigNumberish], [void], "nonpayable">;
|
365
|
+
stakingToken: TypedContractMethod<[], [string], "view">;
|
366
|
+
supportsInterface: TypedContractMethod<[
|
367
|
+
interfaceId: BytesLike
|
368
|
+
], [
|
369
|
+
boolean
|
370
|
+
], "view">;
|
371
|
+
totalRewards: TypedContractMethod<[], [bigint], "view">;
|
372
|
+
totalStaked: TypedContractMethod<[], [bigint], "view">;
|
373
|
+
transferOwnership: TypedContractMethod<[
|
374
|
+
newOwner: AddressLike
|
375
|
+
], [
|
376
|
+
void
|
377
|
+
], "nonpayable">;
|
378
|
+
unpause: TypedContractMethod<[], [void], "nonpayable">;
|
379
|
+
unstake: TypedContractMethod<[_amount: BigNumberish], [void], "nonpayable">;
|
380
|
+
unstakeAndHarvest: TypedContractMethod<[
|
381
|
+
_unstakeAmount: BigNumberish,
|
382
|
+
_rewardAmount: BigNumberish,
|
383
|
+
_nonce: BigNumberish,
|
384
|
+
_deadline: BigNumberish,
|
385
|
+
_signature: BytesLike
|
386
|
+
], [
|
387
|
+
void
|
388
|
+
], "nonpayable">;
|
389
|
+
updateMaxRewardAmount: TypedContractMethod<[
|
390
|
+
_newMaxReward: BigNumberish
|
391
|
+
], [
|
392
|
+
void
|
393
|
+
], "nonpayable">;
|
394
|
+
updateStakingToken: TypedContractMethod<[
|
395
|
+
_newToken: AddressLike
|
396
|
+
], [
|
397
|
+
void
|
398
|
+
], "nonpayable">;
|
399
|
+
userNonces: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
400
|
+
userStakes: TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
401
|
+
userTotalRewardsHarvested: TypedContractMethod<[
|
402
|
+
arg0: AddressLike
|
403
|
+
], [
|
404
|
+
bigint
|
405
|
+
], "view">;
|
406
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
407
|
+
getFunction(nameOrSignature: "DEFAULT_ADMIN_ROLE"): TypedContractMethod<[], [string], "view">;
|
408
|
+
getFunction(nameOrSignature: "OPERATOR_ROLE"): TypedContractMethod<[], [string], "view">;
|
409
|
+
getFunction(nameOrSignature: "SIGNER_ROLE"): TypedContractMethod<[], [string], "view">;
|
410
|
+
getFunction(nameOrSignature: "addRewards"): TypedContractMethod<[_amount: BigNumberish], [void], "nonpayable">;
|
411
|
+
getFunction(nameOrSignature: "addSigner"): TypedContractMethod<[_signer: AddressLike], [void], "nonpayable">;
|
412
|
+
getFunction(nameOrSignature: "emergencyWithdraw"): TypedContractMethod<[_recipient: AddressLike], [void], "nonpayable">;
|
413
|
+
getFunction(nameOrSignature: "getRoleAdmin"): TypedContractMethod<[role: BytesLike], [string], "view">;
|
414
|
+
getFunction(nameOrSignature: "getUserInfo"): TypedContractMethod<[
|
415
|
+
_user: AddressLike
|
416
|
+
], [
|
417
|
+
[bigint, bigint] & {
|
418
|
+
stake: bigint;
|
419
|
+
harvested: bigint;
|
420
|
+
}
|
421
|
+
], "view">;
|
422
|
+
getFunction(nameOrSignature: "grantRole"): TypedContractMethod<[
|
423
|
+
role: BytesLike,
|
424
|
+
account: AddressLike
|
425
|
+
], [
|
426
|
+
void
|
427
|
+
], "nonpayable">;
|
428
|
+
getFunction(nameOrSignature: "harvestReward"): TypedContractMethod<[
|
429
|
+
_amount: BigNumberish,
|
430
|
+
_nonce: BigNumberish,
|
431
|
+
_deadline: BigNumberish,
|
432
|
+
_signature: BytesLike
|
433
|
+
], [
|
434
|
+
void
|
435
|
+
], "nonpayable">;
|
436
|
+
getFunction(nameOrSignature: "hasRole"): TypedContractMethod<[
|
437
|
+
role: BytesLike,
|
438
|
+
account: AddressLike
|
439
|
+
], [
|
440
|
+
boolean
|
441
|
+
], "view">;
|
442
|
+
getFunction(nameOrSignature: "initialize"): TypedContractMethod<[
|
443
|
+
_owner: AddressLike,
|
444
|
+
_signer: AddressLike,
|
445
|
+
_stakingToken: AddressLike,
|
446
|
+
_maxRewardAmount: BigNumberish,
|
447
|
+
_minStakeAmount: BigNumberish
|
448
|
+
], [
|
449
|
+
void
|
450
|
+
], "nonpayable">;
|
451
|
+
getFunction(nameOrSignature: "maxRewardAmount"): TypedContractMethod<[], [bigint], "view">;
|
452
|
+
getFunction(nameOrSignature: "minStakeAmount"): TypedContractMethod<[], [bigint], "view">;
|
453
|
+
getFunction(nameOrSignature: "owner"): TypedContractMethod<[], [string], "view">;
|
454
|
+
getFunction(nameOrSignature: "pause"): TypedContractMethod<[], [void], "nonpayable">;
|
455
|
+
getFunction(nameOrSignature: "paused"): TypedContractMethod<[], [boolean], "view">;
|
456
|
+
getFunction(nameOrSignature: "removeSigner"): TypedContractMethod<[_signer: AddressLike], [void], "nonpayable">;
|
457
|
+
getFunction(nameOrSignature: "renounceOwnership"): TypedContractMethod<[], [void], "nonpayable">;
|
458
|
+
getFunction(nameOrSignature: "renounceRole"): TypedContractMethod<[
|
459
|
+
role: BytesLike,
|
460
|
+
callerConfirmation: AddressLike
|
461
|
+
], [
|
462
|
+
void
|
463
|
+
], "nonpayable">;
|
464
|
+
getFunction(nameOrSignature: "revokeRole"): TypedContractMethod<[
|
465
|
+
role: BytesLike,
|
466
|
+
account: AddressLike
|
467
|
+
], [
|
468
|
+
void
|
469
|
+
], "nonpayable">;
|
470
|
+
getFunction(nameOrSignature: "setMinStakeAmount"): TypedContractMethod<[_newMinStake: BigNumberish], [void], "nonpayable">;
|
471
|
+
getFunction(nameOrSignature: "stake"): TypedContractMethod<[_amount: BigNumberish], [void], "nonpayable">;
|
472
|
+
getFunction(nameOrSignature: "stakingToken"): TypedContractMethod<[], [string], "view">;
|
473
|
+
getFunction(nameOrSignature: "supportsInterface"): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
|
474
|
+
getFunction(nameOrSignature: "totalRewards"): TypedContractMethod<[], [bigint], "view">;
|
475
|
+
getFunction(nameOrSignature: "totalStaked"): TypedContractMethod<[], [bigint], "view">;
|
476
|
+
getFunction(nameOrSignature: "transferOwnership"): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
|
477
|
+
getFunction(nameOrSignature: "unpause"): TypedContractMethod<[], [void], "nonpayable">;
|
478
|
+
getFunction(nameOrSignature: "unstake"): TypedContractMethod<[_amount: BigNumberish], [void], "nonpayable">;
|
479
|
+
getFunction(nameOrSignature: "unstakeAndHarvest"): TypedContractMethod<[
|
480
|
+
_unstakeAmount: BigNumberish,
|
481
|
+
_rewardAmount: BigNumberish,
|
482
|
+
_nonce: BigNumberish,
|
483
|
+
_deadline: BigNumberish,
|
484
|
+
_signature: BytesLike
|
485
|
+
], [
|
486
|
+
void
|
487
|
+
], "nonpayable">;
|
488
|
+
getFunction(nameOrSignature: "updateMaxRewardAmount"): TypedContractMethod<[_newMaxReward: BigNumberish], [void], "nonpayable">;
|
489
|
+
getFunction(nameOrSignature: "updateStakingToken"): TypedContractMethod<[_newToken: AddressLike], [void], "nonpayable">;
|
490
|
+
getFunction(nameOrSignature: "userNonces"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
491
|
+
getFunction(nameOrSignature: "userStakes"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
492
|
+
getFunction(nameOrSignature: "userTotalRewardsHarvested"): TypedContractMethod<[arg0: AddressLike], [bigint], "view">;
|
493
|
+
getEvent(key: "Initialized"): TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
|
494
|
+
getEvent(key: "MinStakeUpdated"): TypedContractEvent<MinStakeUpdatedEvent.InputTuple, MinStakeUpdatedEvent.OutputTuple, MinStakeUpdatedEvent.OutputObject>;
|
495
|
+
getEvent(key: "OwnershipTransferred"): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
496
|
+
getEvent(key: "Paused"): TypedContractEvent<PausedEvent.InputTuple, PausedEvent.OutputTuple, PausedEvent.OutputObject>;
|
497
|
+
getEvent(key: "RewardHarvested"): TypedContractEvent<RewardHarvestedEvent.InputTuple, RewardHarvestedEvent.OutputTuple, RewardHarvestedEvent.OutputObject>;
|
498
|
+
getEvent(key: "RoleAdminChanged"): TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
499
|
+
getEvent(key: "RoleGranted"): TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
500
|
+
getEvent(key: "RoleRevoked"): TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
501
|
+
getEvent(key: "SignerUpdated"): TypedContractEvent<SignerUpdatedEvent.InputTuple, SignerUpdatedEvent.OutputTuple, SignerUpdatedEvent.OutputObject>;
|
502
|
+
getEvent(key: "Staked"): TypedContractEvent<StakedEvent.InputTuple, StakedEvent.OutputTuple, StakedEvent.OutputObject>;
|
503
|
+
getEvent(key: "TokenUpdated"): TypedContractEvent<TokenUpdatedEvent.InputTuple, TokenUpdatedEvent.OutputTuple, TokenUpdatedEvent.OutputObject>;
|
504
|
+
getEvent(key: "Unpaused"): TypedContractEvent<UnpausedEvent.InputTuple, UnpausedEvent.OutputTuple, UnpausedEvent.OutputObject>;
|
505
|
+
getEvent(key: "Unstaked"): TypedContractEvent<UnstakedEvent.InputTuple, UnstakedEvent.OutputTuple, UnstakedEvent.OutputObject>;
|
506
|
+
filters: {
|
507
|
+
"Initialized(uint64)": TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
|
508
|
+
Initialized: TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
|
509
|
+
"MinStakeUpdated(uint256,uint256)": TypedContractEvent<MinStakeUpdatedEvent.InputTuple, MinStakeUpdatedEvent.OutputTuple, MinStakeUpdatedEvent.OutputObject>;
|
510
|
+
MinStakeUpdated: TypedContractEvent<MinStakeUpdatedEvent.InputTuple, MinStakeUpdatedEvent.OutputTuple, MinStakeUpdatedEvent.OutputObject>;
|
511
|
+
"OwnershipTransferred(address,address)": TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
512
|
+
OwnershipTransferred: TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
513
|
+
"Paused(address)": TypedContractEvent<PausedEvent.InputTuple, PausedEvent.OutputTuple, PausedEvent.OutputObject>;
|
514
|
+
Paused: TypedContractEvent<PausedEvent.InputTuple, PausedEvent.OutputTuple, PausedEvent.OutputObject>;
|
515
|
+
"RewardHarvested(address,uint256,uint256,bytes32)": TypedContractEvent<RewardHarvestedEvent.InputTuple, RewardHarvestedEvent.OutputTuple, RewardHarvestedEvent.OutputObject>;
|
516
|
+
RewardHarvested: TypedContractEvent<RewardHarvestedEvent.InputTuple, RewardHarvestedEvent.OutputTuple, RewardHarvestedEvent.OutputObject>;
|
517
|
+
"RoleAdminChanged(bytes32,bytes32,bytes32)": TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
518
|
+
RoleAdminChanged: TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
|
519
|
+
"RoleGranted(bytes32,address,address)": TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
520
|
+
RoleGranted: TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
|
521
|
+
"RoleRevoked(bytes32,address,address)": TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
522
|
+
RoleRevoked: TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
|
523
|
+
"SignerUpdated(address)": TypedContractEvent<SignerUpdatedEvent.InputTuple, SignerUpdatedEvent.OutputTuple, SignerUpdatedEvent.OutputObject>;
|
524
|
+
SignerUpdated: TypedContractEvent<SignerUpdatedEvent.InputTuple, SignerUpdatedEvent.OutputTuple, SignerUpdatedEvent.OutputObject>;
|
525
|
+
"Staked(address,uint256,uint256)": TypedContractEvent<StakedEvent.InputTuple, StakedEvent.OutputTuple, StakedEvent.OutputObject>;
|
526
|
+
Staked: TypedContractEvent<StakedEvent.InputTuple, StakedEvent.OutputTuple, StakedEvent.OutputObject>;
|
527
|
+
"TokenUpdated(address)": TypedContractEvent<TokenUpdatedEvent.InputTuple, TokenUpdatedEvent.OutputTuple, TokenUpdatedEvent.OutputObject>;
|
528
|
+
TokenUpdated: TypedContractEvent<TokenUpdatedEvent.InputTuple, TokenUpdatedEvent.OutputTuple, TokenUpdatedEvent.OutputObject>;
|
529
|
+
"Unpaused(address)": TypedContractEvent<UnpausedEvent.InputTuple, UnpausedEvent.OutputTuple, UnpausedEvent.OutputObject>;
|
530
|
+
Unpaused: TypedContractEvent<UnpausedEvent.InputTuple, UnpausedEvent.OutputTuple, UnpausedEvent.OutputObject>;
|
531
|
+
"Unstaked(address,uint256,uint256)": TypedContractEvent<UnstakedEvent.InputTuple, UnstakedEvent.OutputTuple, UnstakedEvent.OutputObject>;
|
532
|
+
Unstaked: TypedContractEvent<UnstakedEvent.InputTuple, UnstakedEvent.OutputTuple, UnstakedEvent.OutputObject>;
|
533
|
+
};
|
534
|
+
}
|
@@ -0,0 +1 @@
|
|
1
|
+
"use strict";Object.defineProperty(exports,"__esModule",{value:!0});
|
package/dist/contracts.json
CHANGED
@@ -43,7 +43,9 @@
|
|
43
43
|
"NFTTicket-implemented": "0x5099f248392C336186AA438BC871c6d3E0886b0C",
|
44
44
|
"NFTTicket-implemented-old": "0x8915d96Ae316b321e8B3A00Ba21e4F5D41FF526C",
|
45
45
|
"EthStaking": "0x65535DCF365B6dDb16E48e59476c289a07Cd4284",
|
46
|
-
"EthStaking-implemented": "0x18897940594eBcF2cb4BD2E38d59F7FA79Dc406b"
|
46
|
+
"EthStaking-implemented": "0x18897940594eBcF2cb4BD2E38d59F7FA79Dc406b",
|
47
|
+
"Erc20Staking": "0x6Ff554aeBaaf4a31d3c7a60915d4fCACC3dD570b",
|
48
|
+
"Erc20Staking-implemented": "0x3DEC7e97E82E0BeF33fDB8591fa8FbD528dDBa5f"
|
47
49
|
},
|
48
50
|
"base": {
|
49
51
|
"SeedRoundFundraiser": "0x3e7b414cAd1011c757dBA1a58212Db561dc9feeB",
|
@@ -55,6 +57,7 @@
|
|
55
57
|
"MultiLevelReferralNFT-implemented": "0xc1c5cb24f727Ad0e634F1347c8BD1396BC050c77",
|
56
58
|
"NFTTicket": "0x299d9923D9AfA0C3c7F868b948d504C4D6104b9F",
|
57
59
|
"NFTTicket-implemented": "0x6520a840CDBd1AeCB32E6331164a4445aE1148b8",
|
58
|
-
"NFTTicket-implemented-old": "0xec38C132724BF909416bc3F222DD9c3357E70C39"
|
60
|
+
"NFTTicket-implemented-old": "0xec38C132724BF909416bc3F222DD9c3357E70C39",
|
61
|
+
"TradingVault": "0x4F6CAb6b514F7920fb41A8EbD54A7CF6B4293D1F"
|
59
62
|
}
|
60
63
|
}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
@@ -1 +1 @@
|
|
1
|
-
"use strict";var e=this&&this.__createBinding||(Object.create?function(e,r,t,i){void 0===i&&(i=t);var o=Object.getOwnPropertyDescriptor(r,t);o&&!("get"in o?!r.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,i,o)}:function(e,r,t,i){void 0===i&&(i=t),e[i]=r[t]}),r=this&&this.__exportStar||function(r,t){for(var i in r)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||e(t,r,i)};Object.defineProperty(exports,"__esModule",{value:!0}),r(require("./TradingVault"),exports),r(require("./SeedRoundFundraiser"),exports),r(require("./types"),exports),r(require("./MultiLevelReferralNFT"),exports),r(require("./EthStaking"),exports);
|
1
|
+
"use strict";var e=this&&this.__createBinding||(Object.create?function(e,r,t,i){void 0===i&&(i=t);var o=Object.getOwnPropertyDescriptor(r,t);o&&!("get"in o?!r.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return r[t]}}),Object.defineProperty(e,i,o)}:function(e,r,t,i){void 0===i&&(i=t),e[i]=r[t]}),r=this&&this.__exportStar||function(r,t){for(var i in r)"default"===i||Object.prototype.hasOwnProperty.call(t,i)||e(t,r,i)};Object.defineProperty(exports,"__esModule",{value:!0}),r(require("./TradingVault"),exports),r(require("./SeedRoundFundraiser"),exports),r(require("./types"),exports),r(require("./MultiLevelReferralNFT"),exports),r(require("./EthStaking"),exports),r(require("./Erc20Staking"),exports);
|
package/dist/types.d.ts
CHANGED
@@ -560,3 +560,83 @@ export type ParsedEthStakingEvent = {
|
|
560
560
|
sender: string | null;
|
561
561
|
};
|
562
562
|
}[keyof EthStakingEventTypes];
|
563
|
+
export interface Erc20StakingEventTypes {
|
564
|
+
Staked: {
|
565
|
+
user: string;
|
566
|
+
amount: number;
|
567
|
+
timestamp: number;
|
568
|
+
};
|
569
|
+
Unstaked: {
|
570
|
+
user: string;
|
571
|
+
amount: number;
|
572
|
+
timestamp: number;
|
573
|
+
};
|
574
|
+
RewardHarvested: {
|
575
|
+
user: string;
|
576
|
+
amount: number;
|
577
|
+
timestamp: number;
|
578
|
+
signatureHash: string;
|
579
|
+
};
|
580
|
+
SignerUpdated: {
|
581
|
+
newSigner: string;
|
582
|
+
};
|
583
|
+
MinStakeUpdated: {
|
584
|
+
oldAmount: number;
|
585
|
+
newAmount: number;
|
586
|
+
};
|
587
|
+
TokenUpdated: {
|
588
|
+
newToken: string;
|
589
|
+
};
|
590
|
+
}
|
591
|
+
export interface RawErc20StakingEventTypes {
|
592
|
+
Staked: {
|
593
|
+
user: string;
|
594
|
+
amount: bigint;
|
595
|
+
timestamp: bigint;
|
596
|
+
};
|
597
|
+
Unstaked: {
|
598
|
+
user: string;
|
599
|
+
amount: bigint;
|
600
|
+
timestamp: bigint;
|
601
|
+
};
|
602
|
+
RewardHarvested: {
|
603
|
+
user: string;
|
604
|
+
amount: bigint;
|
605
|
+
timestamp: bigint;
|
606
|
+
signatureHash: string;
|
607
|
+
};
|
608
|
+
SignerUpdated: {
|
609
|
+
newSigner: string;
|
610
|
+
};
|
611
|
+
MinStakeUpdated: {
|
612
|
+
oldAmount: bigint;
|
613
|
+
newAmount: bigint;
|
614
|
+
};
|
615
|
+
TokenUpdated: {
|
616
|
+
newToken: string;
|
617
|
+
};
|
618
|
+
}
|
619
|
+
export type ParsedErc20StakingEvent = {
|
620
|
+
[E in keyof Erc20StakingEventTypes]: {
|
621
|
+
eventName: E;
|
622
|
+
args: Erc20StakingEventTypes[E];
|
623
|
+
blockNumber: number;
|
624
|
+
blockHash: string;
|
625
|
+
transactionIndex: number;
|
626
|
+
transactionHash: string;
|
627
|
+
timestamp: number;
|
628
|
+
sender: string | null;
|
629
|
+
};
|
630
|
+
}[keyof Erc20StakingEventTypes];
|
631
|
+
export type ParsedErc20StakingEventRaw = {
|
632
|
+
[E in keyof RawErc20StakingEventTypes]: {
|
633
|
+
eventName: E;
|
634
|
+
args: RawErc20StakingEventTypes[E];
|
635
|
+
blockNumber: number;
|
636
|
+
blockHash: string;
|
637
|
+
transactionIndex: number;
|
638
|
+
transactionHash: string;
|
639
|
+
timestamp: number;
|
640
|
+
sender: string | null;
|
641
|
+
};
|
642
|
+
}[keyof RawErc20StakingEventTypes];
|