@venusprotocol/isolated-pools 4.3.0 → 4.4.0-dev.1

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 (27) hide show
  1. package/dist/deploy/018-native-token-gateway.js +0 -7
  2. package/dist/hardhat.config.js +0 -21
  3. package/dist/helpers/deploymentConfig.d.ts +0 -8
  4. package/dist/helpers/deploymentConfig.js +0 -113
  5. package/package.json +1 -1
  6. package/deployments/berachainbartio/.chainId +0 -1
  7. package/deployments/berachainbartio/ComptrollerBeacon.json +0 -206
  8. package/deployments/berachainbartio/ComptrollerImpl.json +0 -3396
  9. package/deployments/berachainbartio/Comptroller_Core.json +0 -187
  10. package/deployments/berachainbartio/DefaultProxyAdmin.json +0 -200
  11. package/deployments/berachainbartio/JumpRateModelV2_base0bps_slope875bps_jump25000bps_kink8000bps_timeBased.json +0 -608
  12. package/deployments/berachainbartio/MockUSDC.e.json +0 -458
  13. package/deployments/berachainbartio/MockWETH.json +0 -458
  14. package/deployments/berachainbartio/NativeTokenGateway_vWBERA_Core.json +0 -599
  15. package/deployments/berachainbartio/PoolLens.json +0 -1416
  16. package/deployments/berachainbartio/PoolRegistry.json +0 -940
  17. package/deployments/berachainbartio/PoolRegistry_Implementation.json +0 -1194
  18. package/deployments/berachainbartio/PoolRegistry_Proxy.json +0 -262
  19. package/deployments/berachainbartio/VTokenBeacon.json +0 -206
  20. package/deployments/berachainbartio/VTokenImpl.json +0 -3269
  21. package/deployments/berachainbartio/VToken_vUSDC.e_Core.json +0 -257
  22. package/deployments/berachainbartio/VToken_vWBERA_Core.json +0 -257
  23. package/deployments/berachainbartio/VToken_vWETH_Core.json +0 -257
  24. package/deployments/berachainbartio/solcInputs/bf6504e8406cd8d7763a8de7cdacad9c.json +0 -454
  25. package/deployments/berachainbartio.json +0 -9030
  26. package/deployments/berachainbartio_addresses.json +0 -23
  27. package/dist/deployments/berachainbartio.json +0 -9030
@@ -5,7 +5,6 @@ const arbitrumone_json_1 = require("../deployments/arbitrumone.json");
5
5
  const arbitrumsepolia_json_1 = require("../deployments/arbitrumsepolia.json");
6
6
  const basemainnet_json_1 = require("../deployments/basemainnet.json");
7
7
  const basesepolia_json_1 = require("../deployments/basesepolia.json");
8
- const berachainbartio_json_1 = require("../deployments/berachainbartio.json");
9
8
  const bscmainnet_json_1 = require("../deployments/bscmainnet.json");
10
9
  const bsctestnet_json_1 = require("../deployments/bsctestnet.json");
11
10
  const ethereum_json_1 = require("../deployments/ethereum.json");
@@ -132,12 +131,6 @@ const VWNativeInfo = {
132
131
  address: unichainmainnet_json_1.contracts.VToken_vWETH_Core.address,
133
132
  },
134
133
  ],
135
- berachainbartio: [
136
- {
137
- name: "vWBERA_Core",
138
- address: berachainbartio_json_1.contracts.VToken_vWBERA_Core.address,
139
- },
140
- ],
141
134
  };
142
135
  const getVWNativeTokens = (networkName) => {
143
136
  const vTokensInfo = VWNativeInfo[networkName];
@@ -123,11 +123,6 @@ const getRpcUrl = (networkName) => {
123
123
  "node_modules/@venusprotocol/protocol-reserve/deployments/unichainmainnet",
124
124
  "node_modules/@venusprotocol/governance-contracts/deployments/unichainmainnet",
125
125
  ],
126
- berachainbartio: [
127
- "node_modules/@venusprotocol/oracle/deployments/berachainbartio",
128
- "node_modules/@venusprotocol/protocol-reserve/deployments/berachainbartio",
129
- "node_modules/@venusprotocol/governance-contracts/deployments/berachainbartio",
130
- ],
131
126
  },
132
127
  };
133
128
  if (process.env.HARDHAT_FORK_NETWORK) {
@@ -382,13 +377,6 @@ const config = {
382
377
  live: true,
383
378
  accounts: DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
384
379
  },
385
- berachainbartio: {
386
- url: process.env.ARCHIVE_NODE_berachainbartio || "https://bartio.rpc.berachain.com",
387
- chainId: 80084,
388
- live: true,
389
- accounts: DEPLOYER_PRIVATE_KEY ? [`0x${DEPLOYER_PRIVATE_KEY}`] : [],
390
- tags: ["testnet"],
391
- },
392
380
  },
393
381
  gasReporter: {
394
382
  enabled: process.env.REPORT_GAS !== undefined,
@@ -516,14 +504,6 @@ const config = {
516
504
  browserURL: "https://uniscan.xyz/",
517
505
  },
518
506
  },
