@gvnrdao/dh-sdk 0.0.312 → 0.0.313

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.
@@ -0,0 +1,995 @@
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 declare namespace IAgentDelegateRegistryBase {
4
+ type AgentRecordStruct = {
5
+ agent: AddressLike;
6
+ validUntil: BigNumberish;
7
+ status: BigNumberish;
8
+ registeredAt: BigNumberish;
9
+ revokedAt: BigNumberish;
10
+ };
11
+ type AgentRecordStructOutput = [
12
+ agent: string,
13
+ validUntil: bigint,
14
+ status: bigint,
15
+ registeredAt: bigint,
16
+ revokedAt: bigint
17
+ ] & {
18
+ agent: string;
19
+ validUntil: bigint;
20
+ status: bigint;
21
+ registeredAt: bigint;
22
+ revokedAt: bigint;
23
+ };
24
+ }
25
+ export declare namespace IAgentDelegationRegistry {
26
+ type LoanGrantStruct = {
27
+ borrower: AddressLike;
28
+ scopeBits: BigNumberish;
29
+ maxRenewals: BigNumberish;
30
+ renewalsUsed: BigNumberish;
31
+ maxEndTimestamp: BigNumberish;
32
+ minCollateralRatioBps: BigNumberish;
33
+ };
34
+ type LoanGrantStructOutput = [
35
+ borrower: string,
36
+ scopeBits: bigint,
37
+ maxRenewals: bigint,
38
+ renewalsUsed: bigint,
39
+ maxEndTimestamp: bigint,
40
+ minCollateralRatioBps: bigint
41
+ ] & {
42
+ borrower: string;
43
+ scopeBits: bigint;
44
+ maxRenewals: bigint;
45
+ renewalsUsed: bigint;
46
+ maxEndTimestamp: bigint;
47
+ minCollateralRatioBps: bigint;
48
+ };
49
+ }
50
+ export interface AgentDelegationRegistryInterface extends Interface {
51
+ getFunction(nameOrSignature: "DEFAULT_ADMIN_ROLE" | "EMERGENCY_PAUSE_ROLE" | "REGISTRAR_ROLE" | "SCOPE_MINT" | "SCOPE_RENEW" | "SCOPE_REPAY" | "UPGRADE_INTERFACE_VERSION" | "VERSION" | "adminModule" | "agentMintFloorMinBps" | "agentOf" | "authorizedConsumer" | "canMint" | "canRenew" | "canRepay" | "core" | "disableAutoMint" | "disableAutoRenew" | "disableAutoRepay" | "enableAutoMint" | "enableAutoRenew" | "enableAutoRepay" | "getLoanGrant" | "getRoleAdmin" | "getRoleMember" | "getRoleMemberCount" | "getRoleMembers" | "grantRole" | "hasRole" | "initialize" | "initializeV2" | "isAgentActive" | "keyOfAgent" | "maxAgentTtl" | "pause" | "paused" | "proxiableUUID" | "recordRenewal" | "registerAgent" | "renounceRole" | "revokeAgent" | "revokeRole" | "rotateAgent" | "setAdminModule" | "setAgentMintFloorMin" | "setAuthorizedConsumer" | "setMaxAgentTtl" | "setMintCollateralFloor" | "supportsInterface" | "unpause" | "upgradeToAndCall" | "userOfAgent"): FunctionFragment;
52
+ getEvent(nameOrSignatureOrTopic: "AdminModuleUpdated" | "AgentMintFloorMinUpdated" | "AgentRegistered" | "AgentRevoked" | "AgentRotated" | "AuthorizedConsumerUpdated" | "AutoMintDisabled" | "AutoMintEnabled" | "AutoRenewDisabled" | "AutoRenewEnabled" | "AutoRepayDisabled" | "AutoRepayEnabled" | "ContractPaused" | "ContractUnpaused" | "ContractUpgraded" | "Initialized" | "MaxAgentTtlUpdated" | "MintCollateralFloorUpdated" | "Paused" | "RenewalRecorded" | "RoleAdminChanged" | "RoleGranted" | "RoleRevoked" | "Unpaused" | "Upgraded"): EventFragment;
53
+ encodeFunctionData(functionFragment: "DEFAULT_ADMIN_ROLE", values?: undefined): string;
54
+ encodeFunctionData(functionFragment: "EMERGENCY_PAUSE_ROLE", values?: undefined): string;
55
+ encodeFunctionData(functionFragment: "REGISTRAR_ROLE", values?: undefined): string;
56
+ encodeFunctionData(functionFragment: "SCOPE_MINT", values?: undefined): string;
57
+ encodeFunctionData(functionFragment: "SCOPE_RENEW", values?: undefined): string;
58
+ encodeFunctionData(functionFragment: "SCOPE_REPAY", values?: undefined): string;
59
+ encodeFunctionData(functionFragment: "UPGRADE_INTERFACE_VERSION", values?: undefined): string;
60
+ encodeFunctionData(functionFragment: "VERSION", values?: undefined): string;
61
+ encodeFunctionData(functionFragment: "adminModule", values?: undefined): string;
62
+ encodeFunctionData(functionFragment: "agentMintFloorMinBps", values?: undefined): string;
63
+ encodeFunctionData(functionFragment: "agentOf", values: [AddressLike]): string;
64
+ encodeFunctionData(functionFragment: "authorizedConsumer", values?: undefined): string;
65
+ encodeFunctionData(functionFragment: "canMint", values: [BytesLike, AddressLike]): string;
66
+ encodeFunctionData(functionFragment: "canRenew", values: [BytesLike, AddressLike]): string;
67
+ encodeFunctionData(functionFragment: "canRepay", values: [BytesLike, AddressLike]): string;
68
+ encodeFunctionData(functionFragment: "core", values?: undefined): string;
69
+ encodeFunctionData(functionFragment: "disableAutoMint", values: [BytesLike]): string;
70
+ encodeFunctionData(functionFragment: "disableAutoRenew", values: [BytesLike]): string;
71
+ encodeFunctionData(functionFragment: "disableAutoRepay", values: [BytesLike]): string;
72
+ encodeFunctionData(functionFragment: "enableAutoMint", values: [BytesLike, BigNumberish]): string;
73
+ encodeFunctionData(functionFragment: "enableAutoRenew", values: [BytesLike, BigNumberish, BigNumberish]): string;
74
+ encodeFunctionData(functionFragment: "enableAutoRepay", values: [BytesLike]): string;
75
+ encodeFunctionData(functionFragment: "getLoanGrant", values: [BytesLike]): string;
76
+ encodeFunctionData(functionFragment: "getRoleAdmin", values: [BytesLike]): string;
77
+ encodeFunctionData(functionFragment: "getRoleMember", values: [BytesLike, BigNumberish]): string;
78
+ encodeFunctionData(functionFragment: "getRoleMemberCount", values: [BytesLike]): string;
79
+ encodeFunctionData(functionFragment: "getRoleMembers", values: [BytesLike]): string;
80
+ encodeFunctionData(functionFragment: "grantRole", values: [BytesLike, AddressLike]): string;
81
+ encodeFunctionData(functionFragment: "hasRole", values: [BytesLike, AddressLike]): string;
82
+ encodeFunctionData(functionFragment: "initialize", values: [AddressLike, AddressLike, AddressLike, AddressLike, AddressLike]): string;
83
+ encodeFunctionData(functionFragment: "initializeV2", values: [BigNumberish]): string;
84
+ encodeFunctionData(functionFragment: "isAgentActive", values: [AddressLike]): string;
85
+ encodeFunctionData(functionFragment: "keyOfAgent", values: [AddressLike]): string;
86
+ encodeFunctionData(functionFragment: "maxAgentTtl", values?: undefined): string;
87
+ encodeFunctionData(functionFragment: "pause", values?: undefined): string;
88
+ encodeFunctionData(functionFragment: "paused", values?: undefined): string;
89
+ encodeFunctionData(functionFragment: "proxiableUUID", values?: undefined): string;
90
+ encodeFunctionData(functionFragment: "recordRenewal", values: [BytesLike]): string;
91
+ encodeFunctionData(functionFragment: "registerAgent", values: [AddressLike, AddressLike, BigNumberish]): string;
92
+ encodeFunctionData(functionFragment: "renounceRole", values: [BytesLike, AddressLike]): string;
93
+ encodeFunctionData(functionFragment: "revokeAgent", values: [AddressLike, BytesLike]): string;
94
+ encodeFunctionData(functionFragment: "revokeRole", values: [BytesLike, AddressLike]): string;
95
+ encodeFunctionData(functionFragment: "rotateAgent", values: [AddressLike, AddressLike, BigNumberish]): string;
96
+ encodeFunctionData(functionFragment: "setAdminModule", values: [AddressLike]): string;
97
+ encodeFunctionData(functionFragment: "setAgentMintFloorMin", values: [BigNumberish]): string;
98
+ encodeFunctionData(functionFragment: "setAuthorizedConsumer", values: [AddressLike]): string;
99
+ encodeFunctionData(functionFragment: "setMaxAgentTtl", values: [BigNumberish]): string;
100
+ encodeFunctionData(functionFragment: "setMintCollateralFloor", values: [BytesLike, BigNumberish]): string;
101
+ encodeFunctionData(functionFragment: "supportsInterface", values: [BytesLike]): string;
102
+ encodeFunctionData(functionFragment: "unpause", values?: undefined): string;
103
+ encodeFunctionData(functionFragment: "upgradeToAndCall", values: [AddressLike, BytesLike]): string;
104
+ encodeFunctionData(functionFragment: "userOfAgent", values: [AddressLike]): string;
105
+ decodeFunctionResult(functionFragment: "DEFAULT_ADMIN_ROLE", data: BytesLike): Result;
106
+ decodeFunctionResult(functionFragment: "EMERGENCY_PAUSE_ROLE", data: BytesLike): Result;
107
+ decodeFunctionResult(functionFragment: "REGISTRAR_ROLE", data: BytesLike): Result;
108
+ decodeFunctionResult(functionFragment: "SCOPE_MINT", data: BytesLike): Result;
109
+ decodeFunctionResult(functionFragment: "SCOPE_RENEW", data: BytesLike): Result;
110
+ decodeFunctionResult(functionFragment: "SCOPE_REPAY", data: BytesLike): Result;
111
+ decodeFunctionResult(functionFragment: "UPGRADE_INTERFACE_VERSION", data: BytesLike): Result;
112
+ decodeFunctionResult(functionFragment: "VERSION", data: BytesLike): Result;
113
+ decodeFunctionResult(functionFragment: "adminModule", data: BytesLike): Result;
114
+ decodeFunctionResult(functionFragment: "agentMintFloorMinBps", data: BytesLike): Result;
115
+ decodeFunctionResult(functionFragment: "agentOf", data: BytesLike): Result;
116
+ decodeFunctionResult(functionFragment: "authorizedConsumer", data: BytesLike): Result;
117
+ decodeFunctionResult(functionFragment: "canMint", data: BytesLike): Result;
118
+ decodeFunctionResult(functionFragment: "canRenew", data: BytesLike): Result;
119
+ decodeFunctionResult(functionFragment: "canRepay", data: BytesLike): Result;
120
+ decodeFunctionResult(functionFragment: "core", data: BytesLike): Result;
121
+ decodeFunctionResult(functionFragment: "disableAutoMint", data: BytesLike): Result;
122
+ decodeFunctionResult(functionFragment: "disableAutoRenew", data: BytesLike): Result;
123
+ decodeFunctionResult(functionFragment: "disableAutoRepay", data: BytesLike): Result;
124
+ decodeFunctionResult(functionFragment: "enableAutoMint", data: BytesLike): Result;
125
+ decodeFunctionResult(functionFragment: "enableAutoRenew", data: BytesLike): Result;
126
+ decodeFunctionResult(functionFragment: "enableAutoRepay", data: BytesLike): Result;
127
+ decodeFunctionResult(functionFragment: "getLoanGrant", data: BytesLike): Result;
128
+ decodeFunctionResult(functionFragment: "getRoleAdmin", data: BytesLike): Result;
129
+ decodeFunctionResult(functionFragment: "getRoleMember", data: BytesLike): Result;
130
+ decodeFunctionResult(functionFragment: "getRoleMemberCount", data: BytesLike): Result;
131
+ decodeFunctionResult(functionFragment: "getRoleMembers", data: BytesLike): Result;
132
+ decodeFunctionResult(functionFragment: "grantRole", data: BytesLike): Result;
133
+ decodeFunctionResult(functionFragment: "hasRole", data: BytesLike): Result;
134
+ decodeFunctionResult(functionFragment: "initialize", data: BytesLike): Result;
135
+ decodeFunctionResult(functionFragment: "initializeV2", data: BytesLike): Result;
136
+ decodeFunctionResult(functionFragment: "isAgentActive", data: BytesLike): Result;
137
+ decodeFunctionResult(functionFragment: "keyOfAgent", data: BytesLike): Result;
138
+ decodeFunctionResult(functionFragment: "maxAgentTtl", data: BytesLike): Result;
139
+ decodeFunctionResult(functionFragment: "pause", data: BytesLike): Result;
140
+ decodeFunctionResult(functionFragment: "paused", data: BytesLike): Result;
141
+ decodeFunctionResult(functionFragment: "proxiableUUID", data: BytesLike): Result;
142
+ decodeFunctionResult(functionFragment: "recordRenewal", data: BytesLike): Result;
143
+ decodeFunctionResult(functionFragment: "registerAgent", data: BytesLike): Result;
144
+ decodeFunctionResult(functionFragment: "renounceRole", data: BytesLike): Result;
145
+ decodeFunctionResult(functionFragment: "revokeAgent", data: BytesLike): Result;
146
+ decodeFunctionResult(functionFragment: "revokeRole", data: BytesLike): Result;
147
+ decodeFunctionResult(functionFragment: "rotateAgent", data: BytesLike): Result;
148
+ decodeFunctionResult(functionFragment: "setAdminModule", data: BytesLike): Result;
149
+ decodeFunctionResult(functionFragment: "setAgentMintFloorMin", data: BytesLike): Result;
150
+ decodeFunctionResult(functionFragment: "setAuthorizedConsumer", data: BytesLike): Result;
151
+ decodeFunctionResult(functionFragment: "setMaxAgentTtl", data: BytesLike): Result;
152
+ decodeFunctionResult(functionFragment: "setMintCollateralFloor", data: BytesLike): Result;
153
+ decodeFunctionResult(functionFragment: "supportsInterface", data: BytesLike): Result;
154
+ decodeFunctionResult(functionFragment: "unpause", data: BytesLike): Result;
155
+ decodeFunctionResult(functionFragment: "upgradeToAndCall", data: BytesLike): Result;
156
+ decodeFunctionResult(functionFragment: "userOfAgent", data: BytesLike): Result;
157
+ }
158
+ export declare namespace AdminModuleUpdatedEvent {
159
+ type InputTuple = [
160
+ oldAdminModule: AddressLike,
161
+ newAdminModule: AddressLike
162
+ ];
163
+ type OutputTuple = [oldAdminModule: string, newAdminModule: string];
164
+ interface OutputObject {
165
+ oldAdminModule: string;
166
+ newAdminModule: string;
167
+ }
168
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
169
+ type Filter = TypedDeferredTopicFilter<Event>;
170
+ type Log = TypedEventLog<Event>;
171
+ type LogDescription = TypedLogDescription<Event>;
172
+ }
173
+ export declare namespace AgentMintFloorMinUpdatedEvent {
174
+ type InputTuple = [oldBps: BigNumberish, newBps: BigNumberish];
175
+ type OutputTuple = [oldBps: bigint, newBps: bigint];
176
+ interface OutputObject {
177
+ oldBps: bigint;
178
+ newBps: bigint;
179
+ }
180
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
181
+ type Filter = TypedDeferredTopicFilter<Event>;
182
+ type Log = TypedEventLog<Event>;
183
+ type LogDescription = TypedLogDescription<Event>;
184
+ }
185
+ export declare namespace AgentRegisteredEvent {
186
+ type InputTuple = [
187
+ user: AddressLike,
188
+ agent: AddressLike,
189
+ validUntil: BigNumberish
190
+ ];
191
+ type OutputTuple = [user: string, agent: string, validUntil: bigint];
192
+ interface OutputObject {
193
+ user: string;
194
+ agent: string;
195
+ validUntil: bigint;
196
+ }
197
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
198
+ type Filter = TypedDeferredTopicFilter<Event>;
199
+ type Log = TypedEventLog<Event>;
200
+ type LogDescription = TypedLogDescription<Event>;
201
+ }
202
+ export declare namespace AgentRevokedEvent {
203
+ type InputTuple = [
204
+ user: AddressLike,
205
+ agent: AddressLike,
206
+ reason: BytesLike
207
+ ];
208
+ type OutputTuple = [user: string, agent: string, reason: string];
209
+ interface OutputObject {
210
+ user: string;
211
+ agent: string;
212
+ reason: string;
213
+ }
214
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
215
+ type Filter = TypedDeferredTopicFilter<Event>;
216
+ type Log = TypedEventLog<Event>;
217
+ type LogDescription = TypedLogDescription<Event>;
218
+ }
219
+ export declare namespace AgentRotatedEvent {
220
+ type InputTuple = [
221
+ user: AddressLike,
222
+ oldAgent: AddressLike,
223
+ newAgent: AddressLike,
224
+ validUntil: BigNumberish
225
+ ];
226
+ type OutputTuple = [
227
+ user: string,
228
+ oldAgent: string,
229
+ newAgent: string,
230
+ validUntil: bigint
231
+ ];
232
+ interface OutputObject {
233
+ user: string;
234
+ oldAgent: string;
235
+ newAgent: string;
236
+ validUntil: bigint;
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 AuthorizedConsumerUpdatedEvent {
244
+ type InputTuple = [previous: AddressLike, next: AddressLike];
245
+ type OutputTuple = [previous: string, next: string];
246
+ interface OutputObject {
247
+ previous: string;
248
+ next: string;
249
+ }
250
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
251
+ type Filter = TypedDeferredTopicFilter<Event>;
252
+ type Log = TypedEventLog<Event>;
253
+ type LogDescription = TypedLogDescription<Event>;
254
+ }
255
+ export declare namespace AutoMintDisabledEvent {
256
+ type InputTuple = [positionId: BytesLike, borrower: AddressLike];
257
+ type OutputTuple = [positionId: string, borrower: string];
258
+ interface OutputObject {
259
+ positionId: string;
260
+ borrower: string;
261
+ }
262
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
263
+ type Filter = TypedDeferredTopicFilter<Event>;
264
+ type Log = TypedEventLog<Event>;
265
+ type LogDescription = TypedLogDescription<Event>;
266
+ }
267
+ export declare namespace AutoMintEnabledEvent {
268
+ type InputTuple = [
269
+ positionId: BytesLike,
270
+ borrower: AddressLike,
271
+ minCollateralRatioBps: BigNumberish
272
+ ];
273
+ type OutputTuple = [
274
+ positionId: string,
275
+ borrower: string,
276
+ minCollateralRatioBps: bigint
277
+ ];
278
+ interface OutputObject {
279
+ positionId: string;
280
+ borrower: string;
281
+ minCollateralRatioBps: bigint;
282
+ }
283
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
284
+ type Filter = TypedDeferredTopicFilter<Event>;
285
+ type Log = TypedEventLog<Event>;
286
+ type LogDescription = TypedLogDescription<Event>;
287
+ }
288
+ export declare namespace AutoRenewDisabledEvent {
289
+ type InputTuple = [positionId: BytesLike, borrower: AddressLike];
290
+ type OutputTuple = [positionId: string, borrower: string];
291
+ interface OutputObject {
292
+ positionId: string;
293
+ borrower: string;
294
+ }
295
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
296
+ type Filter = TypedDeferredTopicFilter<Event>;
297
+ type Log = TypedEventLog<Event>;
298
+ type LogDescription = TypedLogDescription<Event>;
299
+ }
300
+ export declare namespace AutoRenewEnabledEvent {
301
+ type InputTuple = [
302
+ positionId: BytesLike,
303
+ borrower: AddressLike,
304
+ maxRenewals: BigNumberish,
305
+ maxEndTimestamp: BigNumberish
306
+ ];
307
+ type OutputTuple = [
308
+ positionId: string,
309
+ borrower: string,
310
+ maxRenewals: bigint,
311
+ maxEndTimestamp: bigint
312
+ ];
313
+ interface OutputObject {
314
+ positionId: string;
315
+ borrower: string;
316
+ maxRenewals: bigint;
317
+ maxEndTimestamp: bigint;
318
+ }
319
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
320
+ type Filter = TypedDeferredTopicFilter<Event>;
321
+ type Log = TypedEventLog<Event>;
322
+ type LogDescription = TypedLogDescription<Event>;
323
+ }
324
+ export declare namespace AutoRepayDisabledEvent {
325
+ type InputTuple = [positionId: BytesLike, borrower: AddressLike];
326
+ type OutputTuple = [positionId: string, borrower: string];
327
+ interface OutputObject {
328
+ positionId: string;
329
+ borrower: string;
330
+ }
331
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
332
+ type Filter = TypedDeferredTopicFilter<Event>;
333
+ type Log = TypedEventLog<Event>;
334
+ type LogDescription = TypedLogDescription<Event>;
335
+ }
336
+ export declare namespace AutoRepayEnabledEvent {
337
+ type InputTuple = [positionId: BytesLike, borrower: AddressLike];
338
+ type OutputTuple = [positionId: string, borrower: string];
339
+ interface OutputObject {
340
+ positionId: string;
341
+ borrower: string;
342
+ }
343
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
344
+ type Filter = TypedDeferredTopicFilter<Event>;
345
+ type Log = TypedEventLog<Event>;
346
+ type LogDescription = TypedLogDescription<Event>;
347
+ }
348
+ export declare namespace ContractPausedEvent {
349
+ type InputTuple = [caller: AddressLike, timestamp: BigNumberish];
350
+ type OutputTuple = [caller: string, timestamp: bigint];
351
+ interface OutputObject {
352
+ caller: string;
353
+ timestamp: bigint;
354
+ }
355
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
356
+ type Filter = TypedDeferredTopicFilter<Event>;
357
+ type Log = TypedEventLog<Event>;
358
+ type LogDescription = TypedLogDescription<Event>;
359
+ }
360
+ export declare namespace ContractUnpausedEvent {
361
+ type InputTuple = [caller: AddressLike, timestamp: BigNumberish];
362
+ type OutputTuple = [caller: string, timestamp: bigint];
363
+ interface OutputObject {
364
+ caller: string;
365
+ timestamp: bigint;
366
+ }
367
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
368
+ type Filter = TypedDeferredTopicFilter<Event>;
369
+ type Log = TypedEventLog<Event>;
370
+ type LogDescription = TypedLogDescription<Event>;
371
+ }
372
+ export declare namespace ContractUpgradedEvent {
373
+ type InputTuple = [
374
+ oldImplementation: AddressLike,
375
+ newImplementation: AddressLike,
376
+ version: string,
377
+ timestamp: BigNumberish
378
+ ];
379
+ type OutputTuple = [
380
+ oldImplementation: string,
381
+ newImplementation: string,
382
+ version: string,
383
+ timestamp: bigint
384
+ ];
385
+ interface OutputObject {
386
+ oldImplementation: string;
387
+ newImplementation: string;
388
+ version: string;
389
+ timestamp: bigint;
390
+ }
391
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
392
+ type Filter = TypedDeferredTopicFilter<Event>;
393
+ type Log = TypedEventLog<Event>;
394
+ type LogDescription = TypedLogDescription<Event>;
395
+ }
396
+ export declare namespace InitializedEvent {
397
+ type InputTuple = [version: BigNumberish];
398
+ type OutputTuple = [version: bigint];
399
+ interface OutputObject {
400
+ version: bigint;
401
+ }
402
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
403
+ type Filter = TypedDeferredTopicFilter<Event>;
404
+ type Log = TypedEventLog<Event>;
405
+ type LogDescription = TypedLogDescription<Event>;
406
+ }
407
+ export declare namespace MaxAgentTtlUpdatedEvent {
408
+ type InputTuple = [oldTtl: BigNumberish, newTtl: BigNumberish];
409
+ type OutputTuple = [oldTtl: bigint, newTtl: bigint];
410
+ interface OutputObject {
411
+ oldTtl: bigint;
412
+ newTtl: bigint;
413
+ }
414
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
415
+ type Filter = TypedDeferredTopicFilter<Event>;
416
+ type Log = TypedEventLog<Event>;
417
+ type LogDescription = TypedLogDescription<Event>;
418
+ }
419
+ export declare namespace MintCollateralFloorUpdatedEvent {
420
+ type InputTuple = [
421
+ positionId: BytesLike,
422
+ oldFloorBps: BigNumberish,
423
+ newFloorBps: BigNumberish
424
+ ];
425
+ type OutputTuple = [
426
+ positionId: string,
427
+ oldFloorBps: bigint,
428
+ newFloorBps: bigint
429
+ ];
430
+ interface OutputObject {
431
+ positionId: string;
432
+ oldFloorBps: bigint;
433
+ newFloorBps: bigint;
434
+ }
435
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
436
+ type Filter = TypedDeferredTopicFilter<Event>;
437
+ type Log = TypedEventLog<Event>;
438
+ type LogDescription = TypedLogDescription<Event>;
439
+ }
440
+ export declare namespace PausedEvent {
441
+ type InputTuple = [account: AddressLike];
442
+ type OutputTuple = [account: string];
443
+ interface OutputObject {
444
+ account: string;
445
+ }
446
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
447
+ type Filter = TypedDeferredTopicFilter<Event>;
448
+ type Log = TypedEventLog<Event>;
449
+ type LogDescription = TypedLogDescription<Event>;
450
+ }
451
+ export declare namespace RenewalRecordedEvent {
452
+ type InputTuple = [positionId: BytesLike, renewalsUsed: BigNumberish];
453
+ type OutputTuple = [positionId: string, renewalsUsed: bigint];
454
+ interface OutputObject {
455
+ positionId: string;
456
+ renewalsUsed: bigint;
457
+ }
458
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
459
+ type Filter = TypedDeferredTopicFilter<Event>;
460
+ type Log = TypedEventLog<Event>;
461
+ type LogDescription = TypedLogDescription<Event>;
462
+ }
463
+ export declare namespace RoleAdminChangedEvent {
464
+ type InputTuple = [
465
+ role: BytesLike,
466
+ previousAdminRole: BytesLike,
467
+ newAdminRole: BytesLike
468
+ ];
469
+ type OutputTuple = [
470
+ role: string,
471
+ previousAdminRole: string,
472
+ newAdminRole: string
473
+ ];
474
+ interface OutputObject {
475
+ role: string;
476
+ previousAdminRole: string;
477
+ newAdminRole: string;
478
+ }
479
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
480
+ type Filter = TypedDeferredTopicFilter<Event>;
481
+ type Log = TypedEventLog<Event>;
482
+ type LogDescription = TypedLogDescription<Event>;
483
+ }
484
+ export declare namespace RoleGrantedEvent {
485
+ type InputTuple = [
486
+ role: BytesLike,
487
+ account: AddressLike,
488
+ sender: AddressLike
489
+ ];
490
+ type OutputTuple = [role: string, account: string, sender: string];
491
+ interface OutputObject {
492
+ role: string;
493
+ account: string;
494
+ sender: string;
495
+ }
496
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
497
+ type Filter = TypedDeferredTopicFilter<Event>;
498
+ type Log = TypedEventLog<Event>;
499
+ type LogDescription = TypedLogDescription<Event>;
500
+ }
501
+ export declare namespace RoleRevokedEvent {
502
+ type InputTuple = [
503
+ role: BytesLike,
504
+ account: AddressLike,
505
+ sender: AddressLike
506
+ ];
507
+ type OutputTuple = [role: string, account: string, sender: string];
508
+ interface OutputObject {
509
+ role: string;
510
+ account: string;
511
+ sender: string;
512
+ }
513
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
514
+ type Filter = TypedDeferredTopicFilter<Event>;
515
+ type Log = TypedEventLog<Event>;
516
+ type LogDescription = TypedLogDescription<Event>;
517
+ }
518
+ export declare namespace UnpausedEvent {
519
+ type InputTuple = [account: AddressLike];
520
+ type OutputTuple = [account: string];
521
+ interface OutputObject {
522
+ account: string;
523
+ }
524
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
525
+ type Filter = TypedDeferredTopicFilter<Event>;
526
+ type Log = TypedEventLog<Event>;
527
+ type LogDescription = TypedLogDescription<Event>;
528
+ }
529
+ export declare namespace UpgradedEvent {
530
+ type InputTuple = [implementation: AddressLike];
531
+ type OutputTuple = [implementation: string];
532
+ interface OutputObject {
533
+ implementation: string;
534
+ }
535
+ type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
536
+ type Filter = TypedDeferredTopicFilter<Event>;
537
+ type Log = TypedEventLog<Event>;
538
+ type LogDescription = TypedLogDescription<Event>;
539
+ }
540
+ export interface AgentDelegationRegistry extends BaseContract {
541
+ connect(runner?: ContractRunner | null): AgentDelegationRegistry;
542
+ waitForDeployment(): Promise<this>;
543
+ interface: AgentDelegationRegistryInterface;
544
+ queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
545
+ queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
546
+ on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
547
+ on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
548
+ once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
549
+ once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
550
+ listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
551
+ listeners(eventName?: string): Promise<Array<Listener>>;
552
+ removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
553
+ DEFAULT_ADMIN_ROLE: TypedContractMethod<[], [string], "view">;
554
+ EMERGENCY_PAUSE_ROLE: TypedContractMethod<[], [string], "view">;
555
+ REGISTRAR_ROLE: TypedContractMethod<[], [string], "view">;
556
+ SCOPE_MINT: TypedContractMethod<[], [bigint], "view">;
557
+ SCOPE_RENEW: TypedContractMethod<[], [bigint], "view">;
558
+ SCOPE_REPAY: TypedContractMethod<[], [bigint], "view">;
559
+ UPGRADE_INTERFACE_VERSION: TypedContractMethod<[], [string], "view">;
560
+ VERSION: TypedContractMethod<[], [string], "view">;
561
+ adminModule: TypedContractMethod<[], [string], "view">;
562
+ agentMintFloorMinBps: TypedContractMethod<[], [bigint], "view">;
563
+ agentOf: TypedContractMethod<[
564
+ user: AddressLike
565
+ ], [
566
+ IAgentDelegateRegistryBase.AgentRecordStructOutput
567
+ ], "view">;
568
+ authorizedConsumer: TypedContractMethod<[], [string], "view">;
569
+ canMint: TypedContractMethod<[
570
+ positionId: BytesLike,
571
+ caller: AddressLike
572
+ ], [
573
+ [
574
+ boolean,
575
+ bigint,
576
+ bigint
577
+ ] & {
578
+ ok: boolean;
579
+ reason: bigint;
580
+ effectiveFloorBps: bigint;
581
+ }
582
+ ], "view">;
583
+ canRenew: TypedContractMethod<[
584
+ positionId: BytesLike,
585
+ caller: AddressLike
586
+ ], [
587
+ [boolean, bigint] & {
588
+ ok: boolean;
589
+ reason: bigint;
590
+ }
591
+ ], "view">;
592
+ canRepay: TypedContractMethod<[
593
+ positionId: BytesLike,
594
+ caller: AddressLike
595
+ ], [
596
+ [boolean, bigint] & {
597
+ ok: boolean;
598
+ reason: bigint;
599
+ }
600
+ ], "view">;
601
+ core: TypedContractMethod<[], [string], "view">;
602
+ disableAutoMint: TypedContractMethod<[
603
+ positionId: BytesLike
604
+ ], [
605
+ void
606
+ ], "nonpayable">;
607
+ disableAutoRenew: TypedContractMethod<[
608
+ positionId: BytesLike
609
+ ], [
610
+ void
611
+ ], "nonpayable">;
612
+ disableAutoRepay: TypedContractMethod<[
613
+ positionId: BytesLike
614
+ ], [
615
+ void
616
+ ], "nonpayable">;
617
+ enableAutoMint: TypedContractMethod<[
618
+ positionId: BytesLike,
619
+ minCollateralRatioBps: BigNumberish
620
+ ], [
621
+ void
622
+ ], "nonpayable">;
623
+ enableAutoRenew: TypedContractMethod<[
624
+ positionId: BytesLike,
625
+ maxRenewals: BigNumberish,
626
+ maxEndTimestamp: BigNumberish
627
+ ], [
628
+ void
629
+ ], "nonpayable">;
630
+ enableAutoRepay: TypedContractMethod<[
631
+ positionId: BytesLike
632
+ ], [
633
+ void
634
+ ], "nonpayable">;
635
+ getLoanGrant: TypedContractMethod<[
636
+ positionId: BytesLike
637
+ ], [
638
+ IAgentDelegationRegistry.LoanGrantStructOutput
639
+ ], "view">;
640
+ getRoleAdmin: TypedContractMethod<[role: BytesLike], [string], "view">;
641
+ getRoleMember: TypedContractMethod<[
642
+ role: BytesLike,
643
+ index: BigNumberish
644
+ ], [
645
+ string
646
+ ], "view">;
647
+ getRoleMemberCount: TypedContractMethod<[role: BytesLike], [bigint], "view">;
648
+ getRoleMembers: TypedContractMethod<[role: BytesLike], [string[]], "view">;
649
+ grantRole: TypedContractMethod<[
650
+ role: BytesLike,
651
+ account: AddressLike
652
+ ], [
653
+ void
654
+ ], "nonpayable">;
655
+ hasRole: TypedContractMethod<[
656
+ role: BytesLike,
657
+ account: AddressLike
658
+ ], [
659
+ boolean
660
+ ], "view">;
661
+ initialize: TypedContractMethod<[
662
+ admin: AddressLike,
663
+ adminModule_: AddressLike,
664
+ registrar: AddressLike,
665
+ pauser: AddressLike,
666
+ core_: AddressLike
667
+ ], [
668
+ void
669
+ ], "nonpayable">;
670
+ initializeV2: TypedContractMethod<[
671
+ floorMinBps: BigNumberish
672
+ ], [
673
+ void
674
+ ], "nonpayable">;
675
+ isAgentActive: TypedContractMethod<[user: AddressLike], [boolean], "view">;
676
+ keyOfAgent: TypedContractMethod<[arg0: AddressLike], [string], "view">;
677
+ maxAgentTtl: TypedContractMethod<[], [bigint], "view">;
678
+ pause: TypedContractMethod<[], [void], "nonpayable">;
679
+ paused: TypedContractMethod<[], [boolean], "view">;
680
+ proxiableUUID: TypedContractMethod<[], [string], "view">;
681
+ recordRenewal: TypedContractMethod<[
682
+ positionId: BytesLike
683
+ ], [
684
+ void
685
+ ], "nonpayable">;
686
+ registerAgent: TypedContractMethod<[
687
+ user: AddressLike,
688
+ agent: AddressLike,
689
+ validUntil: BigNumberish
690
+ ], [
691
+ void
692
+ ], "nonpayable">;
693
+ renounceRole: TypedContractMethod<[
694
+ role: BytesLike,
695
+ callerConfirmation: AddressLike
696
+ ], [
697
+ void
698
+ ], "nonpayable">;
699
+ revokeAgent: TypedContractMethod<[
700
+ user: AddressLike,
701
+ reason: BytesLike
702
+ ], [
703
+ void
704
+ ], "nonpayable">;
705
+ revokeRole: TypedContractMethod<[
706
+ role: BytesLike,
707
+ account: AddressLike
708
+ ], [
709
+ void
710
+ ], "nonpayable">;
711
+ rotateAgent: TypedContractMethod<[
712
+ user: AddressLike,
713
+ newAgent: AddressLike,
714
+ validUntil: BigNumberish
715
+ ], [
716
+ void
717
+ ], "nonpayable">;
718
+ setAdminModule: TypedContractMethod<[
719
+ newAdminModule: AddressLike
720
+ ], [
721
+ void
722
+ ], "nonpayable">;
723
+ setAgentMintFloorMin: TypedContractMethod<[
724
+ bps: BigNumberish
725
+ ], [
726
+ void
727
+ ], "nonpayable">;
728
+ setAuthorizedConsumer: TypedContractMethod<[
729
+ consumer: AddressLike
730
+ ], [
731
+ void
732
+ ], "nonpayable">;
733
+ setMaxAgentTtl: TypedContractMethod<[
734
+ newMaxAgentTtl: BigNumberish
735
+ ], [
736
+ void
737
+ ], "nonpayable">;
738
+ setMintCollateralFloor: TypedContractMethod<[
739
+ positionId: BytesLike,
740
+ newFloorBps: BigNumberish
741
+ ], [
742
+ void
743
+ ], "nonpayable">;
744
+ supportsInterface: TypedContractMethod<[
745
+ interfaceId: BytesLike
746
+ ], [
747
+ boolean
748
+ ], "view">;
749
+ unpause: TypedContractMethod<[], [void], "nonpayable">;
750
+ upgradeToAndCall: TypedContractMethod<[
751
+ newImplementation: AddressLike,
752
+ data: BytesLike
753
+ ], [
754
+ void
755
+ ], "payable">;
756
+ userOfAgent: TypedContractMethod<[agent: AddressLike], [string], "view">;
757
+ getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
758
+ getFunction(nameOrSignature: "DEFAULT_ADMIN_ROLE"): TypedContractMethod<[], [string], "view">;
759
+ getFunction(nameOrSignature: "EMERGENCY_PAUSE_ROLE"): TypedContractMethod<[], [string], "view">;
760
+ getFunction(nameOrSignature: "REGISTRAR_ROLE"): TypedContractMethod<[], [string], "view">;
761
+ getFunction(nameOrSignature: "SCOPE_MINT"): TypedContractMethod<[], [bigint], "view">;
762
+ getFunction(nameOrSignature: "SCOPE_RENEW"): TypedContractMethod<[], [bigint], "view">;
763
+ getFunction(nameOrSignature: "SCOPE_REPAY"): TypedContractMethod<[], [bigint], "view">;
764
+ getFunction(nameOrSignature: "UPGRADE_INTERFACE_VERSION"): TypedContractMethod<[], [string], "view">;
765
+ getFunction(nameOrSignature: "VERSION"): TypedContractMethod<[], [string], "view">;
766
+ getFunction(nameOrSignature: "adminModule"): TypedContractMethod<[], [string], "view">;
767
+ getFunction(nameOrSignature: "agentMintFloorMinBps"): TypedContractMethod<[], [bigint], "view">;
768
+ getFunction(nameOrSignature: "agentOf"): TypedContractMethod<[
769
+ user: AddressLike
770
+ ], [
771
+ IAgentDelegateRegistryBase.AgentRecordStructOutput
772
+ ], "view">;
773
+ getFunction(nameOrSignature: "authorizedConsumer"): TypedContractMethod<[], [string], "view">;
774
+ getFunction(nameOrSignature: "canMint"): TypedContractMethod<[
775
+ positionId: BytesLike,
776
+ caller: AddressLike
777
+ ], [
778
+ [
779
+ boolean,
780
+ bigint,
781
+ bigint
782
+ ] & {
783
+ ok: boolean;
784
+ reason: bigint;
785
+ effectiveFloorBps: bigint;
786
+ }
787
+ ], "view">;
788
+ getFunction(nameOrSignature: "canRenew"): TypedContractMethod<[
789
+ positionId: BytesLike,
790
+ caller: AddressLike
791
+ ], [
792
+ [boolean, bigint] & {
793
+ ok: boolean;
794
+ reason: bigint;
795
+ }
796
+ ], "view">;
797
+ getFunction(nameOrSignature: "canRepay"): TypedContractMethod<[
798
+ positionId: BytesLike,
799
+ caller: AddressLike
800
+ ], [
801
+ [boolean, bigint] & {
802
+ ok: boolean;
803
+ reason: bigint;
804
+ }
805
+ ], "view">;
806
+ getFunction(nameOrSignature: "core"): TypedContractMethod<[], [string], "view">;
807
+ getFunction(nameOrSignature: "disableAutoMint"): TypedContractMethod<[positionId: BytesLike], [void], "nonpayable">;
808
+ getFunction(nameOrSignature: "disableAutoRenew"): TypedContractMethod<[positionId: BytesLike], [void], "nonpayable">;
809
+ getFunction(nameOrSignature: "disableAutoRepay"): TypedContractMethod<[positionId: BytesLike], [void], "nonpayable">;
810
+ getFunction(nameOrSignature: "enableAutoMint"): TypedContractMethod<[
811
+ positionId: BytesLike,
812
+ minCollateralRatioBps: BigNumberish
813
+ ], [
814
+ void
815
+ ], "nonpayable">;
816
+ getFunction(nameOrSignature: "enableAutoRenew"): TypedContractMethod<[
817
+ positionId: BytesLike,
818
+ maxRenewals: BigNumberish,
819
+ maxEndTimestamp: BigNumberish
820
+ ], [
821
+ void
822
+ ], "nonpayable">;
823
+ getFunction(nameOrSignature: "enableAutoRepay"): TypedContractMethod<[positionId: BytesLike], [void], "nonpayable">;
824
+ getFunction(nameOrSignature: "getLoanGrant"): TypedContractMethod<[
825
+ positionId: BytesLike
826
+ ], [
827
+ IAgentDelegationRegistry.LoanGrantStructOutput
828
+ ], "view">;
829
+ getFunction(nameOrSignature: "getRoleAdmin"): TypedContractMethod<[role: BytesLike], [string], "view">;
830
+ getFunction(nameOrSignature: "getRoleMember"): TypedContractMethod<[
831
+ role: BytesLike,
832
+ index: BigNumberish
833
+ ], [
834
+ string
835
+ ], "view">;
836
+ getFunction(nameOrSignature: "getRoleMemberCount"): TypedContractMethod<[role: BytesLike], [bigint], "view">;
837
+ getFunction(nameOrSignature: "getRoleMembers"): TypedContractMethod<[role: BytesLike], [string[]], "view">;
838
+ getFunction(nameOrSignature: "grantRole"): TypedContractMethod<[
839
+ role: BytesLike,
840
+ account: AddressLike
841
+ ], [
842
+ void
843
+ ], "nonpayable">;
844
+ getFunction(nameOrSignature: "hasRole"): TypedContractMethod<[
845
+ role: BytesLike,
846
+ account: AddressLike
847
+ ], [
848
+ boolean
849
+ ], "view">;
850
+ getFunction(nameOrSignature: "initialize"): TypedContractMethod<[
851
+ admin: AddressLike,
852
+ adminModule_: AddressLike,
853
+ registrar: AddressLike,
854
+ pauser: AddressLike,
855
+ core_: AddressLike
856
+ ], [
857
+ void
858
+ ], "nonpayable">;
859
+ getFunction(nameOrSignature: "initializeV2"): TypedContractMethod<[floorMinBps: BigNumberish], [void], "nonpayable">;
860
+ getFunction(nameOrSignature: "isAgentActive"): TypedContractMethod<[user: AddressLike], [boolean], "view">;
861
+ getFunction(nameOrSignature: "keyOfAgent"): TypedContractMethod<[arg0: AddressLike], [string], "view">;
862
+ getFunction(nameOrSignature: "maxAgentTtl"): TypedContractMethod<[], [bigint], "view">;
863
+ getFunction(nameOrSignature: "pause"): TypedContractMethod<[], [void], "nonpayable">;
864
+ getFunction(nameOrSignature: "paused"): TypedContractMethod<[], [boolean], "view">;
865
+ getFunction(nameOrSignature: "proxiableUUID"): TypedContractMethod<[], [string], "view">;
866
+ getFunction(nameOrSignature: "recordRenewal"): TypedContractMethod<[positionId: BytesLike], [void], "nonpayable">;
867
+ getFunction(nameOrSignature: "registerAgent"): TypedContractMethod<[
868
+ user: AddressLike,
869
+ agent: AddressLike,
870
+ validUntil: BigNumberish
871
+ ], [
872
+ void
873
+ ], "nonpayable">;
874
+ getFunction(nameOrSignature: "renounceRole"): TypedContractMethod<[
875
+ role: BytesLike,
876
+ callerConfirmation: AddressLike
877
+ ], [
878
+ void
879
+ ], "nonpayable">;
880
+ getFunction(nameOrSignature: "revokeAgent"): TypedContractMethod<[
881
+ user: AddressLike,
882
+ reason: BytesLike
883
+ ], [
884
+ void
885
+ ], "nonpayable">;
886
+ getFunction(nameOrSignature: "revokeRole"): TypedContractMethod<[
887
+ role: BytesLike,
888
+ account: AddressLike
889
+ ], [
890
+ void
891
+ ], "nonpayable">;
892
+ getFunction(nameOrSignature: "rotateAgent"): TypedContractMethod<[
893
+ user: AddressLike,
894
+ newAgent: AddressLike,
895
+ validUntil: BigNumberish
896
+ ], [
897
+ void
898
+ ], "nonpayable">;
899
+ getFunction(nameOrSignature: "setAdminModule"): TypedContractMethod<[newAdminModule: AddressLike], [void], "nonpayable">;
900
+ getFunction(nameOrSignature: "setAgentMintFloorMin"): TypedContractMethod<[bps: BigNumberish], [void], "nonpayable">;
901
+ getFunction(nameOrSignature: "setAuthorizedConsumer"): TypedContractMethod<[consumer: AddressLike], [void], "nonpayable">;
902
+ getFunction(nameOrSignature: "setMaxAgentTtl"): TypedContractMethod<[newMaxAgentTtl: BigNumberish], [void], "nonpayable">;
903
+ getFunction(nameOrSignature: "setMintCollateralFloor"): TypedContractMethod<[
904
+ positionId: BytesLike,
905
+ newFloorBps: BigNumberish
906
+ ], [
907
+ void
908
+ ], "nonpayable">;
909
+ getFunction(nameOrSignature: "supportsInterface"): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
910
+ getFunction(nameOrSignature: "unpause"): TypedContractMethod<[], [void], "nonpayable">;
911
+ getFunction(nameOrSignature: "upgradeToAndCall"): TypedContractMethod<[
912
+ newImplementation: AddressLike,
913
+ data: BytesLike
914
+ ], [
915
+ void
916
+ ], "payable">;
917
+ getFunction(nameOrSignature: "userOfAgent"): TypedContractMethod<[agent: AddressLike], [string], "view">;
918
+ getEvent(key: "AdminModuleUpdated"): TypedContractEvent<AdminModuleUpdatedEvent.InputTuple, AdminModuleUpdatedEvent.OutputTuple, AdminModuleUpdatedEvent.OutputObject>;
919
+ getEvent(key: "AgentMintFloorMinUpdated"): TypedContractEvent<AgentMintFloorMinUpdatedEvent.InputTuple, AgentMintFloorMinUpdatedEvent.OutputTuple, AgentMintFloorMinUpdatedEvent.OutputObject>;
920
+ getEvent(key: "AgentRegistered"): TypedContractEvent<AgentRegisteredEvent.InputTuple, AgentRegisteredEvent.OutputTuple, AgentRegisteredEvent.OutputObject>;
921
+ getEvent(key: "AgentRevoked"): TypedContractEvent<AgentRevokedEvent.InputTuple, AgentRevokedEvent.OutputTuple, AgentRevokedEvent.OutputObject>;
922
+ getEvent(key: "AgentRotated"): TypedContractEvent<AgentRotatedEvent.InputTuple, AgentRotatedEvent.OutputTuple, AgentRotatedEvent.OutputObject>;
923
+ getEvent(key: "AuthorizedConsumerUpdated"): TypedContractEvent<AuthorizedConsumerUpdatedEvent.InputTuple, AuthorizedConsumerUpdatedEvent.OutputTuple, AuthorizedConsumerUpdatedEvent.OutputObject>;
924
+ getEvent(key: "AutoMintDisabled"): TypedContractEvent<AutoMintDisabledEvent.InputTuple, AutoMintDisabledEvent.OutputTuple, AutoMintDisabledEvent.OutputObject>;
925
+ getEvent(key: "AutoMintEnabled"): TypedContractEvent<AutoMintEnabledEvent.InputTuple, AutoMintEnabledEvent.OutputTuple, AutoMintEnabledEvent.OutputObject>;
926
+ getEvent(key: "AutoRenewDisabled"): TypedContractEvent<AutoRenewDisabledEvent.InputTuple, AutoRenewDisabledEvent.OutputTuple, AutoRenewDisabledEvent.OutputObject>;
927
+ getEvent(key: "AutoRenewEnabled"): TypedContractEvent<AutoRenewEnabledEvent.InputTuple, AutoRenewEnabledEvent.OutputTuple, AutoRenewEnabledEvent.OutputObject>;
928
+ getEvent(key: "AutoRepayDisabled"): TypedContractEvent<AutoRepayDisabledEvent.InputTuple, AutoRepayDisabledEvent.OutputTuple, AutoRepayDisabledEvent.OutputObject>;
929
+ getEvent(key: "AutoRepayEnabled"): TypedContractEvent<AutoRepayEnabledEvent.InputTuple, AutoRepayEnabledEvent.OutputTuple, AutoRepayEnabledEvent.OutputObject>;
930
+ getEvent(key: "ContractPaused"): TypedContractEvent<ContractPausedEvent.InputTuple, ContractPausedEvent.OutputTuple, ContractPausedEvent.OutputObject>;
931
+ getEvent(key: "ContractUnpaused"): TypedContractEvent<ContractUnpausedEvent.InputTuple, ContractUnpausedEvent.OutputTuple, ContractUnpausedEvent.OutputObject>;
932
+ getEvent(key: "ContractUpgraded"): TypedContractEvent<ContractUpgradedEvent.InputTuple, ContractUpgradedEvent.OutputTuple, ContractUpgradedEvent.OutputObject>;
933
+ getEvent(key: "Initialized"): TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
934
+ getEvent(key: "MaxAgentTtlUpdated"): TypedContractEvent<MaxAgentTtlUpdatedEvent.InputTuple, MaxAgentTtlUpdatedEvent.OutputTuple, MaxAgentTtlUpdatedEvent.OutputObject>;
935
+ getEvent(key: "MintCollateralFloorUpdated"): TypedContractEvent<MintCollateralFloorUpdatedEvent.InputTuple, MintCollateralFloorUpdatedEvent.OutputTuple, MintCollateralFloorUpdatedEvent.OutputObject>;
936
+ getEvent(key: "Paused"): TypedContractEvent<PausedEvent.InputTuple, PausedEvent.OutputTuple, PausedEvent.OutputObject>;
937
+ getEvent(key: "RenewalRecorded"): TypedContractEvent<RenewalRecordedEvent.InputTuple, RenewalRecordedEvent.OutputTuple, RenewalRecordedEvent.OutputObject>;
938
+ getEvent(key: "RoleAdminChanged"): TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
939
+ getEvent(key: "RoleGranted"): TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
940
+ getEvent(key: "RoleRevoked"): TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
941
+ getEvent(key: "Unpaused"): TypedContractEvent<UnpausedEvent.InputTuple, UnpausedEvent.OutputTuple, UnpausedEvent.OutputObject>;
942
+ getEvent(key: "Upgraded"): TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
943
+ filters: {
944
+ "AdminModuleUpdated(address,address)": TypedContractEvent<AdminModuleUpdatedEvent.InputTuple, AdminModuleUpdatedEvent.OutputTuple, AdminModuleUpdatedEvent.OutputObject>;
945
+ AdminModuleUpdated: TypedContractEvent<AdminModuleUpdatedEvent.InputTuple, AdminModuleUpdatedEvent.OutputTuple, AdminModuleUpdatedEvent.OutputObject>;
946
+ "AgentMintFloorMinUpdated(uint32,uint32)": TypedContractEvent<AgentMintFloorMinUpdatedEvent.InputTuple, AgentMintFloorMinUpdatedEvent.OutputTuple, AgentMintFloorMinUpdatedEvent.OutputObject>;
947
+ AgentMintFloorMinUpdated: TypedContractEvent<AgentMintFloorMinUpdatedEvent.InputTuple, AgentMintFloorMinUpdatedEvent.OutputTuple, AgentMintFloorMinUpdatedEvent.OutputObject>;
948
+ "AgentRegistered(address,address,uint64)": TypedContractEvent<AgentRegisteredEvent.InputTuple, AgentRegisteredEvent.OutputTuple, AgentRegisteredEvent.OutputObject>;
949
+ AgentRegistered: TypedContractEvent<AgentRegisteredEvent.InputTuple, AgentRegisteredEvent.OutputTuple, AgentRegisteredEvent.OutputObject>;
950
+ "AgentRevoked(address,address,bytes32)": TypedContractEvent<AgentRevokedEvent.InputTuple, AgentRevokedEvent.OutputTuple, AgentRevokedEvent.OutputObject>;
951
+ AgentRevoked: TypedContractEvent<AgentRevokedEvent.InputTuple, AgentRevokedEvent.OutputTuple, AgentRevokedEvent.OutputObject>;
952
+ "AgentRotated(address,address,address,uint64)": TypedContractEvent<AgentRotatedEvent.InputTuple, AgentRotatedEvent.OutputTuple, AgentRotatedEvent.OutputObject>;
953
+ AgentRotated: TypedContractEvent<AgentRotatedEvent.InputTuple, AgentRotatedEvent.OutputTuple, AgentRotatedEvent.OutputObject>;
954
+ "AuthorizedConsumerUpdated(address,address)": TypedContractEvent<AuthorizedConsumerUpdatedEvent.InputTuple, AuthorizedConsumerUpdatedEvent.OutputTuple, AuthorizedConsumerUpdatedEvent.OutputObject>;
955
+ AuthorizedConsumerUpdated: TypedContractEvent<AuthorizedConsumerUpdatedEvent.InputTuple, AuthorizedConsumerUpdatedEvent.OutputTuple, AuthorizedConsumerUpdatedEvent.OutputObject>;
956
+ "AutoMintDisabled(bytes32,address)": TypedContractEvent<AutoMintDisabledEvent.InputTuple, AutoMintDisabledEvent.OutputTuple, AutoMintDisabledEvent.OutputObject>;
957
+ AutoMintDisabled: TypedContractEvent<AutoMintDisabledEvent.InputTuple, AutoMintDisabledEvent.OutputTuple, AutoMintDisabledEvent.OutputObject>;
958
+ "AutoMintEnabled(bytes32,address,uint32)": TypedContractEvent<AutoMintEnabledEvent.InputTuple, AutoMintEnabledEvent.OutputTuple, AutoMintEnabledEvent.OutputObject>;
959
+ AutoMintEnabled: TypedContractEvent<AutoMintEnabledEvent.InputTuple, AutoMintEnabledEvent.OutputTuple, AutoMintEnabledEvent.OutputObject>;
960
+ "AutoRenewDisabled(bytes32,address)": TypedContractEvent<AutoRenewDisabledEvent.InputTuple, AutoRenewDisabledEvent.OutputTuple, AutoRenewDisabledEvent.OutputObject>;
961
+ AutoRenewDisabled: TypedContractEvent<AutoRenewDisabledEvent.InputTuple, AutoRenewDisabledEvent.OutputTuple, AutoRenewDisabledEvent.OutputObject>;
962
+ "AutoRenewEnabled(bytes32,address,uint32,uint40)": TypedContractEvent<AutoRenewEnabledEvent.InputTuple, AutoRenewEnabledEvent.OutputTuple, AutoRenewEnabledEvent.OutputObject>;
963
+ AutoRenewEnabled: TypedContractEvent<AutoRenewEnabledEvent.InputTuple, AutoRenewEnabledEvent.OutputTuple, AutoRenewEnabledEvent.OutputObject>;
964
+ "AutoRepayDisabled(bytes32,address)": TypedContractEvent<AutoRepayDisabledEvent.InputTuple, AutoRepayDisabledEvent.OutputTuple, AutoRepayDisabledEvent.OutputObject>;
965
+ AutoRepayDisabled: TypedContractEvent<AutoRepayDisabledEvent.InputTuple, AutoRepayDisabledEvent.OutputTuple, AutoRepayDisabledEvent.OutputObject>;
966
+ "AutoRepayEnabled(bytes32,address)": TypedContractEvent<AutoRepayEnabledEvent.InputTuple, AutoRepayEnabledEvent.OutputTuple, AutoRepayEnabledEvent.OutputObject>;
967
+ AutoRepayEnabled: TypedContractEvent<AutoRepayEnabledEvent.InputTuple, AutoRepayEnabledEvent.OutputTuple, AutoRepayEnabledEvent.OutputObject>;
968
+ "ContractPaused(address,uint256)": TypedContractEvent<ContractPausedEvent.InputTuple, ContractPausedEvent.OutputTuple, ContractPausedEvent.OutputObject>;
969
+ ContractPaused: TypedContractEvent<ContractPausedEvent.InputTuple, ContractPausedEvent.OutputTuple, ContractPausedEvent.OutputObject>;
970
+ "ContractUnpaused(address,uint256)": TypedContractEvent<ContractUnpausedEvent.InputTuple, ContractUnpausedEvent.OutputTuple, ContractUnpausedEvent.OutputObject>;
971
+ ContractUnpaused: TypedContractEvent<ContractUnpausedEvent.InputTuple, ContractUnpausedEvent.OutputTuple, ContractUnpausedEvent.OutputObject>;
972
+ "ContractUpgraded(address,address,string,uint256)": TypedContractEvent<ContractUpgradedEvent.InputTuple, ContractUpgradedEvent.OutputTuple, ContractUpgradedEvent.OutputObject>;
973
+ ContractUpgraded: TypedContractEvent<ContractUpgradedEvent.InputTuple, ContractUpgradedEvent.OutputTuple, ContractUpgradedEvent.OutputObject>;
974
+ "Initialized(uint64)": TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
975
+ Initialized: TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
976
+ "MaxAgentTtlUpdated(uint64,uint64)": TypedContractEvent<MaxAgentTtlUpdatedEvent.InputTuple, MaxAgentTtlUpdatedEvent.OutputTuple, MaxAgentTtlUpdatedEvent.OutputObject>;
977
+ MaxAgentTtlUpdated: TypedContractEvent<MaxAgentTtlUpdatedEvent.InputTuple, MaxAgentTtlUpdatedEvent.OutputTuple, MaxAgentTtlUpdatedEvent.OutputObject>;
978
+ "MintCollateralFloorUpdated(bytes32,uint32,uint32)": TypedContractEvent<MintCollateralFloorUpdatedEvent.InputTuple, MintCollateralFloorUpdatedEvent.OutputTuple, MintCollateralFloorUpdatedEvent.OutputObject>;
979
+ MintCollateralFloorUpdated: TypedContractEvent<MintCollateralFloorUpdatedEvent.InputTuple, MintCollateralFloorUpdatedEvent.OutputTuple, MintCollateralFloorUpdatedEvent.OutputObject>;
980
+ "Paused(address)": TypedContractEvent<PausedEvent.InputTuple, PausedEvent.OutputTuple, PausedEvent.OutputObject>;
981
+ Paused: TypedContractEvent<PausedEvent.InputTuple, PausedEvent.OutputTuple, PausedEvent.OutputObject>;
982
+ "RenewalRecorded(bytes32,uint32)": TypedContractEvent<RenewalRecordedEvent.InputTuple, RenewalRecordedEvent.OutputTuple, RenewalRecordedEvent.OutputObject>;
983
+ RenewalRecorded: TypedContractEvent<RenewalRecordedEvent.InputTuple, RenewalRecordedEvent.OutputTuple, RenewalRecordedEvent.OutputObject>;
984
+ "RoleAdminChanged(bytes32,bytes32,bytes32)": TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
985
+ RoleAdminChanged: TypedContractEvent<RoleAdminChangedEvent.InputTuple, RoleAdminChangedEvent.OutputTuple, RoleAdminChangedEvent.OutputObject>;
986
+ "RoleGranted(bytes32,address,address)": TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
987
+ RoleGranted: TypedContractEvent<RoleGrantedEvent.InputTuple, RoleGrantedEvent.OutputTuple, RoleGrantedEvent.OutputObject>;
988
+ "RoleRevoked(bytes32,address,address)": TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
989
+ RoleRevoked: TypedContractEvent<RoleRevokedEvent.InputTuple, RoleRevokedEvent.OutputTuple, RoleRevokedEvent.OutputObject>;
990
+ "Unpaused(address)": TypedContractEvent<UnpausedEvent.InputTuple, UnpausedEvent.OutputTuple, UnpausedEvent.OutputObject>;
991
+ Unpaused: TypedContractEvent<UnpausedEvent.InputTuple, UnpausedEvent.OutputTuple, UnpausedEvent.OutputObject>;
992
+ "Upgraded(address)": TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
993
+ Upgraded: TypedContractEvent<UpgradedEvent.InputTuple, UpgradedEvent.OutputTuple, UpgradedEvent.OutputObject>;
994
+ };
995
+ }