@reclaimprotocol/attestor-core 5.0.1-beta.2 → 5.0.1-beta.3
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/lib/browser/avs/abis/avsDirectoryABI.d.ts +60 -0
- package/lib/browser/avs/abis/avsDirectoryABI.js +343 -0
- package/lib/browser/avs/abis/delegationABI.d.ts +126 -0
- package/lib/browser/avs/abis/delegationABI.js +4 -0
- package/lib/browser/avs/abis/registryABI.d.ts +136 -0
- package/lib/browser/avs/abis/registryABI.js +728 -0
- package/lib/browser/avs/client/create-claim-on-avs.d.ts +12 -0
- package/lib/browser/avs/client/create-claim-on-avs.js +168 -0
- package/lib/browser/avs/config.d.ts +7 -0
- package/lib/browser/avs/config.js +26 -0
- package/lib/browser/avs/contracts/ReclaimServiceManager.d.ts +601 -0
- package/lib/browser/avs/contracts/ReclaimServiceManager.js +0 -0
- package/lib/browser/avs/contracts/common.d.ts +50 -0
- package/lib/browser/avs/contracts/common.js +0 -0
- package/lib/browser/avs/contracts/factories/ReclaimServiceManager__factory.d.ts +890 -0
- package/lib/browser/avs/contracts/factories/ReclaimServiceManager__factory.js +1183 -0
- package/lib/browser/avs/contracts/factories/index.d.ts +1 -0
- package/lib/browser/avs/contracts/factories/index.js +4 -0
- package/lib/browser/avs/contracts/index.d.ts +3 -0
- package/lib/browser/avs/contracts/index.js +6 -0
- package/lib/browser/avs/types/index.d.ts +55 -0
- package/lib/browser/avs/types/index.js +0 -0
- package/lib/browser/avs/utils/contracts.d.ts +21 -0
- package/lib/browser/avs/utils/contracts.js +53 -0
- package/lib/browser/avs/utils/register.d.ts +27 -0
- package/lib/browser/avs/utils/register.js +74 -0
- package/lib/browser/avs/utils/tasks.d.ts +22 -0
- package/lib/browser/avs/utils/tasks.js +48 -0
- package/lib/browser/client/create-claim.d.ts +5 -0
- package/lib/browser/client/create-claim.js +461 -0
- package/lib/browser/client/index.d.ts +3 -0
- package/lib/browser/client/index.js +3 -0
- package/lib/browser/client/tunnels/make-rpc-tcp-tunnel.d.ts +16 -0
- package/lib/browser/client/tunnels/make-rpc-tcp-tunnel.js +53 -0
- package/lib/browser/client/tunnels/make-rpc-tls-tunnel.d.ts +26 -0
- package/lib/browser/client/tunnels/make-rpc-tls-tunnel.js +127 -0
- package/lib/browser/client/utils/attestor-pool.d.ts +8 -0
- package/lib/browser/client/utils/attestor-pool.js +24 -0
- package/lib/browser/client/utils/client-socket.d.ts +11 -0
- package/lib/browser/client/utils/client-socket.js +120 -0
- package/lib/browser/client/utils/message-handler.d.ts +4 -0
- package/lib/browser/client/utils/message-handler.js +97 -0
- package/lib/browser/config/index.d.ts +31 -0
- package/lib/browser/config/index.js +62 -0
- package/lib/browser/external-rpc/benchmark.d.ts +1 -0
- package/lib/browser/external-rpc/benchmark.js +82 -0
- package/lib/browser/external-rpc/event-bus.d.ts +7 -0
- package/lib/browser/external-rpc/event-bus.js +17 -0
- package/lib/browser/external-rpc/global.d.js +0 -0
- package/lib/browser/external-rpc/handle-incoming-msg.d.ts +2 -0
- package/lib/browser/external-rpc/handle-incoming-msg.js +241 -0
- package/lib/browser/external-rpc/index.d.ts +3 -0
- package/lib/browser/external-rpc/index.js +3 -0
- package/lib/browser/external-rpc/jsc-polyfills/1.d.ts +14 -0
- package/lib/browser/external-rpc/jsc-polyfills/1.js +80 -0
- package/lib/browser/external-rpc/jsc-polyfills/2.d.ts +1 -0
- package/lib/browser/external-rpc/jsc-polyfills/2.js +15 -0
- package/lib/browser/external-rpc/jsc-polyfills/event.d.ts +10 -0
- package/lib/browser/external-rpc/jsc-polyfills/event.js +19 -0
- package/lib/browser/external-rpc/jsc-polyfills/index.d.ts +2 -0
- package/lib/browser/external-rpc/jsc-polyfills/index.js +2 -0
- package/lib/browser/external-rpc/jsc-polyfills/ws.d.ts +21 -0
- package/lib/browser/external-rpc/jsc-polyfills/ws.js +83 -0
- package/lib/browser/external-rpc/setup-browser.d.ts +6 -0
- package/lib/browser/external-rpc/setup-browser.js +33 -0
- package/lib/browser/external-rpc/setup-jsc.d.ts +24 -0
- package/lib/browser/external-rpc/setup-jsc.js +22 -0
- package/lib/browser/external-rpc/types.d.ts +213 -0
- package/lib/browser/external-rpc/types.js +0 -0
- package/lib/browser/external-rpc/utils.d.ts +20 -0
- package/lib/browser/external-rpc/utils.js +100 -0
- package/lib/browser/external-rpc/zk.d.ts +14 -0
- package/lib/browser/external-rpc/zk.js +58 -0
- package/lib/browser/index.browser.js +13 -0
- package/lib/browser/index.d.ts +9 -0
- package/lib/browser/index.js +13 -0
- package/lib/browser/mechain/abis/governanceABI.d.ts +50 -0
- package/lib/browser/mechain/abis/governanceABI.js +461 -0
- package/lib/browser/mechain/abis/taskABI.d.ts +157 -0
- package/lib/browser/mechain/abis/taskABI.js +512 -0
- package/lib/browser/mechain/client/create-claim-on-mechain.d.ts +10 -0
- package/lib/browser/mechain/client/create-claim-on-mechain.js +33 -0
- package/lib/browser/mechain/client/index.d.ts +1 -0
- package/lib/browser/mechain/client/index.js +1 -0
- package/lib/browser/mechain/constants/index.d.ts +3 -0
- package/lib/browser/mechain/constants/index.js +8 -0
- package/lib/browser/mechain/index.d.ts +2 -0
- package/lib/browser/mechain/index.js +2 -0
- package/lib/browser/mechain/types/index.d.ts +23 -0
- package/lib/browser/mechain/types/index.js +0 -0
- package/lib/browser/proto/api.d.ts +651 -0
- package/lib/browser/proto/api.js +4250 -0
- package/lib/browser/proto/tee-bundle.d.ts +156 -0
- package/lib/browser/proto/tee-bundle.js +1296 -0
- package/lib/browser/providers/http/index.d.ts +18 -0
- package/lib/browser/providers/http/index.js +640 -0
- package/lib/browser/providers/http/patch-parse5-tree.d.ts +6 -0
- package/lib/browser/providers/http/patch-parse5-tree.js +34 -0
- package/lib/browser/providers/http/utils.d.ts +77 -0
- package/lib/browser/providers/http/utils.js +283 -0
- package/lib/browser/providers/index.d.ts +4 -0
- package/lib/browser/providers/index.js +7 -0
- package/lib/browser/types/bgp.d.ts +11 -0
- package/lib/browser/types/bgp.js +0 -0
- package/lib/browser/types/claims.d.ts +70 -0
- package/lib/browser/types/claims.js +0 -0
- package/lib/browser/types/client.d.ts +163 -0
- package/lib/browser/types/client.js +0 -0
- package/lib/browser/types/general.d.ts +77 -0
- package/lib/browser/types/general.js +0 -0
- package/lib/browser/types/handlers.d.ts +10 -0
- package/lib/browser/types/handlers.js +0 -0
- package/lib/browser/types/index.d.ts +10 -0
- package/lib/browser/types/index.js +10 -0
- package/lib/browser/types/providers.d.ts +161 -0
- package/lib/browser/types/providers.gen.d.ts +443 -0
- package/lib/browser/types/providers.gen.js +16 -0
- package/lib/browser/types/providers.js +0 -0
- package/lib/browser/types/rpc.d.ts +35 -0
- package/lib/browser/types/rpc.js +0 -0
- package/lib/browser/types/signatures.d.ts +28 -0
- package/lib/browser/types/signatures.js +0 -0
- package/lib/browser/types/tunnel.d.ts +18 -0
- package/lib/browser/types/tunnel.js +0 -0
- package/lib/browser/types/zk.d.ts +38 -0
- package/lib/browser/types/zk.js +0 -0
- package/lib/browser/utils/auth.d.ts +8 -0
- package/lib/browser/utils/auth.js +71 -0
- package/lib/browser/utils/b64-json.d.ts +2 -0
- package/lib/browser/utils/b64-json.js +17 -0
- package/lib/browser/utils/claims.d.ts +33 -0
- package/lib/browser/utils/claims.js +89 -0
- package/lib/browser/utils/env.d.ts +3 -0
- package/lib/browser/utils/env.js +19 -0
- package/lib/browser/utils/error.d.ts +26 -0
- package/lib/browser/utils/error.js +54 -0
- package/lib/browser/utils/generics.d.ts +114 -0
- package/lib/browser/utils/generics.js +268 -0
- package/lib/browser/utils/http-parser.d.ts +59 -0
- package/lib/browser/utils/http-parser.js +201 -0
- package/lib/browser/utils/index.browser.js +12 -0
- package/lib/browser/utils/index.d.ts +12 -0
- package/lib/browser/utils/index.js +12 -0
- package/lib/browser/utils/logger.browser.js +88 -0
- package/lib/browser/utils/logger.d.ts +14 -0
- package/lib/browser/utils/logger.js +88 -0
- package/lib/browser/utils/prepare-packets.d.ts +16 -0
- package/lib/browser/utils/prepare-packets.js +69 -0
- package/lib/browser/utils/redactions.d.ts +73 -0
- package/lib/browser/utils/redactions.js +135 -0
- package/lib/browser/utils/retries.d.ts +12 -0
- package/lib/browser/utils/retries.js +26 -0
- package/lib/browser/utils/signatures/eth.d.ts +2 -0
- package/lib/browser/utils/signatures/eth.js +31 -0
- package/lib/browser/utils/signatures/index.d.ts +5 -0
- package/lib/browser/utils/signatures/index.js +12 -0
- package/lib/browser/utils/socket-base.d.ts +23 -0
- package/lib/browser/utils/socket-base.js +96 -0
- package/lib/browser/utils/tls.d.ts +2 -0
- package/lib/browser/utils/tls.js +58 -0
- package/lib/browser/utils/ws.d.ts +7 -0
- package/lib/browser/utils/ws.js +22 -0
- package/lib/browser/utils/zk.d.ts +71 -0
- package/lib/browser/utils/zk.js +625 -0
- package/lib/index.browser.d.ts +9 -0
- package/lib/types/general.d.ts +1 -0
- package/lib/utils/index.browser.d.ts +12 -0
- package/lib/utils/logger.browser.d.ts +14 -0
- package/package.json +18 -2
|
@@ -0,0 +1,601 @@
|
|
|
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.ts";
|
|
3
|
+
export declare namespace IReclaimServiceManager {
|
|
4
|
+
type ClaimRequestStruct = {
|
|
5
|
+
provider: string;
|
|
6
|
+
claimUserId: BytesLike;
|
|
7
|
+
claimHash: BytesLike;
|
|
8
|
+
requestedAt: BigNumberish;
|
|
9
|
+
owner: AddressLike;
|
|
10
|
+
};
|
|
11
|
+
type ClaimRequestStructOutput = [
|
|
12
|
+
provider: string,
|
|
13
|
+
claimUserId: string,
|
|
14
|
+
claimHash: string,
|
|
15
|
+
requestedAt: bigint,
|
|
16
|
+
owner: string
|
|
17
|
+
] & {
|
|
18
|
+
provider: string;
|
|
19
|
+
claimUserId: string;
|
|
20
|
+
claimHash: string;
|
|
21
|
+
requestedAt: bigint;
|
|
22
|
+
owner: string;
|
|
23
|
+
};
|
|
24
|
+
type OperatorMetadataStruct = {
|
|
25
|
+
addr: AddressLike;
|
|
26
|
+
url: string;
|
|
27
|
+
};
|
|
28
|
+
type OperatorMetadataStructOutput = [addr: string, url: string] & {
|
|
29
|
+
addr: string;
|
|
30
|
+
url: string;
|
|
31
|
+
};
|
|
32
|
+
type OperatorStruct = {
|
|
33
|
+
addr: AddressLike;
|
|
34
|
+
url: string;
|
|
35
|
+
};
|
|
36
|
+
type OperatorStructOutput = [addr: string, url: string] & {
|
|
37
|
+
addr: string;
|
|
38
|
+
url: string;
|
|
39
|
+
};
|
|
40
|
+
type TaskStruct = {
|
|
41
|
+
request: IReclaimServiceManager.ClaimRequestStruct;
|
|
42
|
+
createdAt: BigNumberish;
|
|
43
|
+
expiresAt: BigNumberish;
|
|
44
|
+
minimumSignatures: BigNumberish;
|
|
45
|
+
operators: IReclaimServiceManager.OperatorStruct[];
|
|
46
|
+
feePaid: BigNumberish;
|
|
47
|
+
};
|
|
48
|
+
type TaskStructOutput = [
|
|
49
|
+
request: IReclaimServiceManager.ClaimRequestStructOutput,
|
|
50
|
+
createdAt: bigint,
|
|
51
|
+
expiresAt: bigint,
|
|
52
|
+
minimumSignatures: bigint,
|
|
53
|
+
operators: IReclaimServiceManager.OperatorStructOutput[],
|
|
54
|
+
feePaid: bigint
|
|
55
|
+
] & {
|
|
56
|
+
request: IReclaimServiceManager.ClaimRequestStructOutput;
|
|
57
|
+
createdAt: bigint;
|
|
58
|
+
expiresAt: bigint;
|
|
59
|
+
minimumSignatures: bigint;
|
|
60
|
+
operators: IReclaimServiceManager.OperatorStructOutput[];
|
|
61
|
+
feePaid: bigint;
|
|
62
|
+
};
|
|
63
|
+
type CompletedTaskStruct = {
|
|
64
|
+
task: IReclaimServiceManager.TaskStruct;
|
|
65
|
+
signatures: BytesLike[];
|
|
66
|
+
};
|
|
67
|
+
type CompletedTaskStructOutput = [
|
|
68
|
+
task: IReclaimServiceManager.TaskStructOutput,
|
|
69
|
+
signatures: string[]
|
|
70
|
+
] & {
|
|
71
|
+
task: IReclaimServiceManager.TaskStructOutput;
|
|
72
|
+
signatures: string[];
|
|
73
|
+
};
|
|
74
|
+
type TaskCreationMetadataStruct = {
|
|
75
|
+
maxTaskLifetimeS: BigNumberish;
|
|
76
|
+
minSignaturesPerTask: BigNumberish;
|
|
77
|
+
maxTaskCreationDelayS: BigNumberish;
|
|
78
|
+
};
|
|
79
|
+
type TaskCreationMetadataStructOutput = [
|
|
80
|
+
maxTaskLifetimeS: bigint,
|
|
81
|
+
minSignaturesPerTask: bigint,
|
|
82
|
+
maxTaskCreationDelayS: bigint
|
|
83
|
+
] & {
|
|
84
|
+
maxTaskLifetimeS: bigint;
|
|
85
|
+
minSignaturesPerTask: bigint;
|
|
86
|
+
maxTaskCreationDelayS: bigint;
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
export declare namespace IPaymentCoordinator {
|
|
90
|
+
type StrategyAndMultiplierStruct = {
|
|
91
|
+
strategy: AddressLike;
|
|
92
|
+
multiplier: BigNumberish;
|
|
93
|
+
};
|
|
94
|
+
type StrategyAndMultiplierStructOutput = [
|
|
95
|
+
strategy: string,
|
|
96
|
+
multiplier: bigint
|
|
97
|
+
] & {
|
|
98
|
+
strategy: string;
|
|
99
|
+
multiplier: bigint;
|
|
100
|
+
};
|
|
101
|
+
type RangePaymentStruct = {
|
|
102
|
+
strategiesAndMultipliers: IPaymentCoordinator.StrategyAndMultiplierStruct[];
|
|
103
|
+
token: AddressLike;
|
|
104
|
+
amount: BigNumberish;
|
|
105
|
+
startTimestamp: BigNumberish;
|
|
106
|
+
duration: BigNumberish;
|
|
107
|
+
};
|
|
108
|
+
type RangePaymentStructOutput = [
|
|
109
|
+
strategiesAndMultipliers: IPaymentCoordinator.StrategyAndMultiplierStructOutput[],
|
|
110
|
+
token: string,
|
|
111
|
+
amount: bigint,
|
|
112
|
+
startTimestamp: bigint,
|
|
113
|
+
duration: bigint
|
|
114
|
+
] & {
|
|
115
|
+
strategiesAndMultipliers: IPaymentCoordinator.StrategyAndMultiplierStructOutput[];
|
|
116
|
+
token: string;
|
|
117
|
+
amount: bigint;
|
|
118
|
+
startTimestamp: bigint;
|
|
119
|
+
duration: bigint;
|
|
120
|
+
};
|
|
121
|
+
}
|
|
122
|
+
export declare namespace ISignatureUtils {
|
|
123
|
+
type SignatureWithSaltAndExpiryStruct = {
|
|
124
|
+
signature: BytesLike;
|
|
125
|
+
salt: BytesLike;
|
|
126
|
+
expiry: BigNumberish;
|
|
127
|
+
};
|
|
128
|
+
type SignatureWithSaltAndExpiryStructOutput = [
|
|
129
|
+
signature: string,
|
|
130
|
+
salt: string,
|
|
131
|
+
expiry: bigint
|
|
132
|
+
] & {
|
|
133
|
+
signature: string;
|
|
134
|
+
salt: string;
|
|
135
|
+
expiry: bigint;
|
|
136
|
+
};
|
|
137
|
+
}
|
|
138
|
+
export interface ReclaimServiceManagerInterface extends Interface {
|
|
139
|
+
getFunction(nameOrSignature: "admins" | "allTaskHashes" | "avsDirectory" | "checkSignerAddress" | "createNewTask" | "deregisterOperatorFromAVS" | "encodeClaimRequest" | "getMetadataForOperator" | "getOperatorRestakedStrategies" | "getRestakeableStrategies" | "isAdmin" | "isOperatorWhitelisted" | "latestTaskNum" | "operatorHasMinimumWeight" | "owner" | "pause" | "pauseAll" | "paused(uint8)" | "paused()" | "pauserRegistry" | "payForRange" | "registerOperatorToAVS" | "registeredOperators" | "renounceOwnership" | "setPauserRegistry" | "setup" | "stakeRegistry" | "taskCompleted" | "taskCreationMetadata" | "transferOwnership" | "unpause" | "updateAVSMetadataURI" | "updateOperatorMetadata" | "updateTaskCreationMetadata" | "whitelistAddressAsOperator" | "whitelistedOperators"): FunctionFragment;
|
|
140
|
+
getEvent(nameOrSignatureOrTopic: "Initialized" | "NewTaskCreated" | "OwnershipTransferred" | "Paused" | "PauserRegistrySet" | "TaskCompleted" | "Unpaused"): EventFragment;
|
|
141
|
+
encodeFunctionData(functionFragment: "admins", values: [BigNumberish]): string;
|
|
142
|
+
encodeFunctionData(functionFragment: "allTaskHashes", values: [BigNumberish]): string;
|
|
143
|
+
encodeFunctionData(functionFragment: "avsDirectory", values?: undefined): string;
|
|
144
|
+
encodeFunctionData(functionFragment: "checkSignerAddress", values: [IReclaimServiceManager.ClaimRequestStruct, BytesLike]): string;
|
|
145
|
+
encodeFunctionData(functionFragment: "createNewTask", values: [IReclaimServiceManager.ClaimRequestStruct, BytesLike]): string;
|
|
146
|
+
encodeFunctionData(functionFragment: "deregisterOperatorFromAVS", values: [AddressLike]): string;
|
|
147
|
+
encodeFunctionData(functionFragment: "encodeClaimRequest", values: [IReclaimServiceManager.ClaimRequestStruct]): string;
|
|
148
|
+
encodeFunctionData(functionFragment: "getMetadataForOperator", values: [AddressLike]): string;
|
|
149
|
+
encodeFunctionData(functionFragment: "getOperatorRestakedStrategies", values: [AddressLike]): string;
|
|
150
|
+
encodeFunctionData(functionFragment: "getRestakeableStrategies", values?: undefined): string;
|
|
151
|
+
encodeFunctionData(functionFragment: "isAdmin", values: [AddressLike]): string;
|
|
152
|
+
encodeFunctionData(functionFragment: "isOperatorWhitelisted", values: [AddressLike]): string;
|
|
153
|
+
encodeFunctionData(functionFragment: "latestTaskNum", values?: undefined): string;
|
|
154
|
+
encodeFunctionData(functionFragment: "operatorHasMinimumWeight", values: [AddressLike]): string;
|
|
155
|
+
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
|
156
|
+
encodeFunctionData(functionFragment: "pause", values: [BigNumberish]): string;
|
|
157
|
+
encodeFunctionData(functionFragment: "pauseAll", values?: undefined): string;
|
|
158
|
+
encodeFunctionData(functionFragment: "paused(uint8)", values: [BigNumberish]): string;
|
|
159
|
+
encodeFunctionData(functionFragment: "paused()", values?: undefined): string;
|
|
160
|
+
encodeFunctionData(functionFragment: "pauserRegistry", values?: undefined): string;
|
|
161
|
+
encodeFunctionData(functionFragment: "payForRange", values: [IPaymentCoordinator.RangePaymentStruct[]]): string;
|
|
162
|
+
encodeFunctionData(functionFragment: "registerOperatorToAVS", values: [AddressLike, ISignatureUtils.SignatureWithSaltAndExpiryStruct]): string;
|
|
163
|
+
encodeFunctionData(functionFragment: "registeredOperators", values: [BigNumberish]): string;
|
|
164
|
+
encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
|
|
165
|
+
encodeFunctionData(functionFragment: "setPauserRegistry", values: [AddressLike]): string;
|
|
166
|
+
encodeFunctionData(functionFragment: "setup", values: [AddressLike]): string;
|
|
167
|
+
encodeFunctionData(functionFragment: "stakeRegistry", values?: undefined): string;
|
|
168
|
+
encodeFunctionData(functionFragment: "taskCompleted", values: [IReclaimServiceManager.CompletedTaskStruct, BigNumberish]): string;
|
|
169
|
+
encodeFunctionData(functionFragment: "taskCreationMetadata", values?: undefined): string;
|
|
170
|
+
encodeFunctionData(functionFragment: "transferOwnership", values: [AddressLike]): string;
|
|
171
|
+
encodeFunctionData(functionFragment: "unpause", values: [BigNumberish]): string;
|
|
172
|
+
encodeFunctionData(functionFragment: "updateAVSMetadataURI", values: [string]): string;
|
|
173
|
+
encodeFunctionData(functionFragment: "updateOperatorMetadata", values: [IReclaimServiceManager.OperatorMetadataStruct]): string;
|
|
174
|
+
encodeFunctionData(functionFragment: "updateTaskCreationMetadata", values: [IReclaimServiceManager.TaskCreationMetadataStruct]): string;
|
|
175
|
+
encodeFunctionData(functionFragment: "whitelistAddressAsOperator", values: [AddressLike, boolean]): string;
|
|
176
|
+
encodeFunctionData(functionFragment: "whitelistedOperators", values: [BigNumberish]): string;
|
|
177
|
+
decodeFunctionResult(functionFragment: "admins", data: BytesLike): Result;
|
|
178
|
+
decodeFunctionResult(functionFragment: "allTaskHashes", data: BytesLike): Result;
|
|
179
|
+
decodeFunctionResult(functionFragment: "avsDirectory", data: BytesLike): Result;
|
|
180
|
+
decodeFunctionResult(functionFragment: "checkSignerAddress", data: BytesLike): Result;
|
|
181
|
+
decodeFunctionResult(functionFragment: "createNewTask", data: BytesLike): Result;
|
|
182
|
+
decodeFunctionResult(functionFragment: "deregisterOperatorFromAVS", data: BytesLike): Result;
|
|
183
|
+
decodeFunctionResult(functionFragment: "encodeClaimRequest", data: BytesLike): Result;
|
|
184
|
+
decodeFunctionResult(functionFragment: "getMetadataForOperator", data: BytesLike): Result;
|
|
185
|
+
decodeFunctionResult(functionFragment: "getOperatorRestakedStrategies", data: BytesLike): Result;
|
|
186
|
+
decodeFunctionResult(functionFragment: "getRestakeableStrategies", data: BytesLike): Result;
|
|
187
|
+
decodeFunctionResult(functionFragment: "isAdmin", data: BytesLike): Result;
|
|
188
|
+
decodeFunctionResult(functionFragment: "isOperatorWhitelisted", data: BytesLike): Result;
|
|
189
|
+
decodeFunctionResult(functionFragment: "latestTaskNum", data: BytesLike): Result;
|
|
190
|
+
decodeFunctionResult(functionFragment: "operatorHasMinimumWeight", data: BytesLike): Result;
|
|
191
|
+
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
|
192
|
+
decodeFunctionResult(functionFragment: "pause", data: BytesLike): Result;
|
|
193
|
+
decodeFunctionResult(functionFragment: "pauseAll", data: BytesLike): Result;
|
|
194
|
+
decodeFunctionResult(functionFragment: "paused(uint8)", data: BytesLike): Result;
|
|
195
|
+
decodeFunctionResult(functionFragment: "paused()", data: BytesLike): Result;
|
|
196
|
+
decodeFunctionResult(functionFragment: "pauserRegistry", data: BytesLike): Result;
|
|
197
|
+
decodeFunctionResult(functionFragment: "payForRange", data: BytesLike): Result;
|
|
198
|
+
decodeFunctionResult(functionFragment: "registerOperatorToAVS", data: BytesLike): Result;
|
|
199
|
+
decodeFunctionResult(functionFragment: "registeredOperators", data: BytesLike): Result;
|
|
200
|
+
decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result;
|
|
201
|
+
decodeFunctionResult(functionFragment: "setPauserRegistry", data: BytesLike): Result;
|
|
202
|
+
decodeFunctionResult(functionFragment: "setup", data: BytesLike): Result;
|
|
203
|
+
decodeFunctionResult(functionFragment: "stakeRegistry", data: BytesLike): Result;
|
|
204
|
+
decodeFunctionResult(functionFragment: "taskCompleted", data: BytesLike): Result;
|
|
205
|
+
decodeFunctionResult(functionFragment: "taskCreationMetadata", data: BytesLike): Result;
|
|
206
|
+
decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result;
|
|
207
|
+
decodeFunctionResult(functionFragment: "unpause", data: BytesLike): Result;
|
|
208
|
+
decodeFunctionResult(functionFragment: "updateAVSMetadataURI", data: BytesLike): Result;
|
|
209
|
+
decodeFunctionResult(functionFragment: "updateOperatorMetadata", data: BytesLike): Result;
|
|
210
|
+
decodeFunctionResult(functionFragment: "updateTaskCreationMetadata", data: BytesLike): Result;
|
|
211
|
+
decodeFunctionResult(functionFragment: "whitelistAddressAsOperator", data: BytesLike): Result;
|
|
212
|
+
decodeFunctionResult(functionFragment: "whitelistedOperators", data: BytesLike): Result;
|
|
213
|
+
}
|
|
214
|
+
export declare namespace InitializedEvent {
|
|
215
|
+
type InputTuple = [version: BigNumberish];
|
|
216
|
+
type OutputTuple = [version: bigint];
|
|
217
|
+
interface OutputObject {
|
|
218
|
+
version: bigint;
|
|
219
|
+
}
|
|
220
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
221
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
222
|
+
type Log = TypedEventLog<Event>;
|
|
223
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
224
|
+
}
|
|
225
|
+
export declare namespace NewTaskCreatedEvent {
|
|
226
|
+
type InputTuple = [
|
|
227
|
+
taskIndex: BigNumberish,
|
|
228
|
+
task: IReclaimServiceManager.TaskStruct
|
|
229
|
+
];
|
|
230
|
+
type OutputTuple = [
|
|
231
|
+
taskIndex: bigint,
|
|
232
|
+
task: IReclaimServiceManager.TaskStructOutput
|
|
233
|
+
];
|
|
234
|
+
interface OutputObject {
|
|
235
|
+
taskIndex: bigint;
|
|
236
|
+
task: IReclaimServiceManager.TaskStructOutput;
|
|
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 OwnershipTransferredEvent {
|
|
244
|
+
type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
|
|
245
|
+
type OutputTuple = [previousOwner: string, newOwner: string];
|
|
246
|
+
interface OutputObject {
|
|
247
|
+
previousOwner: string;
|
|
248
|
+
newOwner: 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 PausedEvent {
|
|
256
|
+
type InputTuple = [
|
|
257
|
+
account: AddressLike,
|
|
258
|
+
newPausedStatus: BigNumberish
|
|
259
|
+
];
|
|
260
|
+
type OutputTuple = [account: string, newPausedStatus: bigint];
|
|
261
|
+
interface OutputObject {
|
|
262
|
+
account: string;
|
|
263
|
+
newPausedStatus: bigint;
|
|
264
|
+
}
|
|
265
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
266
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
267
|
+
type Log = TypedEventLog<Event>;
|
|
268
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
269
|
+
}
|
|
270
|
+
export declare namespace PauserRegistrySetEvent {
|
|
271
|
+
type InputTuple = [
|
|
272
|
+
pauserRegistry: AddressLike,
|
|
273
|
+
newPauserRegistry: AddressLike
|
|
274
|
+
];
|
|
275
|
+
type OutputTuple = [pauserRegistry: string, newPauserRegistry: string];
|
|
276
|
+
interface OutputObject {
|
|
277
|
+
pauserRegistry: string;
|
|
278
|
+
newPauserRegistry: string;
|
|
279
|
+
}
|
|
280
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
281
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
282
|
+
type Log = TypedEventLog<Event>;
|
|
283
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
284
|
+
}
|
|
285
|
+
export declare namespace TaskCompletedEvent {
|
|
286
|
+
type InputTuple = [
|
|
287
|
+
taskIndex: BigNumberish,
|
|
288
|
+
task: IReclaimServiceManager.CompletedTaskStruct
|
|
289
|
+
];
|
|
290
|
+
type OutputTuple = [
|
|
291
|
+
taskIndex: bigint,
|
|
292
|
+
task: IReclaimServiceManager.CompletedTaskStructOutput
|
|
293
|
+
];
|
|
294
|
+
interface OutputObject {
|
|
295
|
+
taskIndex: bigint;
|
|
296
|
+
task: IReclaimServiceManager.CompletedTaskStructOutput;
|
|
297
|
+
}
|
|
298
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
299
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
300
|
+
type Log = TypedEventLog<Event>;
|
|
301
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
302
|
+
}
|
|
303
|
+
export declare namespace UnpausedEvent {
|
|
304
|
+
type InputTuple = [
|
|
305
|
+
account: AddressLike,
|
|
306
|
+
newPausedStatus: BigNumberish
|
|
307
|
+
];
|
|
308
|
+
type OutputTuple = [account: string, newPausedStatus: bigint];
|
|
309
|
+
interface OutputObject {
|
|
310
|
+
account: string;
|
|
311
|
+
newPausedStatus: bigint;
|
|
312
|
+
}
|
|
313
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
314
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
315
|
+
type Log = TypedEventLog<Event>;
|
|
316
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
317
|
+
}
|
|
318
|
+
export interface ReclaimServiceManager extends BaseContract {
|
|
319
|
+
connect(runner?: ContractRunner | null): ReclaimServiceManager;
|
|
320
|
+
waitForDeployment(): Promise<this>;
|
|
321
|
+
interface: ReclaimServiceManagerInterface;
|
|
322
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
323
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
324
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
325
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
326
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
327
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
328
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
329
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
330
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
331
|
+
admins: TypedContractMethod<[arg0: BigNumberish], [string], "view">;
|
|
332
|
+
allTaskHashes: TypedContractMethod<[arg0: BigNumberish], [string], "view">;
|
|
333
|
+
avsDirectory: TypedContractMethod<[], [string], "view">;
|
|
334
|
+
checkSignerAddress: TypedContractMethod<[
|
|
335
|
+
request: IReclaimServiceManager.ClaimRequestStruct,
|
|
336
|
+
requestSignature: BytesLike
|
|
337
|
+
], [
|
|
338
|
+
string
|
|
339
|
+
], "view">;
|
|
340
|
+
createNewTask: TypedContractMethod<[
|
|
341
|
+
request: IReclaimServiceManager.ClaimRequestStruct,
|
|
342
|
+
requestSignature: BytesLike
|
|
343
|
+
], [
|
|
344
|
+
void
|
|
345
|
+
], "nonpayable">;
|
|
346
|
+
deregisterOperatorFromAVS: TypedContractMethod<[
|
|
347
|
+
operator: AddressLike
|
|
348
|
+
], [
|
|
349
|
+
void
|
|
350
|
+
], "nonpayable">;
|
|
351
|
+
encodeClaimRequest: TypedContractMethod<[
|
|
352
|
+
request: IReclaimServiceManager.ClaimRequestStruct
|
|
353
|
+
], [
|
|
354
|
+
string
|
|
355
|
+
], "view">;
|
|
356
|
+
getMetadataForOperator: TypedContractMethod<[
|
|
357
|
+
operator: AddressLike
|
|
358
|
+
], [
|
|
359
|
+
IReclaimServiceManager.OperatorMetadataStructOutput
|
|
360
|
+
], "view">;
|
|
361
|
+
getOperatorRestakedStrategies: TypedContractMethod<[
|
|
362
|
+
_operator: AddressLike
|
|
363
|
+
], [
|
|
364
|
+
string[]
|
|
365
|
+
], "view">;
|
|
366
|
+
getRestakeableStrategies: TypedContractMethod<[], [string[]], "view">;
|
|
367
|
+
isAdmin: TypedContractMethod<[_admin: AddressLike], [boolean], "view">;
|
|
368
|
+
isOperatorWhitelisted: TypedContractMethod<[
|
|
369
|
+
operator: AddressLike
|
|
370
|
+
], [
|
|
371
|
+
boolean
|
|
372
|
+
], "view">;
|
|
373
|
+
latestTaskNum: TypedContractMethod<[], [bigint], "view">;
|
|
374
|
+
operatorHasMinimumWeight: TypedContractMethod<[
|
|
375
|
+
operator: AddressLike
|
|
376
|
+
], [
|
|
377
|
+
boolean
|
|
378
|
+
], "view">;
|
|
379
|
+
owner: TypedContractMethod<[], [string], "view">;
|
|
380
|
+
pause: TypedContractMethod<[
|
|
381
|
+
newPausedStatus: BigNumberish
|
|
382
|
+
], [
|
|
383
|
+
void
|
|
384
|
+
], "nonpayable">;
|
|
385
|
+
pauseAll: TypedContractMethod<[], [void], "nonpayable">;
|
|
386
|
+
"paused(uint8)": TypedContractMethod<[
|
|
387
|
+
index: BigNumberish
|
|
388
|
+
], [
|
|
389
|
+
boolean
|
|
390
|
+
], "view">;
|
|
391
|
+
"paused()": TypedContractMethod<[], [bigint], "view">;
|
|
392
|
+
pauserRegistry: TypedContractMethod<[], [string], "view">;
|
|
393
|
+
payForRange: TypedContractMethod<[
|
|
394
|
+
rangePayments: IPaymentCoordinator.RangePaymentStruct[]
|
|
395
|
+
], [
|
|
396
|
+
void
|
|
397
|
+
], "nonpayable">;
|
|
398
|
+
registerOperatorToAVS: TypedContractMethod<[
|
|
399
|
+
operator: AddressLike,
|
|
400
|
+
operatorSignature: ISignatureUtils.SignatureWithSaltAndExpiryStruct
|
|
401
|
+
], [
|
|
402
|
+
void
|
|
403
|
+
], "nonpayable">;
|
|
404
|
+
registeredOperators: TypedContractMethod<[
|
|
405
|
+
arg0: BigNumberish
|
|
406
|
+
], [
|
|
407
|
+
[string, string] & {
|
|
408
|
+
addr: string;
|
|
409
|
+
url: string;
|
|
410
|
+
}
|
|
411
|
+
], "view">;
|
|
412
|
+
renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
|
|
413
|
+
setPauserRegistry: TypedContractMethod<[
|
|
414
|
+
newPauserRegistry: AddressLike
|
|
415
|
+
], [
|
|
416
|
+
void
|
|
417
|
+
], "nonpayable">;
|
|
418
|
+
setup: TypedContractMethod<[initialAdmin: AddressLike], [void], "nonpayable">;
|
|
419
|
+
stakeRegistry: TypedContractMethod<[], [string], "view">;
|
|
420
|
+
taskCompleted: TypedContractMethod<[
|
|
421
|
+
completedTask: IReclaimServiceManager.CompletedTaskStruct,
|
|
422
|
+
referenceTaskIndex: BigNumberish
|
|
423
|
+
], [
|
|
424
|
+
void
|
|
425
|
+
], "nonpayable">;
|
|
426
|
+
taskCreationMetadata: TypedContractMethod<[
|
|
427
|
+
], [
|
|
428
|
+
[
|
|
429
|
+
bigint,
|
|
430
|
+
bigint,
|
|
431
|
+
bigint
|
|
432
|
+
] & {
|
|
433
|
+
maxTaskLifetimeS: bigint;
|
|
434
|
+
minSignaturesPerTask: bigint;
|
|
435
|
+
maxTaskCreationDelayS: bigint;
|
|
436
|
+
}
|
|
437
|
+
], "view">;
|
|
438
|
+
transferOwnership: TypedContractMethod<[
|
|
439
|
+
newOwner: AddressLike
|
|
440
|
+
], [
|
|
441
|
+
void
|
|
442
|
+
], "nonpayable">;
|
|
443
|
+
unpause: TypedContractMethod<[
|
|
444
|
+
newPausedStatus: BigNumberish
|
|
445
|
+
], [
|
|
446
|
+
void
|
|
447
|
+
], "nonpayable">;
|
|
448
|
+
updateAVSMetadataURI: TypedContractMethod<[
|
|
449
|
+
_metadataURI: string
|
|
450
|
+
], [
|
|
451
|
+
void
|
|
452
|
+
], "nonpayable">;
|
|
453
|
+
updateOperatorMetadata: TypedContractMethod<[
|
|
454
|
+
metadata: IReclaimServiceManager.OperatorMetadataStruct
|
|
455
|
+
], [
|
|
456
|
+
void
|
|
457
|
+
], "nonpayable">;
|
|
458
|
+
updateTaskCreationMetadata: TypedContractMethod<[
|
|
459
|
+
newMetadata: IReclaimServiceManager.TaskCreationMetadataStruct
|
|
460
|
+
], [
|
|
461
|
+
void
|
|
462
|
+
], "nonpayable">;
|
|
463
|
+
whitelistAddressAsOperator: TypedContractMethod<[
|
|
464
|
+
operator: AddressLike,
|
|
465
|
+
isWhitelisted: boolean
|
|
466
|
+
], [
|
|
467
|
+
void
|
|
468
|
+
], "nonpayable">;
|
|
469
|
+
whitelistedOperators: TypedContractMethod<[
|
|
470
|
+
arg0: BigNumberish
|
|
471
|
+
], [
|
|
472
|
+
string
|
|
473
|
+
], "view">;
|
|
474
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
475
|
+
getFunction(nameOrSignature: "admins"): TypedContractMethod<[arg0: BigNumberish], [string], "view">;
|
|
476
|
+
getFunction(nameOrSignature: "allTaskHashes"): TypedContractMethod<[arg0: BigNumberish], [string], "view">;
|
|
477
|
+
getFunction(nameOrSignature: "avsDirectory"): TypedContractMethod<[], [string], "view">;
|
|
478
|
+
getFunction(nameOrSignature: "checkSignerAddress"): TypedContractMethod<[
|
|
479
|
+
request: IReclaimServiceManager.ClaimRequestStruct,
|
|
480
|
+
requestSignature: BytesLike
|
|
481
|
+
], [
|
|
482
|
+
string
|
|
483
|
+
], "view">;
|
|
484
|
+
getFunction(nameOrSignature: "createNewTask"): TypedContractMethod<[
|
|
485
|
+
request: IReclaimServiceManager.ClaimRequestStruct,
|
|
486
|
+
requestSignature: BytesLike
|
|
487
|
+
], [
|
|
488
|
+
void
|
|
489
|
+
], "nonpayable">;
|
|
490
|
+
getFunction(nameOrSignature: "deregisterOperatorFromAVS"): TypedContractMethod<[operator: AddressLike], [void], "nonpayable">;
|
|
491
|
+
getFunction(nameOrSignature: "encodeClaimRequest"): TypedContractMethod<[
|
|
492
|
+
request: IReclaimServiceManager.ClaimRequestStruct
|
|
493
|
+
], [
|
|
494
|
+
string
|
|
495
|
+
], "view">;
|
|
496
|
+
getFunction(nameOrSignature: "getMetadataForOperator"): TypedContractMethod<[
|
|
497
|
+
operator: AddressLike
|
|
498
|
+
], [
|
|
499
|
+
IReclaimServiceManager.OperatorMetadataStructOutput
|
|
500
|
+
], "view">;
|
|
501
|
+
getFunction(nameOrSignature: "getOperatorRestakedStrategies"): TypedContractMethod<[_operator: AddressLike], [string[]], "view">;
|
|
502
|
+
getFunction(nameOrSignature: "getRestakeableStrategies"): TypedContractMethod<[], [string[]], "view">;
|
|
503
|
+
getFunction(nameOrSignature: "isAdmin"): TypedContractMethod<[_admin: AddressLike], [boolean], "view">;
|
|
504
|
+
getFunction(nameOrSignature: "isOperatorWhitelisted"): TypedContractMethod<[operator: AddressLike], [boolean], "view">;
|
|
505
|
+
getFunction(nameOrSignature: "latestTaskNum"): TypedContractMethod<[], [bigint], "view">;
|
|
506
|
+
getFunction(nameOrSignature: "operatorHasMinimumWeight"): TypedContractMethod<[operator: AddressLike], [boolean], "view">;
|
|
507
|
+
getFunction(nameOrSignature: "owner"): TypedContractMethod<[], [string], "view">;
|
|
508
|
+
getFunction(nameOrSignature: "pause"): TypedContractMethod<[newPausedStatus: BigNumberish], [void], "nonpayable">;
|
|
509
|
+
getFunction(nameOrSignature: "pauseAll"): TypedContractMethod<[], [void], "nonpayable">;
|
|
510
|
+
getFunction(nameOrSignature: "paused(uint8)"): TypedContractMethod<[index: BigNumberish], [boolean], "view">;
|
|
511
|
+
getFunction(nameOrSignature: "paused()"): TypedContractMethod<[], [bigint], "view">;
|
|
512
|
+
getFunction(nameOrSignature: "pauserRegistry"): TypedContractMethod<[], [string], "view">;
|
|
513
|
+
getFunction(nameOrSignature: "payForRange"): TypedContractMethod<[
|
|
514
|
+
rangePayments: IPaymentCoordinator.RangePaymentStruct[]
|
|
515
|
+
], [
|
|
516
|
+
void
|
|
517
|
+
], "nonpayable">;
|
|
518
|
+
getFunction(nameOrSignature: "registerOperatorToAVS"): TypedContractMethod<[
|
|
519
|
+
operator: AddressLike,
|
|
520
|
+
operatorSignature: ISignatureUtils.SignatureWithSaltAndExpiryStruct
|
|
521
|
+
], [
|
|
522
|
+
void
|
|
523
|
+
], "nonpayable">;
|
|
524
|
+
getFunction(nameOrSignature: "registeredOperators"): TypedContractMethod<[
|
|
525
|
+
arg0: BigNumberish
|
|
526
|
+
], [
|
|
527
|
+
[string, string] & {
|
|
528
|
+
addr: string;
|
|
529
|
+
url: string;
|
|
530
|
+
}
|
|
531
|
+
], "view">;
|
|
532
|
+
getFunction(nameOrSignature: "renounceOwnership"): TypedContractMethod<[], [void], "nonpayable">;
|
|
533
|
+
getFunction(nameOrSignature: "setPauserRegistry"): TypedContractMethod<[
|
|
534
|
+
newPauserRegistry: AddressLike
|
|
535
|
+
], [
|
|
536
|
+
void
|
|
537
|
+
], "nonpayable">;
|
|
538
|
+
getFunction(nameOrSignature: "setup"): TypedContractMethod<[initialAdmin: AddressLike], [void], "nonpayable">;
|
|
539
|
+
getFunction(nameOrSignature: "stakeRegistry"): TypedContractMethod<[], [string], "view">;
|
|
540
|
+
getFunction(nameOrSignature: "taskCompleted"): TypedContractMethod<[
|
|
541
|
+
completedTask: IReclaimServiceManager.CompletedTaskStruct,
|
|
542
|
+
referenceTaskIndex: BigNumberish
|
|
543
|
+
], [
|
|
544
|
+
void
|
|
545
|
+
], "nonpayable">;
|
|
546
|
+
getFunction(nameOrSignature: "taskCreationMetadata"): TypedContractMethod<[
|
|
547
|
+
], [
|
|
548
|
+
[
|
|
549
|
+
bigint,
|
|
550
|
+
bigint,
|
|
551
|
+
bigint
|
|
552
|
+
] & {
|
|
553
|
+
maxTaskLifetimeS: bigint;
|
|
554
|
+
minSignaturesPerTask: bigint;
|
|
555
|
+
maxTaskCreationDelayS: bigint;
|
|
556
|
+
}
|
|
557
|
+
], "view">;
|
|
558
|
+
getFunction(nameOrSignature: "transferOwnership"): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
|
|
559
|
+
getFunction(nameOrSignature: "unpause"): TypedContractMethod<[newPausedStatus: BigNumberish], [void], "nonpayable">;
|
|
560
|
+
getFunction(nameOrSignature: "updateAVSMetadataURI"): TypedContractMethod<[_metadataURI: string], [void], "nonpayable">;
|
|
561
|
+
getFunction(nameOrSignature: "updateOperatorMetadata"): TypedContractMethod<[
|
|
562
|
+
metadata: IReclaimServiceManager.OperatorMetadataStruct
|
|
563
|
+
], [
|
|
564
|
+
void
|
|
565
|
+
], "nonpayable">;
|
|
566
|
+
getFunction(nameOrSignature: "updateTaskCreationMetadata"): TypedContractMethod<[
|
|
567
|
+
newMetadata: IReclaimServiceManager.TaskCreationMetadataStruct
|
|
568
|
+
], [
|
|
569
|
+
void
|
|
570
|
+
], "nonpayable">;
|
|
571
|
+
getFunction(nameOrSignature: "whitelistAddressAsOperator"): TypedContractMethod<[
|
|
572
|
+
operator: AddressLike,
|
|
573
|
+
isWhitelisted: boolean
|
|
574
|
+
], [
|
|
575
|
+
void
|
|
576
|
+
], "nonpayable">;
|
|
577
|
+
getFunction(nameOrSignature: "whitelistedOperators"): TypedContractMethod<[arg0: BigNumberish], [string], "view">;
|
|
578
|
+
getEvent(key: "Initialized"): TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
|
|
579
|
+
getEvent(key: "NewTaskCreated"): TypedContractEvent<NewTaskCreatedEvent.InputTuple, NewTaskCreatedEvent.OutputTuple, NewTaskCreatedEvent.OutputObject>;
|
|
580
|
+
getEvent(key: "OwnershipTransferred"): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
581
|
+
getEvent(key: "Paused"): TypedContractEvent<PausedEvent.InputTuple, PausedEvent.OutputTuple, PausedEvent.OutputObject>;
|
|
582
|
+
getEvent(key: "PauserRegistrySet"): TypedContractEvent<PauserRegistrySetEvent.InputTuple, PauserRegistrySetEvent.OutputTuple, PauserRegistrySetEvent.OutputObject>;
|
|
583
|
+
getEvent(key: "TaskCompleted"): TypedContractEvent<TaskCompletedEvent.InputTuple, TaskCompletedEvent.OutputTuple, TaskCompletedEvent.OutputObject>;
|
|
584
|
+
getEvent(key: "Unpaused"): TypedContractEvent<UnpausedEvent.InputTuple, UnpausedEvent.OutputTuple, UnpausedEvent.OutputObject>;
|
|
585
|
+
filters: {
|
|
586
|
+
"Initialized(uint8)": TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
|
|
587
|
+
Initialized: TypedContractEvent<InitializedEvent.InputTuple, InitializedEvent.OutputTuple, InitializedEvent.OutputObject>;
|
|
588
|
+
"NewTaskCreated(uint32,tuple)": TypedContractEvent<NewTaskCreatedEvent.InputTuple, NewTaskCreatedEvent.OutputTuple, NewTaskCreatedEvent.OutputObject>;
|
|
589
|
+
NewTaskCreated: TypedContractEvent<NewTaskCreatedEvent.InputTuple, NewTaskCreatedEvent.OutputTuple, NewTaskCreatedEvent.OutputObject>;
|
|
590
|
+
"OwnershipTransferred(address,address)": TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
591
|
+
OwnershipTransferred: TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
592
|
+
"Paused(address,uint256)": TypedContractEvent<PausedEvent.InputTuple, PausedEvent.OutputTuple, PausedEvent.OutputObject>;
|
|
593
|
+
Paused: TypedContractEvent<PausedEvent.InputTuple, PausedEvent.OutputTuple, PausedEvent.OutputObject>;
|
|
594
|
+
"PauserRegistrySet(address,address)": TypedContractEvent<PauserRegistrySetEvent.InputTuple, PauserRegistrySetEvent.OutputTuple, PauserRegistrySetEvent.OutputObject>;
|
|
595
|
+
PauserRegistrySet: TypedContractEvent<PauserRegistrySetEvent.InputTuple, PauserRegistrySetEvent.OutputTuple, PauserRegistrySetEvent.OutputObject>;
|
|
596
|
+
"TaskCompleted(uint32,tuple)": TypedContractEvent<TaskCompletedEvent.InputTuple, TaskCompletedEvent.OutputTuple, TaskCompletedEvent.OutputObject>;
|
|
597
|
+
TaskCompleted: TypedContractEvent<TaskCompletedEvent.InputTuple, TaskCompletedEvent.OutputTuple, TaskCompletedEvent.OutputObject>;
|
|
598
|
+
"Unpaused(address,uint256)": TypedContractEvent<UnpausedEvent.InputTuple, UnpausedEvent.OutputTuple, UnpausedEvent.OutputObject>;
|
|
599
|
+
Unpaused: TypedContractEvent<UnpausedEvent.InputTuple, UnpausedEvent.OutputTuple, UnpausedEvent.OutputObject>;
|
|
600
|
+
};
|
|
601
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { FunctionFragment, Typed, EventFragment, ContractTransaction, ContractTransactionResponse, DeferredTopicFilter, EventLog, TransactionRequest, LogDescription } from "ethers";
|
|
2
|
+
export interface TypedDeferredTopicFilter<_TCEvent extends TypedContractEvent> extends DeferredTopicFilter {
|
|
3
|
+
}
|
|
4
|
+
export interface TypedContractEvent<InputTuple extends Array<any> = any, OutputTuple extends Array<any> = any, OutputObject = any> {
|
|
5
|
+
(...args: Partial<InputTuple>): TypedDeferredTopicFilter<TypedContractEvent<InputTuple, OutputTuple, OutputObject>>;
|
|
6
|
+
name: string;
|
|
7
|
+
fragment: EventFragment;
|
|
8
|
+
getFragment(...args: Partial<InputTuple>): EventFragment;
|
|
9
|
+
}
|
|
10
|
+
type __TypechainAOutputTuple<T> = T extends TypedContractEvent<infer _U, infer W> ? W : never;
|
|
11
|
+
type __TypechainOutputObject<T> = T extends TypedContractEvent<infer _U, infer _W, infer V> ? V : never;
|
|
12
|
+
export interface TypedEventLog<TCEvent extends TypedContractEvent> extends Omit<EventLog, "args"> {
|
|
13
|
+
args: __TypechainAOutputTuple<TCEvent> & __TypechainOutputObject<TCEvent>;
|
|
14
|
+
}
|
|
15
|
+
export interface TypedLogDescription<TCEvent extends TypedContractEvent> extends Omit<LogDescription, "args"> {
|
|
16
|
+
args: __TypechainAOutputTuple<TCEvent> & __TypechainOutputObject<TCEvent>;
|
|
17
|
+
}
|
|
18
|
+
export type TypedListener<TCEvent extends TypedContractEvent> = (...listenerArg: [
|
|
19
|
+
...__TypechainAOutputTuple<TCEvent>,
|
|
20
|
+
TypedEventLog<TCEvent>,
|
|
21
|
+
...undefined[]
|
|
22
|
+
]) => void;
|
|
23
|
+
export type MinEthersFactory<C, ARGS> = {
|
|
24
|
+
deploy(...a: ARGS[]): Promise<C>;
|
|
25
|
+
};
|
|
26
|
+
export type GetContractTypeFromFactory<F> = F extends MinEthersFactory<infer C, any> ? C : never;
|
|
27
|
+
export type GetARGsTypeFromFactory<F> = F extends MinEthersFactory<any, any> ? Parameters<F["deploy"]> : never;
|
|
28
|
+
export type StateMutability = "nonpayable" | "payable" | "view";
|
|
29
|
+
export type BaseOverrides = Omit<TransactionRequest, "to" | "data">;
|
|
30
|
+
export type NonPayableOverrides = Omit<BaseOverrides, "value" | "blockTag" | "enableCcipRead">;
|
|
31
|
+
export type PayableOverrides = Omit<BaseOverrides, "blockTag" | "enableCcipRead">;
|
|
32
|
+
export type ViewOverrides = Omit<TransactionRequest, "to" | "data">;
|
|
33
|
+
export type Overrides<S extends StateMutability> = S extends "nonpayable" ? NonPayableOverrides : S extends "payable" ? PayableOverrides : ViewOverrides;
|
|
34
|
+
export type PostfixOverrides<A extends Array<any>, S extends StateMutability> = A | [...A, Overrides<S>];
|
|
35
|
+
export type ContractMethodArgs<A extends Array<any>, S extends StateMutability> = PostfixOverrides<{
|
|
36
|
+
[I in keyof A]-?: A[I] | Typed;
|
|
37
|
+
}, S>;
|
|
38
|
+
export type DefaultReturnType<R> = R extends Array<any> ? R[0] : R;
|
|
39
|
+
export interface TypedContractMethod<A extends Array<any> = Array<any>, R = any, S extends StateMutability = "payable"> {
|
|
40
|
+
(...args: ContractMethodArgs<A, S>): S extends "view" ? Promise<DefaultReturnType<R>> : Promise<ContractTransactionResponse>;
|
|
41
|
+
name: string;
|
|
42
|
+
fragment: FunctionFragment;
|
|
43
|
+
getFragment(...args: ContractMethodArgs<A, S>): FunctionFragment;
|
|
44
|
+
populateTransaction(...args: ContractMethodArgs<A, S>): Promise<ContractTransaction>;
|
|
45
|
+
staticCall(...args: ContractMethodArgs<A, "view">): Promise<DefaultReturnType<R>>;
|
|
46
|
+
send(...args: ContractMethodArgs<A, S>): Promise<ContractTransactionResponse>;
|
|
47
|
+
estimateGas(...args: ContractMethodArgs<A, S>): Promise<bigint>;
|
|
48
|
+
staticCallResult(...args: ContractMethodArgs<A, "view">): Promise<R>;
|
|
49
|
+
}
|
|
50
|
+
export {};
|
|
File without changes
|