@venusprotocol/protocol-reserve 1.5.0-dev.1 → 1.5.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 (125) hide show
  1. package/package.json +2 -3
  2. package/typechain/AbstractTokenConverter.d.ts +0 -1775
  3. package/typechain/AccessControl.d.ts +0 -388
  4. package/typechain/AccessControlledV8.d.ts +0 -341
  5. package/typechain/BeaconProxy.d.ts +0 -126
  6. package/typechain/BoundValidatorInterface.d.ts +0 -126
  7. package/typechain/ContextUpgradeable.d.ts +0 -92
  8. package/typechain/ConverterNetwork.d.ts +0 -723
  9. package/typechain/ERC165.d.ts +0 -116
  10. package/typechain/ERC1967Upgrade.d.ts +0 -126
  11. package/typechain/ERC20.d.ts +0 -441
  12. package/typechain/IAbstractTokenConverter.d.ts +0 -773
  13. package/typechain/IAccessControl.d.ts +0 -333
  14. package/typechain/IAccessControlManagerV8.d.ts +0 -504
  15. package/typechain/IBeacon.d.ts +0 -101
  16. package/typechain/IComptroller.d.ts +0 -136
  17. package/typechain/IConverterNetwork.d.ts +0 -292
  18. package/typechain/IERC165.d.ts +0 -116
  19. package/typechain/IERC1822Proxiable.d.ts +0 -101
  20. package/typechain/IERC1967.d.ts +0 -126
  21. package/typechain/IERC20.d.ts +0 -324
  22. package/typechain/IERC20Metadata.d.ts +0 -363
  23. package/typechain/IERC20PermitUpgradeable.d.ts +0 -187
  24. package/typechain/IERC20Upgradeable.d.ts +0 -324
  25. package/typechain/IIncomeDestination.d.ts +0 -122
  26. package/typechain/IPoolRegistry.d.ts +0 -155
  27. package/typechain/IProtocolShareReserve.d.ts +0 -127
  28. package/typechain/IRiskFund.d.ts +0 -200
  29. package/typechain/IRiskFundConverter.d.ts +0 -138
  30. package/typechain/IRiskFundGetters.d.ts +0 -103
  31. package/typechain/IShortfall.d.ts +0 -110
  32. package/typechain/IVToken.d.ts +0 -98
  33. package/typechain/IXVSVault.d.ts +0 -95
  34. package/typechain/Initializable.d.ts +0 -92
  35. package/typechain/MaxLoopsLimitHelper.d.ts +0 -128
  36. package/typechain/MaxLoopsLimitHelpersStorage.d.ts +0 -101
  37. package/typechain/MockACM.d.ts +0 -615
  38. package/typechain/MockArraySorter.d.ts +0 -118
  39. package/typechain/MockConverter.d.ts +0 -1969
  40. package/typechain/MockDeflatingToken.d.ts +0 -486
  41. package/typechain/MockRiskFundConverter.d.ts +0 -2479
  42. package/typechain/MockToken.d.ts +0 -505
  43. package/typechain/OracleInterface.d.ts +0 -98
  44. package/typechain/Ownable.d.ts +0 -181
  45. package/typechain/Ownable2StepUpgradeable.d.ts +0 -261
  46. package/typechain/OwnableUpgradeable.d.ts +0 -193
  47. package/typechain/PausableUpgradeable.d.ts +0 -129
  48. package/typechain/ProtocolShareReserve.d.ts +0 -1214
  49. package/typechain/Proxy.d.ts +0 -78
  50. package/typechain/ReentrancyGuardUpgradeable.d.ts +0 -92
  51. package/typechain/ReserveHelpersStorage.d.ts +0 -300
  52. package/typechain/ResilientOracle.d.ts +0 -1034
  53. package/typechain/ResilientOracleInterface.d.ts +0 -192
  54. package/typechain/RiskFundConverter.d.ts +0 -2235
  55. package/typechain/RiskFundV1Storage.d.ts +0 -353
  56. package/typechain/RiskFundV2.d.ts +0 -965
  57. package/typechain/RiskFundV2Storage.d.ts +0 -372
  58. package/typechain/SingleTokenConverter.d.ts +0 -1944
  59. package/typechain/TwapInterface.d.ts +0 -124
  60. package/typechain/UpgradeableBeacon.d.ts +0 -240
  61. package/typechain/VBep20Interface.d.ts +0 -379
  62. package/typechain/XVSVaultTreasury.d.ts +0 -515
  63. package/typechain/common.d.ts +0 -35
  64. package/typechain/factories/AbstractTokenConverter__factory.ts +0 -1297
  65. package/typechain/factories/AccessControl__factory.ts +0 -227
  66. package/typechain/factories/AccessControlledV8__factory.ts +0 -196
  67. package/typechain/factories/BeaconProxy__factory.ts +0 -133
  68. package/typechain/factories/BoundValidatorInterface__factory.ts +0 -59
  69. package/typechain/factories/ContextUpgradeable__factory.ts +0 -39
  70. package/typechain/factories/ConverterNetwork__factory.ts +0 -502
  71. package/typechain/factories/ERC165__factory.ts +0 -39
  72. package/typechain/factories/ERC1967Upgrade__factory.ts +0 -71
  73. package/typechain/factories/ERC20__factory.ts +0 -340
  74. package/typechain/factories/IAbstractTokenConverter__factory.ts +0 -466
  75. package/typechain/factories/IAccessControlManagerV8__factory.ts +0 -301
  76. package/typechain/factories/IAccessControl__factory.ts +0 -198
  77. package/typechain/factories/IBeacon__factory.ts +0 -36
  78. package/typechain/factories/IComptroller__factory.ts +0 -68
  79. package/typechain/factories/IConverterNetwork__factory.ts +0 -142
  80. package/typechain/factories/IERC165__factory.ts +0 -42
  81. package/typechain/factories/IERC1822Proxiable__factory.ts +0 -39
  82. package/typechain/factories/IERC1967__factory.ts +0 -68
  83. package/typechain/factories/IERC20Metadata__factory.ts +0 -248
  84. package/typechain/factories/IERC20PermitUpgradeable__factory.ts +0 -105
  85. package/typechain/factories/IERC20Upgradeable__factory.ts +0 -209
  86. package/typechain/factories/IERC20__factory.ts +0 -203
  87. package/typechain/factories/IIncomeDestination__factory.ts +0 -44
  88. package/typechain/factories/IPoolRegistry__factory.ts +0 -66
  89. package/typechain/factories/IProtocolShareReserve__factory.ts +0 -53
  90. package/typechain/factories/IRiskFundConverter__factory.ts +0 -63
  91. package/typechain/factories/IRiskFundGetters__factory.ts +0 -39
  92. package/typechain/factories/IRiskFund__factory.ts +0 -89
  93. package/typechain/factories/IShortfall__factory.ts +0 -36
  94. package/typechain/factories/IVToken__factory.ts +0 -36
  95. package/typechain/factories/IXVSVault__factory.ts +0 -36
  96. package/typechain/factories/Initializable__factory.ts +0 -36
  97. package/typechain/factories/MaxLoopsLimitHelper__factory.ts +0 -74
  98. package/typechain/factories/MaxLoopsLimitHelpersStorage__factory.ts +0 -75
  99. package/typechain/factories/MockACM__factory.ts +0 -411
  100. package/typechain/factories/MockArraySorter__factory.ts +0 -85
  101. package/typechain/factories/MockConverter__factory.ts +0 -1439
  102. package/typechain/factories/MockDeflatingToken__factory.ts +0 -389
  103. package/typechain/factories/MockRiskFundConverter__factory.ts +0 -1828
  104. package/typechain/factories/MockToken__factory.ts +0 -398
  105. package/typechain/factories/OracleInterface__factory.ts +0 -45
  106. package/typechain/factories/Ownable2StepUpgradeable__factory.ts +0 -134
  107. package/typechain/factories/OwnableUpgradeable__factory.ts +0 -91
  108. package/typechain/factories/Ownable__factory.ts +0 -75
  109. package/typechain/factories/PausableUpgradeable__factory.ts +0 -78
  110. package/typechain/factories/ProtocolShareReserve__factory.ts +0 -874
  111. package/typechain/factories/Proxy__factory.ts +0 -28
  112. package/typechain/factories/ReentrancyGuardUpgradeable__factory.ts +0 -43
  113. package/typechain/factories/ReserveHelpersStorage__factory.ts +0 -188
  114. package/typechain/factories/ResilientOracleInterface__factory.ts +0 -94
  115. package/typechain/factories/ResilientOracle__factory.ts +0 -710
  116. package/typechain/factories/RiskFundConverter__factory.ts +0 -1694
  117. package/typechain/factories/RiskFundV1Storage__factory.ts +0 -223
  118. package/typechain/factories/RiskFundV2Storage__factory.ts +0 -236
  119. package/typechain/factories/RiskFundV2__factory.ts +0 -672
  120. package/typechain/factories/SingleTokenConverter__factory.ts +0 -1441
  121. package/typechain/factories/TwapInterface__factory.ts +0 -61
  122. package/typechain/factories/UpgradeableBeacon__factory.ts +0 -163
  123. package/typechain/factories/VBep20Interface__factory.ts +0 -261
  124. package/typechain/factories/XVSVaultTreasury__factory.ts +0 -365
  125. package/typechain/index.ts +0 -126