519
- {
520
- network: "berachainbartio",
521
- chainId: 80084,
522
- urls: {
523
- apiURL: "https://api.routescan.io/v2/network/testnet/evm/80084/etherscan",
524
- browserURL: "https://bartio.beratrail.io",
525
- },
526
- },
527
507
  ],
528
508
  apiKey: {
529
509
  bscmainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
@@ -540,7 +520,6 @@ const config = {
540
520
  basemainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
541
521
  unichainsepolia: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
542
522
  unichainmainnet: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
543
- berachainbartio: process.env.ETHERSCAN_API_KEY || "ETHERSCAN_API_KEY",
544
523
  },
545
524
  },
546
525
  paths: {
@@ -18,7 +18,6 @@ export type NetworkConfig = {
18
18
  basemainnet: DeploymentConfig;
19
19
  unichainsepolia: DeploymentConfig;
20
20
  unichainmainnet: DeploymentConfig;
21
- berachainbartio: DeploymentConfig;
22
21
  };
23
22
  export type PreconfiguredAddresses = {
24
23
  [contract: string]: string;
@@ -258,13 +257,6 @@ export declare const preconfiguredAddresses: {
258
257
  CriticalTimelock: string;
259
258
  AccessControlManager: string;
260
259
  };
261
- berachainbartio: {
262
- VTreasury: string;
263
- NormalTimelock: string;
264
- FastTrackTimelock: string;
265
- CriticalTimelock: string;
266
- AccessControlManager: string;
267
- };
268
260
  };
269
261
  export declare const globalConfig: NetworkConfig;
270
262
  export declare function getConfig(networkName: string): Promise<DeploymentConfig>;
@@ -56,7 +56,6 @@ exports.blocksPerYear = {
56
56
  basemainnet: "time-based",
57
57
  unichainsepolia: "time-based",
58
58
  unichainmainnet: "time-based",
59
- berachainbartio: "time-based",
60
59
  isTimeBased: "time-based",
61
60
  };
62
61
  exports.SEPOLIA_MULTISIG = "0x94fa6078b6b8a26f0b6edffbe6501b22a10470fb";
@@ -218,13 +217,6 @@ exports.preconfiguredAddresses = {
218
217
  CriticalTimelock: exports.UNICHAIN_MAINNET_MULTISIG,
219
218
  AccessControlManager: "0x1f12014c497a9d905155eB9BfDD9FaC6885e61d0",
220
219
  },
221
- berachainbartio: {
222
- VTreasury: "0xF2f878a9cF9a43409F673CfA17B4F1E9D8169211",
223
- NormalTimelock: "0x8699D418D8bae5CFdc566E4fce897B08bd9B03B0",
224
- FastTrackTimelock: "0x723b7CB226d86bd89638ec77936463453a46C656",
225
- CriticalTimelock: "0x920eeE8A5581e80Ca9C47CbF11B7A6cDB30204BD",
226
- AccessControlManager: "0xEf368e4c1f9ACC9241E66CD67531FEB195fF7536",
227
- },
228
220
  };
