@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,40 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
import type {
|
|
7
|
+
Initializable,
|
|
8
|
+
InitializableInterface,
|
|
9
|
+
} from "../../../../../@openzeppelin/contracts-upgradeable/proxy/utils/Initializable";
|
|
10
|
+
import type { Provider } from "@ethersproject/providers";
|
|
11
|
+
import { Contract, Signer, utils } from "ethers";
|
|
12
|
+
|
|
13
|
+
const _abi = [
|
|
14
|
+
{
|
|
15
|
+
anonymous: false,
|
|
16
|
+
inputs: [
|
|
17
|
+
{
|
|
18
|
+
indexed: false,
|
|
19
|
+
internalType: "uint8",
|
|
20
|
+
name: "version",
|
|
21
|
+
type: "uint8",
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
name: "Initialized",
|
|
25
|
+
type: "event",
|
|
26
|
+
},
|
|
27
|
+
] as const;
|
|
28
|
+
|
|
29
|
+
export class Initializable__factory {
|
|
30
|
+
static readonly abi = _abi;
|
|
31
|
+
static createInterface(): InitializableInterface {
|
|
32
|
+
return new utils.Interface(_abi) as InitializableInterface;
|
|
33
|
+
}
|
|
34
|
+
static connect(
|
|
35
|
+
address: string,
|
|
36
|
+
signerOrProvider: Signer | Provider
|
|
37
|
+
): Initializable {
|
|
38
|
+
return new Contract(address, _abi, signerOrProvider) as Initializable;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
import type {
|
|
7
|
+
IERC20Upgradeable,
|
|
8
|
+
IERC20UpgradeableInterface,
|
|
9
|
+
} from "../../../../../@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable";
|
|
10
|
+
import type { Provider } from "@ethersproject/providers";
|
|
11
|
+
import { Contract, Signer, utils } from "ethers";
|
|
12
|
+
|
|
13
|
+
const _abi = [
|
|
14
|
+
{
|
|
15
|
+
anonymous: false,
|
|
16
|
+
inputs: [
|
|
17
|
+
{
|
|
18
|
+
indexed: true,
|
|
19
|
+
internalType: "address",
|
|
20
|
+
name: "owner",
|
|
21
|
+
type: "address",
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
indexed: true,
|
|
25
|
+
internalType: "address",
|
|
26
|
+
name: "spender",
|
|
27
|
+
type: "address",
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
indexed: false,
|
|
31
|
+
internalType: "uint256",
|
|
32
|
+
name: "value",
|
|
33
|
+
type: "uint256",
|
|
34
|
+
},
|
|
35
|
+
],
|
|
36
|
+
name: "Approval",
|
|
37
|
+
type: "event",
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
anonymous: false,
|
|
41
|
+
inputs: [
|
|
42
|
+
{
|
|
43
|
+
indexed: true,
|
|
44
|
+
internalType: "address",
|
|
45
|
+
name: "from",
|
|
46
|
+
type: "address",
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
indexed: true,
|
|
50
|
+
internalType: "address",
|
|
51
|
+
name: "to",
|
|
52
|
+
type: "address",
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
indexed: false,
|
|
56
|
+
internalType: "uint256",
|
|
57
|
+
name: "value",
|
|
58
|
+
type: "uint256",
|
|
59
|
+
},
|
|
60
|
+
],
|
|
61
|
+
name: "Transfer",
|
|
62
|
+
type: "event",
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
inputs: [
|
|
66
|
+
{
|
|
67
|
+
internalType: "address",
|
|
68
|
+
name: "owner",
|
|
69
|
+
type: "address",
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
internalType: "address",
|
|
73
|
+
name: "spender",
|
|
74
|
+
type: "address",
|
|
75
|
+
},
|
|
76
|
+
],
|
|
77
|
+
name: "allowance",
|
|
78
|
+
outputs: [
|
|
79
|
+
{
|
|
80
|
+
internalType: "uint256",
|
|
81
|
+
name: "",
|
|
82
|
+
type: "uint256",
|
|
83
|
+
},
|
|
84
|
+
],
|
|
85
|
+
stateMutability: "view",
|
|
86
|
+
type: "function",
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
inputs: [
|
|
90
|
+
{
|
|
91
|
+
internalType: "address",
|
|
92
|
+
name: "spender",
|
|
93
|
+
type: "address",
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
internalType: "uint256",
|
|
97
|
+
name: "amount",
|
|
98
|
+
type: "uint256",
|
|
99
|
+
},
|
|
100
|
+
],
|
|
101
|
+
name: "approve",
|
|
102
|
+
outputs: [
|
|
103
|
+
{
|
|
104
|
+
internalType: "bool",
|
|
105
|
+
name: "",
|
|
106
|
+
type: "bool",
|
|
107
|
+
},
|
|
108
|
+
],
|
|
109
|
+
stateMutability: "nonpayable",
|
|
110
|
+
type: "function",
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
inputs: [
|
|
114
|
+
{
|
|
115
|
+
internalType: "address",
|
|
116
|
+
name: "account",
|
|
117
|
+
type: "address",
|
|
118
|
+
},
|
|
119
|
+
],
|
|
120
|
+
name: "balanceOf",
|
|
121
|
+
outputs: [
|
|
122
|
+
{
|
|
123
|
+
internalType: "uint256",
|
|
124
|
+
name: "",
|
|
125
|
+
type: "uint256",
|
|
126
|
+
},
|
|
127
|
+
],
|
|
128
|
+
stateMutability: "view",
|
|
129
|
+
type: "function",
|
|
130
|
+
},
|
|
131
|
+
{
|
|
132
|
+
inputs: [],
|
|
133
|
+
name: "totalSupply",
|
|
134
|
+
outputs: [
|
|
135
|
+
{
|
|
136
|
+
internalType: "uint256",
|
|
137
|
+
name: "",
|
|
138
|
+
type: "uint256",
|
|
139
|
+
},
|
|
140
|
+
],
|
|
141
|
+
stateMutability: "view",
|
|
142
|
+
type: "function",
|
|
143
|
+
},
|
|
144
|
+
{
|
|
145
|
+
inputs: [
|
|
146
|
+
{
|
|
147
|
+
internalType: "address",
|
|
148
|
+
name: "to",
|
|
149
|
+
type: "address",
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
internalType: "uint256",
|
|
153
|
+
name: "amount",
|
|
154
|
+
type: "uint256",
|
|
155
|
+
},
|
|
156
|
+
],
|
|
157
|
+
name: "transfer",
|
|
158
|
+
outputs: [
|
|
159
|
+
{
|
|
160
|
+
internalType: "bool",
|
|
161
|
+
name: "",
|
|
162
|
+
type: "bool",
|
|
163
|
+
},
|
|
164
|
+
],
|
|
165
|
+
stateMutability: "nonpayable",
|
|
166
|
+
type: "function",
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
inputs: [
|
|
170
|
+
{
|
|
171
|
+
internalType: "address",
|
|
172
|
+
name: "from",
|
|
173
|
+
type: "address",
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
internalType: "address",
|
|
177
|
+
name: "to",
|
|
178
|
+
type: "address",
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
internalType: "uint256",
|
|
182
|
+
name: "amount",
|
|
183
|
+
type: "uint256",
|
|
184
|
+
},
|
|
185
|
+
],
|
|
186
|
+
name: "transferFrom",
|
|
187
|
+
outputs: [
|
|
188
|
+
{
|
|
189
|
+
internalType: "bool",
|
|
190
|
+
name: "",
|
|
191
|
+
type: "bool",
|
|
192
|
+
},
|
|
193
|
+
],
|
|
194
|
+
stateMutability: "nonpayable",
|
|
195
|
+
type: "function",
|
|
196
|
+
},
|
|
197
|
+
] as const;
|
|
198
|
+
|
|
199
|
+
export class IERC20Upgradeable__factory {
|
|
200
|
+
static readonly abi = _abi;
|
|
201
|
+
static createInterface(): IERC20UpgradeableInterface {
|
|
202
|
+
return new utils.Interface(_abi) as IERC20UpgradeableInterface;
|
|
203
|
+
}
|
|
204
|
+
static connect(
|
|
205
|
+
address: string,
|
|
206
|
+
signerOrProvider: Signer | Provider
|
|
207
|
+
): IERC20Upgradeable {
|
|
208
|
+
return new Contract(address, _abi, signerOrProvider) as IERC20Upgradeable;
|
|
209
|
+
}
|
|
210
|
+
}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
import type {
|
|
7
|
+
IERC20PermitUpgradeable,
|
|
8
|
+
IERC20PermitUpgradeableInterface,
|
|
9
|
+
} from "../../../../../../../@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable";
|
|
10
|
+
import type { Provider } from "@ethersproject/providers";
|
|
11
|
+
import { Contract, Signer, utils } from "ethers";
|
|
12
|
+
|
|
13
|
+
const _abi = [
|
|
14
|
+
{
|
|
15
|
+
inputs: [],
|
|
16
|
+
name: "DOMAIN_SEPARATOR",
|
|
17
|
+
outputs: [
|
|
18
|
+
{
|
|
19
|
+
internalType: "bytes32",
|
|
20
|
+
name: "",
|
|
21
|
+
type: "bytes32",
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
stateMutability: "view",
|
|
25
|
+
type: "function",
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
inputs: [
|
|
29
|
+
{
|
|
30
|
+
internalType: "address",
|
|
31
|
+
name: "owner",
|
|
32
|
+
type: "address",
|
|
33
|
+
},
|
|
34
|
+
],
|
|
35
|
+
name: "nonces",
|
|
36
|
+
outputs: [
|
|
37
|
+
{
|
|
38
|
+
internalType: "uint256",
|
|
39
|
+
name: "",
|
|
40
|
+
type: "uint256",
|
|
41
|
+
},
|
|
42
|
+
],
|
|
43
|
+
stateMutability: "view",
|
|
44
|
+
type: "function",
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
inputs: [
|
|
48
|
+
{
|
|
49
|
+
internalType: "address",
|
|
50
|
+
name: "owner",
|
|
51
|
+
type: "address",
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
internalType: "address",
|
|
55
|
+
name: "spender",
|
|
56
|
+
type: "address",
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
internalType: "uint256",
|
|
60
|
+
name: "value",
|
|
61
|
+
type: "uint256",
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
internalType: "uint256",
|
|
65
|
+
name: "deadline",
|
|
66
|
+
type: "uint256",
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
internalType: "uint8",
|
|
70
|
+
name: "v",
|
|
71
|
+
type: "uint8",
|
|
72
|
+
},
|
|
73
|
+
{
|
|
74
|
+
internalType: "bytes32",
|
|
75
|
+
name: "r",
|
|
76
|
+
type: "bytes32",
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
internalType: "bytes32",
|
|
80
|
+
name: "s",
|
|
81
|
+
type: "bytes32",
|
|
82
|
+
},
|
|
83
|
+
],
|
|
84
|
+
name: "permit",
|
|
85
|
+
outputs: [],
|
|
86
|
+
stateMutability: "nonpayable",
|
|
87
|
+
type: "function",
|
|
88
|
+
},
|
|
89
|
+
] as const;
|
|
90
|
+
|
|
91
|
+
export class IERC20PermitUpgradeable__factory {
|
|
92
|
+
static readonly abi = _abi;
|
|
93
|
+
static createInterface(): IERC20PermitUpgradeableInterface {
|
|
94
|
+
return new utils.Interface(_abi) as IERC20PermitUpgradeableInterface;
|
|
95
|
+
}
|
|
96
|
+
static connect(
|
|
97
|
+
address: string,
|
|
98
|
+
signerOrProvider: Signer | Provider
|
|
99
|
+
): IERC20PermitUpgradeable {
|
|
100
|
+
return new Contract(
|
|
101
|
+
address,
|
|
102
|
+
_abi,
|
|
103
|
+
signerOrProvider
|
|
104
|
+
) as IERC20PermitUpgradeable;
|
|
105
|
+
}
|
|
106
|
+
}
|
package/typechain/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.ts
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
import type {
|
|
7
|
+
ContextUpgradeable,
|
|
8
|
+
ContextUpgradeableInterface,
|
|
9
|
+
} from "../../../../@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable";
|
|
10
|
+
import type { Provider } from "@ethersproject/providers";
|
|
11
|
+
import { Contract, Signer, utils } from "ethers";
|
|
12
|
+
|
|
13
|
+
const _abi = [
|
|
14
|
+
{
|
|
15
|
+
anonymous: false,
|
|
16
|
+
inputs: [
|
|
17
|
+
{
|
|
18
|
+
indexed: false,
|
|
19
|
+
internalType: "uint8",
|
|
20
|
+
name: "version",
|
|
21
|
+
type: "uint8",
|
|
22
|
+
},
|
|
23
|
+
],
|
|
24
|
+
name: "Initialized",
|
|
25
|
+
type: "event",
|
|
26
|
+
},
|
|
27
|
+
] as const;
|
|
28
|
+
|
|
29
|
+
export class ContextUpgradeable__factory {
|
|
30
|
+
static readonly abi = _abi;
|
|
31
|
+
static createInterface(): ContextUpgradeableInterface {
|
|
32
|
+
return new utils.Interface(_abi) as ContextUpgradeableInterface;
|
|
33
|
+
}
|
|
34
|
+
static connect(
|
|
35
|
+
address: string,
|
|
36
|
+
signerOrProvider: Signer | Provider
|
|
37
|
+
): ContextUpgradeable {
|
|
38
|
+
return new Contract(address, _abi, signerOrProvider) as ContextUpgradeable;
|
|
39
|
+
}
|
|
40
|
+
}
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
/* Autogenerated file. Do not edit manually. */
|
|
2
|
+
|
|
3
|
+
/* tslint:disable */
|
|
4
|
+
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
import type {
|
|
7
|
+
AccessControlledV8,
|
|
8
|
+
AccessControlledV8Interface,
|
|
9
|
+
} from "../../../../../@venusprotocol/governance-contracts/contracts/Governance/AccessControlledV8";
|
|
10
|
+
import type { Provider } from "@ethersproject/providers";
|
|
11
|
+
import { Contract, Signer, utils } from "ethers";
|
|
12
|
+
|
|
13
|
+
const _abi = [
|
|
14
|
+
{
|
|
15
|
+
inputs: [
|
|
16
|
+
{
|
|
17
|
+
internalType: "address",
|
|
18
|
+
name: "sender",
|
|
19
|
+
type: "address",
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
internalType: "address",
|
|
23
|
+
name: "calledContract",
|
|
24
|
+
type: "address",
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
internalType: "string",
|
|
28
|
+
name: "methodSignature",
|
|
29
|
+
type: "string",
|
|
30
|
+
},
|
|
31
|
+
],
|
|
32
|
+
name: "Unauthorized",
|
|
33
|
+
type: "error",
|
|
34
|
+
},
|
|
35
|
+
{
|
|
36
|
+
anonymous: false,
|
|
37
|
+
inputs: [
|
|
38
|
+
{
|
|
39
|
+
indexed: false,
|
|
40
|
+
internalType: "uint8",
|
|
41
|
+
name: "version",
|
|
42
|
+
type: "uint8",
|
|
43
|
+
},
|
|
44
|
+
],
|
|
45
|
+
name: "Initialized",
|
|
46
|
+
type: "event",
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
anonymous: false,
|
|
50
|
+
inputs: [
|
|
51
|
+
{
|
|
52
|
+
indexed: false,
|
|
53
|
+
internalType: "address",
|
|
54
|
+
name: "oldAccessControlManager",
|
|
55
|
+
type: "address",
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
indexed: false,
|
|
59
|
+
internalType: "address",
|
|
60
|
+
name: "newAccessControlManager",
|
|
61
|
+
type: "address",
|
|
62
|
+
},
|
|
63
|
+
],
|
|
64
|
+
name: "NewAccessControlManager",
|
|
65
|
+
type: "event",
|
|
66
|
+
},
|
|
67
|
+
{
|
|
68
|
+
anonymous: false,
|
|
69
|
+
inputs: [
|
|
70
|
+
{
|
|
71
|
+
indexed: true,
|
|
72
|
+
internalType: "address",
|
|
73
|
+
name: "previousOwner",
|
|
74
|
+
type: "address",
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
indexed: true,
|
|
78
|
+
internalType: "address",
|
|
79
|
+
name: "newOwner",
|
|
80
|
+
type: "address",
|
|
81
|
+
},
|
|
82
|
+
],
|
|
83
|
+
name: "OwnershipTransferStarted",
|
|
84
|
+
type: "event",
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
anonymous: false,
|
|
88
|
+
inputs: [
|
|
89
|
+
{
|
|
90
|
+
indexed: true,
|
|
91
|
+
internalType: "address",
|
|
92
|
+
name: "previousOwner",
|
|
93
|
+
type: "address",
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
indexed: true,
|
|
97
|
+
internalType: "address",
|
|
98
|
+
name: "newOwner",
|
|
99
|
+
type: "address",
|
|
100
|
+
},
|
|
101
|
+
],
|
|
102
|
+
name: "OwnershipTransferred",
|
|
103
|
+
type: "event",
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
inputs: [],
|
|
107
|
+
name: "acceptOwnership",
|
|
108
|
+
outputs: [],
|
|
109
|
+
stateMutability: "nonpayable",
|
|
110
|
+
type: "function",
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
inputs: [],
|
|
114
|
+
name: "accessControlManager",
|
|
115
|
+
outputs: [
|
|
116
|
+
{
|
|
117
|
+
internalType: "contract IAccessControlManagerV8",
|
|
118
|
+
name: "",
|
|
119
|
+
type: "address",
|
|
120
|
+
},
|
|
121
|
+
],
|
|
122
|
+
stateMutability: "view",
|
|
123
|
+
type: "function",
|
|
124
|
+
},
|
|
125
|
+
{
|
|
126
|
+
inputs: [],
|
|
127
|
+
name: "owner",
|
|
128
|
+
outputs: [
|
|
129
|
+
{
|
|
130
|
+
internalType: "address",
|
|
131
|
+
name: "",
|
|
132
|
+
type: "address",
|
|
133
|
+
},
|
|
134
|
+
],
|
|
135
|
+
stateMutability: "view",
|
|
136
|
+
type: "function",
|
|
137
|
+
},
|
|
138
|
+
{
|
|
139
|
+
inputs: [],
|
|
140
|
+
name: "pendingOwner",
|
|
141
|
+
outputs: [
|
|
142
|
+
{
|
|
143
|
+
internalType: "address",
|
|
144
|
+
name: "",
|
|
145
|
+
type: "address",
|
|
146
|
+
},
|
|
147
|
+
],
|
|
148
|
+
stateMutability: "view",
|
|
149
|
+
type: "function",
|
|
150
|
+
},
|
|
151
|
+
{
|
|
152
|
+
inputs: [],
|
|
153
|
+
name: "renounceOwnership",
|
|
154
|
+
outputs: [],
|
|
155
|
+
stateMutability: "nonpayable",
|
|
156
|
+
type: "function",
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
inputs: [
|
|
160
|
+
{
|
|
161
|
+
internalType: "address",
|
|
162
|
+
name: "accessControlManager_",
|
|
163
|
+
type: "address",
|
|
164
|
+
},
|
|
165
|
+
],
|
|
166
|
+
name: "setAccessControlManager",
|
|
167
|
+
outputs: [],
|
|
168
|
+
stateMutability: "nonpayable",
|
|
169
|
+
type: "function",
|
|
170
|
+
},
|
|
171
|
+
{
|
|
172
|
+
inputs: [
|
|
173
|
+
{
|
|
174
|
+
internalType: "address",
|
|
175
|
+
name: "newOwner",
|
|
176
|
+
type: "address",
|
|
177
|
+
},
|
|
178
|
+
],
|
|
179
|
+
name: "transferOwnership",
|
|
180
|
+
outputs: [],
|
|
181
|
+
stateMutability: "nonpayable",
|
|
182
|
+
type: "function",
|
|
183
|
+
},
|
|
184
|
+
] as const;
|
|
185
|
+
|
|
186
|
+
export class AccessControlledV8__factory {
|
|
187
|
+
static readonly abi = _abi;
|
|
188
|
+
static createInterface(): AccessControlledV8Interface {
|
|
189
|
+
return new utils.Interface(_abi) as AccessControlledV8Interface;
|
|
190
|
+
}
|
|
191
|
+
static connect(
|
|
192
|
+
address: string,
|
|
193
|
+
signerOrProvider: Signer | Provider
|
|
194
|
+
): AccessControlledV8 {
|
|
195
|
+
return new Contract(address, _abi, signerOrProvider) as AccessControlledV8;
|
|
196
|
+
}
|
|
197
|
+
}
|