@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,272 @@
|
|
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 IWrappedTokenInterface extends Interface {
|
27
|
+
getFunction(
|
28
|
+
nameOrSignature:
|
29
|
+
| "allowance"
|
30
|
+
| "approve"
|
31
|
+
| "balanceOf"
|
32
|
+
| "deposit"
|
33
|
+
| "totalSupply"
|
34
|
+
| "transfer"
|
35
|
+
| "transferFrom"
|
36
|
+
): FunctionFragment;
|
37
|
+
|
38
|
+
getEvent(nameOrSignatureOrTopic: "Approval" | "Transfer"): EventFragment;
|
39
|
+
|
40
|
+
encodeFunctionData(
|
41
|
+
functionFragment: "allowance",
|
42
|
+
values: [AddressLike, AddressLike]
|
43
|
+
): string;
|
44
|
+
encodeFunctionData(
|
45
|
+
functionFragment: "approve",
|
46
|
+
values: [AddressLike, BigNumberish]
|
47
|
+
): string;
|
48
|
+
encodeFunctionData(
|
49
|
+
functionFragment: "balanceOf",
|
50
|
+
values: [AddressLike]
|
51
|
+
): string;
|
52
|
+
encodeFunctionData(functionFragment: "deposit", values?: undefined): string;
|
53
|
+
encodeFunctionData(
|
54
|
+
functionFragment: "totalSupply",
|
55
|
+
values?: undefined
|
56
|
+
): string;
|
57
|
+
encodeFunctionData(
|
58
|
+
functionFragment: "transfer",
|
59
|
+
values: [AddressLike, BigNumberish]
|
60
|
+
): string;
|
61
|
+
encodeFunctionData(
|
62
|
+
functionFragment: "transferFrom",
|
63
|
+
values: [AddressLike, AddressLike, BigNumberish]
|
64
|
+
): string;
|
65
|
+
|
66
|
+
decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result;
|
67
|
+
decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
|
68
|
+
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
69
|
+
decodeFunctionResult(functionFragment: "deposit", data: BytesLike): Result;
|
70
|
+
decodeFunctionResult(
|
71
|
+
functionFragment: "totalSupply",
|
72
|
+
data: BytesLike
|
73
|
+
): Result;
|
74
|
+
decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result;
|
75
|
+
decodeFunctionResult(
|
76
|
+
functionFragment: "transferFrom",
|
77
|
+
data: BytesLike
|
78
|
+
): Result;
|
79
|
+
}
|
80
|
+
|
81
|
+
export namespace ApprovalEvent {
|
82
|
+
export type InputTuple = [
|
83
|
+
owner: AddressLike,
|
84
|
+
spender: AddressLike,
|
85
|
+
value: BigNumberish
|
86
|
+
];
|
87
|
+
export type OutputTuple = [owner: string, spender: string, value: bigint];
|
88
|
+
export interface OutputObject {
|
89
|
+
owner: string;
|
90
|
+
spender: string;
|
91
|
+
value: bigint;
|
92
|
+
}
|
93
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
94
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
95
|
+
export type Log = TypedEventLog<Event>;
|
96
|
+
export type LogDescription = TypedLogDescription<Event>;
|
97
|
+
}
|
98
|
+
|
99
|
+
export namespace TransferEvent {
|
100
|
+
export type InputTuple = [
|
101
|
+
from: AddressLike,
|
102
|
+
to: AddressLike,
|
103
|
+
value: BigNumberish
|
104
|
+
];
|
105
|
+
export type OutputTuple = [from: string, to: string, value: bigint];
|
106
|
+
export interface OutputObject {
|
107
|
+
from: string;
|
108
|
+
to: string;
|
109
|
+
value: bigint;
|
110
|
+
}
|
111
|
+
export type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
112
|
+
export type Filter = TypedDeferredTopicFilter<Event>;
|
113
|
+
export type Log = TypedEventLog<Event>;
|
114
|
+
export type LogDescription = TypedLogDescription<Event>;
|
115
|
+
}
|
116
|
+
|
117
|
+
export interface IWrappedToken extends BaseContract {
|
118
|
+
contractName: "IWrappedToken";
|
119
|
+
|
120
|
+
connect(runner?: ContractRunner | null): IWrappedToken;
|
121
|
+
waitForDeployment(): Promise<this>;
|
122
|
+
|
123
|
+
interface: IWrappedTokenInterface;
|
124
|
+
|
125
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
126
|
+
event: TCEvent,
|
127
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
128
|
+
toBlock?: string | number | undefined
|
129
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
130
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
131
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
132
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
133
|
+
toBlock?: string | number | undefined
|
134
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
135
|
+
|
136
|
+
on<TCEvent extends TypedContractEvent>(
|
137
|
+
event: TCEvent,
|
138
|
+
listener: TypedListener<TCEvent>
|
139
|
+
): Promise<this>;
|
140
|
+
on<TCEvent extends TypedContractEvent>(
|
141
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
142
|
+
listener: TypedListener<TCEvent>
|
143
|
+
): Promise<this>;
|
144
|
+
|
145
|
+
once<TCEvent extends TypedContractEvent>(
|
146
|
+
event: TCEvent,
|
147
|
+
listener: TypedListener<TCEvent>
|
148
|
+
): Promise<this>;
|
149
|
+
once<TCEvent extends TypedContractEvent>(
|
150
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
151
|
+
listener: TypedListener<TCEvent>
|
152
|
+
): Promise<this>;
|
153
|
+
|
154
|
+
listeners<TCEvent extends TypedContractEvent>(
|
155
|
+
event: TCEvent
|
156
|
+
): Promise<Array<TypedListener<TCEvent>>>;
|
157
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
158
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(
|
159
|
+
event?: TCEvent
|
160
|
+
): Promise<this>;
|
161
|
+
|
162
|
+
allowance: TypedContractMethod<
|
163
|
+
[owner: AddressLike, spender: AddressLike],
|
164
|
+
[bigint],
|
165
|
+
"view"
|
166
|
+
>;
|
167
|
+
|
168
|
+
approve: TypedContractMethod<
|
169
|
+
[spender: AddressLike, value: BigNumberish],
|
170
|
+
[boolean],
|
171
|
+
"nonpayable"
|
172
|
+
>;
|
173
|
+
|
174
|
+
balanceOf: TypedContractMethod<[account: AddressLike], [bigint], "view">;
|
175
|
+
|
176
|
+
deposit: TypedContractMethod<[], [boolean], "payable">;
|
177
|
+
|
178
|
+
totalSupply: TypedContractMethod<[], [bigint], "view">;
|
179
|
+
|
180
|
+
transfer: TypedContractMethod<
|
181
|
+
[to: AddressLike, value: BigNumberish],
|
182
|
+
[boolean],
|
183
|
+
"nonpayable"
|
184
|
+
>;
|
185
|
+
|
186
|
+
transferFrom: TypedContractMethod<
|
187
|
+
[from: AddressLike, to: AddressLike, value: BigNumberish],
|
188
|
+
[boolean],
|
189
|
+
"nonpayable"
|
190
|
+
>;
|
191
|
+
|
192
|
+
getFunction<T extends ContractMethod = ContractMethod>(
|
193
|
+
key: string | FunctionFragment
|
194
|
+
): T;
|
195
|
+
|
196
|
+
getFunction(
|
197
|
+
nameOrSignature: "allowance"
|
198
|
+
): TypedContractMethod<
|
199
|
+
[owner: AddressLike, spender: AddressLike],
|
200
|
+
[bigint],
|
201
|
+
"view"
|
202
|
+
>;
|
203
|
+
getFunction(
|
204
|
+
nameOrSignature: "approve"
|
205
|
+
): TypedContractMethod<
|
206
|
+
[spender: AddressLike, value: BigNumberish],
|
207
|
+
[boolean],
|
208
|
+
"nonpayable"
|
209
|
+
>;
|
210
|
+
getFunction(
|
211
|
+
nameOrSignature: "balanceOf"
|
212
|
+
): TypedContractMethod<[account: AddressLike], [bigint], "view">;
|
213
|
+
getFunction(
|
214
|
+
nameOrSignature: "deposit"
|
215
|
+
): TypedContractMethod<[], [boolean], "payable">;
|
216
|
+
getFunction(
|
217
|
+
nameOrSignature: "totalSupply"
|
218
|
+
): TypedContractMethod<[], [bigint], "view">;
|
219
|
+
getFunction(
|
220
|
+
nameOrSignature: "transfer"
|
221
|
+
): TypedContractMethod<
|
222
|
+
[to: AddressLike, value: BigNumberish],
|
223
|
+
[boolean],
|
224
|
+
"nonpayable"
|
225
|
+
>;
|
226
|
+
getFunction(
|
227
|
+
nameOrSignature: "transferFrom"
|
228
|
+
): TypedContractMethod<
|
229
|
+
[from: AddressLike, to: AddressLike, value: BigNumberish],
|
230
|
+
[boolean],
|
231
|
+
"nonpayable"
|
232
|
+
>;
|
233
|
+
|
234
|
+
getEvent(
|
235
|
+
key: "Approval"
|
236
|
+
): TypedContractEvent<
|
237
|
+
ApprovalEvent.InputTuple,
|
238
|
+
ApprovalEvent.OutputTuple,
|
239
|
+
ApprovalEvent.OutputObject
|
240
|
+
>;
|
241
|
+
getEvent(
|
242
|
+
key: "Transfer"
|
243
|
+
): TypedContractEvent<
|
244
|
+
TransferEvent.InputTuple,
|
245
|
+
TransferEvent.OutputTuple,
|
246
|
+
TransferEvent.OutputObject
|
247
|
+
>;
|
248
|
+
|
249
|
+
filters: {
|
250
|
+
"Approval(address,address,uint256)": TypedContractEvent<
|
251
|
+
ApprovalEvent.InputTuple,
|
252
|
+
ApprovalEvent.OutputTuple,
|
253
|
+
ApprovalEvent.OutputObject
|
254
|
+
>;
|
255
|
+
Approval: TypedContractEvent<
|
256
|
+
ApprovalEvent.InputTuple,
|
257
|
+
ApprovalEvent.OutputTuple,
|
258
|
+
ApprovalEvent.OutputObject
|
259
|
+
>;
|
260
|
+
|
261
|
+
"Transfer(address,address,uint256)": TypedContractEvent<
|
262
|
+
TransferEvent.InputTuple,
|
263
|
+
TransferEvent.OutputTuple,
|
264
|
+
TransferEvent.OutputObject
|
265
|
+
>;
|
266
|
+
Transfer: TypedContractEvent<
|
267
|
+
TransferEvent.InputTuple,
|
268
|
+
TransferEvent.OutputTuple,
|
269
|
+
TransferEvent.OutputObject
|
270
|
+
>;
|
271
|
+
};
|
272
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
2
|
+
/* tslint:disable */
|
3
|
+
/* eslint-disable */
|
4
|
+
export type { IExecutorsRegistry } from "./IExecutorsRegistry";
|
5
|
+
export type { IGovernance } from "./IGovernance";
|
6
|
+
export type { INeutralsRegistry } from "./INeutralsRegistry";
|
7
|
+
export type { IQParameters } from "./IQParameters";
|
8
|
+
export type { ISLCCore } from "./ISLCCore";
|
9
|
+
export type { ISLCCoreFactory } from "./ISLCCoreFactory";
|
10
|
+
export type { IWrappedToken } from "./IWrappedToken";
|
@@ -0,0 +1,71 @@
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
2
|
+
/* tslint:disable */
|
3
|
+
/* eslint-disable */
|
4
|
+
import type {
|
5
|
+
BaseContract,
|
6
|
+
FunctionFragment,
|
7
|
+
Interface,
|
8
|
+
ContractRunner,
|
9
|
+
ContractMethod,
|
10
|
+
Listener,
|
11
|
+
} from "ethers";
|
12
|
+
import type {
|
13
|
+
TypedContractEvent,
|
14
|
+
TypedDeferredTopicFilter,
|
15
|
+
TypedEventLog,
|
16
|
+
TypedListener,
|
17
|
+
} from "../../common";
|
18
|
+
|
19
|
+
export interface ErrorsInterface extends Interface {}
|
20
|
+
|
21
|
+
export interface Errors extends BaseContract {
|
22
|
+
contractName: "Errors";
|
23
|
+
|
24
|
+
connect(runner?: ContractRunner | null): Errors;
|
25
|
+
waitForDeployment(): Promise<this>;
|
26
|
+
|
27
|
+
interface: ErrorsInterface;
|
28
|
+
|
29
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
30
|
+
event: TCEvent,
|
31
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
32
|
+
toBlock?: string | number | undefined
|
33
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
34
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
35
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
36
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
37
|
+
toBlock?: string | number | undefined
|
38
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
39
|
+
|
40
|
+
on<TCEvent extends TypedContractEvent>(
|
41
|
+
event: TCEvent,
|
42
|
+
listener: TypedListener<TCEvent>
|
43
|
+
): Promise<this>;
|
44
|
+
on<TCEvent extends TypedContractEvent>(
|
45
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
46
|
+
listener: TypedListener<TCEvent>
|
47
|
+
): Promise<this>;
|
48
|
+
|
49
|
+
once<TCEvent extends TypedContractEvent>(
|
50
|
+
event: TCEvent,
|
51
|
+
listener: TypedListener<TCEvent>
|
52
|
+
): Promise<this>;
|
53
|
+
once<TCEvent extends TypedContractEvent>(
|
54
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
55
|
+
listener: TypedListener<TCEvent>
|
56
|
+
): Promise<this>;
|
57
|
+
|
58
|
+
listeners<TCEvent extends TypedContractEvent>(
|
59
|
+
event: TCEvent
|
60
|
+
): Promise<Array<TypedListener<TCEvent>>>;
|
61
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
62
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(
|
63
|
+
event?: TCEvent
|
64
|
+
): Promise<this>;
|
65
|
+
|
66
|
+
getFunction<T extends ContractMethod = ContractMethod>(
|
67
|
+
key: string | FunctionFragment
|
68
|
+
): T;
|
69
|
+
|
70
|
+
filters: {};
|
71
|
+
}
|
@@ -0,0 +1,71 @@
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
2
|
+
/* tslint:disable */
|
3
|
+
/* eslint-disable */
|
4
|
+
import type {
|
5
|
+
BaseContract,
|
6
|
+
FunctionFragment,
|
7
|
+
Interface,
|
8
|
+
ContractRunner,
|
9
|
+
ContractMethod,
|
10
|
+
Listener,
|
11
|
+
} from "ethers";
|
12
|
+
import type {
|
13
|
+
TypedContractEvent,
|
14
|
+
TypedDeferredTopicFilter,
|
15
|
+
TypedEventLog,
|
16
|
+
TypedListener,
|
17
|
+
} from "../../common";
|
18
|
+
|
19
|
+
export interface NeutralsSelectionInterface extends Interface {}
|
20
|
+
|
21
|
+
export interface NeutralsSelection extends BaseContract {
|
22
|
+
contractName: "NeutralsSelection";
|
23
|
+
|
24
|
+
connect(runner?: ContractRunner | null): NeutralsSelection;
|
25
|
+
waitForDeployment(): Promise<this>;
|
26
|
+
|
27
|
+
interface: NeutralsSelectionInterface;
|
28
|
+
|
29
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
30
|
+
event: TCEvent,
|
31
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
32
|
+
toBlock?: string | number | undefined
|
33
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
34
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
35
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
36
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
37
|
+
toBlock?: string | number | undefined
|
38
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
39
|
+
|
40
|
+
on<TCEvent extends TypedContractEvent>(
|
41
|
+
event: TCEvent,
|
42
|
+
listener: TypedListener<TCEvent>
|
43
|
+
): Promise<this>;
|
44
|
+
on<TCEvent extends TypedContractEvent>(
|
45
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
46
|
+
listener: TypedListener<TCEvent>
|
47
|
+
): Promise<this>;
|
48
|
+
|
49
|
+
once<TCEvent extends TypedContractEvent>(
|
50
|
+
event: TCEvent,
|
51
|
+
listener: TypedListener<TCEvent>
|
52
|
+
): Promise<this>;
|
53
|
+
once<TCEvent extends TypedContractEvent>(
|
54
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
55
|
+
listener: TypedListener<TCEvent>
|
56
|
+
): Promise<this>;
|
57
|
+
|
58
|
+
listeners<TCEvent extends TypedContractEvent>(
|
59
|
+
event: TCEvent
|
60
|
+
): Promise<Array<TypedListener<TCEvent>>>;
|
61
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
62
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(
|
63
|
+
event?: TCEvent
|
64
|
+
): Promise<this>;
|
65
|
+
|
66
|
+
getFunction<T extends ContractMethod = ContractMethod>(
|
67
|
+
key: string | FunctionFragment
|
68
|
+
): T;
|
69
|
+
|
70
|
+
filters: {};
|
71
|
+
}
|