@gearbox-protocol/sdk 1.18.3 → 1.19.0

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.
Files changed (55) hide show
  1. package/lib/apy/convexAPY.d.ts +13 -10
  2. package/lib/apy/convexAPY.js +42 -120
  3. package/lib/apy/gearCurveAPY.d.ts +22 -0
  4. package/lib/apy/gearCurveAPY.js +58 -0
  5. package/lib/apy/index.d.ts +1 -0
  6. package/lib/apy/index.js +1 -0
  7. package/lib/apy/lidoAPY.d.ts +23 -2
  8. package/lib/apy/lidoAPY.js +55 -88
  9. package/lib/contracts/contracts.d.ts +9 -2
  10. package/lib/contracts/contracts.js +13 -0
  11. package/lib/core/constants.d.ts +1 -0
  12. package/lib/core/constants.js +2 -1
  13. package/lib/core/errors.d.ts +0 -21
  14. package/lib/core/errors.js +1 -57
  15. package/lib/types/@chainlink/contracts/src/v0.8/interfaces/index.d.ts +0 -2
  16. package/lib/types/contracts/ITokenDistributor.sol/ITokenDistributor.d.ts +198 -0
  17. package/lib/types/{@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface.js → contracts/ITokenDistributor.sol/ITokenDistributor.js} +0 -0
  18. package/lib/types/contracts/ITokenDistributor.sol/ITokenDistributorEvents.d.ts +86 -0
  19. package/lib/types/{@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface.js → contracts/ITokenDistributor.sol/ITokenDistributorEvents.js} +0 -0
  20. package/lib/types/contracts/ITokenDistributor.sol/ITokenDistributorExceptions.d.ts +27 -0
  21. package/lib/types/contracts/{support/MultiCall.sol/Multicall2.js → ITokenDistributor.sol/ITokenDistributorExceptions.js} +0 -0
  22. package/lib/types/contracts/ITokenDistributor.sol/index.d.ts +3 -0
  23. package/lib/types/contracts/{support/MultiCall.sol → ITokenDistributor.sol}/index.js +0 -0
  24. package/lib/types/contracts/{support/MultiCall.sol → MultiCall.sol}/Multicall2.d.ts +1 -1
  25. package/lib/types/contracts/MultiCall.sol/Multicall2.js +2 -0
  26. package/lib/types/contracts/{support/MultiCall.sol → MultiCall.sol}/index.d.ts +0 -0
  27. package/lib/types/contracts/MultiCall.sol/index.js +2 -0
  28. package/lib/types/contracts/index.d.ts +4 -2
  29. package/lib/types/contracts/support/index.d.ts +0 -2
  30. package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/index.d.ts +0 -2
  31. package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/index.js +1 -5
  32. package/lib/types/factories/contracts/ITokenDistributor.sol/ITokenDistributorEvents__factory.d.ts +18 -0
  33. package/lib/types/factories/contracts/ITokenDistributor.sol/ITokenDistributorEvents__factory.js +110 -0
  34. package/lib/types/factories/contracts/ITokenDistributor.sol/ITokenDistributorExceptions__factory.d.ts +16 -0
  35. package/lib/types/factories/contracts/ITokenDistributor.sol/ITokenDistributorExceptions__factory.js +64 -0
  36. package/lib/types/factories/{@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface__factory.d.ts → contracts/ITokenDistributor.sol/ITokenDistributor__factory.d.ts} +15 -4
  37. package/lib/types/factories/contracts/ITokenDistributor.sol/ITokenDistributor__factory.js +297 -0
  38. package/lib/types/factories/contracts/ITokenDistributor.sol/index.d.ts +3 -0
  39. package/lib/types/factories/contracts/ITokenDistributor.sol/index.js +12 -0
  40. package/lib/types/factories/contracts/{support/MultiCall.sol → MultiCall.sol}/Multicall2__factory.d.ts +2 -2
  41. package/lib/types/factories/contracts/{support/MultiCall.sol → MultiCall.sol}/Multicall2__factory.js +1 -1
  42. package/lib/types/factories/contracts/{support/MultiCall.sol → MultiCall.sol}/index.d.ts +0 -0
  43. package/lib/types/factories/contracts/{support/MultiCall.sol → MultiCall.sol}/index.js +0 -0
  44. package/lib/types/factories/contracts/index.d.ts +2 -1
  45. package/lib/types/factories/contracts/index.js +3 -2
  46. package/lib/types/factories/contracts/support/index.d.ts +0 -1
  47. package/lib/types/factories/contracts/support/index.js +1 -25
  48. package/lib/types/index.d.ts +8 -6
  49. package/lib/types/index.js +8 -6
  50. package/package.json +1 -1
  51. package/lib/types/@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface.d.ts +0 -106
  52. package/lib/types/@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface.d.ts +0 -218
  53. package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/AggregatorInterface__factory.js +0 -149
  54. package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface__factory.d.ts +0 -35
  55. package/lib/types/factories/@chainlink/contracts/src/v0.8/interfaces/AggregatorV2V3Interface__factory.js +0 -260
