@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.
- package/package.json +4 -7
- package/typechain/@openzeppelin/contracts/access/IAccessControl.ts +343 -0
- package/typechain/@openzeppelin/contracts/access/index.ts +4 -0
- package/typechain/@openzeppelin/contracts/index.ts +11 -0
- package/typechain/@openzeppelin/contracts/token/ERC20/ERC20.ts +466 -0
- package/typechain/@openzeppelin/contracts/token/ERC20/IERC20.ts +344 -0
- package/typechain/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.ts +386 -0
- package/typechain/@openzeppelin/contracts/token/ERC20/extensions/index.ts +4 -0
- package/typechain/@openzeppelin/contracts/token/ERC20/index.ts +10 -0
- package/typechain/@openzeppelin/contracts/token/index.ts +8 -0
- package/typechain/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.ts +264 -0
- package/typechain/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.ts +190 -0
- package/typechain/@openzeppelin/contracts-upgradeable/access/index.ts +5 -0
- package/typechain/@openzeppelin/contracts-upgradeable/index.ts +17 -0
- package/typechain/@openzeppelin/contracts-upgradeable/proxy/index.ts +8 -0
- package/typechain/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.ts +72 -0
- package/typechain/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts +4 -0
- package/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.ts +344 -0
- package/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable.ts +195 -0
- package/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/index.ts +4 -0
- package/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.ts +8 -0
- package/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/index.ts +9 -0
- package/typechain/@openzeppelin/contracts-upgradeable/token/index.ts +8 -0
- package/typechain/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.ts +72 -0
- package/typechain/@openzeppelin/contracts-upgradeable/utils/index.ts +4 -0
- package/typechain/@openzeppelin/index.ts +11 -0
- package/typechain/@venusprotocol/governance-contracts/contracts/Governance/AccessControlledV8.ts +344 -0
- package/typechain/@venusprotocol/governance-contracts/contracts/Governance/IAccessControlManagerV8.ts +530 -0
- package/typechain/@venusprotocol/governance-contracts/contracts/Governance/index.ts +5 -0
- package/typechain/@venusprotocol/governance-contracts/contracts/index.ts +8 -0
- package/typechain/@venusprotocol/governance-contracts/index.ts +8 -0
- package/typechain/@venusprotocol/index.ts +8 -0
- package/typechain/common.ts +48 -0
- package/typechain/contracts/Interfaces/ComptrollerInterface.ts +90 -0
- package/typechain/contracts/Interfaces/IIncomeDestination.ts +112 -0
- package/typechain/contracts/Interfaces/IPrime.ts +202 -0
- package/typechain/contracts/Interfaces/IProtocolShareReserve.ts +122 -0
- package/typechain/contracts/Interfaces/IVToken.ts +87 -0
- package/typechain/contracts/Interfaces/PoolRegistryInterface.ts +110 -0
- package/typechain/contracts/Interfaces/index.ts +9 -0
- package/typechain/contracts/ProtocolReserve/ProtocolShareReserve.ts +1100 -0
- package/typechain/contracts/ProtocolReserve/index.ts +4 -0
- package/typechain/contracts/Test/Mocks/MockToken.ts +498 -0
- package/typechain/contracts/Test/Mocks/index.ts +4 -0
- package/typechain/contracts/Test/index.ts +8 -0
- package/typechain/contracts/index.ts +14 -0
- package/typechain/factories/@openzeppelin/contracts/access/IAccessControl__factory.ts +199 -0
- package/typechain/factories/@openzeppelin/contracts/access/index.ts +4 -0
- package/typechain/factories/@openzeppelin/contracts/index.ts +5 -0
- package/typechain/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.ts +352 -0
- package/typechain/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.ts +207 -0
- package/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.ts +249 -0
- package/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/index.ts +4 -0
- package/typechain/factories/@openzeppelin/contracts/token/ERC20/index.ts +6 -0
- package/typechain/factories/@openzeppelin/contracts/token/index.ts +4 -0
- package/typechain/factories/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable__factory.ts +135 -0
- package/typechain/factories/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable__factory.ts +92 -0
- package/typechain/factories/@openzeppelin/contracts-upgradeable/access/index.ts +5 -0
- package/typechain/factories/@openzeppelin/contracts-upgradeable/index.ts +7 -0
- package/typechain/factories/@openzeppelin/contracts-upgradeable/proxy/index.ts +4 -0
- package/typechain/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.ts +40 -0
- package/typechain/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts +4 -0
- package/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable__factory.ts +210 -0
- package/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable__factory.ts +106 -0
- package/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/index.ts +4 -0
- package/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.ts +4 -0
- package/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/index.ts +5 -0
- package/typechain/factories/@openzeppelin/contracts-upgradeable/token/index.ts +4 -0
- package/typechain/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.ts +40 -0
- package/typechain/factories/@openzeppelin/contracts-upgradeable/utils/index.ts +4 -0
- package/typechain/factories/@openzeppelin/index.ts +5 -0
- package/typechain/factories/@venusprotocol/governance-contracts/contracts/Governance/AccessControlledV8__factory.ts +197 -0
- package/typechain/factories/@venusprotocol/governance-contracts/contracts/Governance/IAccessControlManagerV8__factory.ts +302 -0
- package/typechain/factories/@venusprotocol/governance-contracts/contracts/Governance/index.ts +5 -0
- package/typechain/factories/@venusprotocol/governance-contracts/contracts/index.ts +4 -0
- package/typechain/factories/@venusprotocol/governance-contracts/index.ts +4 -0
- package/typechain/factories/@venusprotocol/index.ts +4 -0
- package/typechain/factories/contracts/Interfaces/ComptrollerInterface__factory.ts +44 -0
- package/typechain/factories/contracts/Interfaces/IIncomeDestination__factory.ts +45 -0
- package/typechain/factories/contracts/Interfaces/IPrime__factory.ts +87 -0
- package/typechain/factories/contracts/Interfaces/IProtocolShareReserve__factory.ts +54 -0
- package/typechain/factories/contracts/Interfaces/IVToken__factory.ts +40 -0
- package/typechain/factories/contracts/Interfaces/PoolRegistryInterface__factory.ts +55 -0
- package/typechain/factories/contracts/Interfaces/index.ts +9 -0
- package/typechain/factories/contracts/ProtocolReserve/ProtocolShareReserve__factory.ts +815 -0
- package/typechain/factories/contracts/ProtocolReserve/index.ts +4 -0
- package/typechain/factories/contracts/Test/Mocks/MockToken__factory.ts +392 -0
- package/typechain/factories/contracts/Test/Mocks/index.ts +4 -0
- package/typechain/factories/contracts/Test/index.ts +4 -0
- package/typechain/factories/contracts/index.ts +6 -0
- package/typechain/factories/index.ts +6 -0
- package/typechain/hardhat.d.ts +213 -0
- package/typechain/index.ts +55 -0
|
@@ -0,0 +1,112 @@
|
|
|
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 { FunctionFragment, Result } from "@ethersproject/abi";
|
|
14
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
15
|
+
import type {
|
|
16
|
+
BaseContract,
|
|
17
|
+
BigNumber,
|
|
18
|
+
BytesLike,
|
|
19
|
+
CallOverrides,
|
|
20
|
+
ContractTransaction,
|
|
21
|
+
Overrides,
|
|
22
|
+
PopulatedTransaction,
|
|
23
|
+
Signer,
|
|
24
|
+
utils,
|
|
25
|
+
} from "ethers";
|
|
26
|
+
|
|
27
|
+
export interface IIncomeDestinationInterface extends utils.Interface {
|
|
28
|
+
functions: {
|
|
29
|
+
"updateAssetsState(address,address)": FunctionFragment;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
getFunction(nameOrSignatureOrTopic: "updateAssetsState"): FunctionFragment;
|
|
33
|
+
|
|
34
|
+
encodeFunctionData(
|
|
35
|
+
functionFragment: "updateAssetsState",
|
|
36
|
+
values: [PromiseOrValue<string>, PromiseOrValue<string>]
|
|
37
|
+
): string;
|
|
38
|
+
|
|
39
|
+
decodeFunctionResult(
|
|
40
|
+
functionFragment: "updateAssetsState",
|
|
41
|
+
data: BytesLike
|
|
42
|
+
): Result;
|
|
43
|
+
|
|
44
|
+
events: {};
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface IIncomeDestination extends BaseContract {
|
|
48
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
49
|
+
attach(addressOrName: string): this;
|
|
50
|
+
deployed(): Promise<this>;
|
|
51
|
+
|
|
52
|
+
interface: IIncomeDestinationInterface;
|
|
53
|
+
|
|
54
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
55
|
+
event: TypedEventFilter<TEvent>,
|
|
56
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
57
|
+
toBlock?: string | number | undefined
|
|
58
|
+
): Promise<Array<TEvent>>;
|
|
59
|
+
|
|
60
|
+
listeners<TEvent extends TypedEvent>(
|
|
61
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
62
|
+
): Array<TypedListener<TEvent>>;
|
|
63
|
+
listeners(eventName?: string): Array<Listener>;
|
|
64
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
65
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
66
|
+
): this;
|
|
67
|
+
removeAllListeners(eventName?: string): this;
|
|
68
|
+
off: OnEvent<this>;
|
|
69
|
+
on: OnEvent<this>;
|
|
70
|
+
once: OnEvent<this>;
|
|
71
|
+
removeListener: OnEvent<this>;
|
|
72
|
+
|
|
73
|
+
functions: {
|
|
74
|
+
updateAssetsState(
|
|
75
|
+
comptroller: PromiseOrValue<string>,
|
|
76
|
+
asset: PromiseOrValue<string>,
|
|
77
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
78
|
+
): Promise<ContractTransaction>;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
updateAssetsState(
|
|
82
|
+
comptroller: PromiseOrValue<string>,
|
|
83
|
+
asset: PromiseOrValue<string>,
|
|
84
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
85
|
+
): Promise<ContractTransaction>;
|
|
86
|
+
|
|
87
|
+
callStatic: {
|
|
88
|
+
updateAssetsState(
|
|
89
|
+
comptroller: PromiseOrValue<string>,
|
|
90
|
+
asset: PromiseOrValue<string>,
|
|
91
|
+
overrides?: CallOverrides
|
|
92
|
+
): Promise<void>;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
filters: {};
|
|
96
|
+
|
|
97
|
+
estimateGas: {
|
|
98
|
+
updateAssetsState(
|
|
99
|
+
comptroller: PromiseOrValue<string>,
|
|
100
|
+
asset: PromiseOrValue<string>,
|
|
101
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
102
|
+
): Promise<BigNumber>;
|
|
103
|
+
};
|
|
104
|
+
|
|
105
|
+
populateTransaction: {
|
|
106
|
+
updateAssetsState(
|
|
107
|
+
comptroller: PromiseOrValue<string>,
|
|
108
|
+
asset: PromiseOrValue<string>,
|
|
109
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
110
|
+
): Promise<PopulatedTransaction>;
|
|
111
|
+
};
|
|
112
|
+
}
|
|
@@ -0,0 +1,202 @@
|
|
|
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 { FunctionFragment, Result } from "@ethersproject/abi";
|
|
14
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
15
|
+
import type {
|
|
16
|
+
BaseContract,
|
|
17
|
+
BigNumber,
|
|
18
|
+
BytesLike,
|
|
19
|
+
CallOverrides,
|
|
20
|
+
ContractTransaction,
|
|
21
|
+
Overrides,
|
|
22
|
+
PopulatedTransaction,
|
|
23
|
+
Signer,
|
|
24
|
+
utils,
|
|
25
|
+
} from "ethers";
|
|
26
|
+
|
|
27
|
+
export interface IPrimeInterface extends utils.Interface {
|
|
28
|
+
functions: {
|
|
29
|
+
"accrueInterest(address)": FunctionFragment;
|
|
30
|
+
"allMarkets()": FunctionFragment;
|
|
31
|
+
"updateAssetsState(address,address)": FunctionFragment;
|
|
32
|
+
"vTokenForAsset(address)": FunctionFragment;
|
|
33
|
+
};
|
|
34
|
+
|
|
35
|
+
getFunction(
|
|
36
|
+
nameOrSignatureOrTopic:
|
|
37
|
+
| "accrueInterest"
|
|
38
|
+
| "allMarkets"
|
|
39
|
+
| "updateAssetsState"
|
|
40
|
+
| "vTokenForAsset"
|
|
41
|
+
): FunctionFragment;
|
|
42
|
+
|
|
43
|
+
encodeFunctionData(
|
|
44
|
+
functionFragment: "accrueInterest",
|
|
45
|
+
values: [PromiseOrValue<string>]
|
|
46
|
+
): string;
|
|
47
|
+
encodeFunctionData(
|
|
48
|
+
functionFragment: "allMarkets",
|
|
49
|
+
values?: undefined
|
|
50
|
+
): string;
|
|
51
|
+
encodeFunctionData(
|
|
52
|
+
functionFragment: "updateAssetsState",
|
|
53
|
+
values: [PromiseOrValue<string>, PromiseOrValue<string>]
|
|
54
|
+
): string;
|
|
55
|
+
encodeFunctionData(
|
|
56
|
+
functionFragment: "vTokenForAsset",
|
|
57
|
+
values: [PromiseOrValue<string>]
|
|
58
|
+
): string;
|
|
59
|
+
|
|
60
|
+
decodeFunctionResult(
|
|
61
|
+
functionFragment: "accrueInterest",
|
|
62
|
+
data: BytesLike
|
|
63
|
+
): Result;
|
|
64
|
+
decodeFunctionResult(functionFragment: "allMarkets", data: BytesLike): Result;
|
|
65
|
+
decodeFunctionResult(
|
|
66
|
+
functionFragment: "updateAssetsState",
|
|
67
|
+
data: BytesLike
|
|
68
|
+
): Result;
|
|
69
|
+
decodeFunctionResult(
|
|
70
|
+
functionFragment: "vTokenForAsset",
|
|
71
|
+
data: BytesLike
|
|
72
|
+
): Result;
|
|
73
|
+
|
|
74
|
+
events: {};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export interface IPrime extends BaseContract {
|
|
78
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
79
|
+
attach(addressOrName: string): this;
|
|
80
|
+
deployed(): Promise<this>;
|
|
81
|
+
|
|
82
|
+
interface: IPrimeInterface;
|
|
83
|
+
|
|
84
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
85
|
+
event: TypedEventFilter<TEvent>,
|
|
86
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
87
|
+
toBlock?: string | number | undefined
|
|
88
|
+
): Promise<Array<TEvent>>;
|
|
89
|
+
|
|
90
|
+
listeners<TEvent extends TypedEvent>(
|
|
91
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
92
|
+
): Array<TypedListener<TEvent>>;
|
|
93
|
+
listeners(eventName?: string): Array<Listener>;
|
|
94
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
95
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
96
|
+
): this;
|
|
97
|
+
removeAllListeners(eventName?: string): this;
|
|
98
|
+
off: OnEvent<this>;
|
|
99
|
+
on: OnEvent<this>;
|
|
100
|
+
once: OnEvent<this>;
|
|
101
|
+
removeListener: OnEvent<this>;
|
|
102
|
+
|
|
103
|
+
functions: {
|
|
104
|
+
accrueInterest(
|
|
105
|
+
vToken: PromiseOrValue<string>,
|
|
106
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
107
|
+
): Promise<ContractTransaction>;
|
|
108
|
+
|
|
109
|
+
allMarkets(overrides?: CallOverrides): Promise<[string[]]>;
|
|
110
|
+
|
|
111
|
+
updateAssetsState(
|
|
112
|
+
comptroller: PromiseOrValue<string>,
|
|
113
|
+
asset: PromiseOrValue<string>,
|
|
114
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
115
|
+
): Promise<ContractTransaction>;
|
|
116
|
+
|
|
117
|
+
vTokenForAsset(
|
|
118
|
+
asset: PromiseOrValue<string>,
|
|
119
|
+
overrides?: CallOverrides
|
|
120
|
+
): Promise<[string]>;
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
accrueInterest(
|
|
124
|
+
vToken: PromiseOrValue<string>,
|
|
125
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
126
|
+
): Promise<ContractTransaction>;
|
|
127
|
+
|
|
128
|
+
allMarkets(overrides?: CallOverrides): Promise<string[]>;
|
|
129
|
+
|
|
130
|
+
updateAssetsState(
|
|
131
|
+
comptroller: PromiseOrValue<string>,
|
|
132
|
+
asset: PromiseOrValue<string>,
|
|
133
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
134
|
+
): Promise<ContractTransaction>;
|
|
135
|
+
|
|
136
|
+
vTokenForAsset(
|
|
137
|
+
asset: PromiseOrValue<string>,
|
|
138
|
+
overrides?: CallOverrides
|
|
139
|
+
): Promise<string>;
|
|
140
|
+
|
|
141
|
+
callStatic: {
|
|
142
|
+
accrueInterest(
|
|
143
|
+
vToken: PromiseOrValue<string>,
|
|
144
|
+
overrides?: CallOverrides
|
|
145
|
+
): Promise<void>;
|
|
146
|
+
|
|
147
|
+
allMarkets(overrides?: CallOverrides): Promise<string[]>;
|
|
148
|
+
|
|
149
|
+
updateAssetsState(
|
|
150
|
+
comptroller: PromiseOrValue<string>,
|
|
151
|
+
asset: PromiseOrValue<string>,
|
|
152
|
+
overrides?: CallOverrides
|
|
153
|
+
): Promise<void>;
|
|
154
|
+
|
|
155
|
+
vTokenForAsset(
|
|
156
|
+
asset: PromiseOrValue<string>,
|
|
157
|
+
overrides?: CallOverrides
|
|
158
|
+
): Promise<string>;
|
|
159
|
+
};
|
|
160
|
+
|
|
161
|
+
filters: {};
|
|
162
|
+
|
|
163
|
+
estimateGas: {
|
|
164
|
+
accrueInterest(
|
|
165
|
+
vToken: PromiseOrValue<string>,
|
|
166
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
167
|
+
): Promise<BigNumber>;
|
|
168
|
+
|
|
169
|
+
allMarkets(overrides?: CallOverrides): Promise<BigNumber>;
|
|
170
|
+
|
|
171
|
+
updateAssetsState(
|
|
172
|
+
comptroller: PromiseOrValue<string>,
|
|
173
|
+
asset: PromiseOrValue<string>,
|
|
174
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
175
|
+
): Promise<BigNumber>;
|
|
176
|
+
|
|
177
|
+
vTokenForAsset(
|
|
178
|
+
asset: PromiseOrValue<string>,
|
|
179
|
+
overrides?: CallOverrides
|
|
180
|
+
): Promise<BigNumber>;
|
|
181
|
+
};
|
|
182
|
+
|
|
183
|
+
populateTransaction: {
|
|
184
|
+
accrueInterest(
|
|
185
|
+
vToken: PromiseOrValue<string>,
|
|
186
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
187
|
+
): Promise<PopulatedTransaction>;
|
|
188
|
+
|
|
189
|
+
allMarkets(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
190
|
+
|
|
191
|
+
updateAssetsState(
|
|
192
|
+
comptroller: PromiseOrValue<string>,
|
|
193
|
+
asset: PromiseOrValue<string>,
|
|
194
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
195
|
+
): Promise<PopulatedTransaction>;
|
|
196
|
+
|
|
197
|
+
vTokenForAsset(
|
|
198
|
+
asset: PromiseOrValue<string>,
|
|
199
|
+
overrides?: CallOverrides
|
|
200
|
+
): Promise<PopulatedTransaction>;
|
|
201
|
+
};
|
|
202
|
+
}
|
|
@@ -0,0 +1,122 @@
|
|
|
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 { FunctionFragment, Result } from "@ethersproject/abi";
|
|
14
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
15
|
+
import type {
|
|
16
|
+
BaseContract,
|
|
17
|
+
BigNumber,
|
|
18
|
+
BigNumberish,
|
|
19
|
+
BytesLike,
|
|
20
|
+
CallOverrides,
|
|
21
|
+
ContractTransaction,
|
|
22
|
+
Overrides,
|
|
23
|
+
PopulatedTransaction,
|
|
24
|
+
Signer,
|
|
25
|
+
utils,
|
|
26
|
+
} from "ethers";
|
|
27
|
+
|
|
28
|
+
export interface IProtocolShareReserveInterface extends utils.Interface {
|
|
29
|
+
functions: {
|
|
30
|
+
"updateAssetsState(address,address,uint8)": FunctionFragment;
|
|
31
|
+
};
|
|
32
|
+
|
|
33
|
+
getFunction(nameOrSignatureOrTopic: "updateAssetsState"): FunctionFragment;
|
|
34
|
+
|
|
35
|
+
encodeFunctionData(
|
|
36
|
+
functionFragment: "updateAssetsState",
|
|
37
|
+
values: [
|
|
38
|
+
PromiseOrValue<string>,
|
|
39
|
+
PromiseOrValue<string>,
|
|
40
|
+
PromiseOrValue<BigNumberish>
|
|
41
|
+
]
|
|
42
|
+
): string;
|
|
43
|
+
|
|
44
|
+
decodeFunctionResult(
|
|
45
|
+
functionFragment: "updateAssetsState",
|
|
46
|
+
data: BytesLike
|
|
47
|
+
): Result;
|
|
48
|
+
|
|
49
|
+
events: {};
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export interface IProtocolShareReserve extends BaseContract {
|
|
53
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
54
|
+
attach(addressOrName: string): this;
|
|
55
|
+
deployed(): Promise<this>;
|
|
56
|
+
|
|
57
|
+
interface: IProtocolShareReserveInterface;
|
|
58
|
+
|
|
59
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
60
|
+
event: TypedEventFilter<TEvent>,
|
|
61
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
62
|
+
toBlock?: string | number | undefined
|
|
63
|
+
): Promise<Array<TEvent>>;
|
|
64
|
+
|
|
65
|
+
listeners<TEvent extends TypedEvent>(
|
|
66
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
67
|
+
): Array<TypedListener<TEvent>>;
|
|
68
|
+
listeners(eventName?: string): Array<Listener>;
|
|
69
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
70
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
71
|
+
): this;
|
|
72
|
+
removeAllListeners(eventName?: string): this;
|
|
73
|
+
off: OnEvent<this>;
|
|
74
|
+
on: OnEvent<this>;
|
|
75
|
+
once: OnEvent<this>;
|
|
76
|
+
removeListener: OnEvent<this>;
|
|
77
|
+
|
|
78
|
+
functions: {
|
|
79
|
+
updateAssetsState(
|
|
80
|
+
comptroller: PromiseOrValue<string>,
|
|
81
|
+
asset: PromiseOrValue<string>,
|
|
82
|
+
incomeType: PromiseOrValue<BigNumberish>,
|
|
83
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
84
|
+
): Promise<ContractTransaction>;
|
|
85
|
+
};
|
|
86
|
+
|
|
87
|
+
updateAssetsState(
|
|
88
|
+
comptroller: PromiseOrValue<string>,
|
|
89
|
+
asset: PromiseOrValue<string>,
|
|
90
|
+
incomeType: PromiseOrValue<BigNumberish>,
|
|
91
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
92
|
+
): Promise<ContractTransaction>;
|
|
93
|
+
|
|
94
|
+
callStatic: {
|
|
95
|
+
updateAssetsState(
|
|
96
|
+
comptroller: PromiseOrValue<string>,
|
|
97
|
+
asset: PromiseOrValue<string>,
|
|
98
|
+
incomeType: PromiseOrValue<BigNumberish>,
|
|
99
|
+
overrides?: CallOverrides
|
|
100
|
+
): Promise<void>;
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
filters: {};
|
|
104
|
+
|
|
105
|
+
estimateGas: {
|
|
106
|
+
updateAssetsState(
|
|
107
|
+
comptroller: PromiseOrValue<string>,
|
|
108
|
+
asset: PromiseOrValue<string>,
|
|
109
|
+
incomeType: PromiseOrValue<BigNumberish>,
|
|
110
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
111
|
+
): Promise<BigNumber>;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
populateTransaction: {
|
|
115
|
+
updateAssetsState(
|
|
116
|
+
comptroller: PromiseOrValue<string>,
|
|
117
|
+
asset: PromiseOrValue<string>,
|
|
118
|
+
incomeType: PromiseOrValue<BigNumberish>,
|
|
119
|
+
overrides?: Overrides & { from?: PromiseOrValue<string> }
|
|
120
|
+
): Promise<PopulatedTransaction>;
|
|
121
|
+
};
|
|
122
|
+
}
|
|
@@ -0,0 +1,87 @@
|
|
|
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 { FunctionFragment, Result } from "@ethersproject/abi";
|
|
14
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
15
|
+
import type {
|
|
16
|
+
BaseContract,
|
|
17
|
+
BigNumber,
|
|
18
|
+
BytesLike,
|
|
19
|
+
CallOverrides,
|
|
20
|
+
PopulatedTransaction,
|
|
21
|
+
Signer,
|
|
22
|
+
utils,
|
|
23
|
+
} from "ethers";
|
|
24
|
+
|
|
25
|
+
export interface IVTokenInterface extends utils.Interface {
|
|
26
|
+
functions: {
|
|
27
|
+
"underlying()": FunctionFragment;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
getFunction(nameOrSignatureOrTopic: "underlying"): FunctionFragment;
|
|
31
|
+
|
|
32
|
+
encodeFunctionData(
|
|
33
|
+
functionFragment: "underlying",
|
|
34
|
+
values?: undefined
|
|
35
|
+
): string;
|
|
36
|
+
|
|
37
|
+
decodeFunctionResult(functionFragment: "underlying", data: BytesLike): Result;
|
|
38
|
+
|
|
39
|
+
events: {};
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface IVToken extends BaseContract {
|
|
43
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
44
|
+
attach(addressOrName: string): this;
|
|
45
|
+
deployed(): Promise<this>;
|
|
46
|
+
|
|
47
|
+
interface: IVTokenInterface;
|
|
48
|
+
|
|
49
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
50
|
+
event: TypedEventFilter<TEvent>,
|
|
51
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
52
|
+
toBlock?: string | number | undefined
|
|
53
|
+
): Promise<Array<TEvent>>;
|
|
54
|
+
|
|
55
|
+
listeners<TEvent extends TypedEvent>(
|
|
56
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
57
|
+
): Array<TypedListener<TEvent>>;
|
|
58
|
+
listeners(eventName?: string): Array<Listener>;
|
|
59
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
60
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
61
|
+
): this;
|
|
62
|
+
removeAllListeners(eventName?: string): this;
|
|
63
|
+
off: OnEvent<this>;
|
|
64
|
+
on: OnEvent<this>;
|
|
65
|
+
once: OnEvent<this>;
|
|
66
|
+
removeListener: OnEvent<this>;
|
|
67
|
+
|
|
68
|
+
functions: {
|
|
69
|
+
underlying(overrides?: CallOverrides): Promise<[string]>;
|
|
70
|
+
};
|
|
71
|
+
|
|
72
|
+
underlying(overrides?: CallOverrides): Promise<string>;
|
|
73
|
+
|
|
74
|
+
callStatic: {
|
|
75
|
+
underlying(overrides?: CallOverrides): Promise<string>;
|
|
76
|
+
};
|
|
77
|
+
|
|
78
|
+
filters: {};
|
|
79
|
+
|
|
80
|
+
estimateGas: {
|
|
81
|
+
underlying(overrides?: CallOverrides): Promise<BigNumber>;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
populateTransaction: {
|
|
85
|
+
underlying(overrides?: CallOverrides): Promise<PopulatedTransaction>;
|
|
86
|
+
};
|
|
87
|
+
}
|
|
@@ -0,0 +1,110 @@
|
|
|
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 { FunctionFragment, Result } from "@ethersproject/abi";
|
|
14
|
+
import type { Listener, Provider } from "@ethersproject/providers";
|
|
15
|
+
import type {
|
|
16
|
+
BaseContract,
|
|
17
|
+
BigNumber,
|
|
18
|
+
BytesLike,
|
|
19
|
+
CallOverrides,
|
|
20
|
+
PopulatedTransaction,
|
|
21
|
+
Signer,
|
|
22
|
+
utils,
|
|
23
|
+
} from "ethers";
|
|
24
|
+
|
|
25
|
+
export interface PoolRegistryInterfaceInterface extends utils.Interface {
|
|
26
|
+
functions: {
|
|
27
|
+
"getVTokenForAsset(address,address)": FunctionFragment;
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
getFunction(nameOrSignatureOrTopic: "getVTokenForAsset"): FunctionFragment;
|
|
31
|
+
|
|
32
|
+
encodeFunctionData(
|
|
33
|
+
functionFragment: "getVTokenForAsset",
|
|
34
|
+
values: [PromiseOrValue<string>, PromiseOrValue<string>]
|
|
35
|
+
): string;
|
|
36
|
+
|
|
37
|
+
decodeFunctionResult(
|
|
38
|
+
functionFragment: "getVTokenForAsset",
|
|
39
|
+
data: BytesLike
|
|
40
|
+
): Result;
|
|
41
|
+
|
|
42
|
+
events: {};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface PoolRegistryInterface extends BaseContract {
|
|
46
|
+
connect(signerOrProvider: Signer | Provider | string): this;
|
|
47
|
+
attach(addressOrName: string): this;
|
|
48
|
+
deployed(): Promise<this>;
|
|
49
|
+
|
|
50
|
+
interface: PoolRegistryInterfaceInterface;
|
|
51
|
+
|
|
52
|
+
queryFilter<TEvent extends TypedEvent>(
|
|
53
|
+
event: TypedEventFilter<TEvent>,
|
|
54
|
+
fromBlockOrBlockhash?: string | number | undefined,
|
|
55
|
+
toBlock?: string | number | undefined
|
|
56
|
+
): Promise<Array<TEvent>>;
|
|
57
|
+
|
|
58
|
+
listeners<TEvent extends TypedEvent>(
|
|
59
|
+
eventFilter?: TypedEventFilter<TEvent>
|
|
60
|
+
): Array<TypedListener<TEvent>>;
|
|
61
|
+
listeners(eventName?: string): Array<Listener>;
|
|
62
|
+
removeAllListeners<TEvent extends TypedEvent>(
|
|
63
|
+
eventFilter: TypedEventFilter<TEvent>
|
|
64
|
+
): this;
|
|
65
|
+
removeAllListeners(eventName?: string): this;
|
|
66
|
+
off: OnEvent<this>;
|
|
67
|
+
on: OnEvent<this>;
|
|
68
|
+
once: OnEvent<this>;
|
|
69
|
+
removeListener: OnEvent<this>;
|
|
70
|
+
|
|
71
|
+
functions: {
|
|
72
|
+
getVTokenForAsset(
|
|
73
|
+
comptroller: PromiseOrValue<string>,
|
|
74
|
+
asset: PromiseOrValue<string>,
|
|
75
|
+
overrides?: CallOverrides
|
|
76
|
+
): Promise<[string]>;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
getVTokenForAsset(
|
|
80
|
+
comptroller: PromiseOrValue<string>,
|
|
81
|
+
asset: PromiseOrValue<string>,
|
|
82
|
+
overrides?: CallOverrides
|
|
83
|
+
): Promise<string>;
|
|
84
|
+
|
|
85
|
+
callStatic: {
|
|
86
|
+
getVTokenForAsset(
|
|
87
|
+
comptroller: PromiseOrValue<string>,
|
|
88
|
+
asset: PromiseOrValue<string>,
|
|
89
|
+
overrides?: CallOverrides
|
|
90
|
+
): Promise<string>;
|
|
91
|
+
};
|
|
92
|
+
|
|
93
|
+
filters: {};
|
|
94
|
+
|
|
95
|
+
estimateGas: {
|
|
96
|
+
getVTokenForAsset(
|
|
97
|
+
comptroller: PromiseOrValue<string>,
|
|
98
|
+
asset: PromiseOrValue<string>,
|
|
99
|
+
overrides?: CallOverrides
|
|
100
|
+
): Promise<BigNumber>;
|
|
101
|
+
};
|
|
102
|
+
|
|
103
|
+
populateTransaction: {
|
|
104
|
+
getVTokenForAsset(
|
|
105
|
+
comptroller: PromiseOrValue<string>,
|
|
106
|
+
asset: PromiseOrValue<string>,
|
|
107
|
+
overrides?: CallOverrides
|
|
108
|
+
): Promise<PopulatedTransaction>;
|
|
109
|
+
};
|
|
110
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
/* tslint:disable */
|
|
3
|
+
/* eslint-disable */
|
|
4
|
+
export type { ComptrollerInterface } from "./ComptrollerInterface";
|
|
5
|
+
export type { IIncomeDestination } from "./IIncomeDestination";
|
|
6
|
+
export type { IPrime } from "./IPrime";
|
|
7
|
+
export type { IProtocolShareReserve } from "./IProtocolShareReserve";
|
|
8
|
+
export type { IVToken } from "./IVToken";
|
|
9
|
+
export type { PoolRegistryInterface } from "./PoolRegistryInterface";
|