@venusprotocol/isolated-pools 3.9.0-dev.1 → 3.9.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.
@@ -3810,6 +3810,334 @@
3810
3810
  }
3811
3811
  ]
3812
3812
  },
3813
+ "MockwsuperOETHb": {
3814
+ "address": "0x02B1136d9E223333E0083aeAB76bC441f230a033",
3815
+ "abi": [
3816
+ {
3817
+ "inputs": [
3818
+ {
3819
+ "internalType": "string",
3820
+ "name": "name_",
3821
+ "type": "string"
3822
+ },
3823
+ {
3824
+ "internalType": "string",
3825
+ "name": "symbol_",
3826
+ "type": "string"
3827
+ },
3828
+ {
3829
+ "internalType": "uint8",
3830
+ "name": "decimals_",
3831
+ "type": "uint8"
3832
+ }
3833
+ ],
3834
+ "stateMutability": "nonpayable",
3835
+ "type": "constructor"
3836
+ },
3837
+ {
3838
+ "anonymous": false,
3839
+ "inputs": [
3840
+ {
3841
+ "indexed": true,
3842
+ "internalType": "address",
3843
+ "name": "owner",
3844
+ "type": "address"
3845
+ },
3846
+ {
3847
+ "indexed": true,
3848
+ "internalType": "address",
3849
+ "name": "spender",
3850
+ "type": "address"
3851
+ },
3852
+ {
3853
+ "indexed": false,
3854
+ "internalType": "uint256",
3855
+ "name": "value",
3856
+ "type": "uint256"
3857
+ }
3858
+ ],
3859
+ "name": "Approval",
3860
+ "type": "event"
3861
+ },
3862
+ {
3863
+ "anonymous": false,
3864
+ "inputs": [
3865
+ {
3866
+ "indexed": true,
3867
+ "internalType": "address",
3868
+ "name": "from",
3869
+ "type": "address"
3870
+ },
3871
+ {
3872
+ "indexed": true,
3873
+ "internalType": "address",
3874
+ "name": "to",
3875
+ "type": "address"
3876
+ },
3877
+ {
3878
+ "indexed": false,
3879
+ "internalType": "uint256",
3880
+ "name": "value",
3881
+ "type": "uint256"
3882
+ }
3883
+ ],
3884
+ "name": "Transfer",
3885
+ "type": "event"
3886
+ },
3887
+ {
3888
+ "inputs": [
3889
+ {
3890
+ "internalType": "address",
3891
+ "name": "owner",
3892
+ "type": "address"
3893
+ },
3894
+ {
3895
+ "internalType": "address",
3896
+ "name": "spender",
3897
+ "type": "address"
3898
+ }
3899
+ ],
3900
+ "name": "allowance",
3901
+ "outputs": [
3902
+ {
3903
+ "internalType": "uint256",
3904
+ "name": "",
3905
+ "type": "uint256"
3906
+ }
3907
+ ],
3908
+ "stateMutability": "view",
3909
+ "type": "function"
3910
+ },
3911
+ {
3912
+ "inputs": [
3913
+ {
3914
+ "internalType": "address",
3915
+ "name": "spender",
3916
+ "type": "address"
3917
+ },
3918
+ {
3919
+ "internalType": "uint256",
3920
+ "name": "amount",
3921
+ "type": "uint256"
3922
+ }
3923
+ ],
3924
+ "name": "approve",
3925
+ "outputs": [
3926
+ {
3927
+ "internalType": "bool",
3928
+ "name": "",
3929
+ "type": "bool"
3930
+ }
3931
+ ],
3932
+ "stateMutability": "nonpayable",
3933
+ "type": "function"
3934
+ },
3935
+ {
3936
+ "inputs": [
3937
+ {
3938
+ "internalType": "address",
3939
+ "name": "account",
3940
+ "type": "address"
3941
+ }
3942
+ ],
3943
+ "name": "balanceOf",
3944
+ "outputs": [
3945
+ {
3946
+ "internalType": "uint256",
3947
+ "name": "",
3948
+ "type": "uint256"
3949
+ }
3950
+ ],
3951
+ "stateMutability": "view",
3952
+ "type": "function"
3953
+ },
3954
+ {
3955
+ "inputs": [
3956
+ {
3957
+ "internalType": "uint256",
3958
+ "name": "shares",
3959
+ "type": "uint256"
3960
+ }
3961
+ ],
3962
+ "name": "convertToAssets",
3963
+ "outputs": [
3964
+ {
3965
+ "internalType": "uint256",
3966
+ "name": "",
3967
+ "type": "uint256"
3968
+ }
3969
+ ],
3970
+ "stateMutability": "pure",
3971
+ "type": "function"
3972
+ },
3973
+ {
3974
+ "inputs": [],
3975
+ "name": "decimals",
3976
+ "outputs": [
3977
+ {
3978
+ "internalType": "uint8",
3979
+ "name": "",
3980
+ "type": "uint8"
3981
+ }
3982
+ ],
3983
+ "stateMutability": "view",
3984
+ "type": "function"
3985
+ },
3986
+ {
3987
+ "inputs": [
3988
+ {
3989
+ "internalType": "address",
3990
+ "name": "spender",
3991
+ "type": "address"
3992
+ },
3993
+ {
3994
+ "internalType": "uint256",
3995
+ "name": "subtractedValue",
3996
+ "type": "uint256"
3997
+ }
3998
+ ],
3999
+ "name": "decreaseAllowance",
4000
+ "outputs": [
4001
+ {
4002
+ "internalType": "bool",
4003
+ "name": "",
4004
+ "type": "bool"
4005
+ }
4006
+ ],
4007
+ "stateMutability": "nonpayable",
4008
+ "type": "function"
4009
+ },
4010
+ {
4011
+ "inputs": [
4012
+ {
4013
+ "internalType": "uint256",
4014
+ "name": "amount",
4015
+ "type": "uint256"
4016
+ }
4017
+ ],
4018
+ "name": "faucet",
4019
+ "outputs": [],
4020
+ "stateMutability": "nonpayable",
4021
+ "type": "function"
4022
+ },
4023
+ {
4024
+ "inputs": [
4025
+ {
4026
+ "internalType": "address",
4027
+ "name": "spender",
4028
+ "type": "address"
4029
+ },
4030
+ {
4031
+ "internalType": "uint256",
4032
+ "name": "addedValue",
4033
+ "type": "uint256"
4034
+ }
4035
+ ],
4036
+ "name": "increaseAllowance",
4037
+ "outputs": [
4038
+ {
4039
+ "internalType": "bool",
4040
+ "name": "",
4041
+ "type": "bool"
4042
+ }
4043
+ ],
4044
+ "stateMutability": "nonpayable",
4045
+ "type": "function"
4046
+ },
4047
+ {
4048
+ "inputs": [],
4049
+ "name": "name",
4050
+ "outputs": [
4051
+ {
4052
+ "internalType": "string",
4053
+ "name": "",
4054
+ "type": "string"
4055
+ }
4056
+ ],
4057
+ "stateMutability": "view",
4058
+ "type": "function"
4059
+ },
4060
+ {
4061
+ "inputs": [],
4062
+ "name": "symbol",
4063
+ "outputs": [
4064
+ {
4065
+ "internalType": "string",
4066
+ "name": "",
4067
+ "type": "string"
4068
+ }
4069
+ ],
4070
+ "stateMutability": "view",
4071
+ "type": "function"
4072
+ },
4073
+ {
4074
+ "inputs": [],
4075
+ "name": "totalSupply",
4076
+ "outputs": [
4077
+ {
4078
+ "internalType": "uint256",
4079
+ "name": "",
4080
+ "type": "uint256"
4081
+ }
4082
+ ],
4083
+ "stateMutability": "view",
4084
+ "type": "function"
4085
+ },
4086
+ {
4087
+ "inputs": [
4088
+ {
4089
+ "internalType": "address",
4090
+ "name": "to",
4091
+ "type": "address"
4092
+ },
4093
+ {
4094
+ "internalType": "uint256",
4095
+ "name": "amount",
4096
+ "type": "uint256"
4097
+ }
4098
+ ],
4099
+ "name": "transfer",
4100
+ "outputs": [
4101
+ {
4102
+ "internalType": "bool",
4103
+ "name": "",
4104
+ "type": "bool"
4105
+ }
4106
+ ],
4107
+ "stateMutability": "nonpayable",
4108
+ "type": "function"
4109
+ },
4110
+ {
4111
+ "inputs": [
4112
+ {
4113
+ "internalType": "address",
4114
+ "name": "from",
4115
+ "type": "address"
4116
+ },
4117
+ {
4118
+ "internalType": "address",
4119
+ "name": "to",
4120
+ "type": "address"
4121
+ },
4122
+ {
4123
+ "internalType": "uint256",
4124
+ "name": "amount",
4125
+ "type": "uint256"
4126
+ }
4127
+ ],
4128
+ "name": "transferFrom",
4129
+ "outputs": [
4130
+ {
4131
+ "internalType": "bool",
4132
+ "name": "",
4133
+ "type": "bool"
4134
+ }
4135
+ ],
4136
+ "stateMutability": "nonpayable",
4137
+ "type": "function"
4138
+ }
4139
+ ]
4140
+ },
3813
4141
  "NativeTokenGateway_vWETH_Core": {
3814
4142
  "address": "0x3C13241910b56fF00C672E4A2c17E3758B925EC3",
3815
4143
  "abi": [
@@ -11954,6 +12282,80 @@
11954
12282
  "type": "receive"
11955
12283
  }
11956
12284
  ]
