@gearbox-protocol/sdk 1.18.3 → 1.18.4
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/types/@chainlink/contracts/src/v0.8/interfaces/index.d.ts +0 -2
- package/lib/types/contracts/ITokenDistributor.sol/ITokenDistributor.d.ts +198 -0
- package/lib/types/{@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface.js → contracts/ITokenDistributor.sol/ITokenDistributor.js} +0 -0
- package/lib/types/contracts/ITokenDistributor.sol/ITokenDistributorEvents.d.ts +86 -0
- package/lib/types/{@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface.js → contracts/ITokenDistributor.sol/ITokenDistributorEvents.js} +0 -0
- package/lib/types/contracts/ITokenDistributor.sol/ITokenDistributorExceptions.d.ts +27 -0
- package/lib/types/contracts/{support/IOffchainOracle.js → ITokenDistributor.sol/ITokenDistributorExceptions.js} +0 -0
- package/lib/types/contracts/ITokenDistributor.sol/index.d.ts +3 -0
- package/lib/types/contracts/{support/MultiCall.sol → ITokenDistributor.sol}/index.js +0 -0
- package/lib/types/contracts/{support/MultiCall.sol → MultiCall.sol}/Multicall2.d.ts +1 -1
- package/lib/types/contracts/{support/MultiCall.sol → MultiCall.sol}/Multicall2.js +0 -0
- package/lib/types/contracts/{support/MultiCall.sol → MultiCall.sol}/index.d.ts +0 -0
- package/lib/types/contracts/{support → MultiCall.sol}/index.js +0 -0
- package/lib/types/contracts/index.d.ts +4 -2
- package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/index.d.ts +0 -2
- package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/index.js +1 -5
- package/lib/types/factories/contracts/ITokenDistributor.sol/ITokenDistributorEvents__factory.d.ts +18 -0
- package/lib/types/factories/contracts/ITokenDistributor.sol/ITokenDistributorEvents__factory.js +110 -0
- package/lib/types/factories/contracts/ITokenDistributor.sol/ITokenDistributorExceptions__factory.d.ts +16 -0
- package/lib/types/factories/contracts/ITokenDistributor.sol/ITokenDistributorExceptions__factory.js +64 -0
- package/lib/types/factories/{@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface__factory.d.ts → contracts/ITokenDistributor.sol/ITokenDistributor__factory.d.ts} +15 -4
- package/lib/types/factories/contracts/ITokenDistributor.sol/ITokenDistributor__factory.js +297 -0
- package/lib/types/factories/contracts/ITokenDistributor.sol/index.d.ts +3 -0
- package/lib/types/factories/contracts/ITokenDistributor.sol/index.js +12 -0
- package/lib/types/factories/contracts/{support/MultiCall.sol → MultiCall.sol}/Multicall2__factory.d.ts +2 -2
- package/lib/types/factories/contracts/{support/MultiCall.sol → MultiCall.sol}/Multicall2__factory.js +1 -1
- package/lib/types/factories/contracts/{support/MultiCall.sol → MultiCall.sol}/index.d.ts +0 -0
- package/lib/types/factories/contracts/{support/MultiCall.sol → MultiCall.sol}/index.js +0 -0
- package/lib/types/factories/contracts/index.d.ts +2 -1
- package/lib/types/factories/contracts/index.js +3 -2
- package/lib/types/index.d.ts +8 -8
- package/lib/types/index.js +8 -8
- package/package.json +1 -1
- package/lib/types/@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface.d.ts +0 -106
- package/lib/types/@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface.d.ts +0 -218
- package/lib/types/contracts/support/IOffchainOracle.d.ts +0 -54
- package/lib/types/contracts/support/index.d.ts +0 -3
- package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface__factory.js +0 -149
- package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface__factory.d.ts +0 -35
- package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface__factory.js +0 -260
- package/lib/types/factories/contracts/support/IOffchainOracle__factory.d.ts +0 -22
- package/lib/types/factories/contracts/support/IOffchainOracle__factory.js +0 -75
- package/lib/types/factories/contracts/support/index.d.ts +0 -2
- package/lib/types/factories/contracts/support/index.js +0 -32
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers";
|
|
2
|
+
import type { FunctionFragment, Result, EventFragment } from "@ethersproject/abi";
|
|
3
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
4
|
+
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "../../common";
|
|
5
|
+
export interface ITokenDistributorInterface extends utils.Interface {
|
|
6
|
+
functions: {
|
|
7
|
+
"balanceOf(address)": FunctionFragment;
|
|
8
|
+
"contributorVestingContracts(address)": FunctionFragment;
|
|
9
|
+
"contributorsList()": FunctionFragment;
|
|
10
|
+
"countContributors()": FunctionFragment;
|
|
11
|
+
"distributeTokens(address,string,uint256,uint256,uint256,uint256,uint256)": FunctionFragment;
|
|
12
|
+
"updateContributor(address)": FunctionFragment;
|
|
13
|
+
"updateContributors()": FunctionFragment;
|
|
14
|
+
"updateVotingCategoryMultiplier(string,uint16)": FunctionFragment;
|
|
15
|
+
};
|
|
16
|
+
getFunction(nameOrSignatureOrTopic: "balanceOf" | "contributorVestingContracts" | "contributorsList" | "countContributors" | "distributeTokens" | "updateContributor" | "updateContributors" | "updateVotingCategoryMultiplier"): FunctionFragment;
|
|
17
|
+
encodeFunctionData(functionFragment: "balanceOf", values: [string]): string;
|
|
18
|
+
encodeFunctionData(functionFragment: "contributorVestingContracts", values: [string]): string;
|
|
19
|
+
encodeFunctionData(functionFragment: "contributorsList", values?: undefined): string;
|
|
20
|
+
encodeFunctionData(functionFragment: "countContributors", values?: undefined): string;
|
|
21
|
+
encodeFunctionData(functionFragment: "distributeTokens", values: [
|
|
22
|
+
string,
|
|
23
|
+
string,
|
|
24
|
+
BigNumberish,
|
|
25
|
+
BigNumberish,
|
|
26
|
+
BigNumberish,
|
|
27
|
+
BigNumberish,
|
|
28
|
+
BigNumberish
|
|
29
|
+
]): string;
|
|
30
|
+
encodeFunctionData(functionFragment: "updateContributor", values: [string]): string;
|
|
31
|
+
encodeFunctionData(functionFragment: "updateContributors", values?: undefined): string;
|
|
32
|
+
encodeFunctionData(functionFragment: "updateVotingCategoryMultiplier", values: [string, BigNumberish]): string;
|
|
33
|
+
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
|
34
|
+
decodeFunctionResult(functionFragment: "contributorVestingContracts", data: BytesLike): Result;
|
|
35
|
+
decodeFunctionResult(functionFragment: "contributorsList", data: BytesLike): Result;
|
|
36
|
+
decodeFunctionResult(functionFragment: "countContributors", data: BytesLike): Result;
|
|
37
|
+
decodeFunctionResult(functionFragment: "distributeTokens", data: BytesLike): Result;
|
|
38
|
+
decodeFunctionResult(functionFragment: "updateContributor", data: BytesLike): Result;
|
|
39
|
+
decodeFunctionResult(functionFragment: "updateContributors", data: BytesLike): Result;
|
|
40
|
+
decodeFunctionResult(functionFragment: "updateVotingCategoryMultiplier", data: BytesLike): Result;
|
|
41
|
+
events: {
|
|
42
|
+
"NewDistrubtionController(address)": EventFragment;
|
|
43
|
+
"NewVotingMultiplier(string,uint16)": EventFragment;
|
|
44
|
+
"VestingContractAdded(address,address,uint256,string)": EventFragment;
|
|
45
|
+
"VestingContractReceiverUpdated(address,address,address)": EventFragment;
|
|
46
|
+
};
|
|
47
|
+
getEvent(nameOrSignatureOrTopic: "NewDistrubtionController"): EventFragment;
|
|
48
|
+
getEvent(nameOrSignatureOrTopic: "NewVotingMultiplier"): EventFragment;
|
|
49
|
+
getEvent(nameOrSignatureOrTopic: "VestingContractAdded"): EventFragment;
|
|
50
|
+
getEvent(nameOrSignatureOrTopic: "VestingContractReceiverUpdated"): EventFragment;
|
|
51
|
+
}
|
|
52
|
+
export interface NewDistrubtionControllerEventObject {
|
|
53
|
+
newController: string;
|
|
54
|
+
}
|
|
55
|
+
export declare type NewDistrubtionControllerEvent = TypedEvent<[
|
|
56
|
+
string
|
|
57
|
+
], NewDistrubtionControllerEventObject>;
|
|
58
|
+
export declare type NewDistrubtionControllerEventFilter = TypedEventFilter<NewDistrubtionControllerEvent>;
|
|
59
|
+
export interface NewVotingMultiplierEventObject {
|
|
60
|
+
category: string;
|
|
61
|
+
multiplier: number;
|
|
62
|
+
}
|
|
63
|
+
export declare type NewVotingMultiplierEvent = TypedEvent<[
|
|
64
|
+
string,
|
|
65
|
+
number
|
|
66
|
+
], NewVotingMultiplierEventObject>;
|
|
67
|
+
export declare type NewVotingMultiplierEventFilter = TypedEventFilter<NewVotingMultiplierEvent>;
|
|
68
|
+
export interface VestingContractAddedEventObject {
|
|
69
|
+
holder: string;
|
|
70
|
+
vestingContract: string;
|
|
71
|
+
amount: BigNumber;
|
|
72
|
+
votingPowerCategory: string;
|
|
73
|
+
}
|
|
74
|
+
export declare type VestingContractAddedEvent = TypedEvent<[
|
|
75
|
+
string,
|
|
76
|
+
string,
|
|
77
|
+
BigNumber,
|
|
78
|
+
string
|
|
79
|
+
], VestingContractAddedEventObject>;
|
|
80
|
+
export declare type VestingContractAddedEventFilter = TypedEventFilter<VestingContractAddedEvent>;
|
|
81
|
+
export interface VestingContractReceiverUpdatedEventObject {
|
|
82
|
+
vestingContract: string;
|
|
83
|
+
prevReceiver: string;
|
|
84
|
+
newReceiver: string;
|
|
85
|
+
}
|
|
86
|
+
export declare type VestingContractReceiverUpdatedEvent = TypedEvent<[
|
|
87
|
+
string,
|
|
88
|
+
string,
|
|
89
|
+
string
|
|
90
|
+
], VestingContractReceiverUpdatedEventObject>;
|
|
91
|
+
export declare type VestingContractReceiverUpdatedEventFilter = TypedEventFilter<VestingContractReceiverUpdatedEvent>;
|
|
92
|
+
export interface ITokenDistributor extends BaseContract {
|
|
93
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
94
|
+
attach(addressOrName: string): this;
|
|
95
|
+
deployed(): Promise<this>;
|
|
96
|
+
interface: ITokenDistributorInterface;
|
|
97
|
+
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
98
|
+
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
99
|
+
listeners(eventName?: string): Array<Listener>;
|
|
100
|
+
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
|
|
101
|
+
removeAllListeners(eventName?: string): this;
|
|
102
|
+
off: OnEvent<this>;
|
|
103
|
+
on: OnEvent<this>;
|
|
104
|
+
once: OnEvent<this>;
|
|
105
|
+
removeListener: OnEvent<this>;
|
|
106
|
+
functions: {
|
|
107
|
+
balanceOf(holder: string, overrides?: CallOverrides): Promise<[BigNumber] & {
|
|
108
|
+
vestedBalanceWeighted: BigNumber;
|
|
109
|
+
}>;
|
|
110
|
+
contributorVestingContracts(contributor: string, overrides?: CallOverrides): Promise<[string[]]>;
|
|
111
|
+
contributorsList(overrides?: CallOverrides): Promise<[string[]]>;
|
|
112
|
+
countContributors(overrides?: CallOverrides): Promise<[BigNumber]>;
|
|
113
|
+
distributeTokens(recipient: string, votingCategory: string, cliffDuration: BigNumberish, cliffAmount: BigNumberish, vestingDuration: BigNumberish, vestingNumSteps: BigNumberish, vestingAmount: BigNumberish, overrides?: Overrides & {
|
|
114
|
+
from?: string | Promise<string>;
|
|
115
|
+
}): Promise<ContractTransaction>;
|
|
116
|
+
updateContributor(contributor: string, overrides?: Overrides & {
|
|
117
|
+
from?: string | Promise<string>;
|
|
118
|
+
}): Promise<ContractTransaction>;
|
|
119
|
+
updateContributors(overrides?: Overrides & {
|
|
120
|
+
from?: string | Promise<string>;
|
|
121
|
+
}): Promise<ContractTransaction>;
|
|
122
|
+
updateVotingCategoryMultiplier(category: string, multiplier: BigNumberish, overrides?: Overrides & {
|
|
123
|
+
from?: string | Promise<string>;
|
|
124
|
+
}): Promise<ContractTransaction>;
|
|
125
|
+
};
|
|
126
|
+
balanceOf(holder: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
127
|
+
contributorVestingContracts(contributor: string, overrides?: CallOverrides): Promise<string[]>;
|
|
128
|
+
contributorsList(overrides?: CallOverrides): Promise<string[]>;
|
|
129
|
+
countContributors(overrides?: CallOverrides): Promise<BigNumber>;
|
|
130
|
+
distributeTokens(recipient: string, votingCategory: string, cliffDuration: BigNumberish, cliffAmount: BigNumberish, vestingDuration: BigNumberish, vestingNumSteps: BigNumberish, vestingAmount: BigNumberish, overrides?: Overrides & {
|
|
131
|
+
from?: string | Promise<string>;
|
|
132
|
+
}): Promise<ContractTransaction>;
|
|
133
|
+
updateContributor(contributor: string, overrides?: Overrides & {
|
|
134
|
+
from?: string | Promise<string>;
|
|
135
|
+
}): Promise<ContractTransaction>;
|
|
136
|
+
updateContributors(overrides?: Overrides & {
|
|
137
|
+
from?: string | Promise<string>;
|
|
138
|
+
}): Promise<ContractTransaction>;
|
|
139
|
+
updateVotingCategoryMultiplier(category: string, multiplier: BigNumberish, overrides?: Overrides & {
|
|
140
|
+
from?: string | Promise<string>;
|
|
141
|
+
}): Promise<ContractTransaction>;
|
|
142
|
+
callStatic: {
|
|
143
|
+
balanceOf(holder: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
144
|
+
contributorVestingContracts(contributor: string, overrides?: CallOverrides): Promise<string[]>;
|
|
145
|
+
contributorsList(overrides?: CallOverrides): Promise<string[]>;
|
|
146
|
+
countContributors(overrides?: CallOverrides): Promise<BigNumber>;
|
|
147
|
+
distributeTokens(recipient: string, votingCategory: string, cliffDuration: BigNumberish, cliffAmount: BigNumberish, vestingDuration: BigNumberish, vestingNumSteps: BigNumberish, vestingAmount: BigNumberish, overrides?: CallOverrides): Promise<void>;
|
|
148
|
+
updateContributor(contributor: string, overrides?: CallOverrides): Promise<void>;
|
|
149
|
+
updateContributors(overrides?: CallOverrides): Promise<void>;
|
|
150
|
+
updateVotingCategoryMultiplier(category: string, multiplier: BigNumberish, overrides?: CallOverrides): Promise<void>;
|
|
151
|
+
};
|
|
152
|
+
filters: {
|
|
153
|
+
"NewDistrubtionController(address)"(newController?: null): NewDistrubtionControllerEventFilter;
|
|
154
|
+
NewDistrubtionController(newController?: null): NewDistrubtionControllerEventFilter;
|
|
155
|
+
"NewVotingMultiplier(string,uint16)"(category?: string | null, multiplier?: null): NewVotingMultiplierEventFilter;
|
|
156
|
+
NewVotingMultiplier(category?: string | null, multiplier?: null): NewVotingMultiplierEventFilter;
|
|
157
|
+
"VestingContractAdded(address,address,uint256,string)"(holder?: string | null, vestingContract?: string | null, amount?: null, votingPowerCategory?: null): VestingContractAddedEventFilter;
|
|
158
|
+
VestingContractAdded(holder?: string | null, vestingContract?: string | null, amount?: null, votingPowerCategory?: null): VestingContractAddedEventFilter;
|
|
159
|
+
"VestingContractReceiverUpdated(address,address,address)"(vestingContract?: string | null, prevReceiver?: string | null, newReceiver?: string | null): VestingContractReceiverUpdatedEventFilter;
|
|
160
|
+
VestingContractReceiverUpdated(vestingContract?: string | null, prevReceiver?: string | null, newReceiver?: string | null): VestingContractReceiverUpdatedEventFilter;
|
|
161
|
+
};
|
|
162
|
+
estimateGas: {
|
|
163
|
+
balanceOf(holder: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
164
|
+
contributorVestingContracts(contributor: string, overrides?: CallOverrides): Promise<BigNumber>;
|
|
165
|
+
contributorsList(overrides?: CallOverrides): Promise<BigNumber>;
|
|
166
|
+
countContributors(overrides?: CallOverrides): Promise<BigNumber>;
|
|
167
|
+
distributeTokens(recipient: string, votingCategory: string, cliffDuration: BigNumberish, cliffAmount: BigNumberish, vestingDuration: BigNumberish, vestingNumSteps: BigNumberish, vestingAmount: BigNumberish, overrides?: Overrides & {
|
|
168
|
+
from?: string | Promise<string>;
|
|
169
|
+
}): Promise<BigNumber>;
|
|
170
|
+
updateContributor(contributor: string, overrides?: Overrides & {
|
|
171
|
+
from?: string | Promise<string>;
|
|
172
|
+
}): Promise<BigNumber>;
|
|
173
|
+
updateContributors(overrides?: Overrides & {
|
|
174
|
+
from?: string | Promise<string>;
|
|
175
|
+
}): Promise<BigNumber>;
|
|
176
|
+
updateVotingCategoryMultiplier(category: string, multiplier: BigNumberish, overrides?: Overrides & {
|
|
177
|
+
from?: string | Promise<string>;
|
|
178
|
+
}): Promise<BigNumber>;
|
|
179
|
+
};
|
|
180
|
+
populateTransaction: {
|
|
181
|
+
balanceOf(holder: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
182
|
+
contributorVestingContracts(contributor: string, overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
183
|
+
contributorsList(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
184
|
+
countContributors(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
185
|
+
distributeTokens(recipient: string, votingCategory: string, cliffDuration: BigNumberish, cliffAmount: BigNumberish, vestingDuration: BigNumberish, vestingNumSteps: BigNumberish, vestingAmount: BigNumberish, overrides?: Overrides & {
|
|
186
|
+
from?: string | Promise<string>;
|
|
187
|
+
}): Promise<PopulatedTransaction>;
|
|
188
|
+
updateContributor(contributor: string, overrides?: Overrides & {
|
|
189
|
+
from?: string | Promise<string>;
|
|
190
|
+
}): Promise<PopulatedTransaction>;
|
|
191
|
+
updateContributors(overrides?: Overrides & {
|
|
192
|
+
from?: string | Promise<string>;
|
|
193
|
+
}): Promise<PopulatedTransaction>;
|
|
194
|
+
updateVotingCategoryMultiplier(category: string, multiplier: BigNumberish, overrides?: Overrides & {
|
|
195
|
+
from?: string | Promise<string>;
|
|
196
|
+
}): Promise<PopulatedTransaction>;
|
|
197
|
+
};
|
|
198
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import type { BaseContract, BigNumber, Signer, utils } from "ethers";
|
|
2
|
+
import type { EventFragment } from "@ethersproject/abi";
|
|
3
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
4
|
+
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "../../common";
|
|
5
|
+
export interface ITokenDistributorEventsInterface extends utils.Interface {
|
|
6
|
+
functions: {};
|
|
7
|
+
events: {
|
|
8
|
+
"NewDistrubtionController(address)": EventFragment;
|
|
9
|
+
"NewVotingMultiplier(string,uint16)": EventFragment;
|
|
10
|
+
"VestingContractAdded(address,address,uint256,string)": EventFragment;
|
|
11
|
+
"VestingContractReceiverUpdated(address,address,address)": EventFragment;
|
|
12
|
+
};
|
|
13
|
+
getEvent(nameOrSignatureOrTopic: "NewDistrubtionController"): EventFragment;
|
|
14
|
+
getEvent(nameOrSignatureOrTopic: "NewVotingMultiplier"): EventFragment;
|
|
15
|
+
getEvent(nameOrSignatureOrTopic: "VestingContractAdded"): EventFragment;
|
|
16
|
+
getEvent(nameOrSignatureOrTopic: "VestingContractReceiverUpdated"): EventFragment;
|
|
17
|
+
}
|
|
18
|
+
export interface NewDistrubtionControllerEventObject {
|
|
19
|
+
newController: string;
|
|
20
|
+
}
|
|
21
|
+
export declare type NewDistrubtionControllerEvent = TypedEvent<[
|
|
22
|
+
string
|
|
23
|
+
], NewDistrubtionControllerEventObject>;
|
|
24
|
+
export declare type NewDistrubtionControllerEventFilter = TypedEventFilter<NewDistrubtionControllerEvent>;
|
|
25
|
+
export interface NewVotingMultiplierEventObject {
|
|
26
|
+
category: string;
|
|
27
|
+
multiplier: number;
|
|
28
|
+
}
|
|
29
|
+
export declare type NewVotingMultiplierEvent = TypedEvent<[
|
|
30
|
+
string,
|
|
31
|
+
number
|
|
32
|
+
], NewVotingMultiplierEventObject>;
|
|
33
|
+
export declare type NewVotingMultiplierEventFilter = TypedEventFilter<NewVotingMultiplierEvent>;
|
|
34
|
+
export interface VestingContractAddedEventObject {
|
|
35
|
+
holder: string;
|
|
36
|
+
vestingContract: string;
|
|
37
|
+
amount: BigNumber;
|
|
38
|
+
votingPowerCategory: string;
|
|
39
|
+
}
|
|
40
|
+
export declare type VestingContractAddedEvent = TypedEvent<[
|
|
41
|
+
string,
|
|
42
|
+
string,
|
|
43
|
+
BigNumber,
|
|
44
|
+
string
|
|
45
|
+
], VestingContractAddedEventObject>;
|
|
46
|
+
export declare type VestingContractAddedEventFilter = TypedEventFilter<VestingContractAddedEvent>;
|
|
47
|
+
export interface VestingContractReceiverUpdatedEventObject {
|
|
48
|
+
vestingContract: string;
|
|
49
|
+
prevReceiver: string;
|
|
50
|
+
newReceiver: string;
|
|
51
|
+
}
|
|
52
|
+
export declare type VestingContractReceiverUpdatedEvent = TypedEvent<[
|
|
53
|
+
string,
|
|
54
|
+
string,
|
|
55
|
+
string
|
|
56
|
+
], VestingContractReceiverUpdatedEventObject>;
|
|
57
|
+
export declare type VestingContractReceiverUpdatedEventFilter = TypedEventFilter<VestingContractReceiverUpdatedEvent>;
|
|
58
|
+
export interface ITokenDistributorEvents extends BaseContract {
|
|
59
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
60
|
+
attach(addressOrName: string): this;
|
|
61
|
+
deployed(): Promise<this>;
|
|
62
|
+
interface: ITokenDistributorEventsInterface;
|
|
63
|
+
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
64
|
+
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
65
|
+
listeners(eventName?: string): Array<Listener>;
|
|
66
|
+
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
|
|
67
|
+
removeAllListeners(eventName?: string): this;
|
|
68
|
+
off: OnEvent<this>;
|
|
69
|
+
on: OnEvent<this>;
|
|
70
|
+
once: OnEvent<this>;
|
|
71
|
+
removeListener: OnEvent<this>;
|
|
72
|
+
functions: {};
|
|
73
|
+
callStatic: {};
|
|
74
|
+
filters: {
|
|
75
|
+
"NewDistrubtionController(address)"(newController?: null): NewDistrubtionControllerEventFilter;
|
|
76
|
+
NewDistrubtionController(newController?: null): NewDistrubtionControllerEventFilter;
|
|
77
|
+
"NewVotingMultiplier(string,uint16)"(category?: string | null, multiplier?: null): NewVotingMultiplierEventFilter;
|
|
78
|
+
NewVotingMultiplier(category?: string | null, multiplier?: null): NewVotingMultiplierEventFilter;
|
|
79
|
+
"VestingContractAdded(address,address,uint256,string)"(holder?: string | null, vestingContract?: string | null, amount?: null, votingPowerCategory?: null): VestingContractAddedEventFilter;
|
|
80
|
+
VestingContractAdded(holder?: string | null, vestingContract?: string | null, amount?: null, votingPowerCategory?: null): VestingContractAddedEventFilter;
|
|
81
|
+
"VestingContractReceiverUpdated(address,address,address)"(vestingContract?: string | null, prevReceiver?: string | null, newReceiver?: string | null): VestingContractReceiverUpdatedEventFilter;
|
|
82
|
+
VestingContractReceiverUpdated(vestingContract?: string | null, prevReceiver?: string | null, newReceiver?: string | null): VestingContractReceiverUpdatedEventFilter;
|
|
83
|
+
};
|
|
84
|
+
estimateGas: {};
|
|
85
|
+
populateTransaction: {};
|
|
86
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type { BaseContract, Signer, utils } from "ethers";
|
|
2
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "../../common";
|
|
4
|
+
export interface ITokenDistributorExceptionsInterface extends utils.Interface {
|
|
5
|
+
functions: {};
|
|
6
|
+
events: {};
|
|
7
|
+
}
|
|
8
|
+
export interface ITokenDistributorExceptions extends BaseContract {
|
|
9
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
10
|
+
attach(addressOrName: string): this;
|
|
11
|
+
deployed(): Promise<this>;
|
|
12
|
+
interface: ITokenDistributorExceptionsInterface;
|
|
13
|
+
queryFilter<TEvent extends TypedEvent>(event: TypedEventFilter<TEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TEvent>>;
|
|
14
|
+
listeners<TEvent extends TypedEvent>(eventFilter?: TypedEventFilter<TEvent>): Array<TypedListener<TEvent>>;
|
|
15
|
+
listeners(eventName?: string): Array<Listener>;
|
|
16
|
+
removeAllListeners<TEvent extends TypedEvent>(eventFilter: TypedEventFilter<TEvent>): this;
|
|
17
|
+
removeAllListeners(eventName?: string): this;
|
|
18
|
+
off: OnEvent<this>;
|
|
19
|
+
on: OnEvent<this>;
|
|
20
|
+
once: OnEvent<this>;
|
|
21
|
+
removeListener: OnEvent<this>;
|
|
22
|
+
functions: {};
|
|
23
|
+
callStatic: {};
|
|
24
|
+
filters: {};
|
|
25
|
+
estimateGas: {};
|
|
26
|
+
populateTransaction: {};
|
|
27
|
+
}
|
|
File without changes
|
|
File without changes
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { BaseContract, BigNumber, BigNumberish, BytesLike, CallOverrides, ContractTransaction, Overrides, PopulatedTransaction, Signer, utils } from "ethers";
|
|
2
2
|
import type { FunctionFragment, Result } from "@ethersproject/abi";
|
|
3
3
|
import type { Listener, Provider } from "@ethersproject/providers";
|
|
4
|
-
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "
|
|
4
|
+
import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "../../common";
|
|
5
5
|
export declare namespace Multicall2 {
|
|
6
6
|
type CallStruct = {
|
|
7
7
|
target: string;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
import type * as
|
|
2
|
-
export type {
|
|
1
|
+
import type * as iTokenDistributorSol from "./ITokenDistributor.sol";
|
|
2
|
+
export type { iTokenDistributorSol };
|
|
3
|
+
import type * as multiCallSol from "./MultiCall.sol";
|
|
4
|
+
export type { multiCallSol };
|
|
3
5
|
export type { IGas } from "./IGas";
|
|
@@ -1,12 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AggregatorV3Interface__factory =
|
|
3
|
+
exports.AggregatorV3Interface__factory = void 0;
|
|
4
4
|
/* Autogenerated file. Do not edit manually. */
|
|
5
5
|
/* tslint:disable */
|
|
6
6
|
/* eslint-disable */
|
|
7
|
-
var AggregatorInterface__factory_1 = require("./AggregatorInterface__factory");
|
|
8
|
-
Object.defineProperty(exports, "AggregatorInterface__factory", { enumerable: true, get: function () { return AggregatorInterface__factory_1.AggregatorInterface__factory; } });
|
|
9
|
-
var AggregatorV2V3Interface__factory_1 = require("./AggregatorV2V3Interface__factory");
|
|
10
|
-
Object.defineProperty(exports, "AggregatorV2V3Interface__factory", { enumerable: true, get: function () { return AggregatorV2V3Interface__factory_1.AggregatorV2V3Interface__factory; } });
|
|
11
7
|
var AggregatorV3Interface__factory_1 = require("./AggregatorV3Interface__factory");
|
|
12
8
|
Object.defineProperty(exports, "AggregatorV3Interface__factory", { enumerable: true, get: function () { return AggregatorV3Interface__factory_1.AggregatorV3Interface__factory; } });
|
package/lib/types/factories/contracts/ITokenDistributor.sol/ITokenDistributorEvents__factory.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { ITokenDistributorEvents, ITokenDistributorEventsInterface } from "../../../contracts/ITokenDistributor.sol/ITokenDistributorEvents";
|
|
4
|
+
export declare class ITokenDistributorEvents__factory {
|
|
5
|
+
static readonly abi: {
|
|
6
|
+
anonymous: boolean;
|
|
7
|
+
inputs: {
|
|
8
|
+
indexed: boolean;
|
|
9
|
+
internalType: string;
|
|
10
|
+
name: string;
|
|
11
|
+
type: string;
|
|
12
|
+
}[];
|
|
13
|
+
name: string;
|
|
14
|
+
type: string;
|
|
15
|
+
}[];
|
|
16
|
+
static createInterface(): ITokenDistributorEventsInterface;
|
|
17
|
+
static connect(address: string, signerOrProvider: Signer | Provider): ITokenDistributorEvents;
|
|
18
|
+
}
|
package/lib/types/factories/contracts/ITokenDistributor.sol/ITokenDistributorEvents__factory.js
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Autogenerated file. Do not edit manually. */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ITokenDistributorEvents__factory = void 0;
|
|
7
|
+
var ethers_1 = require("ethers");
|
|
8
|
+
var _abi = [
|
|
9
|
+
{
|
|
10
|
+
anonymous: false,
|
|
11
|
+
inputs: [
|
|
12
|
+
{
|
|
13
|
+
indexed: false,
|
|
14
|
+
internalType: "address",
|
|
15
|
+
name: "newController",
|
|
16
|
+
type: "address",
|
|
17
|
+
},
|
|
18
|
+
],
|
|
19
|
+
name: "NewDistrubtionController",
|
|
20
|
+
type: "event",
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
anonymous: false,
|
|
24
|
+
inputs: [
|
|
25
|
+
{
|
|
26
|
+
indexed: true,
|
|
27
|
+
internalType: "string",
|
|
28
|
+
name: "category",
|
|
29
|
+
type: "string",
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
indexed: false,
|
|
33
|
+
internalType: "uint16",
|
|
34
|
+
name: "multiplier",
|
|
35
|
+
type: "uint16",
|
|
36
|
+
},
|
|
37
|
+
],
|
|
38
|
+
name: "NewVotingMultiplier",
|
|
39
|
+
type: "event",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
anonymous: false,
|
|
43
|
+
inputs: [
|
|
44
|
+
{
|
|
45
|
+
indexed: true,
|
|
46
|
+
internalType: "address",
|
|
47
|
+
name: "holder",
|
|
48
|
+
type: "address",
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
indexed: true,
|
|
52
|
+
internalType: "address",
|
|
53
|
+
name: "vestingContract",
|
|
54
|
+
type: "address",
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
indexed: false,
|
|
58
|
+
internalType: "uint256",
|
|
59
|
+
name: "amount",
|
|
60
|
+
type: "uint256",
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
indexed: false,
|
|
64
|
+
internalType: "string",
|
|
65
|
+
name: "votingPowerCategory",
|
|
66
|
+
type: "string",
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
name: "VestingContractAdded",
|
|
70
|
+
type: "event",
|
|
71
|
+
},
|
|
72
|
+
{
|
|
73
|
+
anonymous: false,
|
|
74
|
+
inputs: [
|
|
75
|
+
{
|
|
76
|
+
indexed: true,
|
|
77
|
+
internalType: "address",
|
|
78
|
+
name: "vestingContract",
|
|
79
|
+
type: "address",
|
|
80
|
+
},
|
|
81
|
+
{
|
|
82
|
+
indexed: true,
|
|
83
|
+
internalType: "address",
|
|
84
|
+
name: "prevReceiver",
|
|
85
|
+
type: "address",
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
indexed: true,
|
|
89
|
+
internalType: "address",
|
|
90
|
+
name: "newReceiver",
|
|
91
|
+
type: "address",
|
|
92
|
+
},
|
|
93
|
+
],
|
|
94
|
+
name: "VestingContractReceiverUpdated",
|
|
95
|
+
type: "event",
|
|
96
|
+
},
|
|
97
|
+
];
|
|
98
|
+
var ITokenDistributorEvents__factory = /** @class */ (function () {
|
|
99
|
+
function ITokenDistributorEvents__factory() {
|
|
100
|
+
}
|
|
101
|
+
ITokenDistributorEvents__factory.createInterface = function () {
|
|
102
|
+
return new ethers_1.utils.Interface(_abi);
|
|
103
|
+
};
|
|
104
|
+
ITokenDistributorEvents__factory.connect = function (address, signerOrProvider) {
|
|
105
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
106
|
+
};
|
|
107
|
+
ITokenDistributorEvents__factory.abi = _abi;
|
|
108
|
+
return ITokenDistributorEvents__factory;
|
|
109
|
+
}());
|
|
110
|
+
exports.ITokenDistributorEvents__factory = ITokenDistributorEvents__factory;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { Signer } from "ethers";
|
|
2
|
+
import type { Provider } from "@ethersproject/providers";
|
|
3
|
+
import type { ITokenDistributorExceptions, ITokenDistributorExceptionsInterface } from "../../../contracts/ITokenDistributor.sol/ITokenDistributorExceptions";
|
|
4
|
+
export declare class ITokenDistributorExceptions__factory {
|
|
5
|
+
static readonly abi: {
|
|
6
|
+
inputs: {
|
|
7
|
+
internalType: string;
|
|
8
|
+
name: string;
|
|
9
|
+
type: string;
|
|
10
|
+
}[];
|
|
11
|
+
name: string;
|
|
12
|
+
type: string;
|
|
13
|
+
}[];
|
|
14
|
+
static createInterface(): ITokenDistributorExceptionsInterface;
|
|
15
|
+
static connect(address: string, signerOrProvider: Signer | Provider): ITokenDistributorExceptions;
|
|
16
|
+
}
|
package/lib/types/factories/contracts/ITokenDistributor.sol/ITokenDistributorExceptions__factory.js
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* Autogenerated file. Do not edit manually. */
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
/* eslint-disable */
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.ITokenDistributorExceptions__factory = void 0;
|
|
7
|
+
var ethers_1 = require("ethers");
|
|
8
|
+
var _abi = [
|
|
9
|
+
{
|
|
10
|
+
inputs: [
|
|
11
|
+
{
|
|
12
|
+
internalType: "address",
|
|
13
|
+
name: "user",
|
|
14
|
+
type: "address",
|
|
15
|
+
},
|
|
16
|
+
],
|
|
17
|
+
name: "ContributorNotRegisteredException",
|
|
18
|
+
type: "error",
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
inputs: [],
|
|
22
|
+
name: "MultiplierValueIncorrect",
|
|
23
|
+
type: "error",
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
inputs: [
|
|
27
|
+
{
|
|
28
|
+
internalType: "uint256",
|
|
29
|
+
name: "amount",
|
|
30
|
+
type: "uint256",
|
|
31
|
+
},
|
|
32
|
+
],
|
|
33
|
+
name: "NonZeroBalanceAfterDistributionException",
|
|
34
|
+
type: "error",
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
inputs: [],
|
|
38
|
+
name: "NotDistributionControllerException",
|
|
39
|
+
type: "error",
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
inputs: [],
|
|
43
|
+
name: "NotTreasuryException",
|
|
44
|
+
type: "error",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
inputs: [],
|
|
48
|
+
name: "VotingCategoryDoesntExist",
|
|
49
|
+
type: "error",
|
|
50
|
+
},
|
|
51
|
+
];
|
|
52
|
+
var ITokenDistributorExceptions__factory = /** @class */ (function () {
|
|
53
|
+
function ITokenDistributorExceptions__factory() {
|
|
54
|
+
}
|
|
55
|
+
ITokenDistributorExceptions__factory.createInterface = function () {
|
|
56
|
+
return new ethers_1.utils.Interface(_abi);
|
|
57
|
+
};
|
|
58
|
+
ITokenDistributorExceptions__factory.connect = function (address, signerOrProvider) {
|
|
59
|
+
return new ethers_1.Contract(address, _abi, signerOrProvider);
|
|
60
|
+
};
|
|
61
|
+
ITokenDistributorExceptions__factory.abi = _abi;
|
|
62
|
+
return ITokenDistributorExceptions__factory;
|
|
63
|
+
}());
|
|
64
|
+
exports.ITokenDistributorExceptions__factory = ITokenDistributorExceptions__factory;
|
|
@@ -1,8 +1,19 @@
|
|
|
1
1
|
import { Signer } from "ethers";
|
|
2
2
|
import type { Provider } from "@ethersproject/providers";
|
|
3
|
-
import type {
|
|
4
|
-
export declare class
|
|
3
|
+
import type { ITokenDistributor, ITokenDistributorInterface } from "../../../contracts/ITokenDistributor.sol/ITokenDistributor";
|
|
4
|
+
export declare class ITokenDistributor__factory {
|
|
5
5
|
static readonly abi: ({
|
|
6
|
+
inputs: {
|
|
7
|
+
internalType: string;
|
|
8
|
+
name: string;
|
|
9
|
+
type: string;
|
|
10
|
+
}[];
|
|
11
|
+
name: string;
|
|
12
|
+
type: string;
|
|
13
|
+
anonymous?: undefined;
|
|
14
|
+
outputs?: undefined;
|
|
15
|
+
stateMutability?: undefined;
|
|
16
|
+
} | {
|
|
6
17
|
anonymous: boolean;
|
|
7
18
|
inputs: {
|
|
8
19
|
indexed: boolean;
|
|
@@ -30,6 +41,6 @@ export declare class AggregatorInterface__factory {
|
|
|
30
41
|
type: string;
|
|
31
42
|
anonymous?: undefined;
|
|
32
43
|
})[];
|
|
33
|
-
static createInterface():
|
|
34
|
-
static connect(address: string, signerOrProvider: Signer | Provider):
|
|
44
|
+
static createInterface(): ITokenDistributorInterface;
|
|
45
|
+
static connect(address: string, signerOrProvider: Signer | Provider): ITokenDistributor;
|
|
35
46
|
}
|