@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,215 @@
|
|
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 declare namespace IGovernance {
|
25
|
+
export type OperationDataStruct = {
|
26
|
+
operation_: BigNumberish;
|
27
|
+
to_: AddressLike;
|
28
|
+
data_: BytesLike;
|
29
|
+
value_: BigNumberish;
|
30
|
+
};
|
31
|
+
|
32
|
+
export type OperationDataStructOutput = [
|
33
|
+
operation_: bigint,
|
34
|
+
to_: string,
|
35
|
+
data_: string,
|
36
|
+
value_: bigint
|
37
|
+
] & { operation_: bigint; to_: string; data_: string; value_: bigint };
|
38
|
+
|
39
|
+
export type OperationBundleStruct = {
|
40
|
+
operations: IGovernance.OperationDataStruct[];
|
41
|
+
};
|
42
|
+
|
43
|
+
export type OperationBundleStructOutput = [
|
44
|
+
operations: IGovernance.OperationDataStructOutput[]
|
45
|
+
] & { operations: IGovernance.OperationDataStructOutput[] };
|
46
|
+
}
|
47
|
+
|
48
|
+
export interface IGovernanceInterface extends Interface {
|
49
|
+
getFunction(
|
50
|
+
nameOrSignature:
|
51
|
+
| "getParametersRegistry"
|
52
|
+
| "getSystemToken"
|
53
|
+
| "processServiceRequest"
|
54
|
+
| "proposeOperations"
|
55
|
+
| "supportsInterface"
|
56
|
+
): FunctionFragment;
|
57
|
+
|
58
|
+
encodeFunctionData(
|
59
|
+
functionFragment: "getParametersRegistry",
|
60
|
+
values?: undefined
|
61
|
+
): string;
|
62
|
+
encodeFunctionData(
|
63
|
+
functionFragment: "getSystemToken",
|
64
|
+
values?: undefined
|
65
|
+
): string;
|
66
|
+
encodeFunctionData(
|
67
|
+
functionFragment: "processServiceRequest",
|
68
|
+
values: [AddressLike, BigNumberish, BigNumberish, string, BytesLike]
|
69
|
+
): string;
|
70
|
+
encodeFunctionData(
|
71
|
+
functionFragment: "proposeOperations",
|
72
|
+
values: [BigNumberish, IGovernance.OperationBundleStruct]
|
73
|
+
): string;
|
74
|
+
encodeFunctionData(
|
75
|
+
functionFragment: "supportsInterface",
|
76
|
+
values: [BytesLike]
|
77
|
+
): string;
|
78
|
+
|
79
|
+
decodeFunctionResult(
|
80
|
+
functionFragment: "getParametersRegistry",
|
81
|
+
data: BytesLike
|
82
|
+
): Result;
|
83
|
+
decodeFunctionResult(
|
84
|
+
functionFragment: "getSystemToken",
|
85
|
+
data: BytesLike
|
86
|
+
): Result;
|
87
|
+
decodeFunctionResult(
|
88
|
+
functionFragment: "processServiceRequest",
|
89
|
+
data: BytesLike
|
90
|
+
): Result;
|
91
|
+
decodeFunctionResult(
|
92
|
+
functionFragment: "proposeOperations",
|
93
|
+
data: BytesLike
|
94
|
+
): Result;
|
95
|
+
decodeFunctionResult(
|
96
|
+
functionFragment: "supportsInterface",
|
97
|
+
data: BytesLike
|
98
|
+
): Result;
|
99
|
+
}
|
100
|
+
|
101
|
+
export interface IGovernance extends BaseContract {
|
102
|
+
contractName: "IGovernance";
|
103
|
+
|
104
|
+
connect(runner?: ContractRunner | null): IGovernance;
|
105
|
+
waitForDeployment(): Promise<this>;
|
106
|
+
|
107
|
+
interface: IGovernanceInterface;
|
108
|
+
|
109
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
110
|
+
event: TCEvent,
|
111
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
112
|
+
toBlock?: string | number | undefined
|
113
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
114
|
+
queryFilter<TCEvent extends TypedContractEvent>(
|
115
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
116
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
117
|
+
toBlock?: string | number | undefined
|
118
|
+
): Promise<Array<TypedEventLog<TCEvent>>>;
|
119
|
+
|
120
|
+
on<TCEvent extends TypedContractEvent>(
|
121
|
+
event: TCEvent,
|
122
|
+
listener: TypedListener<TCEvent>
|
123
|
+
): Promise<this>;
|
124
|
+
on<TCEvent extends TypedContractEvent>(
|
125
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
126
|
+
listener: TypedListener<TCEvent>
|
127
|
+
): Promise<this>;
|
128
|
+
|
129
|
+
once<TCEvent extends TypedContractEvent>(
|
130
|
+
event: TCEvent,
|
131
|
+
listener: TypedListener<TCEvent>
|
132
|
+
): Promise<this>;
|
133
|
+
once<TCEvent extends TypedContractEvent>(
|
134
|
+
filter: TypedDeferredTopicFilter<TCEvent>,
|
135
|
+
listener: TypedListener<TCEvent>
|
136
|
+
): Promise<this>;
|
137
|
+
|
138
|
+
listeners<TCEvent extends TypedContractEvent>(
|
139
|
+
event: TCEvent
|
140
|
+
): Promise<Array<TypedListener<TCEvent>>>;
|
141
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
142
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(
|
143
|
+
event?: TCEvent
|
144
|
+
): Promise<this>;
|
145
|
+
|
146
|
+
getParametersRegistry: TypedContractMethod<[], [string], "view">;
|
147
|
+
|
148
|
+
getSystemToken: TypedContractMethod<[], [string], "view">;
|
149
|
+
|
150
|
+
processServiceRequest: TypedContractMethod<
|
151
|
+
[
|
152
|
+
requester_: AddressLike,
|
153
|
+
serviceFee_: BigNumberish,
|
154
|
+
neutralsNumber_: BigNumberish,
|
155
|
+
additionalLink_: string,
|
156
|
+
data_: BytesLike
|
157
|
+
],
|
158
|
+
[boolean],
|
159
|
+
"payable"
|
160
|
+
>;
|
161
|
+
|
162
|
+
proposeOperations: TypedContractMethod<
|
163
|
+
[
|
164
|
+
proposalId_: BigNumberish,
|
165
|
+
operationBundle_: IGovernance.OperationBundleStruct
|
166
|
+
],
|
167
|
+
[void],
|
168
|
+
"nonpayable"
|
169
|
+
>;
|
170
|
+
|
171
|
+
supportsInterface: TypedContractMethod<
|
172
|
+
[interfaceId: BytesLike],
|
173
|
+
[boolean],
|
174
|
+
"view"
|
175
|
+
>;
|
176
|
+
|
177
|
+
getFunction<T extends ContractMethod = ContractMethod>(
|
178
|
+
key: string | FunctionFragment
|
179
|
+
): T;
|
180
|
+
|
181
|
+
getFunction(
|
182
|
+
nameOrSignature: "getParametersRegistry"
|
183
|
+
): TypedContractMethod<[], [string], "view">;
|
184
|
+
getFunction(
|
185
|
+
nameOrSignature: "getSystemToken"
|
186
|
+
): TypedContractMethod<[], [string], "view">;
|
187
|
+
getFunction(
|
188
|
+
nameOrSignature: "processServiceRequest"
|
189
|
+
): TypedContractMethod<
|
190
|
+
[
|
191
|
+
requester_: AddressLike,
|
192
|
+
serviceFee_: BigNumberish,
|
193
|
+
neutralsNumber_: BigNumberish,
|
194
|
+
additionalLink_: string,
|
195
|
+
data_: BytesLike
|
196
|
+
],
|
197
|
+
[boolean],
|
198
|
+
"payable"
|
199
|
+
>;
|
200
|
+
getFunction(
|
201
|
+
nameOrSignature: "proposeOperations"
|
202
|
+
): TypedContractMethod<
|
203
|
+
[
|
204
|
+
proposalId_: BigNumberish,
|
205
|
+
operationBundle_: IGovernance.OperationBundleStruct
|
206
|
+
],
|
207
|
+
[void],
|
208
|
+
"nonpayable"
|
209
|
+
>;
|
210
|
+
getFunction(
|
211
|
+
nameOrSignature: "supportsInterface"
|
212
|
+
): TypedContractMethod<[interfaceId: BytesLike], [boolean], "view">;
|
213
|
+
|
214
|
+
filters: {};
|
215
|
+
}
|