12285
+ },
12286
+ "VToken_vwsuperOETHb_Core": {
12287
+ "address": "0xF9d609ba31724E199ccaacaD3e3e7ED8462C20C5",
12288
+ "abi": [
12289
+ {
12290
+ "inputs": [
12291
+ {
12292
+ "internalType": "address",
12293
+ "name": "beacon",
12294
+ "type": "address"
12295
+ },
12296
+ {
12297
+ "internalType": "bytes",
12298
+ "name": "data",
12299
+ "type": "bytes"
12300
+ }
12301
+ ],
12302
+ "stateMutability": "payable",
12303
+ "type": "constructor"
12304
+ },
12305
+ {
12306
+ "anonymous": false,
12307
+ "inputs": [
12308
+ {
12309
+ "indexed": false,
12310
+ "internalType": "address",
12311
+ "name": "previousAdmin",
12312
+ "type": "address"
12313
+ },
12314
+ {
12315
+ "indexed": false,
12316
+ "internalType": "address",
12317
+ "name": "newAdmin",
12318
+ "type": "address"
12319
+ }
12320
+ ],
12321
+ "name": "AdminChanged",
12322
+ "type": "event"
12323
+ },
12324
+ {
12325
+ "anonymous": false,
12326
+ "inputs": [
12327
+ {
12328
+ "indexed": true,
12329
+ "internalType": "address",
12330
+ "name": "beacon",
12331
+ "type": "address"
12332
+ }
12333
+ ],
12334
+ "name": "BeaconUpgraded",
12335
+ "type": "event"
12336
+ },
12337
+ {
12338
+ "anonymous": false,
12339
+ "inputs": [
12340
+ {
12341
+ "indexed": true,
12342
+ "internalType": "address",
12343
+ "name": "implementation",
12344
+ "type": "address"
12345
+ }
12346
+ ],
12347
+ "name": "Upgraded",
12348
+ "type": "event"
12349
+ },
12350
+ {
12351
+ "stateMutability": "payable",
12352
+ "type": "fallback"
12353
+ },
12354
+ {
12355
+ "stateMutability": "payable",
12356
+ "type": "receive"
12357
+ }
12358
+ ]
11957
12359
  }
