@venusprotocol/venus-protocol 9.0.0 → 9.1.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.
@@ -0,0 +1,200 @@
1
+ {
2
+ "name": "xlayertestnet",
3
+ "chainId": "195",
4
+ "contracts": {
5
+ "VTreasuryV8": {
6
+ "address": "0x740aF73D4AB6300dc4c8D707a424EFC5f1bd04DA",
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
+ }
@@ -0,0 +1,7 @@
1
+ {
2
+ "name": "xlayertestnet",
3
+ "chainId": "195",
4
+ "addresses": {
5
+ "VTreasuryV8": "0x740aF73D4AB6300dc4c8D707a424EFC5f1bd04DA"
6
+ }
7
+ }
@@ -22,6 +22,7 @@ const func = async function (hre) {
22
22
  opbnbmainnet: "0xC46796a21a3A9FAB6546aF3434F2eBfFd0604207",
23
23
  arbitrumsepolia: "0x1426A5Ae009c4443188DA8793751024E358A61C2",
24
24
  arbitrumone: "0x14e0E151b33f9802b3e75b621c1457afc44DcAA0",
25
+ xlayertestnet: "0x5961449d63149035aCfC0714D5155f24C9819004",
25
26
  bscmainnet: await getTimelock(),
26
27
  bsctestnet: await getTimelock(),
27
28
  hardhat: deployer,
@@ -16,6 +16,7 @@ const func = async function (hre) {
16
16
  arbitrumsepolia: TEN_MINUTES,
17
17
  bscmainnet: NINETY_DAYS,
18
18
  ethereum: NINETY_DAYS,
19
+ arbitrumone: NINETY_DAYS,
19
20
  };
20
21
  const xVSVaultPoolId = {
21
22
  bsctestnet: 1,
@@ -23,12 +24,14 @@ const func = async function (hre) {
23
24
  arbitrumsepolia: 0,
24
25
  bscmainnet: 0,
25
26
  ethereum: 0,
27
+ arbitrumone: 0,
26
28
  hardhat: 0,
27
29
  };
28
30
  const blocksPerYear = {
29
31
  bsctestnet: 10512000,
30
32
  sepolia: 2628000,
31
33
  arbitrumsepolia: 0,
34
+ arbitrumone: 0,
32
35
  bscmainnet: 10512000,
33
36
  ethereum: 2628000,
34
37
  hardhat: 100,
@@ -53,6 +56,7 @@ const func = async function (hre) {
53
56
  opbnbtestnet: "0xb15f6EfEbC276A3b9805df81b5FB3D50C2A62BDf",
54
57
  opbnbmainnet: "0xC46796a21a3A9FAB6546aF3434F2eBfFd0604207",
55
58
  arbitrumsepolia: "0x1426A5Ae009c4443188DA8793751024E358A61C2",
59
+ arbitrumone: "0x14e0E151b33f9802b3e75b621c1457afc44DcAA0",
56
60
  bscmainnet: await (0, deploymentConfig_1.getContractAddressOrNullAddress)(deployments, "NormalTimelock"),
57
61
  bsctestnet: await (0, deploymentConfig_1.getContractAddressOrNullAddress)(deployments, "NormalTimelock"),
58
62
  };
@@ -10,6 +10,7 @@ const func = async function (hre) {
10
10
  opbnbtestnet: "0xb15f6EfEbC276A3b9805df81b5FB3D50C2A62BDf",
11
11
  opbnbmainnet: "0xC46796a21a3A9FAB6546aF3434F2eBfFd0604207",
12
12
  arbitrumsepolia: "0x1426A5Ae009c4443188DA8793751024E358A61C2",
13
+ arbitrumone: "0x14e0E151b33f9802b3e75b621c1457afc44DcAA0",
13
14
  bscmainnet: await (0, deploymentConfig_1.getContractAddressOrNullAddress)(deployments, "NormalTimelock"),
14
15
  bsctestnet: await (0, deploymentConfig_1.getContractAddressOrNullAddress)(deployments, "NormalTimelock"),
15
16
  };
@@ -52,9 +52,14 @@ const DEPLOYER_PRIVATE_KEY = process.env.DEPLOYER_PRIVATE_KEY;
52
52
  ],
53
53
  arbitrumsepolia: [
54
54
  "node_modules/@venusprotocol/governance-contracts/deployments/arbitrumsepolia",
55
+ "node_modules/@venusprotocol/oracle/deployments/arbitrumsepolia",
55
56
  "node_modules/@venusprotocol/token-bridge/deployments/arbitrumsepolia",
56
57
  ],
57
- arbitrumone: ["node_modules/@venusprotocol/governance-contracts/deployments/arbitrumone"],
58
+ arbitrumone: [
59
+ "node_modules/@venusprotocol/governance-contracts/deployments/arbitrumone",
60
+ "node_modules/@venusprotocol/oracle/deployments/arbitrumone",
61
+ "node_modules/@venusprotocol/token-bridge/deployments/arbitrumone",
62
+ ],
58
63
  },
59
64
  };
60
65
  }
@@ -180,6 +185,18 @@ const config = {
180
185
  live: true,
181
186
  accounts: DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
182
187
  },
188
+ xlayertestnet: {
189
+ url: process.env.ARCHIVE_NODE_xlayertestnet || "https://testrpc.xlayer.tech/",
190
+ chainId: 195,
191
+ live: true,
192
+ accounts: DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
193
+ },
194
+ xlayermainnet: {
195
+ url: process.env.ARCHIVE_NODE_xlayermainnet || "https://rpc.xlayer.tech/",
196
+ chainId: 196,
197
+ live: true,
198
+ accounts: DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
199
+ },
183
200
  },