@@ -1,28 +0,0 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- import { Contract, Signer, utils } from "ethers";
6
- import { Provider } from "@ethersproject/providers";
7
- import type { Proxy, ProxyInterface } from "../Proxy";
8
-
9
- const _abi = [
10
- {
11
- stateMutability: "payable",
12
- type: "fallback",
13
- },
14
- {
15
- stateMutability: "payable",
16
- type: "receive",
17
- },
18
- ];
19
-
20
- export class Proxy__factory {
21
- static readonly abi = _abi;
22
- static createInterface(): ProxyInterface {
23
- return new utils.Interface(_abi) as ProxyInterface;
24
- }
25
- static connect(address: string, signerOrProvider: Signer | Provider): Proxy {
26
- return new Contract(address, _abi, signerOrProvider) as Proxy;
27
- }
28
- }
@@ -1,43 +0,0 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- import { Contract, Signer, utils } from "ethers";
6
- import { Provider } from "@ethersproject/providers";
7
- import type {
8
- ReentrancyGuardUpgradeable,
9
- ReentrancyGuardUpgradeableInterface,
10
- } from "../ReentrancyGuardUpgradeable";
11
-
12
- const _abi = [
13
- {
14
- anonymous: false,
15
- inputs: [
16
- {
17
- indexed: false,
18
- internalType: "uint8",
19
- name: "version",
20
- type: "uint8",
21
- },
22
- ],
23
- name: "Initialized",
24
- type: "event",
25
- },
26
- ];
27
-
28
- export class ReentrancyGuardUpgradeable__factory {
29
- static readonly abi = _abi;
30
- static createInterface(): ReentrancyGuardUpgradeableInterface {
31
- return new utils.Interface(_abi) as ReentrancyGuardUpgradeableInterface;
32
- }
33
- static connect(
34
- address: string,
35
- signerOrProvider: Signer | Provider
36
- ): ReentrancyGuardUpgradeable {
37
- return new Contract(
38
- address,
39
- _abi,
40
- signerOrProvider
41
- ) as ReentrancyGuardUpgradeable;
42
- }
43
- }
@@ -1,188 +0,0 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- import { Signer, utils, Contract, ContractFactory, Overrides } from "ethers";
6
- import { Provider, TransactionRequest } from "@ethersproject/providers";
7
- import type {
8
- ReserveHelpersStorage,
9
- ReserveHelpersStorageInterface,
10
- } from "../ReserveHelpersStorage";
11
-
12
- const _abi = [
13
- {
14
- anonymous: false,
15
- inputs: [
16
- {
17
- indexed: false,
18
- internalType: "uint8",
19
- name: "version",
20
- type: "uint8",
21
- },
22
- ],
23
- name: "Initialized",
24
- type: "event",
25
- },
26
- {
27
- anonymous: false,
28
- inputs: [
29
- {
30
- indexed: true,
31
- internalType: "address",
32
- name: "previousOwner",
33
- type: "address",
34
- },
35
- {
36
- indexed: true,
37
- internalType: "address",
38
- name: "newOwner",
39
- type: "address",
40
- },
41
- ],
42
- name: "OwnershipTransferStarted",
43
- type: "event",
44
- },
45
- {
46
- anonymous: false,
47
- inputs: [
48
- {
49
- indexed: true,
50
- internalType: "address",
51
- name: "previousOwner",
52
- type: "address",
53
- },
54
- {
55
- indexed: true,
56
- internalType: "address",
57
- name: "newOwner",
58
- type: "address",
59
- },
60
- ],
61
- name: "OwnershipTransferred",
62
- type: "event",
63
- },
64
- {
65
- inputs: [],
66
- name: "acceptOwnership",
67
- outputs: [],
68
- stateMutability: "nonpayable",
69
- type: "function",
70
- },
71
- {
72
- inputs: [],
73
- name: "owner",
74
- outputs: [
75
- {
76
- internalType: "address",
77
- name: "",
78
- type: "address",
79
- },
80
- ],
81
- stateMutability: "view",
82
- type: "function",
83
- },
84
- {
85
- inputs: [],
86
- name: "pendingOwner",
87
- outputs: [
88
- {
89
- internalType: "address",
90
- name: "",
91
- type: "address",
92
- },
93
- ],
94
- stateMutability: "view",
95
- type: "function",
96
- },
97
- {
98
- inputs: [
99
- {
100
- internalType: "address",
101
- name: "",
102
- type: "address",
103
- },
104
- {
105
- internalType: "address",
106
- name: "",
107
- type: "address",
108
- },
109
- ],
110
- name: "poolAssetsFunds",
111
- outputs: [
112
- {
113
- internalType: "uint256",
114
- name: "",
115
- type: "uint256",
116
- },
117
- ],
118
- stateMutability: "view",
119
- type: "function",
120
- },
121
- {
122
- inputs: [],
123
- name: "renounceOwnership",
124
- outputs: [],
125
- stateMutability: "nonpayable",
126
- type: "function",
127
- },
128
- {
129
- inputs: [
130
- {
131
- internalType: "address",
132
- name: "newOwner",
133
- type: "address",
134
- },
135
- ],
136
- name: "transferOwnership",
137
- outputs: [],
138
- stateMutability: "nonpayable",
139
- type: "function",
140
- },
141
- ];
142
-
143
- const _bytecode =
144
- "0x608060405234801561001057600080fd5b5061048d806100206000396000f3fe608060405234801561001057600080fd5b50600436106100725760003560e01c80638da5cb5b116100505780638da5cb5b146100c7578063e30c397814610106578063f2fde38b1461012457600080fd5b80635dbe353314610077578063715018a6146100b557806379ba5097146100bf575b600080fd5b6100a2610085366004610402565b609860209081526000928352604080842090915290825290205481565b6040519081526020015b60405180910390f35b6100bd610137565b005b6100bd61014b565b60335473ffffffffffffffffffffffffffffffffffffffff165b60405173ffffffffffffffffffffffffffffffffffffffff90911681526020016100ac565b60655473ffffffffffffffffffffffffffffffffffffffff166100e1565b6100bd610132366004610435565b610205565b61013f6102b5565b6101496000610336565b565b606554339073ffffffffffffffffffffffffffffffffffffffff1681146101f9576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820152602960248201527f4f776e61626c6532537465703a2063616c6c6572206973206e6f74207468652060448201527f6e6577206f776e6572000000000000000000000000000000000000000000000060648201526084015b60405180910390fd5b61020281610336565b50565b61020d6102b5565b6065805473ffffffffffffffffffffffffffffffffffffffff83167fffffffffffffffffffffffff0000000000000000000000000000000000000000909116811790915561027060335473ffffffffffffffffffffffffffffffffffffffff1690565b73ffffffffffffffffffffffffffffffffffffffff167f38d16b8cac22d99fc7c124b9cd0de2d3fa1faef420bfe791d8c362d765e2270060405160405180910390a350565b60335473ffffffffffffffffffffffffffffffffffffffff163314610149576040517f08c379a000000000000000000000000000000000000000000000000000000000815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e657260448201526064016101f0565b606580547fffffffffffffffffffffffff0000000000000000000000000000000000000000169055610202816033805473ffffffffffffffffffffffffffffffffffffffff8381167fffffffffffffffffffffffff0000000000000000000000000000000000000000831681179093556040519116919082907f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e090600090a35050565b803573ffffffffffffffffffffffffffffffffffffffff811681146103fd57600080fd5b919050565b6000806040838503121561041557600080fd5b61041e836103d9565b915061042c602084016103d9565b90509250929050565b60006020828403121561044757600080fd5b610450826103d9565b939250505056fea2646970667358221220c9915934202a4201a5922ecd59f3febf0f7e1df54b3e0dbd3a410b0a08e4c1ad64736f6c634300080d0033";
145
-
146
- export class ReserveHelpersStorage__factory extends ContractFactory {
147
- constructor(
148
- ...args: [signer: Signer] | ConstructorParameters<typeof ContractFactory>
149
- ) {
150
- if (args.length === 1) {
151
- super(_abi, _bytecode, args[0]);
152
- } else {
153
- super(...args);
154
- }
155
- }
156
-
157
- deploy(
158
- overrides?: Overrides & { from?: string | Promise<string> }
159
- ): Promise<ReserveHelpersStorage> {
160
- return super.deploy(overrides || {}) as Promise<ReserveHelpersStorage>;
161
- }
162
- getDeployTransaction(
163
- overrides?: Overrides & { from?: string | Promise<string> }
164
- ): TransactionRequest {
165
- return super.getDeployTransaction(overrides || {});
166
- }
167
- attach(address: string): ReserveHelpersStorage {
168
- return super.attach(address) as ReserveHelpersStorage;
169
- }
170
- connect(signer: Signer): ReserveHelpersStorage__factory {
171
- return super.connect(signer) as ReserveHelpersStorage__factory;
172
- }
173
- static readonly bytecode = _bytecode;
174
- static readonly abi = _abi;
175
- static createInterface(): ReserveHelpersStorageInterface {
176
- return new utils.Interface(_abi) as ReserveHelpersStorageInterface;
177
- }
178
- static connect(
179
- address: string,
180
- signerOrProvider: Signer | Provider
181
- ): ReserveHelpersStorage {
182
- return new Contract(
183
- address,
184
- _abi,
185
- signerOrProvider
186
- ) as ReserveHelpersStorage;
187
- }
188
- }
@@ -1,94 +0,0 @@
1
- /* Autogenerated file. Do not edit manually. */
2
- /* tslint:disable */
3
- /* eslint-disable */
4
-
5
- import { Contract, Signer, utils } from "ethers";
6
- import { Provider } from "@ethersproject/providers";
7
- import type {
8
- ResilientOracleInterface,
9
- ResilientOracleInterfaceInterface,
10
- } from "../ResilientOracleInterface";
11
-
12
- const _abi = [
13
- {
14
- inputs: [
15
- {
16
- internalType: "address",
17
- name: "asset",
18
- type: "address",
19
- },
20
- ],
21
- name: "getPrice",
22
- outputs: [
23
- {
24
- internalType: "uint256",
25
- name: "",
26
- type: "uint256",
27
- },
28
- ],
29
- stateMutability: "view",
30
- type: "function",
31
- },
32
- {
33
- inputs: [
34
- {
35
- internalType: "address",
36
- name: "vToken",
37
- type: "address",
38
- },
39
- ],
40
- name: "getUnderlyingPrice",
41
- outputs: [
42
- {
43
- internalType: "uint256",
44
- name: "",
45
- type: "uint256",
46
- },
47
- ],
48
- stateMutability: "view",
49
- type: "function",
50
- },
51
- {
52
- inputs: [
53
- {
54
- internalType: "address",
55
- name: "asset",
56
- type: "address",
57
- },
58
- ],
59
- name: "updateAssetPrice",
60
- outputs: [],
61
- stateMutability: "nonpayable",
62
- type: "function",
63
- },
64
- {
65
- inputs: [
66
- {
67
- internalType: "address",
68
- name: "vToken",
69
- type: "address",
70
- },
71
- ],
72
- name: "updatePrice",
73
- outputs: [],
74
- stateMutability: "nonpayable",
75
- type: "function",
76
- },
77
- ];
78
-
79
- export class ResilientOracleInterface__factory {
80
- static readonly abi = _abi;
81
- static createInterface(): ResilientOracleInterfaceInterface {
82
- return new utils.Interface(_abi) as ResilientOracleInterfaceInterface;
83
- }
84
- static connect(
85
- address: string,
86
- signerOrProvider: Signer | Provider
87
- ): ResilientOracleInterface {
88
- return new Contract(
89
- address,
90
- _abi,
91
- signerOrProvider
92
- ) as ResilientOracleInterface;
93
- }
94
- }