@venusprotocol/venus-protocol 9.4.0-dev.8 → 9.4.0

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.
@@ -1,4 +1,4 @@
1
- import deployPSR from "@venusprotocol/protocol-reserve/dist/deploy/001-psr";
1
+ import deployPSR from "@venusprotocol/protocol-reserve/dist/deploy/000-psr";
2
2
  import { ethers } from "hardhat";
3
3
  import { DeployFunction } from "hardhat-deploy/types";
4
4
  import { HardhatRuntimeEnvironment } from "hardhat/types";
@@ -28,6 +28,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
28
28
  zksyncsepolia: TEN_MINUTES,
29
29
  opsepolia: TEN_MINUTES,
30
30
  basesepolia: TEN_MINUTES,
31
+ basemainnet: NINETY_DAYS,
31
32
  bscmainnet: NINETY_DAYS,
32
33
  ethereum: NINETY_DAYS,
33
34
  arbitrumone: NINETY_DAYS,
@@ -48,6 +49,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
48
49
  opmainnet: 0,
49
50
  hardhat: 0,
50
51
  basesepolia: 0,
52
+ basemainnet: 0,
51
53
  };
52
54
 
53
55
  const blocksPerYear: Config = {
@@ -60,6 +62,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
60
62
  opsepolia: 0, // time based contracts
61
63
  opmainnet: 0, // time based contracts
62
64
  basesepolia: 0, // time based contracts
65
+ basemainnet: 0, // time based contracts
63
66
  bscmainnet: 10_512_000,
64
67
  ethereum: 2_628_000,
65
68
  hardhat: 100,
@@ -93,6 +96,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
93
96
  opsepolia: "0xd57365EE4E850e881229e2F8Aa405822f289e78d", // OPSEPOLIA MULTISIG
94
97
  opmainnet: "0x2e94dd14E81999CdBF5deDE31938beD7308354b3", // OPMAINNET MULTISIG
95
98
  basesepolia: "0xdf3b635d2b535f906BB02abb22AED71346E36a00", // BASE SEPOLIA MULTISIG
99
+ basemainnet: "0x1803Cf1D3495b43cC628aa1d8638A981F8CD341C", // BASE MAINNET MULTISIG
96
100
  bscmainnet: await getContractAddressOrNullAddress(deployments, "NormalTimelock"),
97
101
  bsctestnet: await getContractAddressOrNullAddress(deployments, "NormalTimelock"),
98
102
  };
@@ -23,6 +23,7 @@ const func: DeployFunction = async function (hre: HardhatRuntimeEnvironment) {
23
23
  opsepolia: "0xd57365EE4E850e881229e2F8Aa405822f289e78d", // OPSEPOLIA MULTISIG
24
24
  opmainnet: "0x2e94dd14E81999CdBF5deDE31938beD7308354b3", // OPMAINNET MULTISIG
25
25
  basesepolia: "0xdf3b635d2b535f906BB02abb22AED71346E36a00", // BASE SEPOLIA MULTISIG
26
+ basemainnet: "0x1803Cf1D3495b43cC628aa1d8638A981F8CD341C", // BASE MAINNET MULTISIG
26
27
  bscmainnet: await getContractAddressOrNullAddress(deployments, "NormalTimelock"),
27
28
  bsctestnet: await getContractAddressOrNullAddress(deployments, "NormalTimelock"),
28
29
  };