11958
12360
  }
11959
12361
  }
@@ -3,6 +3,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.getMaxBorrowRateMantissa = exports.getBidderDeploymentValues = exports.getTokenAddress = exports.getTokenConfig = exports.getConfig = exports.globalConfig = exports.preconfiguredAddresses = exports.BASE_MAINNET_MULTISIG = exports.BASE_SEPOLIA_MULTISIG = exports.OP_MAINNET_MULTISIG = exports.OP_SEPOLIA_MULTISIG = exports.ZKSYNC_MAINNET_MULTISIG = exports.ZKSYNC_SEPOLIA_MULTISIG = exports.ARBITRUM_ONE_MULTISIG = exports.ARBITRUM_SEPOLIA_MULTISIG = exports.OPBNBMAINNET_MULTISIG = exports.OPBNBTESTNET_MULTISIG = exports.ETHEREUM_MULTISIG = exports.SEPOLIA_MULTISIG = exports.blocksPerYear = exports.SECONDS_PER_YEAR = exports.OPBNB_BLOCKS_PER_YEAR = exports.ETH_BLOCKS_PER_YEAR = exports.BSC_BLOCKS_PER_YEAR = exports.InterestRateModels = void 0;
4
4
  const arbitrumone_json_1 = require("@venusprotocol/governance-contracts/deployments/arbitrumone.json");