@@ -15,63 +15,7 @@ var __extends = (this && this.__extends) || (function () {
15
15
  };
16
16
  })();
17
17
  Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.OpenAccountError = exports.AccountsInAllCreditManagersError = exports.PathNotFoundError = exports.UserHasNotAccountError = exports.CreditManagerNotExistsError = exports.PoolNotExistsError = exports.IncorrectEthAddressError = exports.NetworkError = void 0;
19
- var NetworkError = /** @class */ (function (_super) {
20
- __extends(NetworkError, _super);
21
- function NetworkError() {
22
- return _super.call(this, "errors.networkError") || this;
23
- }
24
- return NetworkError;
25
- }(Error));
26
- exports.NetworkError = NetworkError;
27
- var IncorrectEthAddressError = /** @class */ (function (_super) {
28
- __extends(IncorrectEthAddressError, _super);
29
- function IncorrectEthAddressError() {
30
- return _super.call(this, "errors.incorrectEthAddressError") || this;
31
- }
32
- return IncorrectEthAddressError;
33
- }(Error));
34
- exports.IncorrectEthAddressError = IncorrectEthAddressError;
35
- var PoolNotExistsError = /** @class */ (function (_super) {
36
- __extends(PoolNotExistsError, _super);
37
- function PoolNotExistsError() {
38
- return _super.call(this, "errors.poolDoesntExistsError") || this;
39
- }
40
- return PoolNotExistsError;
41
- }(Error));
42
- exports.PoolNotExistsError = PoolNotExistsError;
43
- var CreditManagerNotExistsError = /** @class */ (function (_super) {
44
- __extends(CreditManagerNotExistsError, _super);
45
- function CreditManagerNotExistsError() {
46
- return _super.call(this, "errors.creditManagerDoesntExistsError") || this;
47
- }
48
- return CreditManagerNotExistsError;
49
- }(Error));
50
- exports.CreditManagerNotExistsError = CreditManagerNotExistsError;
51
- var UserHasNotAccountError = /** @class */ (function (_super) {
52
- __extends(UserHasNotAccountError, _super);
53
- function UserHasNotAccountError() {
54
- return _super.call(this, "errors.noOpenedAccountsError") || this;
55
- }
56
- return UserHasNotAccountError;
57
- }(Error));
58
- exports.UserHasNotAccountError = UserHasNotAccountError;
59
- var PathNotFoundError = /** @class */ (function (_super) {
60
- __extends(PathNotFoundError, _super);
61
- function PathNotFoundError() {
62
- return _super.call(this, "errors.pathNotFoundError") || this;
63
- }
64
- return PathNotFoundError;
65
- }(Error));
66
- exports.PathNotFoundError = PathNotFoundError;
67
- var AccountsInAllCreditManagersError = /** @class */ (function (_super) {
68
- __extends(AccountsInAllCreditManagersError, _super);
69
- function AccountsInAllCreditManagersError() {
70
- return _super.call(this, "errors.youOpenedAccountsInAllCreditManagersError") || this;
71
- }
72
- return AccountsInAllCreditManagersError;
73
- }(Error));
74
- exports.AccountsInAllCreditManagersError = AccountsInAllCreditManagersError;
18
+ exports.OpenAccountError = void 0;
75
19
  var OpenAccountError = /** @class */ (function (_super) {
76
20
  __extends(OpenAccountError, _super);
77
21
  function OpenAccountError(errorType, amount) {
@@ -1,3 +1 @@
1
- export type { AggregatorInterface } from "./AggregatorInterface";
2
- export type { AggregatorV2V3Interface } from "./AggregatorV2V3Interface";
3
1
  export type { AggregatorV3Interface } from "./AggregatorV3Interface";
@@ -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
+ }
@@ -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
+ }
@@ -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
+ }
@@ -0,0 +1,3 @@
1
+ export type { ITokenDistributor } from "./ITokenDistributor";
2
+ export type { ITokenDistributorEvents } from "./ITokenDistributorEvents";
3
+ export type { ITokenDistributorExceptions } from "./ITokenDistributorExceptions";
@@ -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 "../../../common";
4
+ import type { TypedEventFilter, TypedEvent, TypedListener, OnEvent } from "../../common";
5
5
  export declare namespace Multicall2 {
6
6
  type CallStruct = {
7
7
  target: string;
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,3 +1,5 @@
1
- import type * as support from "./support";
2
- export type { support };
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,3 +1 @@
1
- import type * as multiCallSol from "./MultiCall.sol";
2
- export type { multiCallSol };
3
1
  export type { IOffchainOracle } from "./IOffchainOracle";
@@ -1,3 +1 @@
1
- export { AggregatorInterface__factory } from "./AggregatorInterface__factory";
2
- export { AggregatorV2V3Interface__factory } from "./AggregatorV2V3Interface__factory";
3
1
  export { AggregatorV3Interface__factory } from "./AggregatorV3Interface__factory";
@@ -1,12 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.AggregatorV3Interface__factory = exports.AggregatorV2V3Interface__factory = exports.AggregatorInterface__factory = void 0;
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; } });
@@ -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
+ }
@@ -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
+ }