@venusprotocol/protocol-reserve 1.0.0-dev.1 → 1.0.0-dev.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (93) hide show
  1. package/package.json +4 -7
  2. package/typechain/@openzeppelin/contracts/access/IAccessControl.ts +343 -0
  3. package/typechain/@openzeppelin/contracts/access/index.ts +4 -0
  4. package/typechain/@openzeppelin/contracts/index.ts +11 -0
  5. package/typechain/@openzeppelin/contracts/token/ERC20/ERC20.ts +466 -0
  6. package/typechain/@openzeppelin/contracts/token/ERC20/IERC20.ts +344 -0
  7. package/typechain/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.ts +386 -0
  8. package/typechain/@openzeppelin/contracts/token/ERC20/extensions/index.ts +4 -0
  9. package/typechain/@openzeppelin/contracts/token/ERC20/index.ts +10 -0
  10. package/typechain/@openzeppelin/contracts/token/index.ts +8 -0
  11. package/typechain/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.ts +264 -0
  12. package/typechain/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.ts +190 -0
  13. package/typechain/@openzeppelin/contracts-upgradeable/access/index.ts +5 -0
  14. package/typechain/@openzeppelin/contracts-upgradeable/index.ts +17 -0
  15. package/typechain/@openzeppelin/contracts-upgradeable/proxy/index.ts +8 -0
  16. package/typechain/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.ts +72 -0
  17. package/typechain/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts +4 -0
  18. package/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.ts +344 -0
  19. package/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable.ts +195 -0
  20. package/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/index.ts +4 -0
  21. package/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.ts +8 -0
  22. package/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/index.ts +9 -0
  23. package/typechain/@openzeppelin/contracts-upgradeable/token/index.ts +8 -0
  24. package/typechain/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.ts +72 -0
  25. package/typechain/@openzeppelin/contracts-upgradeable/utils/index.ts +4 -0
  26. package/typechain/@openzeppelin/index.ts +11 -0
  27. package/typechain/@venusprotocol/governance-contracts/contracts/Governance/AccessControlledV8.ts +344 -0
  28. package/typechain/@venusprotocol/governance-contracts/contracts/Governance/IAccessControlManagerV8.ts +530 -0
  29. package/typechain/@venusprotocol/governance-contracts/contracts/Governance/index.ts +5 -0
  30. package/typechain/@venusprotocol/governance-contracts/contracts/index.ts +8 -0
  31. package/typechain/@venusprotocol/governance-contracts/index.ts +8 -0
  32. package/typechain/@venusprotocol/index.ts +8 -0
  33. package/typechain/common.ts +48 -0
  34. package/typechain/contracts/Interfaces/ComptrollerInterface.ts +90 -0
  35. package/typechain/contracts/Interfaces/IIncomeDestination.ts +112 -0
  36. package/typechain/contracts/Interfaces/IPrime.ts +202 -0
  37. package/typechain/contracts/Interfaces/IProtocolShareReserve.ts +122 -0
  38. package/typechain/contracts/Interfaces/IVToken.ts +87 -0
  39. package/typechain/contracts/Interfaces/PoolRegistryInterface.ts +110 -0
  40. package/typechain/contracts/Interfaces/index.ts +9 -0
  41. package/typechain/contracts/ProtocolReserve/ProtocolShareReserve.ts +1100 -0
  42. package/typechain/contracts/ProtocolReserve/index.ts +4 -0
  43. package/typechain/contracts/Test/Mocks/MockToken.ts +498 -0
  44. package/typechain/contracts/Test/Mocks/index.ts +4 -0
  45. package/typechain/contracts/Test/index.ts +8 -0
  46. package/typechain/contracts/index.ts +14 -0
  47. package/typechain/factories/@openzeppelin/contracts/access/IAccessControl__factory.ts +199 -0
  48. package/typechain/factories/@openzeppelin/contracts/access/index.ts +4 -0
  49. package/typechain/factories/@openzeppelin/contracts/index.ts +5 -0
  50. package/typechain/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.ts +352 -0
  51. package/typechain/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.ts +207 -0
  52. package/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.ts +249 -0
  53. package/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/index.ts +4 -0
  54. package/typechain/factories/@openzeppelin/contracts/token/ERC20/index.ts +6 -0
  55. package/typechain/factories/@openzeppelin/contracts/token/index.ts +4 -0
  56. package/typechain/factories/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable__factory.ts +135 -0
  57. package/typechain/factories/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable__factory.ts +92 -0
  58. package/typechain/factories/@openzeppelin/contracts-upgradeable/access/index.ts +5 -0
  59. package/typechain/factories/@openzeppelin/contracts-upgradeable/index.ts +7 -0
  60. package/typechain/factories/@openzeppelin/contracts-upgradeable/proxy/index.ts +4 -0
  61. package/typechain/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.ts +40 -0
  62. package/typechain/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts +4 -0
  63. package/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable__factory.ts +210 -0
  64. package/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable__factory.ts +106 -0
  65. package/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/index.ts +4 -0
  66. package/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.ts +4 -0
  67. package/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/index.ts +5 -0
  68. package/typechain/factories/@openzeppelin/contracts-upgradeable/token/index.ts +4 -0
  69. package/typechain/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.ts +40 -0
  70. package/typechain/factories/@openzeppelin/contracts-upgradeable/utils/index.ts +4 -0
  71. package/typechain/factories/@openzeppelin/index.ts +5 -0
  72. package/typechain/factories/@venusprotocol/governance-contracts/contracts/Governance/AccessControlledV8__factory.ts +197 -0
  73. package/typechain/factories/@venusprotocol/governance-contracts/contracts/Governance/IAccessControlManagerV8__factory.ts +302 -0
  74. package/typechain/factories/@venusprotocol/governance-contracts/contracts/Governance/index.ts +5 -0
  75. package/typechain/factories/@venusprotocol/governance-contracts/contracts/index.ts +4 -0
  76. package/typechain/factories/@venusprotocol/governance-contracts/index.ts +4 -0
  77. package/typechain/factories/@venusprotocol/index.ts +4 -0
  78. package/typechain/factories/contracts/Interfaces/ComptrollerInterface__factory.ts +44 -0
  79. package/typechain/factories/contracts/Interfaces/IIncomeDestination__factory.ts +45 -0
  80. package/typechain/factories/contracts/Interfaces/IPrime__factory.ts +87 -0
  81. package/typechain/factories/contracts/Interfaces/IProtocolShareReserve__factory.ts +54 -0
  82. package/typechain/factories/contracts/Interfaces/IVToken__factory.ts +40 -0
  83. package/typechain/factories/contracts/Interfaces/PoolRegistryInterface__factory.ts +55 -0
  84. package/typechain/factories/contracts/Interfaces/index.ts +9 -0
  85. package/typechain/factories/contracts/ProtocolReserve/ProtocolShareReserve__factory.ts +815 -0
  86. package/typechain/factories/contracts/ProtocolReserve/index.ts +4 -0
  87. package/typechain/factories/contracts/Test/Mocks/MockToken__factory.ts +392 -0
  88. package/typechain/factories/contracts/Test/Mocks/index.ts +4 -0
  89. package/typechain/factories/contracts/Test/index.ts +4 -0
  90. package/typechain/factories/contracts/index.ts +6 -0
  91. package/typechain/factories/index.ts +6 -0
  92. package/typechain/hardhat.d.ts +213 -0
  93. package/typechain/index.ts +55 -0