5
5
  const arbitrumsepolia_json_1 = require("@venusprotocol/governance-contracts/deployments/arbitrumsepolia.json");
6
+ const basemainnet_json_1 = require("@venusprotocol/governance-contracts/deployments/basemainnet.json");
7
+ const basesepolia_json_1 = require("@venusprotocol/governance-contracts/deployments/basesepolia.json");
6
8
  const bscmainnet_json_1 = require("@venusprotocol/governance-contracts/deployments/bscmainnet.json");
7
9
  const bsctestnet_json_1 = require("@venusprotocol/governance-contracts/deployments/bsctestnet.json");
8
10
  const ethereum_json_1 = require("@venusprotocol/governance-contracts/deployments/ethereum.json");
@@ -183,16 +185,16 @@ exports.preconfiguredAddresses = {
183
185
  },
184
186
  basesepolia: {
185
187
  VTreasury: "0x07e880DaA6572829cE8ABaaf0f5323A4eFC417A6",
186
- NormalTimelock: exports.BASE_SEPOLIA_MULTISIG,
187
- FastTrackTimelock: exports.BASE_SEPOLIA_MULTISIG,
188
- CriticalTimelock: exports.BASE_SEPOLIA_MULTISIG,
188
+ NormalTimelock: basesepolia_json_1.contracts.NormalTimelock.address,
189
+ FastTrackTimelock: basesepolia_json_1.contracts.FastTrackTimelock.address,
190
+ CriticalTimelock: basesepolia_json_1.contracts.CriticalTimelock.address,
189
191
  AccessControlManager: "0x724138223D8F76b519fdE715f60124E7Ce51e051",
190
192
  },
191
193
  basemainnet: {
192
194
  VTreasury: "0xbefD8d06f403222dd5E8e37D2ba93320A97939D1",
193
- NormalTimelock: exports.BASE_MAINNET_MULTISIG,
194
- FastTrackTimelock: exports.BASE_MAINNET_MULTISIG,
195
- CriticalTimelock: exports.BASE_MAINNET_MULTISIG,
195
+ NormalTimelock: basemainnet_json_1.contracts.NormalTimelock.address,
196
+ FastTrackTimelock: basemainnet_json_1.contracts.FastTrackTimelock.address,
197
+ CriticalTimelock: basemainnet_json_1.contracts.CriticalTimelock.address,
196
198
  AccessControlManager: "0x9E6CeEfDC6183e4D0DF8092A9B90cDF659687daB",
197
199
  },
198
200
  };
@@ -6213,6 +6215,14 @@ exports.globalConfig = {
6213
6215
  decimals: 18,
6214
6216
  tokenAddress: "0xE657EDb5579B82135a274E85187927C42E38C021",
6215
6217
  },
6218
+ {
6219
+ isMock: true,
6220
+ standard: "ERC-4626",
6221
+ name: "Wrapped Super OETH",
6222
+ symbol: "wsuperOETHb",
6223
+ decimals: 18,
6224
+ tokenAddress: hardhat_1.ethers.constants.AddressZero,
6225
+ },
6216
6226
  ],