184
201
  etherscan: {
185
202
  apiKey: {
@@ -191,6 +208,8 @@ const config = {
191
208
  opbnbmainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
192
209
  arbitrumsepolia: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
193
210
  arbitrumone: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
211
+ xlayertestnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
212
+ xlayermainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
194
213
  },
195
214
  customChains: [
196
215
  {
@@ -257,6 +276,22 @@ const config = {
257
276
  browserURL: "https://arbiscan.io/",
258
277
  },
259
278
  },
279
+ {
280
+ network: "xlayertestnet",
281
+ chainId: 195,
282
+ urls: {
283
+ apiURL: "https://www.oklink.com/api/v5/explorer/contract/verify-source-code-plugin/XLAYER_TESTNET",
284
+ browserURL: "https://www.oklink.com/xlayer-test",
285
+ },
286
+ },
287
+ {
288
+ network: "xlayermainnet",
289
+ chainId: 196,
290
+ urls: {
291
+ apiURL: "https://www.oklink.com/api/v5/explorer/contract/verify-source-code-plugin/XLAYER",
292
+ browserURL: "https://www.oklink.com/xlayer",
293
+ },
294
+ },
260
295
  ],
261
296
  },
262
297
  paths: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@venusprotocol/venus-protocol",
3
- "version": "9.0.0",
3
+ "version": "9.1.0-dev.2",
4
4
  "description": "The Venus Money Market",
5
5
  "repository": "git@github.com:VenusProtocol/venus-protocol.git",
6
6
  "author": "Venus",
@@ -66,7 +66,7 @@
66
66
  "@types/node": "^18.7.1",
67
67
  "@typescript-eslint/eslint-plugin": "^5.40.0",
68
68
  "@typescript-eslint/parser": "^5.40.0",
69
- "@venusprotocol/oracle": "2.0.0",
69
+ "@venusprotocol/oracle": "v2.3.0",
70
70
  "bignumber.js": "^9.1.2",
71
71
  "chai": "^4.3.6",
72
72
  "eslint": "^8.25.0",