@venusprotocol/venus-protocol 9.2.0-dev.5 → 9.2.0-dev.6
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/deploy/005-deploy-VTreasuryV8.ts +3 -0
- package/deployments/zksyncsepolia/.chainId +1 -0
- package/deployments/zksyncsepolia/VTreasuryV8.json +424 -0
- package/deployments/zksyncsepolia/solcInputs/38fe5c4d0593c7264a718b3ec83e4caf.json +277 -0
- package/deployments/zksyncsepolia.json +200 -0
- package/deployments/zksyncsepolia_addresses.json +7 -0
- package/dist/deploy/005-deploy-VTreasuryV8.js +2 -0
- package/package.json +14 -7
|
@@ -0,0 +1,200 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "zksyncsepolia",
|
|
3
|
+
"chainId": "300",
|
|
4
|
+
"contracts": {
|
|
5
|
+
"VTreasuryV8": {
|
|
6
|
+
"address": "0x943eBE4460a12F551D60A68f510Ea10CD8d564BA",
|
|
7
|
+
"abi": [
|
|
8
|
+
{
|
|
9
|
+
"inputs": [],
|
|
10
|
+
"name": "ZeroAddressNotAllowed",
|
|
11
|
+
"type": "error"
|
|
12
|
+
},
|
|
13
|
+
{
|
|
14
|
+
"anonymous": false,
|
|
15
|
+
"inputs": [
|
|
16
|
+
{
|
|
17
|
+
"indexed": true,
|
|
18
|
+
"internalType": "address",
|
|
19
|
+
"name": "previousOwner",
|
|
20
|
+
"type": "address"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"indexed": true,
|
|
24
|
+
"internalType": "address",
|
|
25
|
+
"name": "newOwner",
|
|
26
|
+
"type": "address"
|
|
27
|
+
}
|
|
28
|
+
],
|
|
29
|
+
"name": "OwnershipTransferStarted",
|
|
30
|
+
"type": "event"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"anonymous": false,
|
|
34
|
+
"inputs": [
|
|
35
|
+
{
|
|
36
|
+
"indexed": true,
|
|
37
|
+
"internalType": "address",
|
|
38
|
+
"name": "previousOwner",
|
|
39
|
+
"type": "address"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"indexed": true,
|
|
43
|
+
"internalType": "address",
|
|
44
|
+
"name": "newOwner",
|
|
45
|
+
"type": "address"
|
|
46
|
+
}
|
|
47
|
+
],
|
|
48
|
+
"name": "OwnershipTransferred",
|
|
49
|
+
"type": "event"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"anonymous": false,
|
|
53
|
+
"inputs": [
|
|
54
|
+
{
|
|
55
|
+
"indexed": false,
|
|
56
|
+
"internalType": "uint256",
|
|
57
|
+
"name": "withdrawAmount",
|
|
58
|
+
"type": "uint256"
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
"indexed": true,
|
|
62
|
+
"internalType": "address",
|
|
63
|
+
"name": "withdrawAddress",
|
|
64
|
+
"type": "address"
|
|
65
|
+
}
|
|
66
|
+
],
|
|
67
|
+
"name": "WithdrawTreasuryNative",
|
|
68
|
+
"type": "event"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"anonymous": false,
|
|
72
|
+
"inputs": [
|
|
73
|
+
{
|
|
74
|
+
"indexed": true,
|
|
75
|
+
"internalType": "address",
|
|
76
|
+
"name": "tokenAddress",
|
|
77
|
+
"type": "address"
|
|
78
|
+
},
|
|
79
|
+
{
|
|
80
|
+
"indexed": false,
|
|
81
|
+
"internalType": "uint256",
|
|
82
|
+
"name": "withdrawAmount",
|
|
83
|
+
"type": "uint256"
|
|
84
|
+
},
|
|
85
|
+
{
|
|
86
|
+
"indexed": true,
|
|
87
|
+
"internalType": "address",
|
|
88
|
+
"name": "withdrawAddress",
|
|
89
|
+
"type": "address"
|
|
90
|
+
}
|
|
91
|
+
],
|
|
92
|
+
"name": "WithdrawTreasuryToken",
|
|
93
|
+
"type": "event"
|
|
94
|
+
},
|
|
95
|
+
{
|
|
96
|
+
"stateMutability": "payable",
|
|
97
|
+
"type": "fallback"
|
|
98
|
+
},
|
|
99
|
+
{
|
|
100
|
+
"inputs": [],
|
|
101
|
+
"name": "acceptOwnership",
|
|
102
|
+
"outputs": [],
|
|
103
|
+
"stateMutability": "nonpayable",
|
|
104
|
+
"type": "function"
|
|
105
|
+
},
|
|
106
|
+
{
|
|
107
|
+
"inputs": [],
|
|
108
|
+
"name": "owner",
|
|
109
|
+
"outputs": [
|
|
110
|
+
{
|
|
111
|
+
"internalType": "address",
|
|
112
|
+
"name": "",
|
|
113
|
+
"type": "address"
|
|
114
|
+
}
|
|
115
|
+
],
|
|
116
|
+
"stateMutability": "view",
|
|
117
|
+
"type": "function"
|
|
118
|
+
},
|
|
119
|
+
{
|
|
120
|
+
"inputs": [],
|
|
121
|
+
"name": "pendingOwner",
|
|
122
|
+
"outputs": [
|
|
123
|
+
{
|
|
124
|
+
"internalType": "address",
|
|
125
|
+
"name": "",
|
|
126
|
+
"type": "address"
|
|
127
|
+
}
|
|
128
|
+
],
|
|
129
|
+
"stateMutability": "view",
|
|
130
|
+
"type": "function"
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
"inputs": [],
|
|
134
|
+
"name": "renounceOwnership",
|
|
135
|
+
"outputs": [],
|
|
136
|
+
"stateMutability": "nonpayable",
|
|
137
|
+
"type": "function"
|
|
138
|
+
},
|
|
139
|
+
{
|
|
140
|
+
"inputs": [
|
|
141
|
+
{
|
|
142
|
+
"internalType": "address",
|
|
143
|
+
"name": "newOwner",
|
|
144
|
+
"type": "address"
|
|
145
|
+
}
|
|
146
|
+
],
|
|
147
|
+
"name": "transferOwnership",
|
|
148
|
+
"outputs": [],
|
|
149
|
+
"stateMutability": "nonpayable",
|
|
150
|
+
"type": "function"
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"inputs": [
|
|
154
|
+
{
|
|
155
|
+
"internalType": "uint256",
|
|
156
|
+
"name": "withdrawAmount",
|
|
157
|
+
"type": "uint256"
|
|
158
|
+
},
|
|
159
|
+
{
|
|
160
|
+
"internalType": "address payable",
|
|
161
|
+
"name": "withdrawAddress",
|
|
162
|
+
"type": "address"
|
|
163
|
+
}
|
|
164
|
+
],
|
|
165
|
+
"name": "withdrawTreasuryNative",
|
|
166
|
+
"outputs": [],
|
|
167
|
+
"stateMutability": "payable",
|
|
168
|
+
"type": "function"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"inputs": [
|
|
172
|
+
{
|
|
173
|
+
"internalType": "address",
|
|
174
|
+
"name": "tokenAddress",
|
|
175
|
+
"type": "address"
|
|
176
|
+
},
|
|
177
|
+
{
|
|
178
|
+
"internalType": "uint256",
|
|
179
|
+
"name": "withdrawAmount",
|
|
180
|
+
"type": "uint256"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"internalType": "address",
|
|
184
|
+
"name": "withdrawAddress",
|
|
185
|
+
"type": "address"
|
|
186
|
+
}
|
|
187
|
+
],
|
|
188
|
+
"name": "withdrawTreasuryToken",
|
|
189
|
+
"outputs": [],
|
|
190
|
+
"stateMutability": "nonpayable",
|
|
191
|
+
"type": "function"
|
|
192
|
+
},
|
|
193
|
+
{
|
|
194
|
+
"stateMutability": "payable",
|
|
195
|
+
"type": "receive"
|
|
196
|
+
}
|
|
197
|
+
]
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
}
|
|
@@ -24,6 +24,7 @@ const func = async function (hre) {
|
|
|
24
24
|
arbitrumsepolia: "0x1426A5Ae009c4443188DA8793751024E358A61C2",
|
|
25
25
|
arbitrumone: "0x14e0E151b33f9802b3e75b621c1457afc44DcAA0",
|
|
26
26
|
xlayertestnet: "0x5961449d63149035aCfC0714D5155f24C9819004",
|
|
27
|
+
zksyncsepolia: "0xa2f83de95E9F28eD443132C331B6a9C9B7a9F866",
|
|
27
28
|
bscmainnet: await getTimelock(),
|
|
28
29
|
bsctestnet: await getTimelock(),
|
|
29
30
|
hardhat: deployer,
|
|
@@ -35,6 +36,7 @@ const func = async function (hre) {
|
|
|
35
36
|
args: [],
|
|
36
37
|
log: true,
|
|
37
38
|
autoMine: true,
|
|
39
|
+
skipIfAlreadyDeployed: true,
|
|
38
40
|
});
|
|
39
41
|
const adminAccount = acmAdminAccount[hre.network.name];
|
|
40
42
|
const VTreasuryV8 = await hardhat_1.ethers.getContractAt("VTreasuryV8", treasuryInstance.address);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@venusprotocol/venus-protocol",
|
|
3
|
-
"version": "9.2.0-dev.
|
|
3
|
+
"version": "9.2.0-dev.6",
|
|
4
4
|
"description": "The Venus Money Market",
|
|
5
5
|
"repository": "git@github.com:VenusProtocol/venus-protocol.git",
|
|
6
6
|
"author": "Venus",
|
|
@@ -16,10 +16,10 @@
|
|
|
16
16
|
"deployments"
|
|
17
17
|
],
|
|
18
18
|
"scripts": {
|
|
19
|
-
"compile": "hardhat compile",
|
|
19
|
+
"compile": "hardhat compile && hardhat compile --config hardhat.config.zksync.ts",
|
|
20
20
|
"coverage": "hardhat coverage",
|
|
21
21
|
"test": "hardhat test",
|
|
22
|
-
"build": "rm -rf dist && tsc --declaration && hardhat compile",
|
|
22
|
+
"build": "rm -rf dist && tsc --declaration && hardhat compile && hardhat compile --config hardhat.config.zksync.ts",
|
|
23
23
|
"lint": "yarn lint:ts && yarn lint:sol && yarn prettier:check",
|
|
24
24
|
"lint:ts": "eslint --ignore-path ./.eslintignore --ext .js,.ts .",
|
|
25
25
|
"lint:sol": "solhint \"contracts/**/*.sol\"",
|
|
@@ -27,7 +27,8 @@
|
|
|
27
27
|
"prettier": "prettier --write \"**/*.{js,json,md,ts,yaml,yml,sol}\"",
|
|
28
28
|
"prettier:check": "prettier --check \"**/*.{js,json,md,ts,yaml,yml,sol}\"",
|
|
29
29
|
"docgen": "hardhat docgen",
|
|
30
|
-
"prepare": "husky install"
|
|
30
|
+
"prepare": "husky install",
|
|
31
|
+
"clean": "hardhat clean && hardhat clean --config hardhat.config.zksync.ts"
|
|
31
32
|
},
|
|
32
33
|
"dependencies": {
|
|
33
34
|
"@nomicfoundation/hardhat-ethers": "^3.0.0",
|
|
@@ -50,9 +51,14 @@
|
|
|
50
51
|
"@ethersproject/abstract-signer": "^5",
|
|
51
52
|
"@ethersproject/bytes": "^5.0.0",
|
|
52
53
|
"@ethersproject/providers": "^5.6.8",
|
|
54
|
+
"@matterlabs/hardhat-zksync": "^0.2.0",
|
|
55
|
+
"@matterlabs/hardhat-zksync-deploy": "^0.11.0",
|
|
56
|
+
"@matterlabs/hardhat-zksync-solc": "^1.2.1",
|
|
57
|
+
"@matterlabs/hardhat-zksync-verify": "0.7.0",
|
|
53
58
|
"@nomicfoundation/hardhat-chai-matchers": "^1.0.3",
|
|
54
59
|
"@nomicfoundation/hardhat-network-helpers": "^1.0.10",
|
|
55
60
|
"@nomicfoundation/hardhat-toolbox": "^2.0.0",
|
|
61
|
+
"@nomicfoundation/hardhat-verify": "^2.0.8",
|
|
56
62
|
"@nomiclabs/hardhat-etherscan": "^3.1.0",
|
|
57
63
|
"@openzeppelin/hardhat-upgrades": "^1.21.0",
|
|
58
64
|
"@semantic-release/changelog": "^6.0.1",
|
|
@@ -66,7 +72,7 @@
|
|
|
66
72
|
"@types/node": "^18.7.1",
|
|
67
73
|
"@typescript-eslint/eslint-plugin": "^5.40.0",
|
|
68
74
|
"@typescript-eslint/parser": "^5.40.0",
|
|
69
|
-
"@venusprotocol/oracle": "
|
|
75
|
+
"@venusprotocol/oracle": "2.5.0-dev.2",
|
|
70
76
|
"bignumber.js": "^9.1.2",
|
|
71
77
|
"chai": "^4.3.6",
|
|
72
78
|
"eslint": "^8.25.0",
|
|
@@ -74,7 +80,7 @@
|
|
|
74
80
|
"ethers": "^5.7.0",
|
|
75
81
|
"hardhat": "^2.19.2",
|
|
76
82
|
"hardhat-contract-sizer": "^2.8.0",
|
|
77
|
-
"hardhat-deploy": "^0.
|
|
83
|
+
"hardhat-deploy": "^0.12.4",
|
|
78
84
|
"hardhat-deploy-ethers": "^0.3.0-beta.13",
|
|
79
85
|
"hardhat-gas-reporter": "^1.0.8",
|
|
80
86
|
"husky": "^8.0.1",
|
|
@@ -87,7 +93,8 @@
|
|
|
87
93
|
"ts-node": "^10.9.1",
|
|
88
94
|
"typechain": "^8.1.0",
|
|
89
95
|
"typescript": "^4.7.4",
|
|
90
|
-
"web3-utils": "^1.7.5"
|
|
96
|
+
"web3-utils": "^1.7.5",
|
|
97
|
+
"zksync-ethers": "^5.9.1"
|
|
91
98
|
},
|
|
92
99
|
"_moduleAliases": {
|
|
93
100
|
"@nomiclabs/hardhat-ethers": "node_modules/hardhat-deploy-ethers"
|