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

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 (120) hide show
  1. package/artifacts/@openzeppelin/contracts/access/IAccessControl.sol/IAccessControl.dbg.json +1 -1
  2. package/artifacts/@openzeppelin/contracts/token/ERC20/ERC20.sol/ERC20.dbg.json +1 -1
  3. package/artifacts/@openzeppelin/contracts/token/ERC20/IERC20.sol/IERC20.dbg.json +1 -1
  4. package/artifacts/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.sol/IERC20Metadata.dbg.json +1 -1
  5. package/artifacts/@openzeppelin/contracts/utils/Context.sol/Context.dbg.json +1 -1
  6. package/artifacts/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.sol/Ownable2StepUpgradeable.dbg.json +1 -1
  7. package/artifacts/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.sol/OwnableUpgradeable.dbg.json +1 -1
  8. package/artifacts/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.sol/Initializable.dbg.json +1 -1
  9. package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.sol/IERC20Upgradeable.dbg.json +1 -1
  10. package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable.dbg.json +1 -1
  11. package/artifacts/@openzeppelin/contracts-upgradeable/token/ERC20/utils/SafeERC20Upgradeable.sol/SafeERC20Upgradeable.dbg.json +1 -1
  12. package/artifacts/@openzeppelin/contracts-upgradeable/utils/AddressUpgradeable.sol/AddressUpgradeable.dbg.json +1 -1
  13. package/artifacts/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.sol/ContextUpgradeable.dbg.json +1 -1
  14. package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/AccessControlledV8.sol/AccessControlledV8.dbg.json +1 -1
  15. package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/IAccessControlManagerV8.sol/IAccessControlManagerV8.dbg.json +1 -1
  16. package/artifacts/build-info/3320cd7a54f60491d1bcaf9577bfbaa8.json +1 -0
  17. package/artifacts/contracts/Interfaces/ComptrollerInterface.sol/ComptrollerInterface.dbg.json +1 -1
  18. package/artifacts/contracts/Interfaces/IIncomeDestination.sol/IIncomeDestination.dbg.json +1 -1
  19. package/artifacts/contracts/Interfaces/IPrime.sol/IPrime.dbg.json +1 -1
  20. package/artifacts/contracts/Interfaces/IProtocolShareReserve.sol/IProtocolShareReserve.dbg.json +1 -1
  21. package/artifacts/contracts/Interfaces/IVToken.sol/IVToken.dbg.json +1 -1
  22. package/artifacts/contracts/Interfaces/PoolRegistryInterface.sol/PoolRegistryInterface.dbg.json +1 -1
  23. package/artifacts/contracts/ProtocolReserve/ProtocolShareReserve.sol/ProtocolShareReserve.dbg.json +1 -1
  24. package/artifacts/contracts/ProtocolReserve/ProtocolShareReserve.sol/ProtocolShareReserve.json +2 -27
  25. package/artifacts/contracts/Test/Mocks/MockToken.sol/MockToken.dbg.json +1 -1
  26. package/contracts/ProtocolReserve/ProtocolShareReserve.sol +0 -3
  27. package/package.json +4 -7
  28. package/typechain/@openzeppelin/contracts/access/IAccessControl.ts +343 -0
  29. package/typechain/@openzeppelin/contracts/access/index.ts +4 -0
  30. package/typechain/@openzeppelin/contracts/index.ts +11 -0
  31. package/typechain/@openzeppelin/contracts/token/ERC20/ERC20.ts +466 -0
  32. package/typechain/@openzeppelin/contracts/token/ERC20/IERC20.ts +344 -0
  33. package/typechain/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata.ts +386 -0
  34. package/typechain/@openzeppelin/contracts/token/ERC20/extensions/index.ts +4 -0
  35. package/typechain/@openzeppelin/contracts/token/ERC20/index.ts +10 -0
  36. package/typechain/@openzeppelin/contracts/token/index.ts +8 -0
  37. package/typechain/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable.ts +264 -0
  38. package/typechain/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable.ts +190 -0
  39. package/typechain/@openzeppelin/contracts-upgradeable/access/index.ts +5 -0
  40. package/typechain/@openzeppelin/contracts-upgradeable/index.ts +17 -0
  41. package/typechain/@openzeppelin/contracts-upgradeable/proxy/index.ts +8 -0
  42. package/typechain/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable.ts +72 -0
  43. package/typechain/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts +4 -0
  44. package/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable.ts +344 -0
  45. package/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable.ts +195 -0
  46. package/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/index.ts +4 -0
  47. package/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.ts +8 -0
  48. package/typechain/@openzeppelin/contracts-upgradeable/token/ERC20/index.ts +9 -0
  49. package/typechain/@openzeppelin/contracts-upgradeable/token/index.ts +8 -0
  50. package/typechain/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable.ts +72 -0
  51. package/typechain/@openzeppelin/contracts-upgradeable/utils/index.ts +4 -0
  52. package/typechain/@openzeppelin/index.ts +11 -0
  53. package/typechain/@venusprotocol/governance-contracts/contracts/Governance/AccessControlledV8.ts +344 -0
  54. package/typechain/@venusprotocol/governance-contracts/contracts/Governance/IAccessControlManagerV8.ts +530 -0
  55. package/typechain/@venusprotocol/governance-contracts/contracts/Governance/index.ts +5 -0
  56. package/typechain/@venusprotocol/governance-contracts/contracts/index.ts +8 -0
  57. package/typechain/@venusprotocol/governance-contracts/index.ts +8 -0
  58. package/typechain/@venusprotocol/index.ts +8 -0
  59. package/typechain/common.ts +48 -0
  60. package/typechain/contracts/Interfaces/ComptrollerInterface.ts +90 -0
  61. package/typechain/contracts/Interfaces/IIncomeDestination.ts +112 -0
  62. package/typechain/contracts/Interfaces/IPrime.ts +202 -0
  63. package/typechain/contracts/Interfaces/IProtocolShareReserve.ts +122 -0
  64. package/typechain/contracts/Interfaces/IVToken.ts +87 -0
  65. package/typechain/contracts/Interfaces/PoolRegistryInterface.ts +110 -0
  66. package/typechain/contracts/Interfaces/index.ts +9 -0
  67. package/typechain/contracts/ProtocolReserve/ProtocolShareReserve.ts +1074 -0
  68. package/typechain/contracts/ProtocolReserve/index.ts +4 -0
  69. package/typechain/contracts/Test/Mocks/MockToken.ts +498 -0
  70. package/typechain/contracts/Test/Mocks/index.ts +4 -0
  71. package/typechain/contracts/Test/index.ts +8 -0
  72. package/typechain/contracts/index.ts +14 -0
  73. package/typechain/factories/@openzeppelin/contracts/access/IAccessControl__factory.ts +199 -0
  74. package/typechain/factories/@openzeppelin/contracts/access/index.ts +4 -0
  75. package/typechain/factories/@openzeppelin/contracts/index.ts +5 -0
  76. package/typechain/factories/@openzeppelin/contracts/token/ERC20/ERC20__factory.ts +352 -0
  77. package/typechain/factories/@openzeppelin/contracts/token/ERC20/IERC20__factory.ts +207 -0
  78. package/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/IERC20Metadata__factory.ts +249 -0
  79. package/typechain/factories/@openzeppelin/contracts/token/ERC20/extensions/index.ts +4 -0
  80. package/typechain/factories/@openzeppelin/contracts/token/ERC20/index.ts +6 -0
  81. package/typechain/factories/@openzeppelin/contracts/token/index.ts +4 -0
  82. package/typechain/factories/@openzeppelin/contracts-upgradeable/access/Ownable2StepUpgradeable__factory.ts +135 -0
  83. package/typechain/factories/@openzeppelin/contracts-upgradeable/access/OwnableUpgradeable__factory.ts +92 -0
  84. package/typechain/factories/@openzeppelin/contracts-upgradeable/access/index.ts +5 -0
  85. package/typechain/factories/@openzeppelin/contracts-upgradeable/index.ts +7 -0
  86. package/typechain/factories/@openzeppelin/contracts-upgradeable/proxy/index.ts +4 -0
  87. package/typechain/factories/@openzeppelin/contracts-upgradeable/proxy/utils/Initializable__factory.ts +40 -0
  88. package/typechain/factories/@openzeppelin/contracts-upgradeable/proxy/utils/index.ts +4 -0
  89. package/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/IERC20Upgradeable__factory.ts +210 -0
  90. package/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/IERC20PermitUpgradeable__factory.ts +106 -0
  91. package/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/draft-IERC20PermitUpgradeable.sol/index.ts +4 -0
  92. package/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/extensions/index.ts +4 -0
  93. package/typechain/factories/@openzeppelin/contracts-upgradeable/token/ERC20/index.ts +5 -0
  94. package/typechain/factories/@openzeppelin/contracts-upgradeable/token/index.ts +4 -0
  95. package/typechain/factories/@openzeppelin/contracts-upgradeable/utils/ContextUpgradeable__factory.ts +40 -0
  96. package/typechain/factories/@openzeppelin/contracts-upgradeable/utils/index.ts +4 -0
  97. package/typechain/factories/@openzeppelin/index.ts +5 -0
  98. package/typechain/factories/@venusprotocol/governance-contracts/contracts/Governance/AccessControlledV8__factory.ts +197 -0
  99. package/typechain/factories/@venusprotocol/governance-contracts/contracts/Governance/IAccessControlManagerV8__factory.ts +302 -0
  100. package/typechain/factories/@venusprotocol/governance-contracts/contracts/Governance/index.ts +5 -0
  101. package/typechain/factories/@venusprotocol/governance-contracts/contracts/index.ts +4 -0
  102. package/typechain/factories/@venusprotocol/governance-contracts/index.ts +4 -0
  103. package/typechain/factories/@venusprotocol/index.ts +4 -0
  104. package/typechain/factories/contracts/Interfaces/ComptrollerInterface__factory.ts +44 -0
  105. package/typechain/factories/contracts/Interfaces/IIncomeDestination__factory.ts +45 -0
  106. package/typechain/factories/contracts/Interfaces/IPrime__factory.ts +87 -0
  107. package/typechain/factories/contracts/Interfaces/IProtocolShareReserve__factory.ts +54 -0
  108. package/typechain/factories/contracts/Interfaces/IVToken__factory.ts +40 -0
  109. package/typechain/factories/contracts/Interfaces/PoolRegistryInterface__factory.ts +55 -0
  110. package/typechain/factories/contracts/Interfaces/index.ts +9 -0
  111. package/typechain/factories/contracts/ProtocolReserve/ProtocolShareReserve__factory.ts +790 -0
  112. package/typechain/factories/contracts/ProtocolReserve/index.ts +4 -0
  113. package/typechain/factories/contracts/Test/Mocks/MockToken__factory.ts +392 -0
  114. package/typechain/factories/contracts/Test/Mocks/index.ts +4 -0
  115. package/typechain/factories/contracts/Test/index.ts +4 -0
  116. package/typechain/factories/contracts/index.ts +6 -0
  117. package/typechain/factories/index.ts +6 -0
  118. package/typechain/hardhat.d.ts +213 -0
  119. package/typechain/index.ts +55 -0
  120. package/artifacts/build-info/c112788394311939ef4c47b76cde5898.json +0 -1
@@ -0,0 +1,4 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export * as utils from "./utils";
@@ -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,4 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export { Initializable__factory } from "./Initializable__factory";
@@ -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
+ }
@@ -0,0 +1,4 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export { IERC20PermitUpgradeable__factory } from "./IERC20PermitUpgradeable__factory";
@@ -0,0 +1,4 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export * as draftIerc20PermitUpgradeableSol from "./draft-IERC20PermitUpgradeable.sol";
@@ -0,0 +1,5 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export * as extensions from "./extensions";
5
+ export { IERC20Upgradeable__factory } from "./IERC20Upgradeable__factory";
@@ -0,0 +1,4 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export * as erc20 from "./ERC20";
@@ -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,4 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export { ContextUpgradeable__factory } from "./ContextUpgradeable__factory";
@@ -0,0 +1,5 @@
1
+ /* Autogenerated file. Do not edit manually. */
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ export * as contracts from "./contracts";
5
+ export * as contractsUpgradeable from "./contracts-upgradeable";
@@ -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
+ }