@web3dotorg/evm-slc-core-sdk 0.3.2
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/common.ts +131 -0
- package/constants.ts +34 -0
- package/contracts/governance/ExecutorsRegistry.ts +1249 -0
- package/contracts/governance/Governance.ts +1740 -0
- package/contracts/governance/NeutralsRegistry.ts +1393 -0
- package/contracts/governance/ParameterRegistry.ts +832 -0
- package/contracts/governance/index.ts +7 -0
- package/contracts/index.ts +15 -0
- package/contracts/interfaces/IExecutorsRegistry.ts +601 -0
- package/contracts/interfaces/IGovernance.ts +215 -0
- package/contracts/interfaces/INeutralsRegistry.ts +624 -0
- package/contracts/interfaces/IQParameters.ts +109 -0
- package/contracts/interfaces/ISLCCore.ts +289 -0
- package/contracts/interfaces/ISLCCoreFactory.ts +217 -0
- package/contracts/interfaces/IWrappedToken.ts +272 -0
- package/contracts/interfaces/index.ts +10 -0
- package/contracts/libs/Errors.ts +71 -0
- package/contracts/libs/NeutralsSelection.ts +71 -0
- package/contracts/libs/index.ts +5 -0
- package/contracts/mocks/MockGovernance.ts +389 -0
- package/contracts/mocks/MockNeutralsRegistry.ts +791 -0
- package/contracts/mocks/SimpleContract.ts +110 -0
- package/contracts/mocks/WrappedToken.ts +334 -0
- package/contracts/mocks/index.ts +7 -0
- package/contracts/slc-core/SLCCore.ts +397 -0
- package/contracts/slc-core/SLCCoreFactory.ts +559 -0
- package/contracts/slc-core/index.ts +5 -0
- package/contracts/token/Token.ts +399 -0
- package/contracts/token/index.ts +4 -0
- package/factories/contracts/governance/ExecutorsRegistry__factory.ts +1240 -0
- package/factories/contracts/governance/Governance__factory.ts +2328 -0
- package/factories/contracts/governance/NeutralsRegistry__factory.ts +1491 -0
- package/factories/contracts/governance/ParameterRegistry__factory.ts +834 -0
- package/factories/contracts/governance/index.ts +7 -0
- package/factories/contracts/index.ts +9 -0
- package/factories/contracts/interfaces/IExecutorsRegistry__factory.ts +428 -0
- package/factories/contracts/interfaces/IGovernance__factory.ts +153 -0
- package/factories/contracts/interfaces/INeutralsRegistry__factory.ts +527 -0
- package/factories/contracts/interfaces/IQParameters__factory.ts +101 -0
- package/factories/contracts/interfaces/ISLCCoreFactory__factory.ts +197 -0
- package/factories/contracts/interfaces/ISLCCore__factory.ts +227 -0
- package/factories/contracts/interfaces/IWrappedToken__factory.ts +221 -0
- package/factories/contracts/interfaces/index.ts +10 -0
- package/factories/contracts/libs/Errors__factory.ts +205 -0
- package/factories/contracts/libs/NeutralsSelection__factory.ts +103 -0
- package/factories/contracts/libs/index.ts +5 -0
- package/factories/contracts/mocks/MockGovernance__factory.ts +353 -0
- package/factories/contracts/mocks/MockNeutralsRegistry__factory.ts +730 -0
- package/factories/contracts/mocks/SimpleContract__factory.ts +110 -0
- package/factories/contracts/mocks/WrappedToken__factory.ts +433 -0
- package/factories/contracts/mocks/index.ts +7 -0
- package/factories/contracts/slc-core/SLCCoreFactory__factory.ts +568 -0
- package/factories/contracts/slc-core/SLCCore__factory.ts +373 -0
- package/factories/contracts/slc-core/index.ts +5 -0
- package/factories/contracts/token/Token__factory.ts +505 -0
- package/factories/contracts/token/index.ts +4 -0
- package/index.ts +38 -0
- package/package.json +25 -0
@@ -0,0 +1,109 @@
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
2
|
+
/* tslint:disable */
|
3
|
+
/* eslint-disable */
|
4
|
+
import type {
|
5
|
+
BaseContract,
|
6
|
+
BytesLike,
|
7
|
+
FunctionFragment,
|
8
|
+
Result,
|
9
|
+
Interface,
|
10
|
+
ContractRunner,
|
11
|
+
ContractMethod,
|
12
|
+
Listener,
|
13
|
+
} from "ethers";
|
14
|
+
import type {
|
15
|
+
TypedContractEvent,
|
16
|
+
TypedDeferredTopicFilter,
|
17
|
+
TypedEventLog,
|
18
|
+
TypedListener,
|
19
|
+
TypedContractMethod,
|
20
|
+
} from "../../common";
|
21
|
+
|
22
|
+
export interface IQParametersInterface extends Interface {
|
23
|
+
getFunction(
|
24
|
+
nameOrSignature: "getAddr" | "getBytes32" | "getString" | "getUint"
|
25
|
+
): FunctionFragment;
|
26
|
+
|
27
|
+
encodeFunctionData(functionFragment: "getAddr", values: [string]): string;
|
28
|
+
encodeFunctionData(functionFragment: "getBytes32", values: [string]): string;
|
29
|
+
encodeFunctionData(functionFragment: "getString", values: [string]): string;
|
30
|
+
encodeFunctionData(functionFragment: "getUint", values: [string]): string;
|
31
|
+
|
32
|
+
decodeFunctionResult(functionFragment: "getAddr", data: BytesLike): Result;
|
33
|
+
decodeFunctionResult(functionFragment: "getBytes32", data: BytesLike): Result;
|
34
|
+
decodeFunctionResult(functionFragment: "getString", data: BytesLike): Result;
|
35
|
+
decodeFunctionResult(functionFragment: "getUint", data: BytesLike): Result;
|
36
|
+
}
|
37
|
+
|
38
|
+
export interface IQParameters extends BaseContract {
|
39
|
+
contractName: "IQParameters";
|
40
|
+
|
41
|
+
connect(runner?: ContractRunner | null): IQParameters;
|
42
|
+
waitForDeployment(): Promise<this>;
|
43
|
+
|
44
|
+
interface: IQParametersInterface;
|
45
|
+
|
46
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
47
|
+
event: TCEvent,
|
48
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
49
|
+
toBlock?: string | number | undefined
|
50
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
51
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
52
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
53
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
54
|
+
toBlock?: string | number | undefined
|
55
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
56
|
+
|
57
|
+
on<TCEvent extends TypedContractEvent>(
|
58
|
+
event: TCEvent,
|
59
|
+
listener: TypedListener<TCEvent>
|
60
|
+
): Promise<this>;
|
61
|
+
on<TCEvent extends TypedContractEvent>(
|
62
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
63
|
+
listener: TypedListener<TCEvent>
|
64
|
+
): Promise<this>;
|
65
|
+
|
66
|
+
once<TCEvent extends TypedContractEvent>(
|
67
|
+
event: TCEvent,
|
68
|
+
listener: TypedListener<TCEvent>
|
69
|
+
): Promise<this>;
|
70
|
+
once<TCEvent extends TypedContractEvent>(
|
71
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
72
|
+
listener: TypedListener<TCEvent>
|
73
|
+
): Promise<this>;
|
74
|
+
|
75
|
+
listeners<TCEvent extends TypedContractEvent>(
|
76
|
+
event: TCEvent
|
77
|
+
): Promise<Array<TypedListener<TCEvent>>>;
|
78
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
79
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(
|
80
|
+
event?: TCEvent
|
81
|
+
): Promise<this>;
|
82
|
+
|
83
|
+
getAddr: TypedContractMethod<[_key: string], [string], "view">;
|
84
|
+
|
85
|
+
getBytes32: TypedContractMethod<[_key: string], [string], "view">;
|
86
|
+
|
87
|
+
getString: TypedContractMethod<[_key: string], [string], "view">;
|
88
|
+
|
89
|
+
getUint: TypedContractMethod<[_key: string], [bigint], "view">;
|
90
|
+
|
91
|
+
getFunction<T extends ContractMethod = ContractMethod>(
|
92
|
+
key: string | FunctionFragment
|
93
|
+
): T;
|
94
|
+
|
95
|
+
getFunction(
|
96
|
+
nameOrSignature: "getAddr"
|
97
|
+
): TypedContractMethod<[_key: string], [string], "view">;
|
98
|
+
getFunction(
|
99
|
+
nameOrSignature: "getBytes32"
|
100
|
+
): TypedContractMethod<[_key: string], [string], "view">;
|
101
|
+
getFunction(
|
102
|
+
nameOrSignature: "getString"
|
103
|
+
): TypedContractMethod<[_key: string], [string], "view">;
|
104
|
+
getFunction(
|
105
|
+
nameOrSignature: "getUint"
|
106
|
+
): TypedContractMethod<[_key: string], [bigint], "view">;
|
107
|
+
|
108
|
+
filters: {};
|
109
|
+
}
|
@@ -0,0 +1,289 @@
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
2
|
+
/* tslint:disable */
|
3
|
+
/* eslint-disable */
|
4
|
+
import type {
|
5
|
+
BaseContract,
|
6
|
+
BigNumberish,
|
7
|
+
BytesLike,
|
8
|
+
FunctionFragment,
|
9
|
+
Result,
|
10
|
+
Interface,
|
11
|
+
EventFragment,
|
12
|
+
AddressLike,
|
13
|
+
ContractRunner,
|
14
|
+
ContractMethod,
|
15
|
+
Listener,
|
16
|
+
} from "ethers";
|
17
|
+
import type {
|
18
|
+
TypedContractEvent,
|
19
|
+
TypedDeferredTopicFilter,
|
20
|
+
TypedEventLog,
|
21
|
+
TypedLogDescription,
|
22
|
+
TypedListener,
|
23
|
+
TypedContractMethod,
|
24
|
+
} from "../../common";
|
25
|
+
|
26
|
+
export interface ISLCCoreInterface extends Interface {
|
27
|
+
getFunction(
|
28
|
+
nameOrSignature: "arbitraryExecute" | "requestService" | "supportsInterface"
|
29
|
+
): FunctionFragment;
|
30
|
+
|
31
|
+
getEvent(
|
32
|
+
nameOrSignatureOrTopic:
|
33
|
+
| "ArbitraryExecute"
|
34
|
+
| "SLCInitialized"
|
35
|
+
| "ServiceRequested"
|
36
|
+
): EventFragment;
|
37
|
+
|
38
|
+
encodeFunctionData(
|
39
|
+
functionFragment: "arbitraryExecute",
|
40
|
+
values: [BigNumberish, AddressLike, BytesLike, BigNumberish]
|
41
|
+
): string;
|
42
|
+
encodeFunctionData(
|
43
|
+
functionFragment: "requestService",
|
44
|
+
values: [BigNumberish, BigNumberish, string, BytesLike]
|
45
|
+
): string;
|
46
|
+
encodeFunctionData(
|
47
|
+
functionFragment: "supportsInterface",
|
48
|
+
values: [BytesLike]
|
49
|
+
): string;
|
50
|
+
|
51
|
+
decodeFunctionResult(
|
52
|
+
functionFragment: "arbitraryExecute",
|
53
|
+
data: BytesLike
|
54
|
+
): Result;
|
55
|
+
decodeFunctionResult(
|
56
|
+
functionFragment: "requestService",
|
57
|
+
data: BytesLike
|
58
|
+
): Result;
|
59
|
+
decodeFunctionResult(
|
60
|
+
functionFragment: "supportsInterface",
|
61
|
+
data: BytesLike
|
62
|
+
): Result;
|
63
|
+
}
|
64
|
+
|
65
|
+
export namespace ArbitraryExecuteEvent {
|
66
|
+
export type InputTuple = [
|
67
|
+
operation: BigNumberish,
|
68
|
+
to: AddressLike,
|
69
|
+
data: BytesLike,
|
70
|
+
value: BigNumberish
|
71
|
+
];
|
72
|
+
export type OutputTuple = [
|
73
|
+
operation: bigint,
|
74
|
+
to: string,
|
75
|
+
data: string,
|
76
|
+
value: bigint
|
77
|
+
];
|
78
|
+
export interface OutputObject {
|
79
|
+
operation: bigint;
|
80
|
+
to: string;
|
81
|
+
data: string;
|
82
|
+
value: bigint;
|
83
|
+
}
|
84
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
85
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
86
|
+
export type Log = TypedEventLog<Event>;
|
87
|
+
export type LogDescription = TypedLogDescription<Event>;
|
88
|
+
}
|
89
|
+
|
90
|
+
export namespace SLCInitializedEvent {
|
91
|
+
export type InputTuple = [creator: AddressLike, legalDocumentLink: string];
|
92
|
+
export type OutputTuple = [creator: string, legalDocumentLink: string];
|
93
|
+
export interface OutputObject {
|
94
|
+
creator: string;
|
95
|
+
legalDocumentLink: string;
|
96
|
+
}
|
97
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
98
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
99
|
+
export type Log = TypedEventLog<Event>;
|
100
|
+
export type LogDescription = TypedLogDescription<Event>;
|
101
|
+
}
|
102
|
+
|
103
|
+
export namespace ServiceRequestedEvent {
|
104
|
+
export type InputTuple = [
|
105
|
+
requester: AddressLike,
|
106
|
+
serviceFee: BigNumberish,
|
107
|
+
neutralsNumber: BigNumberish,
|
108
|
+
additionalLink: string
|
109
|
+
];
|
110
|
+
export type OutputTuple = [
|
111
|
+
requester: string,
|
112
|
+
serviceFee: bigint,
|
113
|
+
neutralsNumber: bigint,
|
114
|
+
additionalLink: string
|
115
|
+
];
|
116
|
+
export interface OutputObject {
|
117
|
+
requester: string;
|
118
|
+
serviceFee: bigint;
|
119
|
+
neutralsNumber: bigint;
|
120
|
+
additionalLink: string;
|
121
|
+
}
|
122
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
123
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
124
|
+
export type Log = TypedEventLog<Event>;
|
125
|
+
export type LogDescription = TypedLogDescription<Event>;
|
126
|
+
}
|
127
|
+
|
128
|
+
export interface ISLCCore extends BaseContract {
|
129
|
+
contractName: "ISLCCore";
|
130
|
+
|
131
|
+
connect(runner?: ContractRunner | null): ISLCCore;
|
132
|
+
waitForDeployment(): Promise<this>;
|
133
|
+
|
134
|
+
interface: ISLCCoreInterface;
|
135
|
+
|
136
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
137
|
+
event: TCEvent,
|
138
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
139
|
+
toBlock?: string | number | undefined
|
140
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
141
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
142
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
143
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
144
|
+
toBlock?: string | number | undefined
|
145
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
146
|
+
|
147
|
+
on<TCEvent extends TypedContractEvent>(
|
148
|
+
event: TCEvent,
|
149
|
+
listener: TypedListener<TCEvent>
|
150
|
+
): Promise<this>;
|
151
|
+
on<TCEvent extends TypedContractEvent>(
|
152
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
153
|
+
listener: TypedListener<TCEvent>
|
154
|
+
): Promise<this>;
|
155
|
+
|
156
|
+
once<TCEvent extends TypedContractEvent>(
|
157
|
+
event: TCEvent,
|
158
|
+
listener: TypedListener<TCEvent>
|
159
|
+
): Promise<this>;
|
160
|
+
once<TCEvent extends TypedContractEvent>(
|
161
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
162
|
+
listener: TypedListener<TCEvent>
|
163
|
+
): Promise<this>;
|
164
|
+
|
165
|
+
listeners<TCEvent extends TypedContractEvent>(
|
166
|
+
event: TCEvent
|
167
|
+
): Promise<Array<TypedListener<TCEvent>>>;
|
168
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
169
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(
|
170
|
+
event?: TCEvent
|
171
|
+
): Promise<this>;
|
172
|
+
|
173
|
+
arbitraryExecute: TypedContractMethod<
|
174
|
+
[
|
175
|
+
operation_: BigNumberish,
|
176
|
+
to_: AddressLike,
|
177
|
+
data_: BytesLike,
|
178
|
+
value_: BigNumberish
|
179
|
+
],
|
180
|
+
[boolean],
|
181
|
+
"nonpayable"
|
182
|
+
>;
|
183
|
+
|
184
|
+
requestService: TypedContractMethod<
|
185
|
+
[
|
186
|
+
serviceFee_: BigNumberish,
|
187
|
+
neutralsNumber_: BigNumberish,
|
188
|
+
additionalLink_: string,
|
189
|
+
data_: BytesLike
|
190
|
+
],
|
191
|
+
[boolean],
|
192
|
+
"payable"
|
193
|
+
>;
|
194
|
+
|
195
|
+
supportsInterface: TypedContractMethod<
|
196
|
+
[interfaceId: BytesLike],
|
197
|
+
[boolean],
|
198
|
+
"view"
|
199
|
+
>;
|
200
|
+
|
201
|
+
getFunction<T extends ContractMethod = ContractMethod>(
|
202
|
+
key: string | FunctionFragment
|
203
|
+
): T;
|
204
|
+
|
205
|
+
getFunction(
|
206
|
+
nameOrSignature: "arbitraryExecute"
|
207
|
+
): TypedContractMethod<
|
208
|
+
[
|
209
|
+
operation_: BigNumberish,
|
210
|
+
to_: AddressLike,
|
211
|
+
data_: BytesLike,
|
212
|
+
value_: BigNumberish
|
213
|
+
],
|
214
|
+
[boolean],
|
215
|
+
"nonpayable"
|
216
|
+
>;
|
217
|
+
getFunction(
|
218
|
+
nameOrSignature: "requestService"
|
219
|
+
): TypedContractMethod<
|
220
|
+
[
|
221
|
+
serviceFee_: BigNumberish,
|
222
|
+
neutralsNumber_: BigNumberish,
|
223
|
+
additionalLink_: string,
|
224
|
+
data_: BytesLike
|
225
|
+
],
|
226
|
+
[boolean],
|
227
|
+
"payable"
|
228
|
+
>;
|
229
|
+
getFunction(
|
230
|
+
nameOrSignature: "supportsInterface"
|
231
|
+
): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
|
232
|
+
|
233
|
+
getEvent(
|
234
|
+
key: "ArbitraryExecute"
|
235
|
+
): TypedContractEvent<
|
236
|
+
ArbitraryExecuteEvent.InputTuple,
|
237
|
+
ArbitraryExecuteEvent.OutputTuple,
|
238
|
+
ArbitraryExecuteEvent.OutputObject
|
239
|
+
>;
|
240
|
+
getEvent(
|
241
|
+
key: "SLCInitialized"
|
242
|
+
): TypedContractEvent<
|
243
|
+
SLCInitializedEvent.InputTuple,
|
244
|
+
SLCInitializedEvent.OutputTuple,
|
245
|
+
SLCInitializedEvent.OutputObject
|
246
|
+
>;
|
247
|
+
getEvent(
|
248
|
+
key: "ServiceRequested"
|
249
|
+
): TypedContractEvent<
|
250
|
+
ServiceRequestedEvent.InputTuple,
|
251
|
+
ServiceRequestedEvent.OutputTuple,
|
252
|
+
ServiceRequestedEvent.OutputObject
|
253
|
+
>;
|
254
|
+
|
255
|
+
filters: {
|
256
|
+
"ArbitraryExecute(uint8,address,bytes,uint256)": TypedContractEvent<
|
257
|
+
ArbitraryExecuteEvent.InputTuple,
|
258
|
+
ArbitraryExecuteEvent.OutputTuple,
|
259
|
+
ArbitraryExecuteEvent.OutputObject
|
260
|
+
>;
|
261
|
+
ArbitraryExecute: TypedContractEvent<
|
262
|
+
ArbitraryExecuteEvent.InputTuple,
|
263
|
+
ArbitraryExecuteEvent.OutputTuple,
|
264
|
+
ArbitraryExecuteEvent.OutputObject
|
265
|
+
>;
|
266
|
+
|
267
|
+
"SLCInitialized(address,string)": TypedContractEvent<
|
268
|
+
SLCInitializedEvent.InputTuple,
|
269
|
+
SLCInitializedEvent.OutputTuple,
|
270
|
+
SLCInitializedEvent.OutputObject
|
271
|
+
>;
|
272
|
+
SLCInitialized: TypedContractEvent<
|
273
|
+
SLCInitializedEvent.InputTuple,
|
274
|
+
SLCInitializedEvent.OutputTuple,
|
275
|
+
SLCInitializedEvent.OutputObject
|
276
|
+
>;
|
277
|
+
|
278
|
+
"ServiceRequested(address,uint256,uint256,string)": TypedContractEvent<
|
279
|
+
ServiceRequestedEvent.InputTuple,
|
280
|
+
ServiceRequestedEvent.OutputTuple,
|
281
|
+
ServiceRequestedEvent.OutputObject
|
282
|
+
>;
|
283
|
+
ServiceRequested: TypedContractEvent<
|
284
|
+
ServiceRequestedEvent.InputTuple,
|
285
|
+
ServiceRequestedEvent.OutputTuple,
|
286
|
+
ServiceRequestedEvent.OutputObject
|
287
|
+
>;
|
288
|
+
};
|
289
|
+
}
|
@@ -0,0 +1,217 @@
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
2
|
+
/* tslint:disable */
|
3
|
+
/* eslint-disable */
|
4
|
+
import type {
|
5
|
+
BaseContract,
|
6
|
+
BigNumberish,
|
7
|
+
BytesLike,
|
8
|
+
FunctionFragment,
|
9
|
+
Result,
|
10
|
+
Interface,
|
11
|
+
AddressLike,
|
12
|
+
ContractRunner,
|
13
|
+
ContractMethod,
|
14
|
+
Listener,
|
15
|
+
} from "ethers";
|
16
|
+
import type {
|
17
|
+
TypedContractEvent,
|
18
|
+
TypedDeferredTopicFilter,
|
19
|
+
TypedEventLog,
|
20
|
+
TypedListener,
|
21
|
+
TypedContractMethod,
|
22
|
+
} from "../../common";
|
23
|
+
|
24
|
+
export interface ISLCCoreFactoryInterface extends Interface {
|
25
|
+
getFunction(
|
26
|
+
nameOrSignature:
|
27
|
+
| "deploySLC"
|
28
|
+
| "deploySLCWithGovernance"
|
29
|
+
| "getDeployedSLCs"
|
30
|
+
| "getSalt"
|
31
|
+
| "isSLCCore"
|
32
|
+
| "nonces"
|
33
|
+
| "predictSLCAddress"
|
34
|
+
| "supportsInterface"
|
35
|
+
): FunctionFragment;
|
36
|
+
|
37
|
+
encodeFunctionData(functionFragment: "deploySLC", values: [string]): string;
|
38
|
+
encodeFunctionData(
|
39
|
+
functionFragment: "deploySLCWithGovernance",
|
40
|
+
values: [AddressLike, string]
|
41
|
+
): string;
|
42
|
+
encodeFunctionData(
|
43
|
+
functionFragment: "getDeployedSLCs",
|
44
|
+
values: [BigNumberish, BigNumberish]
|
45
|
+
): string;
|
46
|
+
encodeFunctionData(
|
47
|
+
functionFragment: "getSalt",
|
48
|
+
values: [AddressLike, BigNumberish]
|
49
|
+
): string;
|
50
|
+
encodeFunctionData(
|
51
|
+
functionFragment: "isSLCCore",
|
52
|
+
values: [AddressLike]
|
53
|
+
): string;
|
54
|
+
encodeFunctionData(functionFragment: "nonces", values: [AddressLike]): string;
|
55
|
+
encodeFunctionData(
|
56
|
+
functionFragment: "predictSLCAddress",
|
57
|
+
values: [AddressLike, BigNumberish]
|
58
|
+
): string;
|
59
|
+
encodeFunctionData(
|
60
|
+
functionFragment: "supportsInterface",
|
61
|
+
values: [BytesLike]
|
62
|
+
): string;
|
63
|
+
|
64
|
+
decodeFunctionResult(functionFragment: "deploySLC", data: BytesLike): Result;
|
65
|
+
decodeFunctionResult(
|
66
|
+
functionFragment: "deploySLCWithGovernance",
|
67
|
+
data: BytesLike
|
68
|
+
): Result;
|
69
|
+
decodeFunctionResult(
|
70
|
+
functionFragment: "getDeployedSLCs",
|
71
|
+
data: BytesLike
|
72
|
+
): Result;
|
73
|
+
decodeFunctionResult(functionFragment: "getSalt", data: BytesLike): Result;
|
74
|
+
decodeFunctionResult(functionFragment: "isSLCCore", data: BytesLike): Result;
|
75
|
+
decodeFunctionResult(functionFragment: "nonces", data: BytesLike): Result;
|
76
|
+
decodeFunctionResult(
|
77
|
+
functionFragment: "predictSLCAddress",
|
78
|
+
data: BytesLike
|
79
|
+
): Result;
|
80
|
+
decodeFunctionResult(
|
81
|
+
functionFragment: "supportsInterface",
|
82
|
+
data: BytesLike
|
83
|
+
): Result;
|
84
|
+
}
|
85
|
+
|
86
|
+
export interface ISLCCoreFactory extends BaseContract {
|
87
|
+
contractName: "ISLCCoreFactory";
|
88
|
+
|
89
|
+
connect(runner?: ContractRunner | null): ISLCCoreFactory;
|
90
|
+
waitForDeployment(): Promise<this>;
|
91
|
+
|
92
|
+
interface: ISLCCoreFactoryInterface;
|
93
|
+
|
94
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
95
|
+
event: TCEvent,
|
96
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
97
|
+
toBlock?: string | number | undefined
|
98
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
99
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
100
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
101
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
102
|
+
toBlock?: string | number | undefined
|
103
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
104
|
+
|
105
|
+
on<TCEvent extends TypedContractEvent>(
|
106
|
+
event: TCEvent,
|
107
|
+
listener: TypedListener<TCEvent>
|
108
|
+
): Promise<this>;
|
109
|
+
on<TCEvent extends TypedContractEvent>(
|
110
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
111
|
+
listener: TypedListener<TCEvent>
|
112
|
+
): Promise<this>;
|
113
|
+
|
114
|
+
once<TCEvent extends TypedContractEvent>(
|
115
|
+
event: TCEvent,
|
116
|
+
listener: TypedListener<TCEvent>
|
117
|
+
): Promise<this>;
|
118
|
+
once<TCEvent extends TypedContractEvent>(
|
119
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
120
|
+
listener: TypedListener<TCEvent>
|
121
|
+
): Promise<this>;
|
122
|
+
|
123
|
+
listeners<TCEvent extends TypedContractEvent>(
|
124
|
+
event: TCEvent
|
125
|
+
): Promise<Array<TypedListener<TCEvent>>>;
|
126
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
127
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(
|
128
|
+
event?: TCEvent
|
129
|
+
): Promise<this>;
|
130
|
+
|
131
|
+
deploySLC: TypedContractMethod<
|
132
|
+
[legalDocumentLink_: string],
|
133
|
+
[string],
|
134
|
+
"nonpayable"
|
135
|
+
>;
|
136
|
+
|
137
|
+
deploySLCWithGovernance: TypedContractMethod<
|
138
|
+
[governance_: AddressLike, legalDocumentLink_: string],
|
139
|
+
[string],
|
140
|
+
"nonpayable"
|
141
|
+
>;
|
142
|
+
|
143
|
+
getDeployedSLCs: TypedContractMethod<
|
144
|
+
[offset_: BigNumberish, limit_: BigNumberish],
|
145
|
+
[string[]],
|
146
|
+
"view"
|
147
|
+
>;
|
148
|
+
|
149
|
+
getSalt: TypedContractMethod<
|
150
|
+
[slcDeployer_: AddressLike, nonce_: BigNumberish],
|
151
|
+
[string],
|
152
|
+
"view"
|
153
|
+
>;
|
154
|
+
|
155
|
+
isSLCCore: TypedContractMethod<[toCheck_: AddressLike], [boolean], "view">;
|
156
|
+
|
157
|
+
nonces: TypedContractMethod<[owner_: AddressLike], [bigint], "view">;
|
158
|
+
|
159
|
+
predictSLCAddress: TypedContractMethod<
|
160
|
+
[slcDeployer_: AddressLike, nonce_: BigNumberish],
|
161
|
+
[string],
|
162
|
+
"view"
|
163
|
+
>;
|
164
|
+
|
165
|
+
supportsInterface: TypedContractMethod<
|
166
|
+
[interfaceId: BytesLike],
|
167
|
+
[boolean],
|
168
|
+
"view"
|
169
|
+
>;
|
170
|
+
|
171
|
+
getFunction<T extends ContractMethod = ContractMethod>(
|
172
|
+
key: string | FunctionFragment
|
173
|
+
): T;
|
174
|
+
|
175
|
+
getFunction(
|
176
|
+
nameOrSignature: "deploySLC"
|
177
|
+
): TypedContractMethod<[legalDocumentLink_: string], [string], "nonpayable">;
|
178
|
+
getFunction(
|
179
|
+
nameOrSignature: "deploySLCWithGovernance"
|
180
|
+
): TypedContractMethod<
|
181
|
+
[governance_: AddressLike, legalDocumentLink_: string],
|
182
|
+
[string],
|
183
|
+
"nonpayable"
|
184
|
+
>;
|
185
|
+
getFunction(
|
186
|
+
nameOrSignature: "getDeployedSLCs"
|
187
|
+
): TypedContractMethod<
|
188
|
+
[offset_: BigNumberish, limit_: BigNumberish],
|
189
|
+
[string[]],
|
190
|
+
"view"
|
191
|
+
>;
|
192
|
+
getFunction(
|
193
|
+
nameOrSignature: "getSalt"
|
194
|
+
): TypedContractMethod<
|
195
|
+
[slcDeployer_: AddressLike, nonce_: BigNumberish],
|
196
|
+
[string],
|
197
|
+
"view"
|
198
|
+
>;
|
199
|
+
getFunction(
|
200
|
+
nameOrSignature: "isSLCCore"
|
201
|
+
): TypedContractMethod<[toCheck_: AddressLike], [boolean], "view">;
|
202
|
+
getFunction(
|
203
|
+
nameOrSignature: "nonces"
|
204
|
+
): TypedContractMethod<[owner_: AddressLike], [bigint], "view">;
|
205
|
+
getFunction(
|
206
|
+
nameOrSignature: "predictSLCAddress"
|
207
|
+
): TypedContractMethod<
|
208
|
+
[slcDeployer_: AddressLike, nonce_: BigNumberish],
|
209
|
+
[string],
|
210
|
+
"view"
|
211
|
+
>;
|
212
|
+
getFunction(
|
213
|
+
nameOrSignature: "supportsInterface"
|
214
|
+
): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
|
215
|
+
|
216
|
+
filters: {};
|
217
|
+
}
|