@@ -0,0 +1,200 @@
1
+ {
2
+ "address": "0x7B06EF6b68648C61aFE0f715740fE3950B90746B",
3
+ "abi": [
4
+ {
5
+ "inputs": [
6
+ {
7
+ "internalType": "address",
8
+ "name": "initialOwner",
9
+ "type": "address"
10
+ }
11
+ ],
12
+ "stateMutability": "nonpayable",
13
+ "type": "constructor"
14
+ },
15
+ {
16
+ "anonymous": false,
17
+ "inputs": [
18
+ {
19
+ "indexed": true,
20
+ "internalType": "address",
21
+ "name": "previousOwner",
22
+ "type": "address"
23
+ },
24
+ {
25
+ "indexed": true,
26
+ "internalType": "address",
27
+ "name": "newOwner",
28
+ "type": "address"
29
+ }
30
+ ],
31
+ "name": "OwnershipTransferred",
32
+ "type": "event"
33
+ },
34
+ {
35
+ "inputs": [
36
+ {
37
+ "internalType": "contract TransparentUpgradeableProxy",
38
+ "name": "proxy",
39
+ "type": "address"
40
+ },
41
+ {
42
+ "internalType": "address",
43
+ "name": "newAdmin",
44
+ "type": "address"
45
+ }
46
+ ],
47
+ "name": "changeProxyAdmin",
48
+ "outputs": [],
49
+ "stateMutability": "nonpayable",
50
+ "type": "function"
51
+ },
52
+ {
53
+ "inputs": [
54
+ {
55
+ "internalType": "contract TransparentUpgradeableProxy",
56
+ "name": "proxy",
57
+ "type": "address"
58
+ }
59
+ ],
60
+ "name": "getProxyAdmin",
61
+ "outputs": [
62
+ {
63
+ "internalType": "address",
64
+ "name": "",
65
+ "type": "address"
66
+ }
67
+ ],
68
+ "stateMutability": "view",
69
+ "type": "function"
70
+ },
71
+ {
72
+ "inputs": [
73
+ {
74
+ "internalType": "contract TransparentUpgradeableProxy",
75
+ "name": "proxy",
76
+ "type": "address"
77
+ }
78
+ ],
79
+ "name": "getProxyImplementation",
80
+ "outputs": [
81
+ {
82
+ "internalType": "address",
83
+ "name": "",
84
+ "type": "address"
85
+ }
86
+ ],
87
+ "stateMutability": "view",
88
+ "type": "function"
89
+ },
90
+ {
91
+ "inputs": [],
92
+ "name": "owner",
93
+ "outputs": [
94
+ {
95
+ "internalType": "address",
96
+ "name": "",
97
+ "type": "address"
98
+ }
99
+ ],
100
+ "stateMutability": "view",
101
+ "type": "function"
102
+ },
103
+ {
104
+ "inputs": [],
105
+ "name": "renounceOwnership",
106
+ "outputs": [],
107
+ "stateMutability": "nonpayable",
108
+ "type": "function"
109
+ },
110
+ {
111
+ "inputs": [
112
+ {
113
+ "internalType": "address",
114
+ "name": "newOwner",
115
+ "type": "address"
116
+ }
117
+ ],
118
+ "name": "transferOwnership",
119
+ "outputs": [],
120
+ "stateMutability": "nonpayable",
121
+ "type": "function"
122
+ },
123
+ {
124
+ "inputs": [
125
+ {
126
+ "internalType": "contract TransparentUpgradeableProxy",
127
+ "name": "proxy",
128
+ "type": "address"
129
+ },
130
+ {
131
+ "internalType": "address",
132
+ "name": "implementation",
133
+ "type": "address"
134
+ }
135
+ ],
136
+ "name": "upgrade",
137
+ "outputs": [],
138
+ "stateMutability": "nonpayable",
139
+ "type": "function"
140
+ },
141
+ {
142
+ "inputs": [
143
+ {
144
+ "internalType": "contract TransparentUpgradeableProxy",
145
+ "name": "proxy",
146
+ "type": "address"
147
+ },
148
+ {
149
+ "internalType": "address",
150
+ "name": "implementation",
151
+ "type": "address"
152
+ },
153
+ {
154
+ "internalType": "bytes",
155
+ "name": "data",
156
+ "type": "bytes"
157
+ }
158
+ ],
159
+ "name": "upgradeAndCall",
160
+ "outputs": [],
161
+ "stateMutability": "payable",
162
+ "type": "function"
163
+ }
164
+ ],
165
+ "transactionHash": "0x6300ec0a1b21ebcff7b500b5a0f65145d9156081674fdf24cef6e42a7ef923e0",
166
+ "receipt": {
167
+ "to": null,
168
+ "from": "0xdB7a865041d965f575CAB277783fF490508A21F3",
169
+ "contractAddress": "0x7B06EF6b68648C61aFE0f715740fE3950B90746B",
170
+ "transactionIndex": 103,
171
+ "gasUsed": "473314",
172
+ "logsBloom": "0x00000000000000000000000000000000000000000000000000800000080000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001000000000000000000000000000000000000020000000000000000000800000000000000000000001010000000400000000000000000000000000000000000000000000000000200000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000020000000000000000004000000000000000000000000000000000000000000000000",
173
+ "blockHash": "0x8d402d72a218d0cc48d255adcc2e1d86ebe025f61ec4eb2fbfe7170458ed605b",
174
+ "transactionHash": "0x6300ec0a1b21ebcff7b500b5a0f65145d9156081674fdf24cef6e42a7ef923e0",
175
+ "logs": [
176
+ {
177
+ "transactionIndex": 103,
178
+ "blockNumber": 23213779,
179
+ "transactionHash": "0x6300ec0a1b21ebcff7b500b5a0f65145d9156081674fdf24cef6e42a7ef923e0",
180
+ "address": "0x7B06EF6b68648C61aFE0f715740fE3950B90746B",
181
+ "topics": [
182
+ "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
183
+ "0x0000000000000000000000000000000000000000000000000000000000000000",
184
+ "0x0000000000000000000000001803cf1d3495b43cc628aa1d8638a981f8cd341c"
185
+ ],
186
+ "data": "0x",
187
+ "logIndex": 336,
188
+ "blockHash": "0x8d402d72a218d0cc48d255adcc2e1d86ebe025f61ec4eb2fbfe7170458ed605b"
189
+ }
190
+ ],
191
+ "blockNumber": 23213779,
192
+ "cumulativeGasUsed": "16379446",
193
+ "status": 1,
194
+ "byzantium": true
195
+ },
196
+ "args": ["0x1803Cf1D3495b43cC628aa1d8638A981F8CD341C"],
197
+ "numDeployments": 1,
198
+ "bytecode": "0x6080604052348015600f57600080fd5b506040516107e43803806107e4833981016040819052602c91608a565b80603481603a565b505060b8565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b600060208284031215609b57600080fd5b81516001600160a01b038116811460b157600080fd5b9392505050565b61071d806100c76000396000f3fe60806040526004361061007b5760003560e01c80639623609d1161004e5780639623609d1461011157806399a88ec414610124578063f2fde38b14610144578063f3b7dead1461016457600080fd5b8063204e1c7a14610080578063715018a6146100bc5780637eff275e146100d35780638da5cb5b146100f3575b600080fd5b34801561008c57600080fd5b506100a061009b3660046104ed565b610184565b6040516001600160a01b03909116815260200160405180910390f35b3480156100c857600080fd5b506100d1610215565b005b3480156100df57600080fd5b506100d16100ee366004610511565b610254565b3480156100ff57600080fd5b506000546001600160a01b03166100a0565b6100d161011f366004610560565b6102de565b34801561013057600080fd5b506100d161013f366004610511565b61036f565b34801561015057600080fd5b506100d161015f3660046104ed565b6103c7565b34801561017057600080fd5b506100a061017f3660046104ed565b610462565b6000806000836001600160a01b03166040516101aa90635c60da1b60e01b815260040190565b600060405180830381855afa9150503d80600081146101e5576040519150601f19603f3d011682016040523d82523d6000602084013e6101ea565b606091505b5091509150816101f957600080fd5b8080602001905181019061020d9190610636565b949350505050565b6000546001600160a01b031633146102485760405162461bcd60e51b815260040161023f90610653565b60405180910390fd5b6102526000610488565b565b6000546001600160a01b0316331461027e5760405162461bcd60e51b815260040161023f90610653565b6040516308f2839760e41b81526001600160a01b038281166004830152831690638f283970906024015b600060405180830381600087803b1580156102c257600080fd5b505af11580156102d6573d6000803e3d6000fd5b505050505050565b6000546001600160a01b031633146103085760405162461bcd60e51b815260040161023f90610653565b60405163278f794360e11b81526001600160a01b03841690634f1ef2869034906103389086908690600401610688565b6000604051808303818588803b15801561035157600080fd5b505af1158015610365573d6000803e3d6000fd5b5050505050505050565b6000546001600160a01b031633146103995760405162461bcd60e51b815260040161023f90610653565b604051631b2ce7f360e11b81526001600160a01b038281166004830152831690633659cfe6906024016102a8565b6000546001600160a01b031633146103f15760405162461bcd60e51b815260040161023f90610653565b6001600160a01b0381166104565760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161023f565b61045f81610488565b50565b6000806000836001600160a01b03166040516101aa906303e1469160e61b815260040190565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038116811461045f57600080fd5b6000602082840312156104ff57600080fd5b813561050a816104d8565b9392505050565b6000806040838503121561052457600080fd5b823561052f816104d8565b9150602083013561053f816104d8565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060006060848603121561057557600080fd5b8335610580816104d8565b92506020840135610590816104d8565b9150604084013567ffffffffffffffff808211156105ad57600080fd5b818601915086601f8301126105c157600080fd5b8135818111156105d3576105d361054a565b604051601f8201601f19908116603f011681019083821181831017156105fb576105fb61054a565b8160405282815289602084870101111561061457600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b60006020828403121561064857600080fd5b815161050a816104d8565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60018060a01b03831681526000602060406020840152835180604085015260005b818110156106c5578581018301518582016060015282016106a9565b506000606082860101526060601f19601f83011685010192505050939250505056fea264697066735822122030f52ef7e16587f148a9f5ca0dbcadc434f9288a9162f8ab87307aa33db8fc4364736f6c63430008190033",
199
+ "deployedBytecode": "0x60806040526004361061007b5760003560e01c80639623609d1161004e5780639623609d1461011157806399a88ec414610124578063f2fde38b14610144578063f3b7dead1461016457600080fd5b8063204e1c7a14610080578063715018a6146100bc5780637eff275e146100d35780638da5cb5b146100f3575b600080fd5b34801561008c57600080fd5b506100a061009b3660046104ed565b610184565b6040516001600160a01b03909116815260200160405180910390f35b3480156100c857600080fd5b506100d1610215565b005b3480156100df57600080fd5b506100d16100ee366004610511565b610254565b3480156100ff57600080fd5b506000546001600160a01b03166100a0565b6100d161011f366004610560565b6102de565b34801561013057600080fd5b506100d161013f366004610511565b61036f565b34801561015057600080fd5b506100d161015f3660046104ed565b6103c7565b34801561017057600080fd5b506100a061017f3660046104ed565b610462565b6000806000836001600160a01b03166040516101aa90635c60da1b60e01b815260040190565b600060405180830381855afa9150503d80600081146101e5576040519150601f19603f3d011682016040523d82523d6000602084013e6101ea565b606091505b5091509150816101f957600080fd5b8080602001905181019061020d9190610636565b949350505050565b6000546001600160a01b031633146102485760405162461bcd60e51b815260040161023f90610653565b60405180910390fd5b6102526000610488565b565b6000546001600160a01b0316331461027e5760405162461bcd60e51b815260040161023f90610653565b6040516308f2839760e41b81526001600160a01b038281166004830152831690638f283970906024015b600060405180830381600087803b1580156102c257600080fd5b505af11580156102d6573d6000803e3d6000fd5b505050505050565b6000546001600160a01b031633146103085760405162461bcd60e51b815260040161023f90610653565b60405163278f794360e11b81526001600160a01b03841690634f1ef2869034906103389086908690600401610688565b6000604051808303818588803b15801561035157600080fd5b505af1158015610365573d6000803e3d6000fd5b5050505050505050565b6000546001600160a01b031633146103995760405162461bcd60e51b815260040161023f90610653565b604051631b2ce7f360e11b81526001600160a01b038281166004830152831690633659cfe6906024016102a8565b6000546001600160a01b031633146103f15760405162461bcd60e51b815260040161023f90610653565b6001600160a01b0381166104565760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b606482015260840161023f565b61045f81610488565b50565b6000806000836001600160a01b03166040516101aa906303e1469160e61b815260040190565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b038116811461045f57600080fd5b6000602082840312156104ff57600080fd5b813561050a816104d8565b9392505050565b6000806040838503121561052457600080fd5b823561052f816104d8565b9150602083013561053f816104d8565b809150509250929050565b634e487b7160e01b600052604160045260246000fd5b60008060006060848603121561057557600080fd5b8335610580816104d8565b92506020840135610590816104d8565b9150604084013567ffffffffffffffff808211156105ad57600080fd5b818601915086601f8301126105c157600080fd5b8135818111156105d3576105d361054a565b604051601f8201601f19908116603f011681019083821181831017156105fb576105fb61054a565b8160405282815289602084870101111561061457600080fd5b8260208601602083013760006020848301015280955050505050509250925092565b60006020828403121561064857600080fd5b815161050a816104d8565b6020808252818101527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604082015260600190565b60018060a01b03831681526000602060406020840152835180604085015260005b818110156106c5578581018301518582016060015282016106a9565b506000606082860101526060601f19601f83011685010192505050939250505056fea264697066735822122030f52ef7e16587f148a9f5ca0dbcadc434f9288a9162f8ab87307aa33db8fc4364736f6c63430008190033"
200
+ }