229
221
  const poolRegistryPermissions = () => {
230
222
  const methods = [
@@ -7791,109 +7783,6 @@ exports.globalConfig = {
7791
7783
  ],
7792
7784
  preconfiguredAddresses: exports.preconfiguredAddresses.unichainmainnet,
7793
7785
  },
7794
- berachainbartio: {
7795
- tokensConfig: [
7796
- {
7797
- isMock: true,
7798
- name: "Bridged USDC (Stargate)",
7799
- symbol: "USDC.e",
7800
- decimals: 6,
7801
- tokenAddress: hardhat_1.ethers.constants.AddressZero,
7802
- },
7803
- {
7804
- isMock: true,
7805
- name: "Wrapped Ether",
7806
- symbol: "WETH",
7807
- decimals: 18,
7808
- tokenAddress: hardhat_1.ethers.constants.AddressZero,
7809
- },
7810
- {
7811
- isMock: false,
7812
- name: "Wrapped Bera",
7813
- symbol: "WBERA",
7814
- decimals: 18,
7815
- tokenAddress: "0x7507c1dc16935B82698e4C63f2746A2fCf994dF8",
7816
- },
7817
- {
7818
- isMock: false,
7819
- name: "Venus",
7820
- symbol: "XVS",
7821
- decimals: 18,
7822
- tokenAddress: "0x75A3668f0b0d06E45601C883b0c66f7Dd2364208",
7823
- },
7824
- ],
7825
- poolConfig: [
7826
- {
7827
- id: "Core",
7828
- name: "Core",
7829
- closeFactor: (0, utils_1.convertToUnit)("0.5", 18),
7830
- liquidationIncentive: (0, utils_1.convertToUnit)("1.1", 18),
7831
- minLiquidatableCollateral: (0, utils_1.convertToUnit)("100", 18),
7832
- vtokens: [
7833
- {
7834
- name: "Venus USDC.e (Core)",
7835
- asset: "USDC.e",
7836
- symbol: "vUSDC.e_Core",
7837
- rateModel: InterestRateModels.JumpRate.toString(),
7838
- baseRatePerYear: "0",
7839
- multiplierPerYear: (0, utils_1.convertToUnit)("0.0875", 18),
7840
- jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
7841
- kink_: (0, utils_1.convertToUnit)("0.8", 18),
7842
- collateralFactor: (0, utils_1.convertToUnit)("0.78", 18),
7843
- liquidationThreshold: (0, utils_1.convertToUnit)("0.8", 18),
7844
- reserveFactor: (0, utils_1.convertToUnit)("0.1", 18),
7845
- initialSupply: (0, utils_1.convertToUnit)("5000", 6),
7846
- supplyCap: (0, utils_1.convertToUnit)("20000000", 6),
7847
- borrowCap: (0, utils_1.convertToUnit)("18000000", 6),
7848
- reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_BERA_CHAIN_BARTIO,
7849
- vTokenReceiver: exports.preconfiguredAddresses.berachainbartio.VTreasury,
7850
- },
7851
- {
7852
- name: "Venus WETH (Core)",
7853
- asset: "WETH",
7854
- symbol: "vWETH_Core",
7855
- rateModel: InterestRateModels.JumpRate.toString(),
7856
- baseRatePerYear: "0",
7857
- multiplierPerYear: (0, utils_1.convertToUnit)("0.0875", 18),
7858
- jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
7859
- kink_: (0, utils_1.convertToUnit)("0.8", 18),
7860
- collateralFactor: (0, utils_1.convertToUnit)("0.78", 18),
7861
- liquidationThreshold: (0, utils_1.convertToUnit)("0.8", 18),
7862
- reserveFactor: (0, utils_1.convertToUnit)("0.1", 18),
7863
- initialSupply: (0, utils_1.convertToUnit)("2", 18),
7864
- supplyCap: (0, utils_1.convertToUnit)("700", 18),
7865
- borrowCap: (0, utils_1.convertToUnit)("350", 18),
7866
- reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_BERA_CHAIN_BARTIO,
7867
- vTokenReceiver: exports.preconfiguredAddresses.berachainbartio.VTreasury,
7868
- },
7869
- {
7870
- name: "Venus WBERA (Core)",
7871
- asset: "WBERA",
7872
- symbol: "vWBERA_Core",
7873
- rateModel: InterestRateModels.JumpRate.toString(),
7874
- baseRatePerYear: "0",
7875
- multiplierPerYear: (0, utils_1.convertToUnit)("0.0875", 18),
7876
- jumpMultiplierPerYear: (0, utils_1.convertToUnit)("2.5", 18),
7877
- kink_: (0, utils_1.convertToUnit)("0.8", 18),
7878
- collateralFactor: (0, utils_1.convertToUnit)("0.78", 18),
7879
- liquidationThreshold: (0, utils_1.convertToUnit)("0.8", 18),
7880
- reserveFactor: (0, utils_1.convertToUnit)("0.1", 18),
7881
- initialSupply: (0, utils_1.convertToUnit)("1000", 18),
7882
- supplyCap: (0, utils_1.convertToUnit)("4000000", 18),
7883
- borrowCap: (0, utils_1.convertToUnit)("3500000", 18),
7884
- reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_BERA_CHAIN_BARTIO,
7885
- vTokenReceiver: exports.preconfiguredAddresses.berachainbartio.VTreasury,
7886
- },
7887
- ],
7888
- rewards: [],
7889
- },
7890
- ],
7891
- accessControlConfig: [
7892
- ...poolRegistryPermissions(),
7893
- ...normalTimelockPermissions(exports.preconfiguredAddresses.berachainbartio.NormalTimelock),
7894
- ],
7895
- preconfiguredAddresses: exports.preconfiguredAddresses.berachainbartio,
7896
- },
7897
7786
  };
