@venusprotocol/isolated-pools 3.2.0 → 3.3.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.
Files changed (91) hide show
  1. package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/AccessControlledV5.sol/AccessControlledV5.dbg.json +1 -1
  2. package/artifacts/@venusprotocol/governance-contracts/contracts/Governance/IAccessControlManagerV5.sol/IAccessControlManagerV5.dbg.json +1 -1
  3. package/artifacts/@venusprotocol/solidity-utilities/contracts/TimeManagerV5.sol/TimeManagerV5.dbg.json +4 -0
  4. package/artifacts/@venusprotocol/{venus-protocol/contracts/XVSVault → solidity-utilities/contracts}/TimeManagerV5.sol/TimeManagerV5.json +3 -3
  5. package/artifacts/@venusprotocol/venus-protocol/contracts/Tokens/Prime/IPrime.sol/IPrime.dbg.json +1 -1
  6. package/artifacts/@venusprotocol/venus-protocol/contracts/Utils/Address.sol/Address.dbg.json +1 -1
  7. package/artifacts/@venusprotocol/venus-protocol/contracts/Utils/ECDSA.sol/ECDSA.dbg.json +1 -1
  8. package/artifacts/@venusprotocol/venus-protocol/contracts/Utils/IBEP20.sol/IBEP20.dbg.json +1 -1
  9. package/artifacts/@venusprotocol/venus-protocol/contracts/Utils/SafeBEP20.sol/SafeBEP20.dbg.json +1 -1
  10. package/artifacts/@venusprotocol/venus-protocol/contracts/Utils/SafeCast.sol/SafeCast.dbg.json +1 -1
  11. package/artifacts/@venusprotocol/venus-protocol/contracts/Utils/SafeMath.sol/SafeMath.dbg.json +1 -1
  12. package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSStore.sol/XVSStore.dbg.json +1 -1
  13. package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVault.sol/XVSVault.dbg.json +1 -1
  14. package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVault.sol/XVSVault.json +28 -2
  15. package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVaultErrorReporter.sol/XVSVaultErrorReporter.dbg.json +1 -1
  16. package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVaultProxy.sol/XVSVaultProxy.dbg.json +1 -1
  17. package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVaultProxy.sol/XVSVaultProxy.json +2 -2
  18. package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVaultStorage.sol/XVSVaultAdminStorage.dbg.json +1 -1
  19. package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVaultStorage.sol/XVSVaultAdminStorage.json +2 -2
  20. package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVaultStorage.sol/XVSVaultStorage.dbg.json +1 -1
  21. package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVaultStorage.sol/XVSVaultStorage.json +28 -2
  22. package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVaultStorage.sol/XVSVaultStorageV1.dbg.json +1 -1
  23. package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/XVSVaultStorage.sol/XVSVaultStorageV1.json +2 -2
  24. package/artifacts/build-info/8eba699f268bc7041b7f29e3b1d105df.json +1 -0
  25. package/artifacts/contracts/test/XVSStoreScenario.sol/XVSStoreScenario.dbg.json +1 -1
  26. package/artifacts/contracts/test/XVSVaultScenario.sol/XVSVaultScenario.dbg.json +1 -1
  27. package/artifacts/contracts/test/XVSVaultScenario.sol/XVSVaultScenario.json +28 -2
  28. package/deployments/arbitrumone/ComptrollerBeacon.json +206 -0
  29. package/deployments/arbitrumone/ComptrollerImpl.json +3227 -0
  30. package/deployments/arbitrumone/Comptroller_Core.json +187 -0
  31. package/deployments/arbitrumone/DefaultProxyAdmin.json +257 -0
  32. package/deployments/arbitrumone/JumpRateModelV2_base0bps_slope1500bps_jump25000bps_kink4500bps.json +608 -0
  33. package/deployments/arbitrumone/JumpRateModelV2_base0bps_slope350bps_jump25000bps_kink8000bps.json +608 -0
  34. package/deployments/arbitrumone/JumpRateModelV2_base0bps_slope875bps_jump25000bps_kink8000bps.json +608 -0
  35. package/deployments/arbitrumone/PoolRegistry.json +945 -0
  36. package/deployments/arbitrumone/PoolRegistry_Implementation.json +1194 -0
  37. package/deployments/arbitrumone/PoolRegistry_Proxy.json +267 -0
  38. package/deployments/arbitrumone/VTokenBeacon.json +206 -0
  39. package/deployments/arbitrumone/VTokenImpl.json +3269 -0
  40. package/deployments/arbitrumone/VToken_vARB_Core.json +257 -0
  41. package/deployments/arbitrumone/VToken_vUSDC_Core.json +257 -0
  42. package/deployments/arbitrumone/VToken_vUSDT_Core.json +257 -0
  43. package/deployments/arbitrumone/VToken_vWBTC_Core.json +257 -0
  44. package/deployments/arbitrumone/VToken_vWETH_Core.json +257 -0
  45. package/deployments/arbitrumone/solcInputs/0e89febeebc7444140de8e67c9067d2c.json +78 -0
  46. package/deployments/arbitrumone/solcInputs/6908ef056fe5b90d510a922d922ed1be.json +397 -0
  47. package/deployments/arbitrumone.json +8553 -895
  48. package/deployments/arbitrumone_addresses.json +18 -1
  49. package/deployments/bscmainnet/JumpRateModelV2_base0bps_slope90bps_jump30000bps_kink9000bps.json +608 -0
  50. package/deployments/bscmainnet/solcInputs/3c20dc65cc123659b5918437b44f9306.json +403 -0
  51. package/deployments/bscmainnet.json +360 -0
  52. package/deployments/bscmainnet_addresses.json +1 -0
  53. package/dist/deploy/019-deploy-ir-models.js +2 -0
  54. package/dist/deployments/bscmainnet.json +360 -0
  55. package/dist/hardhat.config.js +1 -0
  56. package/dist/helpers/deploymentConfig.d.ts +8 -0
  57. package/dist/helpers/deploymentConfig.js +160 -3
  58. package/dist/typechain/factories/IVToken__factory.d.ts +1 -5
  59. package/dist/typechain/factories/IVToken__factory.js +1 -201
  60. package/dist/typechain/factories/TimeManagerV5__factory.d.ts +1 -1
  61. package/dist/typechain/factories/TimeManagerV5__factory.js +1 -1
  62. package/dist/typechain/factories/XVSVaultAdminStorage__factory.d.ts +1 -1
  63. package/dist/typechain/factories/XVSVaultAdminStorage__factory.js +1 -1
  64. package/dist/typechain/factories/XVSVaultProxy__factory.d.ts +1 -1
  65. package/dist/typechain/factories/XVSVaultProxy__factory.js +1 -1
  66. package/dist/typechain/factories/XVSVaultScenario__factory.d.ts +1 -1
  67. package/dist/typechain/factories/XVSVaultScenario__factory.js +27 -1
  68. package/dist/typechain/factories/XVSVaultStorageV1__factory.d.ts +1 -1
  69. package/dist/typechain/factories/XVSVaultStorageV1__factory.js +1 -1
  70. package/dist/typechain/factories/XVSVaultStorage__factory.d.ts +1 -1
  71. package/dist/typechain/factories/XVSVaultStorage__factory.js +27 -1
  72. package/dist/typechain/factories/XVSVault__factory.d.ts +1 -1
  73. package/dist/typechain/factories/XVSVault__factory.js +27 -1
  74. package/dist/typechain/index.d.ts +2 -2
  75. package/dist/typechain/index.js +4 -4
  76. package/package.json +4 -4
  77. package/typechain/IVToken.d.ts +4 -341
  78. package/typechain/XVSVault.d.ts +39 -0
  79. package/typechain/XVSVaultScenario.d.ts +39 -0
  80. package/typechain/XVSVaultStorage.d.ts +39 -0
  81. package/typechain/factories/IVToken__factory.ts +1 -201
  82. package/typechain/factories/TimeManagerV5__factory.ts +1 -1
  83. package/typechain/factories/XVSVaultAdminStorage__factory.ts +1 -1
  84. package/typechain/factories/XVSVaultProxy__factory.ts +1 -1
  85. package/typechain/factories/XVSVaultScenario__factory.ts +27 -1
  86. package/typechain/factories/XVSVaultStorageV1__factory.ts +1 -1
  87. package/typechain/factories/XVSVaultStorage__factory.ts +27 -1
  88. package/typechain/factories/XVSVault__factory.ts +27 -1
  89. package/typechain/index.ts +2 -2
  90. package/artifacts/@venusprotocol/venus-protocol/contracts/XVSVault/TimeManagerV5.sol/TimeManagerV5.dbg.json +0 -4
  91. package/artifacts/build-info/a6010b45c0c8965ed7c62ff62b41af46.json +0 -1