6217
6227
  poolConfig: [
6218
6228
  {
@@ -6276,6 +6286,24 @@ exports.globalConfig = {
6276
6286
  reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_BASE_SEPOLIA,
6277
6287
  vTokenReceiver: exports.preconfiguredAddresses.basesepolia.VTreasury,
6278
6288
  },
6289
+ {
6290
+ name: "Venus wsuperOETHb (Core)",
6291
+ asset: "wsuperOETHb",
6292
+ symbol: "vwsuperOETHb_Core",
6293
+ rateModel: InterestRateModels.JumpRate.toString(),
6294
+ baseRatePerYear: "0",
6295
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.09", 18),
6296
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("3", 18),
6297
+ kink_: (0, utils_1.convertToUnit)("0.45", 18),
6298
+ collateralFactor: (0, utils_1.convertToUnit)("0.73", 18),
6299
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.78", 18),
6300
+ reserveFactor: (0, utils_1.convertToUnit)("0.2", 18),
6301
+ initialSupply: (0, utils_1.convertToUnit)("0.3", 18),
6302
+ supplyCap: (0, utils_1.convertToUnit)(2000, 18),
6303
+ borrowCap: (0, utils_1.convertToUnit)(0, 18),
6304
+ reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_BASE_SEPOLIA,
6305
+ vTokenReceiver: exports.preconfiguredAddresses.basesepolia.VTreasury,
6306
+ },
6279
6307
  ],
6280
6308
  rewards: [
6281
6309
  // XVS Rewards Over 120 months (311040000 seconds)
@@ -6334,6 +6362,13 @@ exports.globalConfig = {
6334
6362
  decimals: 18,
6335
6363
  tokenAddress: "0xebB7873213c8d1d9913D8eA39Aa12d74cB107995",
6336
6364
  },
6365
+ {
6366
+ isMock: false,
6367
+ name: "Wrapped Super OETH",
6368
+ symbol: "wsuperOETHb",
6369
+ decimals: 18,
6370
+ tokenAddress: "0x7FcD174E80f264448ebeE8c88a7C4476AAF58Ea6",
6371
+ },
6337
6372
  ],
6338
6373
  poolConfig: [
6339
6374
  {
@@ -6397,6 +6432,24 @@ exports.globalConfig = {
6397
6432
  reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_BASE_MAINNET,
6398
6433
  vTokenReceiver: exports.preconfiguredAddresses.basemainnet.VTreasury,
6399
6434
  },
6435
+ {
6436
+ name: "Venus wsuperOETHb (Core)",
6437
+ asset: "wsuperOETHb",
6438
+ symbol: "vwsuperOETHb_Core",
6439
+ rateModel: InterestRateModels.JumpRate.toString(),
6440
+ baseRatePerYear: "0",
6441
+ multiplierPerYear: (0, utils_1.convertToUnit)("0.09", 18),
6442
+ jumpMultiplierPerYear: (0, utils_1.convertToUnit)("3", 18),
6443
+ kink_: (0, utils_1.convertToUnit)("0.45", 18),
6444
+ collateralFactor: (0, utils_1.convertToUnit)("0.73", 18),
6445
+ liquidationThreshold: (0, utils_1.convertToUnit)("0.78", 18),
6446
+ reserveFactor: (0, utils_1.convertToUnit)("0.2", 18),
6447
+ initialSupply: (0, utils_1.convertToUnit)("0.3", 18),
6448
+ supplyCap: (0, utils_1.convertToUnit)(2000, 18),
6449
+ borrowCap: (0, utils_1.convertToUnit)(0, 18),
6450
+ reduceReservesBlockDelta: REDUCE_RESERVES_BLOCK_DELTA_BASE_MAINNET,
6451
+ vTokenReceiver: "0x3c112E20141B65041C252a68a611EF145f58B7bc",
6452
+ },
6400
6453
  ],
6401
6454
  rewards: [],
6402
6455
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@venusprotocol/isolated-pools",
3
- "version": "3.9.0-dev.1",
3
+ "version": "3.9.0-dev.2",
4
4
  "description": "",
5
5
  "files": [
6
6
  "artifacts",
@@ -77,7 +77,7 @@
77
77
  "@types/node": "^12.20.50",
78
78
  "@typescript-eslint/eslint-plugin": "^5.27.1",
79
79
  "@typescript-eslint/parser": "^5.27.1",
80
- "@venusprotocol/governance-contracts": "2.6.0",
80
+ "@venusprotocol/governance-contracts": "2.7.0",
81
81
  "@venusprotocol/oracle": "2.7.0",
82
82
  "@venusprotocol/protocol-reserve": "3.0.1",
83
83
  "@venusprotocol/venus-protocol": "9.4.0",