7898
7787
  async function getConfig(networkName) {
7899
7788
  switch (networkName) {
@@ -7931,8 +7820,6 @@ async function getConfig(networkName) {
7931
7820
  return exports.globalConfig.unichainsepolia;
7932
7821
  case "unichainmainnet":
7933
7822
  return exports.globalConfig.unichainmainnet;
7934
- case "berachainbartio":
7935
- return exports.globalConfig.berachainbartio;
7936
7823
  case "development":
7937
7824
  return exports.globalConfig.bsctestnet;
7938
7825
  default:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@venusprotocol/isolated-pools",
3
- "version": "4.3.0",
3
+ "version": "4.4.0-dev.1",
4
4
  "description": "",
5
5
  "files": [
6
6
  "artifacts",
@@ -1 +0,0 @@
1
- 80084
@@ -1,206 +0,0 @@
1
- {
2
- "address": "0xbF58d5173299813D22533e2e279094181285afa6",
3
- "abi": [
4
- {
5
- "inputs": [
6
- {
7
- "internalType": "address",
8
- "name": "implementation_",
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
- "anonymous": false,
36
- "inputs": [
37
- {
38
- "indexed": true,
39
- "internalType": "address",
40
- "name": "implementation",
41
- "type": "address"
42
- }
43
- ],
44
- "name": "Upgraded",
45
- "type": "event"
46
- },
47
- {
48
- "inputs": [],
49
- "name": "implementation",
50
- "outputs": [
51
- {
52
- "internalType": "address",
53
- "name": "",
54
- "type": "address"
55
- }
56
- ],
57
- "stateMutability": "view",
58
- "type": "function"
59
- },
60
- {
61
- "inputs": [],
62
- "name": "owner",
63
- "outputs": [
64
- {
65
- "internalType": "address",
66
- "name": "",
67
- "type": "address"
68
- }
69
- ],
70
- "stateMutability": "view",
71
- "type": "function"
72
- },
73
- {
74
- "inputs": [],
75
- "name": "renounceOwnership",
76
- "outputs": [],
77
- "stateMutability": "nonpayable",
78
- "type": "function"
79
- },
80
- {
81
- "inputs": [
82
- {
83
- "internalType": "address",
84
- "name": "newOwner",
85
- "type": "address"
86
- }
87
- ],
88
- "name": "transferOwnership",
89
- "outputs": [],
90
- "stateMutability": "nonpayable",
91
- "type": "function"
92
- },
93
- {
94
- "inputs": [
95
- {
96
- "internalType": "address",
97
- "name": "newImplementation",
98
- "type": "address"
99
- }
100
- ],
101
- "name": "upgradeTo",
102
- "outputs": [],
103
- "stateMutability": "nonpayable",
104
- "type": "function"
105
- }
106
- ],
107
- "transactionHash": "0xdf442a280bdac4da21d4c7f595c88941276de82a4ac1dc0f485b79d15785c8d0",
108
- "receipt": {
109
- "to": null,
110
- "from": "0x18BDb05DD1A95677f4381cfb4db52D342dF5C00d",
111
- "contractAddress": "0xbF58d5173299813D22533e2e279094181285afa6",
112
- "transactionIndex": 4,
113
- "gasUsed": "288554",
114
- "logsBloom": "0x00000000000000000000000000000000000000000000000000800000000000000000020000000000000000080000000000000000000000000000000000000040000000000000000000000000000000000001000000000000000000000100000000000000020000000000020000000800000000000000000020000000000000400000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000020000000000000000000000000000000000000000000000000000000000000000000",
115
- "blockHash": "0x761e41f0c435ce6be9225efd025fdf9921a52a9976586309b00cfc4015f27655",
116
- "transactionHash": "0xdf442a280bdac4da21d4c7f595c88941276de82a4ac1dc0f485b79d15785c8d0",
117
- "logs": [
118
- {
119
- "transactionIndex": 4,
120
- "blockNumber": 10802573,
121
- "transactionHash": "0xdf442a280bdac4da21d4c7f595c88941276de82a4ac1dc0f485b79d15785c8d0",
122
- "address": "0xbF58d5173299813D22533e2e279094181285afa6",
123
- "topics": [
124
- "0x8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e0",
125
- "0x0000000000000000000000000000000000000000000000000000000000000000",
126
- "0x00000000000000000000000018bdb05dd1a95677f4381cfb4db52d342df5c00d"
127
- ],
128
- "data": "0x",
129
- "logIndex": 2,
130
- "blockHash": "0x761e41f0c435ce6be9225efd025fdf9921a52a9976586309b00cfc4015f27655"
131
- }
132
- ],
133
- "blockNumber": 10802573,
134
- "cumulativeGasUsed": "458870",
135
- "status": 1,
136
- "byzantium": true
137
- },
138
- "args": ["0x6F642A914Dfe8278801c35bE2622768E8924012E"],
139
- "numDeployments": 1,
140
- "solcInputHash": "bf6504e8406cd8d7763a8de7cdacad9c",
141
- "metadata": "{\"compiler\":{\"version\":\"0.8.25+commit.b61c2a91\"},\"language\":\"Solidity\",\"output\":{\"abi\":[{\"inputs\":[{\"internalType\":\"address\",\"name\":\"implementation_\",\"type\":\"address\"}],\"stateMutability\":\"nonpayable\",\"type\":\"constructor\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"previousOwner\",\"type\":\"address\"},{\"indexed\":true,\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"OwnershipTransferred\",\"type\":\"event\"},{\"anonymous\":false,\"inputs\":[{\"indexed\":true,\"internalType\":\"address\",\"name\":\"implementation\",\"type\":\"address\"}],\"name\":\"Upgraded\",\"type\":\"event\"},{\"inputs\":[],\"name\":\"implementation\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"owner\",\"outputs\":[{\"internalType\":\"address\",\"name\":\"\",\"type\":\"address\"}],\"stateMutability\":\"view\",\"type\":\"function\"},{\"inputs\":[],\"name\":\"renounceOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newOwner\",\"type\":\"address\"}],\"name\":\"transferOwnership\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"},{\"inputs\":[{\"internalType\":\"address\",\"name\":\"newImplementation\",\"type\":\"address\"}],\"name\":\"upgradeTo\",\"outputs\":[],\"stateMutability\":\"nonpayable\",\"type\":\"function\"}],\"devdoc\":{\"details\":\"This contract is used in conjunction with one or more instances of {BeaconProxy} to determine their implementation contract, which is where they will delegate all function calls. An owner is able to change the implementation the beacon points to, thus upgrading the proxies that use this beacon.\",\"events\":{\"Upgraded(address)\":{\"details\":\"Emitted when the implementation returned by the beacon is changed.\"}},\"kind\":\"dev\",\"methods\":{\"constructor\":{\"details\":\"Sets the address of the initial implementation, and the deployer account as the owner who can upgrade the beacon.\"},\"implementation()\":{\"details\":\"Returns the current implementation address.\"},\"owner()\":{\"details\":\"Returns the address of the current owner.\"},\"renounceOwnership()\":{\"details\":\"Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner.\"},\"transferOwnership(address)\":{\"details\":\"Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner.\"},\"upgradeTo(address)\":{\"details\":\"Upgrades the beacon to a new implementation. Emits an {Upgraded} event. Requirements: - msg.sender must be the owner of the contract. - `newImplementation` must be a contract.\"}},\"version\":1},\"userdoc\":{\"kind\":\"user\",\"methods\":{},\"version\":1}},\"settings\":{\"compilationTarget\":{\"@openzeppelin/contracts/proxy/beacon/UpgradeableBeacon.sol\":\"UpgradeableBeacon\"},\"evmVersion\":\"paris\",\"libraries\":{},\"metadata\":{\"bytecodeHash\":\"ipfs\",\"useLiteralContent\":true},\"optimizer\":{\"enabled\":true,\"runs\":200},\"remappings\":[]},\"sources\":{\"@openzeppelin/contracts/access/Ownable.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (access/Ownable.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"../utils/Context.sol\\\";\\n\\n/**\\n * @dev Contract module which provides a basic access control mechanism, where\\n * there is an account (an owner) that can be granted exclusive access to\\n * specific functions.\\n *\\n * By default, the owner account will be the one that deploys the contract. This\\n * can later be changed with {transferOwnership}.\\n *\\n * This module is used through inheritance. It will make available the modifier\\n * `onlyOwner`, which can be applied to your functions to restrict their use to\\n * the owner.\\n */\\nabstract contract Ownable is Context {\\n address private _owner;\\n\\n event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);\\n\\n /**\\n * @dev Initializes the contract setting the deployer as the initial owner.\\n */\\n constructor() {\\n _transferOwnership(_msgSender());\\n }\\n\\n /**\\n * @dev Throws if called by any account other than the owner.\\n */\\n modifier onlyOwner() {\\n _checkOwner();\\n _;\\n }\\n\\n /**\\n * @dev Returns the address of the current owner.\\n */\\n function owner() public view virtual returns (address) {\\n return _owner;\\n }\\n\\n /**\\n * @dev Throws if the sender is not the owner.\\n */\\n function _checkOwner() internal view virtual {\\n require(owner() == _msgSender(), \\\"Ownable: caller is not the owner\\\");\\n }\\n\\n /**\\n * @dev Leaves the contract without owner. It will not be possible to call\\n * `onlyOwner` functions. Can only be called by the current owner.\\n *\\n * NOTE: Renouncing ownership will leave the contract without an owner,\\n * thereby disabling any functionality that is only available to the owner.\\n */\\n function renounceOwnership() public virtual onlyOwner {\\n _transferOwnership(address(0));\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Can only be called by the current owner.\\n */\\n function transferOwnership(address newOwner) public virtual onlyOwner {\\n require(newOwner != address(0), \\\"Ownable: new owner is the zero address\\\");\\n _transferOwnership(newOwner);\\n }\\n\\n /**\\n * @dev Transfers ownership of the contract to a new account (`newOwner`).\\n * Internal function without access restriction.\\n */\\n function _transferOwnership(address newOwner) internal virtual {\\n address oldOwner = _owner;\\n _owner = newOwner;\\n emit OwnershipTransferred(oldOwner, newOwner);\\n }\\n}\\n\",\"keccak256\":\"0xba43b97fba0d32eb4254f6a5a297b39a19a247082a02d6e69349e071e2946218\",\"license\":\"MIT\"},\"@openzeppelin/contracts/proxy/beacon/IBeacon.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/IBeacon.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev This is the interface that {BeaconProxy} expects of its beacon.\\n */\\ninterface IBeacon {\\n /**\\n * @dev Must return an address that can be used as a delegate call target.\\n *\\n * {BeaconProxy} will check that this address is a contract.\\n */\\n function implementation() external view returns (address);\\n}\\n\",\"keccak256\":\"0xd50a3421ac379ccb1be435fa646d66a65c986b4924f0849839f08692f39dde61\",\"license\":\"MIT\"},\"@openzeppelin/contracts/proxy/beacon/UpgradeableBeacon.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts v4.4.1 (proxy/beacon/UpgradeableBeacon.sol)\\n\\npragma solidity ^0.8.0;\\n\\nimport \\\"./IBeacon.sol\\\";\\nimport \\\"../../access/Ownable.sol\\\";\\nimport \\\"../../utils/Address.sol\\\";\\n\\n/**\\n * @dev This contract is used in conjunction with one or more instances of {BeaconProxy} to determine their\\n * implementation contract, which is where they will delegate all function calls.\\n *\\n * An owner is able to change the implementation the beacon points to, thus upgrading the proxies that use this beacon.\\n */\\ncontract UpgradeableBeacon is IBeacon, Ownable {\\n address private _implementation;\\n\\n /**\\n * @dev Emitted when the implementation returned by the beacon is changed.\\n */\\n event Upgraded(address indexed implementation);\\n\\n /**\\n * @dev Sets the address of the initial implementation, and the deployer account as the owner who can upgrade the\\n * beacon.\\n */\\n constructor(address implementation_) {\\n _setImplementation(implementation_);\\n }\\n\\n /**\\n * @dev Returns the current implementation address.\\n */\\n function implementation() public view virtual override returns (address) {\\n return _implementation;\\n }\\n\\n /**\\n * @dev Upgrades the beacon to a new implementation.\\n *\\n * Emits an {Upgraded} event.\\n *\\n * Requirements:\\n *\\n * - msg.sender must be the owner of the contract.\\n * - `newImplementation` must be a contract.\\n */\\n function upgradeTo(address newImplementation) public virtual onlyOwner {\\n _setImplementation(newImplementation);\\n emit Upgraded(newImplementation);\\n }\\n\\n /**\\n * @dev Sets the implementation contract address for this beacon\\n *\\n * Requirements:\\n *\\n * - `newImplementation` must be a contract.\\n */\\n function _setImplementation(address newImplementation) private {\\n require(Address.isContract(newImplementation), \\\"UpgradeableBeacon: implementation is not a contract\\\");\\n _implementation = newImplementation;\\n }\\n}\\n\",\"keccak256\":\"0x6ec71aef5659f3f74011169948d2fcda8c6599be5bb38f986380a8737f96cc0f\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Address.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.0) (utils/Address.sol)\\n\\npragma solidity ^0.8.1;\\n\\n/**\\n * @dev Collection of functions related to the address type\\n */\\nlibrary Address {\\n /**\\n * @dev Returns true if `account` is a contract.\\n *\\n * [IMPORTANT]\\n * ====\\n * It is unsafe to assume that an address for which this function returns\\n * false is an externally-owned account (EOA) and not a contract.\\n *\\n * Among others, `isContract` will return false for the following\\n * types of addresses:\\n *\\n * - an externally-owned account\\n * - a contract in construction\\n * - an address where a contract will be created\\n * - an address where a contract lived, but was destroyed\\n *\\n * Furthermore, `isContract` will also return true if the target contract within\\n * the same transaction is already scheduled for destruction by `SELFDESTRUCT`,\\n * which only has an effect at the end of a transaction.\\n * ====\\n *\\n * [IMPORTANT]\\n * ====\\n * You shouldn't rely on `isContract` to protect against flash loan attacks!\\n *\\n * Preventing calls from contracts is highly discouraged. It breaks composability, breaks support for smart wallets\\n * like Gnosis Safe, and does not provide security since it can be circumvented by calling from a contract\\n * constructor.\\n * ====\\n */\\n function isContract(address account) internal view returns (bool) {\\n // This method relies on extcodesize/address.code.length, which returns 0\\n // for contracts in construction, since the code is only stored at the end\\n // of the constructor execution.\\n\\n return account.code.length > 0;\\n }\\n\\n /**\\n * @dev Replacement for Solidity's `transfer`: sends `amount` wei to\\n * `recipient`, forwarding all available gas and reverting on errors.\\n *\\n * https://eips.ethereum.org/EIPS/eip-1884[EIP1884] increases the gas cost\\n * of certain opcodes, possibly making contracts go over the 2300 gas limit\\n * imposed by `transfer`, making them unable to receive funds via\\n * `transfer`. {sendValue} removes this limitation.\\n *\\n * https://consensys.net/diligence/blog/2019/09/stop-using-soliditys-transfer-now/[Learn more].\\n *\\n * IMPORTANT: because control is transferred to `recipient`, care must be\\n * taken to not create reentrancy vulnerabilities. Consider using\\n * {ReentrancyGuard} or the\\n * https://solidity.readthedocs.io/en/v0.8.0/security-considerations.html#use-the-checks-effects-interactions-pattern[checks-effects-interactions pattern].\\n */\\n function sendValue(address payable recipient, uint256 amount) internal {\\n require(address(this).balance >= amount, \\\"Address: insufficient balance\\\");\\n\\n (bool success, ) = recipient.call{value: amount}(\\\"\\\");\\n require(success, \\\"Address: unable to send value, recipient may have reverted\\\");\\n }\\n\\n /**\\n * @dev Performs a Solidity function call using a low level `call`. A\\n * plain `call` is an unsafe replacement for a function call: use this\\n * function instead.\\n *\\n * If `target` reverts with a revert reason, it is bubbled up by this\\n * function (like regular Solidity function calls).\\n *\\n * Returns the raw returned data. To convert to the expected return value,\\n * use https://solidity.readthedocs.io/en/latest/units-and-global-variables.html?highlight=abi.decode#abi-encoding-and-decoding-functions[`abi.decode`].\\n *\\n * Requirements:\\n *\\n * - `target` must be a contract.\\n * - calling `target` with `data` must not revert.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, \\\"Address: low-level call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`], but with\\n * `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, 0, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but also transferring `value` wei to `target`.\\n *\\n * Requirements:\\n *\\n * - the calling contract must have an ETH balance of at least `value`.\\n * - the called Solidity function must be `payable`.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {\\n return functionCallWithValue(target, data, value, \\\"Address: low-level call with value failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCallWithValue-address-bytes-uint256-}[`functionCallWithValue`], but\\n * with `errorMessage` as a fallback revert reason when `target` reverts.\\n *\\n * _Available since v3.1._\\n */\\n function functionCallWithValue(\\n address target,\\n bytes memory data,\\n uint256 value,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n require(address(this).balance >= value, \\\"Address: insufficient balance for call\\\");\\n (bool success, bytes memory returndata) = target.call{value: value}(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(address target, bytes memory data) internal view returns (bytes memory) {\\n return functionStaticCall(target, data, \\\"Address: low-level static call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a static call.\\n *\\n * _Available since v3.3._\\n */\\n function functionStaticCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.staticcall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(address target, bytes memory data) internal returns (bytes memory) {\\n return functionDelegateCall(target, data, \\\"Address: low-level delegate call failed\\\");\\n }\\n\\n /**\\n * @dev Same as {xref-Address-functionCall-address-bytes-string-}[`functionCall`],\\n * but performing a delegate call.\\n *\\n * _Available since v3.4._\\n */\\n function functionDelegateCall(\\n address target,\\n bytes memory data,\\n string memory errorMessage\\n ) internal returns (bytes memory) {\\n (bool success, bytes memory returndata) = target.delegatecall(data);\\n return verifyCallResultFromTarget(target, success, returndata, errorMessage);\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call to smart-contract was successful, and revert (either by bubbling\\n * the revert reason or using the provided one) in case of unsuccessful call or if target was not a contract.\\n *\\n * _Available since v4.8._\\n */\\n function verifyCallResultFromTarget(\\n address target,\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal view returns (bytes memory) {\\n if (success) {\\n if (returndata.length == 0) {\\n // only check isContract if the call was successful and the return data is empty\\n // otherwise we already know that it was a contract\\n require(isContract(target), \\\"Address: call to non-contract\\\");\\n }\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n /**\\n * @dev Tool to verify that a low level call was successful, and revert if it wasn't, either by bubbling the\\n * revert reason or using the provided one.\\n *\\n * _Available since v4.3._\\n */\\n function verifyCallResult(\\n bool success,\\n bytes memory returndata,\\n string memory errorMessage\\n ) internal pure returns (bytes memory) {\\n if (success) {\\n return returndata;\\n } else {\\n _revert(returndata, errorMessage);\\n }\\n }\\n\\n function _revert(bytes memory returndata, string memory errorMessage) private pure {\\n // Look for revert reason and bubble it up if present\\n if (returndata.length > 0) {\\n // The easiest way to bubble the revert reason is using memory via assembly\\n /// @solidity memory-safe-assembly\\n assembly {\\n let returndata_size := mload(returndata)\\n revert(add(32, returndata), returndata_size)\\n }\\n } else {\\n revert(errorMessage);\\n }\\n }\\n}\\n\",\"keccak256\":\"0x006dd67219697fe68d7fbfdea512e7c4cb64a43565ed86171d67e844982da6fa\",\"license\":\"MIT\"},\"@openzeppelin/contracts/utils/Context.sol\":{\"content\":\"// SPDX-License-Identifier: MIT\\n// OpenZeppelin Contracts (last updated v4.9.4) (utils/Context.sol)\\n\\npragma solidity ^0.8.0;\\n\\n/**\\n * @dev Provides information about the current execution context, including the\\n * sender of the transaction and its data. While these are generally available\\n * via msg.sender and msg.data, they should not be accessed in such a direct\\n * manner, since when dealing with meta-transactions the account sending and\\n * paying for execution may not be the actual sender (as far as an application\\n * is concerned).\\n *\\n * This contract is only required for intermediate, library-like contracts.\\n */\\nabstract contract Context {\\n function _msgSender() internal view virtual returns (address) {\\n return msg.sender;\\n }\\n\\n function _msgData() internal view virtual returns (bytes calldata) {\\n return msg.data;\\n }\\n\\n function _contextSuffixLength() internal view virtual returns (uint256) {\\n return 0;\\n }\\n}\\n\",\"keccak256\":\"0xa92e4fa126feb6907daa0513ddd816b2eb91f30a808de54f63c17d0e162c3439\",\"license\":\"MIT\"}},\"version\":1}",
142
- "bytecode": "0x608060405234801561001057600080fd5b506040516104be3803806104be83398101604081905261002f9161013a565b61003833610047565b61004181610097565b5061016a565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6001600160a01b0381163b6101185760405162461bcd60e51b815260206004820152603360248201527f5570677261646561626c65426561636f6e3a20696d706c656d656e746174696f60448201527f6e206973206e6f74206120636f6e747261637400000000000000000000000000606482015260840160405180910390fd5b600180546001600160a01b0319166001600160a01b0392909216919091179055565b60006020828403121561014c57600080fd5b81516001600160a01b038116811461016357600080fd5b9392505050565b610345806101796000396000f3fe608060405234801561001057600080fd5b50600436106100575760003560e01c80633659cfe61461005c5780635c60da1b14610071578063715018a61461009a5780638da5cb5b146100a2578063f2fde38b146100b3575b600080fd5b61006f61006a3660046102df565b6100c6565b005b6001546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b61006f61010e565b6000546001600160a01b031661007e565b61006f6100c13660046102df565b610122565b6100ce6101a0565b6100d7816101fa565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6101166101a0565b610120600061028f565b565b61012a6101a0565b6001600160a01b0381166101945760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61019d8161028f565b50565b6000546001600160a01b031633146101205760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161018b565b6001600160a01b0381163b61026d5760405162461bcd60e51b815260206004820152603360248201527f5570677261646561626c65426561636f6e3a20696d706c656d656e746174696f6044820152721b881a5cc81b9bdd08184818dbdb9d1c9858dd606a1b606482015260840161018b565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156102f157600080fd5b81356001600160a01b038116811461030857600080fd5b939250505056fea2646970667358221220d545fd9e5dad1533895a65b3a05d1e6f1c1c47d5577fa2c59eec7f8e53dae96b64736f6c63430008190033",
143
- "deployedBytecode": "0x608060405234801561001057600080fd5b50600436106100575760003560e01c80633659cfe61461005c5780635c60da1b14610071578063715018a61461009a5780638da5cb5b146100a2578063f2fde38b146100b3575b600080fd5b61006f61006a3660046102df565b6100c6565b005b6001546001600160a01b03165b6040516001600160a01b03909116815260200160405180910390f35b61006f61010e565b6000546001600160a01b031661007e565b61006f6100c13660046102df565b610122565b6100ce6101a0565b6100d7816101fa565b6040516001600160a01b038216907fbc7cd75a20ee27fd9adebab32041f755214dbc6bffa90cc0225b39da2e5c2d3b90600090a250565b6101166101a0565b610120600061028f565b565b61012a6101a0565b6001600160a01b0381166101945760405162461bcd60e51b815260206004820152602660248201527f4f776e61626c653a206e6577206f776e657220697320746865207a65726f206160448201526564647265737360d01b60648201526084015b60405180910390fd5b61019d8161028f565b50565b6000546001600160a01b031633146101205760405162461bcd60e51b815260206004820181905260248201527f4f776e61626c653a2063616c6c6572206973206e6f7420746865206f776e6572604482015260640161018b565b6001600160a01b0381163b61026d5760405162461bcd60e51b815260206004820152603360248201527f5570677261646561626c65426561636f6e3a20696d706c656d656e746174696f6044820152721b881a5cc81b9bdd08184818dbdb9d1c9858dd606a1b606482015260840161018b565b600180546001600160a01b0319166001600160a01b0392909216919091179055565b600080546001600160a01b038381166001600160a01b0319831681178455604051919092169283917f8be0079c531659141344cd1fd0a4f28419497f9722a3daafe3b4186f6b6457e09190a35050565b6000602082840312156102f157600080fd5b81356001600160a01b038116811461030857600080fd5b939250505056fea2646970667358221220d545fd9e5dad1533895a65b3a05d1e6f1c1c47d5577fa2c59eec7f8e53dae96b64736f6c63430008190033",
144
- "devdoc": {
145
- "details": "This contract is used in conjunction with one or more instances of {BeaconProxy} to determine their implementation contract, which is where they will delegate all function calls. An owner is able to change the implementation the beacon points to, thus upgrading the proxies that use this beacon.",
146
- "events": {
147
- "Upgraded(address)": {
148
- "details": "Emitted when the implementation returned by the beacon is changed."
149
- }
150
- },
151
- "kind": "dev",
152
- "methods": {
153
- "constructor": {
154
- "details": "Sets the address of the initial implementation, and the deployer account as the owner who can upgrade the beacon."
155
- },
156
- "implementation()": {
157
- "details": "Returns the current implementation address."
158
- },
159
- "owner()": {
160
- "details": "Returns the address of the current owner."
161
- },
162
- "renounceOwnership()": {
163
- "details": "Leaves the contract without owner. It will not be possible to call `onlyOwner` functions. Can only be called by the current owner. NOTE: Renouncing ownership will leave the contract without an owner, thereby disabling any functionality that is only available to the owner."
164
- },
165
- "transferOwnership(address)": {
166
- "details": "Transfers ownership of the contract to a new account (`newOwner`). Can only be called by the current owner."
167
- },
168
- "upgradeTo(address)": {
169
- "details": "Upgrades the beacon to a new implementation. Emits an {Upgraded} event. Requirements: - msg.sender must be the owner of the contract. - `newImplementation` must be a contract."
170
- }
171
- },
172
- "version": 1
173
- },
174
- "userdoc": {
175
- "kind": "user",
176
- "methods": {},
177
- "version": 1
178
- },
179
- "storageLayout": {
180
- "storage": [
181
- {
182
- "astId": 3501,
183
- "contract": "@openzeppelin/contracts/proxy/beacon/UpgradeableBeacon.sol:UpgradeableBeacon",
184
- "label": "_owner",
185
- "offset": 0,
186
- "slot": "0",
187
- "type": "t_address"
188
- },
189
- {
190
- "astId": 4164,
191
- "contract": "@openzeppelin/contracts/proxy/beacon/UpgradeableBeacon.sol:UpgradeableBeacon",
192
- "label": "_implementation",
193
- "offset": 0,
194
- "slot": "1",
195
- "type": "t_address"
196
- }
197
- ],
198
- "types": {
199
- "t_address": {
200
- "encoding": "inplace",
201
- "label": "address",
202
- "numberOfBytes": "20"
203
- }
204
- }
205
- }
206
- }