@@ -3748,6 +3748,366 @@
3748
3748
  }
3749
3749
  ]
3750
3750
  },
3751
+ "JumpRateModelV2_base0bps_slope90bps_jump30000bps_kink9000bps": {
3752
+ "address": "0x8037f793A298789736fc1cb7e3154573647CDD11",
3753
+ "abi": [
3754
+ {
3755
+ "inputs": [
3756
+ {
3757
+ "internalType": "uint256",
3758
+ "name": "baseRatePerYear_",
3759
+ "type": "uint256"
3760
+ },
3761
+ {
3762
+ "internalType": "uint256",
3763
+ "name": "multiplierPerYear_",
3764
+ "type": "uint256"
3765
+ },
3766
+ {
3767
+ "internalType": "uint256",
3768
+ "name": "jumpMultiplierPerYear_",
3769
+ "type": "uint256"
3770
+ },
3771
+ {
3772
+ "internalType": "uint256",
3773
+ "name": "kink_",
3774
+ "type": "uint256"
3775
+ },
3776
+ {
3777
+ "internalType": "contract IAccessControlManagerV8",
3778
+ "name": "accessControlManager_",
3779
+ "type": "address"
3780
+ },
3781
+ {
3782
+ "internalType": "bool",
3783
+ "name": "timeBased_",
3784
+ "type": "bool"
3785
+ },
3786
+ {
3787
+ "internalType": "uint256",
3788
+ "name": "blocksPerYear_",
3789
+ "type": "uint256"
3790
+ }
3791
+ ],
3792
+ "stateMutability": "nonpayable",
3793
+ "type": "constructor"
3794
+ },
3795
+ {
3796
+ "inputs": [],
3797
+ "name": "InvalidBlocksPerYear",
3798
+ "type": "error"
3799
+ },
3800
+ {
3801
+ "inputs": [],
3802
+ "name": "InvalidTimeBasedConfiguration",
3803
+ "type": "error"
3804
+ },
3805
+ {
3806
+ "inputs": [
3807
+ {
3808
+ "internalType": "address",
3809
+ "name": "sender",
3810
+ "type": "address"
3811
+ },
3812
+ {
3813
+ "internalType": "address",
3814
+ "name": "calledContract",
3815
+ "type": "address"
3816
+ },
3817
+ {
3818
+ "internalType": "string",
3819
+ "name": "methodSignature",
3820
+ "type": "string"
3821
+ }
3822
+ ],
3823
+ "name": "Unauthorized",
3824
+ "type": "error"
3825
+ },
3826
+ {
3827
+ "anonymous": false,
3828
+ "inputs": [
3829
+ {
3830
+ "indexed": false,
3831
+ "internalType": "uint256",
3832
+ "name": "baseRatePerBlockOrTimestamp",
3833
+ "type": "uint256"
3834
+ },
3835
+ {
3836
+ "indexed": false,
3837
+ "internalType": "uint256",
3838
+ "name": "multiplierPerBlockOrTimestamp",
3839
+ "type": "uint256"
3840
+ },
3841
+ {
3842
+ "indexed": false,
3843
+ "internalType": "uint256",
3844
+ "name": "jumpMultiplierPerBlockOrTimestamp",
3845
+ "type": "uint256"
3846
+ },
3847
+ {
3848
+ "indexed": false,
3849
+ "internalType": "uint256",
3850
+ "name": "kink",
3851
+ "type": "uint256"
3852
+ }
3853
+ ],
3854
+ "name": "NewInterestParams",
3855
+ "type": "event"
3856
+ },
3857
+ {
3858
+ "inputs": [],
3859
+ "name": "accessControlManager",
3860
+ "outputs": [
3861
+ {
3862
+ "internalType": "contract IAccessControlManagerV8",
3863
+ "name": "",
3864
+ "type": "address"
3865
+ }
3866
+ ],
3867
+ "stateMutability": "view",
3868
+ "type": "function"
3869
+ },
3870
+ {
3871
+ "inputs": [],
3872
+ "name": "baseRatePerBlock",
3873
+ "outputs": [
3874
+ {
3875
+ "internalType": "uint256",
3876
+ "name": "",
3877
+ "type": "uint256"
3878
+ }
3879
+ ],
3880
+ "stateMutability": "view",
3881
+ "type": "function"
3882
+ },
3883
+ {
3884
+ "inputs": [],
3885
+ "name": "blocksOrSecondsPerYear",
3886
+ "outputs": [
3887
+ {
3888
+ "internalType": "uint256",
3889
+ "name": "",
3890
+ "type": "uint256"
3891
+ }
3892
+ ],
3893
+ "stateMutability": "view",
3894
+ "type": "function"
3895
+ },
3896
+ {
3897
+ "inputs": [],
3898
+ "name": "getBlockNumberOrTimestamp",
3899
+ "outputs": [
3900
+ {
3901
+ "internalType": "uint256",
3902
+ "name": "",
3903
+ "type": "uint256"
3904
+ }
3905
+ ],
3906
+ "stateMutability": "view",
3907
+ "type": "function"
3908
+ },
3909
+ {
3910
+ "inputs": [
3911
+ {
3912
+ "internalType": "uint256",
3913
+ "name": "cash",
3914
+ "type": "uint256"
3915
+ },
3916
+ {
3917
+ "internalType": "uint256",
3918
+ "name": "borrows",
3919
+ "type": "uint256"
3920
+ },
3921
+ {
3922
+ "internalType": "uint256",
3923
+ "name": "reserves",
3924
+ "type": "uint256"
3925
+ },
3926
+ {
3927
+ "internalType": "uint256",
3928
+ "name": "badDebt",
3929
+ "type": "uint256"
3930
+ }
3931
+ ],
3932
+ "name": "getBorrowRate",
3933
+ "outputs": [
3934
+ {
3935
+ "internalType": "uint256",
3936
+ "name": "",
3937
+ "type": "uint256"
3938
+ }
3939
+ ],
3940
+ "stateMutability": "view",
3941
+ "type": "function"
3942
+ },
3943
+ {
3944
+ "inputs": [
3945
+ {
3946
+ "internalType": "uint256",
3947
+ "name": "cash",
3948
+ "type": "uint256"
3949
+ },
3950
+ {
3951
+ "internalType": "uint256",
3952
+ "name": "borrows",
3953
+ "type": "uint256"
3954
+ },
3955
+ {
3956
+ "internalType": "uint256",
3957
+ "name": "reserves",
3958
+ "type": "uint256"
3959
+ },
3960
+ {
3961
+ "internalType": "uint256",
3962
+ "name": "reserveFactorMantissa",
3963
+ "type": "uint256"
3964
+ },
3965
+ {
3966
+ "internalType": "uint256",
3967
+ "name": "badDebt",
3968
+ "type": "uint256"
3969
+ }
3970
+ ],
3971
+ "name": "getSupplyRate",
3972
+ "outputs": [
3973
+ {
3974
+ "internalType": "uint256",
3975
+ "name": "",
3976
+ "type": "uint256"
3977
+ }
3978
+ ],
3979
+ "stateMutability": "view",
3980
+ "type": "function"
3981
+ },
3982
+ {
3983
+ "inputs": [],
3984
+ "name": "isInterestRateModel",
3985
+ "outputs": [
3986
+ {
3987
+ "internalType": "bool",
3988
+ "name": "",
3989
+ "type": "bool"
3990
+ }
3991
+ ],
3992
+ "stateMutability": "pure",
3993
+ "type": "function"
3994
+ },
3995
+ {
3996
+ "inputs": [],
3997
+ "name": "isTimeBased",
3998
+ "outputs": [
3999
+ {
4000
+ "internalType": "bool",
4001
+ "name": "",
4002
+ "type": "bool"
4003
+ }
4004
+ ],
4005
+ "stateMutability": "view",
4006
+ "type": "function"
4007
+ },
4008
+ {
4009
+ "inputs": [],
4010
+ "name": "jumpMultiplierPerBlock",
4011
+ "outputs": [
4012
+ {
4013
+ "internalType": "uint256",
4014
+ "name": "",
4015
+ "type": "uint256"
4016
+ }
4017
+ ],
4018
+ "stateMutability": "view",
4019
+ "type": "function"
4020
+ },
4021
+ {
4022
+ "inputs": [],
4023
+ "name": "kink",
4024
+ "outputs": [
4025
+ {
4026
+ "internalType": "uint256",
4027
+ "name": "",
4028
+ "type": "uint256"
4029
+ }
4030
+ ],
4031
+ "stateMutability": "view",
4032
+ "type": "function"
4033
+ },
4034
+ {
4035
+ "inputs": [],
4036
+ "name": "multiplierPerBlock",
4037
+ "outputs": [
4038
+ {
4039
+ "internalType": "uint256",
4040
+ "name": "",
4041
+ "type": "uint256"
4042
+ }
4043
+ ],
4044
+ "stateMutability": "view",
4045
+ "type": "function"
4046
+ },
4047
+ {
4048
+ "inputs": [
4049
+ {
4050
+ "internalType": "uint256",
4051
+ "name": "baseRatePerYear",
4052
+ "type": "uint256"
4053
+ },
4054
+ {
4055
+ "internalType": "uint256",
4056
+ "name": "multiplierPerYear",
4057
+ "type": "uint256"
4058
+ },
4059
+ {
4060
+ "internalType": "uint256",
4061
+ "name": "jumpMultiplierPerYear",
4062
+ "type": "uint256"
4063
+ },
4064
+ {
4065
+ "internalType": "uint256",
4066
+ "name": "kink_",
4067
+ "type": "uint256"
4068
+ }
4069
+ ],
4070
+ "name": "updateJumpRateModel",
4071
+ "outputs": [],
4072
+ "stateMutability": "nonpayable",
4073
+ "type": "function"
4074
+ },
4075
+ {
4076
+ "inputs": [
4077
+ {
4078
+ "internalType": "uint256",
4079
+ "name": "cash",
4080
+ "type": "uint256"
4081
+ },
4082
+ {
4083
+ "internalType": "uint256",
4084
+ "name": "borrows",
4085
+ "type": "uint256"
4086
+ },
4087
+ {
4088
+ "internalType": "uint256",
4089
+ "name": "reserves",
4090
+ "type": "uint256"
4091
+ },
4092
+ {
4093
+ "internalType": "uint256",
4094
+ "name": "badDebt",
4095
+ "type": "uint256"
4096
+ }
4097
+ ],
4098
+ "name": "utilizationRate",
4099
+ "outputs": [
4100
+ {
4101
+ "internalType": "uint256",
4102
+ "name": "",
4103
+ "type": "uint256"
4104
+ }
4105
+ ],
4106
+ "stateMutability": "pure",
4107
+ "type": "function"
4108
+ }
4109
+ ]
4110
+ },
3751
4111
  "JumpRateModelV2_base200bps_slope1000bps_jump25000bps_kink5000bps": {
3752
4112
  "address": "0x0820d5DA817Ac2eAf3757829B255B56354188bd1",
3753
4113
  "abi": [
@@ -14,6 +14,7 @@
14
14
  "JumpRateModelV2_base0bps_slope1000bps_jump25000bps_kink8000bps": "0x2ba0F45f7368d2A56d0c9e5a29af363987BE1d02",
15
15
  "JumpRateModelV2_base0bps_slope1250bps_jump25000bps_kink8000bps": "0x5E0dB1e8a6D6181aa39B3317179CDF91FBa4Ac51",
16
16
  "JumpRateModelV2_base0bps_slope1750bps_jump25000bps_kink8000bps": "0xDdeb3556b325D5578575c6eF0F855b73D2323E34",
17
+ "JumpRateModelV2_base0bps_slope90bps_jump30000bps_kink9000bps": "0x8037f793A298789736fc1cb7e3154573647CDD11",
17
18
  "JumpRateModelV2_base200bps_slope1000bps_jump25000bps_kink5000bps": "0x0820d5DA817Ac2eAf3757829B255B56354188bd1",
18
19
  "JumpRateModelV2_base200bps_slope1000bps_jump30000bps_kink8000bps": "0x4021Da92B4e64126Cd5A2d6B305FB0e9e4ed2024",
19
20
  "JumpRateModelV2_base200bps_slope1500bps_jump25000bps_kink8000bps": "0x5ECa0FBBc5e7bf49dbFb1953a92784F8e4248eF6",
@@ -37,6 +37,7 @@ const func = async function (hre) {
37
37
  ],
38
38
  log: true,
39
39
  autoMine: true,
40
+ skipIfAlreadyDeployed: true,
40
41
  });
41
42
  }
42
43
  else {
@@ -49,6 +50,7 @@ const func = async function (hre) {
49
50
  args: [baseRatePerYear, multiplierPerYear, isTimeBased, blocksPerYear],
50
51
  log: true,
51
52
  autoMine: true,
53
+ skipIfAlreadyDeployed: true,
52
54
  });
53
55
  }
54
56
  console.log(`-----------------------------------------`);