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