@@ -0,0 +1,190 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+
3
+ /* tslint:disable */
4
+
5
+ /* eslint-disable */
6
+ import type {
7
+ TypedEventFilter,
8
+ TypedEvent,
9
+ TypedListener,
10
+ OnEvent,
11
+ PromiseOrValue,
12
+ } from "../../../common";
13
+ import type {
14
+ FunctionFragment,
15
+ Result,
16
+ EventFragment,
17
+ } from "@ethersproject/abi";
18
+ import type { Listener, Provider } from "@ethersproject/providers";
19
+ import type {
20
+ BaseContract,
21
+ BigNumber,
22
+ BytesLike,
23
+ CallOverrides,
24
+ ContractTransaction,
25
+ Overrides,
26
+ PopulatedTransaction,
27
+ Signer,
28
+ utils,
29
+ } from "ethers";
30
+
31
+ export interface OwnableUpgradeableInterface extends utils.Interface {
32
+ functions: {
33
+ "owner()": FunctionFragment;
34
+ "renounceOwnership()": FunctionFragment;
35
+ "transferOwnership(address)": FunctionFragment;
36
+ };
37
+
38
+ getFunction(
39
+ nameOrSignatureOrTopic: "owner" | "renounceOwnership" | "transferOwnership"
40
+ ): FunctionFragment;
41
+
42
+ encodeFunctionData(functionFragment: "owner", values?: undefined): string;
43
+ encodeFunctionData(
44
+ functionFragment: "renounceOwnership",
45
+ values?: undefined
46
+ ): string;
47
+ encodeFunctionData(
48
+ functionFragment: "transferOwnership",
49
+ values: [PromiseOrValue<string>]
50
+ ): string;
51
+
52
+ decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
53
+ decodeFunctionResult(
54
+ functionFragment: "renounceOwnership",
55
+ data: BytesLike
56
+ ): Result;
57
+ decodeFunctionResult(
58
+ functionFragment: "transferOwnership",
59
+ data: BytesLike
60
+ ): Result;
61
+
62
+ events: {
63
+ "Initialized(uint8)": EventFragment;
64
+ "OwnershipTransferred(address,address)": EventFragment;
65
+ };
66
+
67
+ getEvent(nameOrSignatureOrTopic: "Initialized"): EventFragment;
68
+ getEvent(nameOrSignatureOrTopic: "OwnershipTransferred"): EventFragment;
69
+ }
70
+
71
+ export interface InitializedEventObject {
72
+ version: number;
73
+ }
74
+ export type InitializedEvent = TypedEvent<[number], InitializedEventObject>;
75
+
76
+ export type InitializedEventFilter = TypedEventFilter<InitializedEvent>;
77
+
78
+ export interface OwnershipTransferredEventObject {
79
+ previousOwner: string;
80
+ newOwner: string;
81
+ }
82
+ export type OwnershipTransferredEvent = TypedEvent<
83
+ [string, string],
84
+ OwnershipTransferredEventObject
85
+ >;
86
+
87
+ export type OwnershipTransferredEventFilter =
88
+ TypedEventFilter<OwnershipTransferredEvent>;
89
+
90
+ export interface OwnableUpgradeable extends BaseContract {
91
+ connect(signerOrProvider: Signer | Provider | string): this;
92
+ attach(addressOrName: string): this;
93
+ deployed(): Promise<this>;
94
+
95
+ interface: OwnableUpgradeableInterface;
96
+
97
+ queryFilter<TEvent extends TypedEvent>(
98
+ event: TypedEventFilter<TEvent>,
99
+ fromBlockOrBlockhash?: string | number | undefined,
100
+ toBlock?: string | number | undefined
101
+ ): Promise<Array<TEvent>>;
102
+
103
+ listeners<TEvent extends TypedEvent>(
104
+ eventFilter?: TypedEventFilter<TEvent>
105
+ ): Array<TypedListener<TEvent>>;
106
+ listeners(eventName?: string): Array<Listener>;
107
+ removeAllListeners<TEvent extends TypedEvent>(
108
+ eventFilter: TypedEventFilter<TEvent>
109
+ ): this;
110
+ removeAllListeners(eventName?: string): this;
111
+ off: OnEvent<this>;
112
+ on: OnEvent<this>;
113
+ once: OnEvent<this>;
114
+ removeListener: OnEvent<this>;
115
+
116
+ functions: {
117
+ owner(overrides?: CallOverrides): Promise<[string]>;
118
+
119
+ renounceOwnership(
120
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
121
+ ): Promise<ContractTransaction>;
122
+
123
+ transferOwnership(
124
+ newOwner: PromiseOrValue<string>,
125
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
126
+ ): Promise<ContractTransaction>;
127
+ };
128
+
129
+ owner(overrides?: CallOverrides): Promise<string>;
130
+
131
+ renounceOwnership(
132
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
133
+ ): Promise<ContractTransaction>;
134
+
135
+ transferOwnership(
136
+ newOwner: PromiseOrValue<string>,
137
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
138
+ ): Promise<ContractTransaction>;
139
+
140
+ callStatic: {
141
+ owner(overrides?: CallOverrides): Promise<string>;
142
+
143
+ renounceOwnership(overrides?: CallOverrides): Promise<void>;
144
+
145
+ transferOwnership(
146
+ newOwner: PromiseOrValue<string>,
147
+ overrides?: CallOverrides
148
+ ): Promise<void>;
149
+ };
150
+
151
+ filters: {
152
+ "Initialized(uint8)"(version?: null): InitializedEventFilter;
153
+ Initialized(version?: null): InitializedEventFilter;
154
+
155
+ "OwnershipTransferred(address,address)"(
156
+ previousOwner?: PromiseOrValue<string> | null,
157
+ newOwner?: PromiseOrValue<string> | null
158
+ ): OwnershipTransferredEventFilter;
159
+ OwnershipTransferred(
160
+ previousOwner?: PromiseOrValue<string> | null,
161
+ newOwner?: PromiseOrValue<string> | null
162
+ ): OwnershipTransferredEventFilter;
163
+ };
164
+
165
+ estimateGas: {
166
+ owner(overrides?: CallOverrides): Promise<BigNumber>;
167
+
168
+ renounceOwnership(
169
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
170
+ ): Promise<BigNumber>;
171
+
172
+ transferOwnership(
173
+ newOwner: PromiseOrValue<string>,
174
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
175
+ ): Promise<BigNumber>;
176
+ };
177
+
178
+ populateTransaction: {
179
+ owner(overrides?: CallOverrides): Promise<PopulatedTransaction>;
180
+
181
+ renounceOwnership(
182
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
183
+ ): Promise<PopulatedTransaction>;
184
+
185
+ transferOwnership(
186
+ newOwner: PromiseOrValue<string>,
187
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
188
+ ): Promise<PopulatedTransaction>;
189
+ };
190
+ }
@@ -0,0 +1,5 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export type { Ownable2StepUpgradeable } from "./Ownable2StepUpgradeable";
5
+ export type { OwnableUpgradeable } from "./OwnableUpgradeable";
@@ -0,0 +1,17 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+
3
+ /* tslint:disable */
4
+
5
+ /* eslint-disable */
6
+ import type * as access from "./access";
7
+ import type * as proxy from "./proxy";
8
+ import type * as token from "./token";
9
+ import type * as utils from "./utils";
10
+
11
+ export type { access };
12
+
13
+ export type { proxy };
14
+
15
+ export type { token };
16
+
17
+ export type { utils };
@@ -0,0 +1,8 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+
3
+ /* tslint:disable */
4
+
5
+ /* eslint-disable */
6
+ import type * as utils from "./utils";
7
+
8
+ export type { utils };
@@ -0,0 +1,72 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+
3
+ /* tslint:disable */
4
+
5
+ /* eslint-disable */
6
+ import type {
7
+ TypedEventFilter,
8
+ TypedEvent,
9
+ TypedListener,
10
+ OnEvent,
11
+ PromiseOrValue,
12
+ } from "../../../../common";
13
+ import type { EventFragment } from "@ethersproject/abi";
14
+ import type { Listener, Provider } from "@ethersproject/providers";
15
+ import type { BaseContract, Signer, utils } from "ethers";
16
+
17
+ export interface InitializableInterface extends utils.Interface {
18
+ functions: {};
19
+
20
+ events: {
21
+ "Initialized(uint8)": EventFragment;
22
+ };
23
+
24
+ getEvent(nameOrSignatureOrTopic: "Initialized"): EventFragment;
25
+ }
26
+
27
+ export interface InitializedEventObject {
28
+ version: number;
29
+ }
30
+ export type InitializedEvent = TypedEvent<[number], InitializedEventObject>;
31
+
32
+ export type InitializedEventFilter = TypedEventFilter<InitializedEvent>;
33
+
34
+ export interface Initializable extends BaseContract {
35
+ connect(signerOrProvider: Signer | Provider | string): this;
36
+ attach(addressOrName: string): this;
37
+ deployed(): Promise<this>;
38
+
39
+ interface: InitializableInterface;
40
+
41
+ queryFilter<TEvent extends TypedEvent>(
42
+ event: TypedEventFilter<TEvent>,
43
+ fromBlockOrBlockhash?: string | number | undefined,
44
+ toBlock?: string | number | undefined
45
+ ): Promise<Array<TEvent>>;
46
+
47
+ listeners<TEvent extends TypedEvent>(
48
+ eventFilter?: TypedEventFilter<TEvent>
49
+ ): Array<TypedListener<TEvent>>;
50
+ listeners(eventName?: string): Array<Listener>;
51
+ removeAllListeners<TEvent extends TypedEvent>(
52
+ eventFilter: TypedEventFilter<TEvent>
53
+ ): this;
54
+ removeAllListeners(eventName?: string): this;
55
+ off: OnEvent<this>;
56
+ on: OnEvent<this>;
57
+ once: OnEvent<this>;
58
+ removeListener: OnEvent<this>;
59
+
60
+ functions: {};
61
+
62
+ callStatic: {};
63
+
64
+ filters: {
65
+ "Initialized(uint8)"(version?: null): InitializedEventFilter;
66
+ Initialized(version?: null): InitializedEventFilter;
67
+ };
68
+
69
+ estimateGas: {};
70
+
71
+ populateTransaction: {};
72
+ }
@@ -0,0 +1,4 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export type { Initializable } from "./Initializable";
@@ -0,0 +1,344 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+
3
+ /* tslint:disable */
4
+
5
+ /* eslint-disable */
6
+ import type {
7
+ TypedEventFilter,
8
+ TypedEvent,
9
+ TypedListener,
10
+ OnEvent,
11
+ PromiseOrValue,
12
+ } from "../../../../common";
13
+ import type {
14
+ FunctionFragment,
15
+ Result,
16
+ EventFragment,
17
+ } from "@ethersproject/abi";
18
+ import type { Listener, Provider } from "@ethersproject/providers";
19
+ import type {
20
+ BaseContract,
21
+ BigNumber,
22
+ BigNumberish,
23
+ BytesLike,
24
+ CallOverrides,
25
+ ContractTransaction,
26
+ Overrides,
27
+ PopulatedTransaction,
28
+ Signer,
29
+ utils,
30
+ } from "ethers";
31
+
32
+ export interface IERC20UpgradeableInterface extends utils.Interface {
33
+ functions: {
34
+ "allowance(address,address)": FunctionFragment;
35
+ "approve(address,uint256)": FunctionFragment;
36
+ "balanceOf(address)": FunctionFragment;
37
+ "totalSupply()": FunctionFragment;
38
+ "transfer(address,uint256)": FunctionFragment;
39
+ "transferFrom(address,address,uint256)": FunctionFragment;
40
+ };
41
+
42
+ getFunction(
43
+ nameOrSignatureOrTopic:
44
+ | "allowance"
45
+ | "approve"
46
+ | "balanceOf"
47
+ | "totalSupply"
48
+ | "transfer"
49
+ | "transferFrom"
50
+ ): FunctionFragment;
51
+
52
+ encodeFunctionData(
53
+ functionFragment: "allowance",
54
+ values: [PromiseOrValue<string>, PromiseOrValue<string>]
55
+ ): string;
56
+ encodeFunctionData(
57
+ functionFragment: "approve",
58
+ values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]
59
+ ): string;
60
+ encodeFunctionData(
61
+ functionFragment: "balanceOf",
62
+ values: [PromiseOrValue<string>]
63
+ ): string;
64
+ encodeFunctionData(
65
+ functionFragment: "totalSupply",
66
+ values?: undefined
67
+ ): string;
68
+ encodeFunctionData(
69
+ functionFragment: "transfer",
70
+ values: [PromiseOrValue<string>, PromiseOrValue<BigNumberish>]
71
+ ): string;
72
+ encodeFunctionData(
73
+ functionFragment: "transferFrom",
74
+ values: [
75
+ PromiseOrValue<string>,
76
+ PromiseOrValue<string>,
77
+ PromiseOrValue<BigNumberish>
78
+ ]
79
+ ): string;
80
+
81
+ decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result;
82
+ decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
83
+ decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
84
+ decodeFunctionResult(
85
+ functionFragment: "totalSupply",
86
+ data: BytesLike
87
+ ): Result;
88
+ decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result;
89
+ decodeFunctionResult(
90
+ functionFragment: "transferFrom",
91
+ data: BytesLike
92
+ ): Result;
93
+
94
+ events: {
95
+ "Approval(address,address,uint256)": EventFragment;
96
+ "Transfer(address,address,uint256)": EventFragment;
97
+ };
98
+
99
+ getEvent(nameOrSignatureOrTopic: "Approval"): EventFragment;
100
+ getEvent(nameOrSignatureOrTopic: "Transfer"): EventFragment;
101
+ }
102
+
103
+ export interface ApprovalEventObject {
104
+ owner: string;
105
+ spender: string;
106
+ value: BigNumber;
107
+ }
108
+ export type ApprovalEvent = TypedEvent<
109
+ [string, string, BigNumber],
110
+ ApprovalEventObject
111
+ >;
112
+
113
+ export type ApprovalEventFilter = TypedEventFilter<ApprovalEvent>;
114
+
115
+ export interface TransferEventObject {
116
+ from: string;
117
+ to: string;
118
+ value: BigNumber;
119
+ }
120
+ export type TransferEvent = TypedEvent<
121
+ [string, string, BigNumber],
122
+ TransferEventObject
123
+ >;
124
+
125
+ export type TransferEventFilter = TypedEventFilter<TransferEvent>;
126
+
127
+ export interface IERC20Upgradeable extends BaseContract {
128
+ connect(signerOrProvider: Signer | Provider | string): this;
129
+ attach(addressOrName: string): this;
130
+ deployed(): Promise<this>;
131
+
132
+ interface: IERC20UpgradeableInterface;
133
+
134
+ queryFilter<TEvent extends TypedEvent>(
135
+ event: TypedEventFilter<TEvent>,
136
+ fromBlockOrBlockhash?: string | number | undefined,
137
+ toBlock?: string | number | undefined
138
+ ): Promise<Array<TEvent>>;
139
+
140
+ listeners<TEvent extends TypedEvent>(
141
+ eventFilter?: TypedEventFilter<TEvent>
142
+ ): Array<TypedListener<TEvent>>;
143
+ listeners(eventName?: string): Array<Listener>;
144
+ removeAllListeners<TEvent extends TypedEvent>(
145
+ eventFilter: TypedEventFilter<TEvent>
146
+ ): this;
147
+ removeAllListeners(eventName?: string): this;
148
+ off: OnEvent<this>;
149
+ on: OnEvent<this>;
150
+ once: OnEvent<this>;
151
+ removeListener: OnEvent<this>;
152
+
153
+ functions: {
154
+ allowance(
155
+ owner: PromiseOrValue<string>,
156
+ spender: PromiseOrValue<string>,
157
+ overrides?: CallOverrides
158
+ ): Promise<[BigNumber]>;
159
+
160
+ approve(
161
+ spender: PromiseOrValue<string>,
162
+ amount: PromiseOrValue<BigNumberish>,
163
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
164
+ ): Promise<ContractTransaction>;
165
+
166
+ balanceOf(
167
+ account: PromiseOrValue<string>,
168
+ overrides?: CallOverrides
169
+ ): Promise<[BigNumber]>;
170
+
171
+ totalSupply(overrides?: CallOverrides): Promise<[BigNumber]>;
172
+
173
+ transfer(
174
+ to: PromiseOrValue<string>,
175
+ amount: PromiseOrValue<BigNumberish>,
176
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
177
+ ): Promise<ContractTransaction>;
178
+
179
+ transferFrom(
180
+ from: PromiseOrValue<string>,
181
+ to: PromiseOrValue<string>,
182
+ amount: PromiseOrValue<BigNumberish>,
183
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
184
+ ): Promise<ContractTransaction>;
185
+ };
186
+
187
+ allowance(
188
+ owner: PromiseOrValue<string>,
189
+ spender: PromiseOrValue<string>,
190
+ overrides?: CallOverrides
191
+ ): Promise<BigNumber>;
192
+
193
+ approve(
194
+ spender: PromiseOrValue<string>,
195
+ amount: PromiseOrValue<BigNumberish>,
196
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
197
+ ): Promise<ContractTransaction>;
198
+
199
+ balanceOf(
200
+ account: PromiseOrValue<string>,
201
+ overrides?: CallOverrides
202
+ ): Promise<BigNumber>;
203
+
204
+ totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
205
+
206
+ transfer(
207
+ to: PromiseOrValue<string>,
208
+ amount: PromiseOrValue<BigNumberish>,
209
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
210
+ ): Promise<ContractTransaction>;
211
+
212
+ transferFrom(
213
+ from: PromiseOrValue<string>,
214
+ to: PromiseOrValue<string>,
215
+ amount: PromiseOrValue<BigNumberish>,
216
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
217
+ ): Promise<ContractTransaction>;
218
+
219
+ callStatic: {
220
+ allowance(
221
+ owner: PromiseOrValue<string>,
222
+ spender: PromiseOrValue<string>,
223
+ overrides?: CallOverrides
224
+ ): Promise<BigNumber>;
225
+
226
+ approve(
227
+ spender: PromiseOrValue<string>,
228
+ amount: PromiseOrValue<BigNumberish>,
229
+ overrides?: CallOverrides
230
+ ): Promise<boolean>;
231
+
232
+ balanceOf(
233
+ account: PromiseOrValue<string>,
234
+ overrides?: CallOverrides
235
+ ): Promise<BigNumber>;
236
+
237
+ totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
238
+
239
+ transfer(
240
+ to: PromiseOrValue<string>,
241
+ amount: PromiseOrValue<BigNumberish>,
242
+ overrides?: CallOverrides
243
+ ): Promise<boolean>;
244
+
245
+ transferFrom(
246
+ from: PromiseOrValue<string>,
247
+ to: PromiseOrValue<string>,
248
+ amount: PromiseOrValue<BigNumberish>,
249
+ overrides?: CallOverrides
250
+ ): Promise<boolean>;
251
+ };
252
+
253
+ filters: {
254
+ "Approval(address,address,uint256)"(
255
+ owner?: PromiseOrValue<string> | null,
256
+ spender?: PromiseOrValue<string> | null,
257
+ value?: null
258
+ ): ApprovalEventFilter;
259
+ Approval(
260
+ owner?: PromiseOrValue<string> | null,
261
+ spender?: PromiseOrValue<string> | null,
262
+ value?: null
263
+ ): ApprovalEventFilter;
264
+
265
+ "Transfer(address,address,uint256)"(
266
+ from?: PromiseOrValue<string> | null,
267
+ to?: PromiseOrValue<string> | null,
268
+ value?: null
269
+ ): TransferEventFilter;
270
+ Transfer(
271
+ from?: PromiseOrValue<string> | null,
272
+ to?: PromiseOrValue<string> | null,
273
+ value?: null
274
+ ): TransferEventFilter;
275
+ };
276
+
277
+ estimateGas: {
278
+ allowance(
279
+ owner: PromiseOrValue<string>,
280
+ spender: PromiseOrValue<string>,
281
+ overrides?: CallOverrides
282
+ ): Promise<BigNumber>;
283
+
284
+ approve(
285
+ spender: PromiseOrValue<string>,
286
+ amount: PromiseOrValue<BigNumberish>,
287
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
288
+ ): Promise<BigNumber>;
289
+
290
+ balanceOf(
291
+ account: PromiseOrValue<string>,
292
+ overrides?: CallOverrides
293
+ ): Promise<BigNumber>;
294
+
295
+ totalSupply(overrides?: CallOverrides): Promise<BigNumber>;
296
+
297
+ transfer(
298
+ to: PromiseOrValue<string>,
299
+ amount: PromiseOrValue<BigNumberish>,
300
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
301
+ ): Promise<BigNumber>;
302
+
303
+ transferFrom(
304
+ from: PromiseOrValue<string>,
305
+ to: PromiseOrValue<string>,
306
+ amount: PromiseOrValue<BigNumberish>,
307
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
308
+ ): Promise<BigNumber>;
309
+ };
310
+
311
+ populateTransaction: {
312
+ allowance(
313
+ owner: PromiseOrValue<string>,
314
+ spender: PromiseOrValue<string>,
315
+ overrides?: CallOverrides
316
+ ): Promise<PopulatedTransaction>;
317
+
318
+ approve(
319
+ spender: PromiseOrValue<string>,
320
+ amount: PromiseOrValue<BigNumberish>,
321
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
322
+ ): Promise<PopulatedTransaction>;
323
+
324
+ balanceOf(
325
+ account: PromiseOrValue<string>,
326
+ overrides?: CallOverrides
327
+ ): Promise<PopulatedTransaction>;
328
+
329
+ totalSupply(overrides?: CallOverrides): Promise<PopulatedTransaction>;
330
+
331
+ transfer(
332
+ to: PromiseOrValue<string>,
333
+ amount: PromiseOrValue<BigNumberish>,
334
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
335
+ ): Promise<PopulatedTransaction>;
336
+
337
+ transferFrom(
338
+ from: PromiseOrValue<string>,
339
+ to: PromiseOrValue<string>,
340
+ amount: PromiseOrValue<BigNumberish>,
341
+ overrides?: Overrides & { from?: PromiseOrValue<string> }
342
+ ): Promise<PopulatedTransaction>;
343
+ };
344
+ }