@venusprotocol/venus-protocol 9.5.0-dev.1 → 9.5.0-dev.3

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 (40) hide show
  1. package/README.md +11 -1
  2. package/deployments/bscmainnet/JumpRateModel_base0bps_slope900bps_jump35000bps_kink4500bps.json +380 -0
  3. package/deployments/bscmainnet/vTHE.json +2382 -0
  4. package/deployments/bscmainnet.json +11519 -9584
  5. package/deployments/bscmainnet_addresses.json +2 -0
  6. package/deployments/bsctestnet/JumpRateModel_base0bps_slope900bps_jump35000bps_kink4500bps.json +380 -0
  7. package/deployments/bsctestnet/MockTHE.json +458 -0
  8. package/deployments/bsctestnet/vAAVE.json +3326 -0
  9. package/deployments/bsctestnet/vADA.json +3244 -0
  10. package/deployments/bsctestnet/{vBTC.json → vBTCB.json} +55 -15
  11. package/deployments/bsctestnet/vBUSD.json +55 -15
  12. package/deployments/bsctestnet/vCAKE.json +1493 -0
  13. package/deployments/bsctestnet/vDOGE.json +3269 -0
  14. package/deployments/bsctestnet/vETH.json +55 -15
  15. package/deployments/bsctestnet/vFDUSD.json +3 -15
  16. package/deployments/bsctestnet/vLTC.json +55 -15
  17. package/deployments/bsctestnet/vMATIC.json +1550 -0
  18. package/deployments/bsctestnet/vSXP.json +55 -15
  19. package/deployments/bsctestnet/vSolvBTC.json +1776 -697
  20. package/deployments/bsctestnet/vTHE.json +2382 -0
  21. package/deployments/bsctestnet/vTRX.json +56 -16
  22. package/deployments/bsctestnet/vTRXOLD.json +3326 -0
  23. package/deployments/bsctestnet/vTUSD.json +55 -15
  24. package/deployments/bsctestnet/vTUSDOLD.json +3326 -0
  25. package/deployments/bsctestnet/vTWT.json +1776 -697
  26. package/deployments/bsctestnet/vUNI.json +3344 -0
  27. package/deployments/bsctestnet/vUSDC.json +55 -15
  28. package/deployments/bsctestnet/vUSDT.json +55 -15
  29. package/deployments/bsctestnet/vWBETH.json +269 -5
  30. package/deployments/bsctestnet/vXRP.json +55 -15
  31. package/deployments/bsctestnet/vXVS.json +55 -15
  32. package/deployments/bsctestnet.json +31978 -2628
  33. package/deployments/bsctestnet_addresses.json +13 -2
  34. package/dist/deployments/bscmainnet.json +11519 -9584
  35. package/dist/deployments/bsctestnet.json +31978 -2628
  36. package/dist/hardhat.config.js +24 -3
  37. package/dist/helpers/deploymentConfig.js +45 -0
  38. package/dist/type-extensions.d.ts +6 -0
  39. package/dist/type-extensions.js +3 -0
  40. package/package.json +1 -1
@@ -2829,6 +2829,32 @@
2829
2829
  "stateMutability": "nonpayable",
2830
2830
  "type": "function"
2831
2831
  },
2832
+ {
2833
+ "constant": false,
2834
+ "inputs": [
2835
+ {
2836
+ "internalType": "address",
2837
+ "name": "redeemer",
2838
+ "type": "address"
2839
+ },
2840
+ {
2841
+ "internalType": "uint256",
2842
+ "name": "redeemTokens",
2843
+ "type": "uint256"
2844
+ }
2845
+ ],
2846
+ "name": "redeemBehalf",
2847
+ "outputs": [
2848
+ {
2849
+ "internalType": "uint256",
2850
+ "name": "",
2851
+ "type": "uint256"
2852
+ }
2853
+ ],
2854
+ "payable": false,
2855
+ "stateMutability": "nonpayable",
2856
+ "type": "function"
2857
+ },
2832
2858
  {
2833
2859
  "constant": false,
2834
2860
  "inputs": [
@@ -2850,6 +2876,32 @@
2850
2876
  "stateMutability": "nonpayable",
2851
2877
  "type": "function"
2852
2878
  },
2879
+ {
2880
+ "constant": false,
2881
+ "inputs": [
2882
+ {
2883
+ "internalType": "address",
2884
+ "name": "redeemer",
2885
+ "type": "address"
2886
+ },
2887
+ {
2888
+ "internalType": "uint256",
2889
+ "name": "redeemAmount",
2890
+ "type": "uint256"
2891
+ }
2892
+ ],
2893
+ "name": "redeemUnderlyingBehalf",
2894
+ "outputs": [
2895
+ {
2896
+ "internalType": "uint256",
2897
+ "name": "",
2898
+ "type": "uint256"
2899
+ }
2900
+ ],
2901
+ "payable": false,
2902
+ "stateMutability": "nonpayable",
2903
+ "type": "function"
2904
+ },
2853
2905
  {
2854
2906
  "constant": true,
2855
2907
  "inputs": [],
@@ -3004,13 +3056,7 @@
3004
3056
  }
3005
3057
  ],
3006
3058
  "name": "setProtocolShareReserve",
3007
- "outputs": [
3008
- {
3009
- "internalType": "uint256",
3010
- "name": "",
3011
- "type": "uint256"
3012
- }
3013
- ],
3059
+ "outputs": [],
3014
3060
  "payable": false,
3015
3061
  "stateMutability": "nonpayable",
3016
3062
  "type": "function"
@@ -3025,13 +3071,7 @@
3025
3071
  }
3026
3072
  ],
3027
3073
  "name": "setReduceReservesBlockDelta",
3028
- "outputs": [
3029
- {
3030
- "internalType": "uint256",
3031
- "name": "",
3032
- "type": "uint256"
3033
- }
3034
- ],
3074
+ "outputs": [],
3035
3075
  "payable": false,
3036
3076
  "stateMutability": "nonpayable",
3037
3077
  "type": "function"
@@ -3200,5 +3240,5 @@
3200
3240
  }
3201
3241
  ],
3202
3242
  "numDeployments": 1,
3203
- "implementation": "0x8d79c8f4400fe68fd17040539fe5e1706c1f2850"
3243
+ "implementation": "0xad6aa8bb4829560412a94aa930745f407bf8000b"
3204
3244
  }
@@ -2829,6 +2829,32 @@
2829
2829
  "stateMutability": "nonpayable",
2830
2830
  "type": "function"
2831
2831
  },
2832
+ {
2833
+ "constant": false,
2834
+ "inputs": [
2835
+ {
2836
+ "internalType": "address",
2837
+ "name": "redeemer",
2838
+ "type": "address"
2839
+ },
2840
+ {
2841
+ "internalType": "uint256",
2842
+ "name": "redeemTokens",
2843
+ "type": "uint256"
2844
+ }
2845
+ ],
2846
+ "name": "redeemBehalf",
2847
+ "outputs": [
2848
+ {
2849
+ "internalType": "uint256",
2850
+ "name": "",
2851
+ "type": "uint256"
2852
+ }
2853
+ ],
2854
+ "payable": false,
2855
+ "stateMutability": "nonpayable",
2856
+ "type": "function"
2857
+ },
2832
2858
  {
2833
2859
  "constant": false,
2834
2860
  "inputs": [
@@ -2850,6 +2876,32 @@
2850
2876
  "stateMutability": "nonpayable",
2851
2877
  "type": "function"
2852
2878
  },
2879
+ {
2880
+ "constant": false,
2881
+ "inputs": [
2882
+ {
2883
+ "internalType": "address",
2884
+ "name": "redeemer",
2885
+ "type": "address"
2886
+ },
2887
+ {
2888
+ "internalType": "uint256",
2889
+ "name": "redeemAmount",
2890
+ "type": "uint256"
2891
+ }
2892
+ ],
2893
+ "name": "redeemUnderlyingBehalf",
2894
+ "outputs": [
2895
+ {
2896
+ "internalType": "uint256",
2897
+ "name": "",
2898
+ "type": "uint256"
2899
+ }
2900
+ ],
2901
+ "payable": false,
2902
+ "stateMutability": "nonpayable",
2903
+ "type": "function"
2904
+ },
2853
2905
  {
2854
2906
  "constant": true,
2855
2907
  "inputs": [],
@@ -3004,13 +3056,7 @@
3004
3056
  }
3005
3057
  ],
3006
3058
  "name": "setProtocolShareReserve",
3007
- "outputs": [
3008
- {
3009
- "internalType": "uint256",
3010
- "name": "",
3011
- "type": "uint256"
3012
- }
3013
- ],
3059
+ "outputs": [],
3014
3060
  "payable": false,
3015
3061
  "stateMutability": "nonpayable",
3016
3062
  "type": "function"
@@ -3025,13 +3071,7 @@
3025
3071
  }
3026
3072
  ],
3027
3073
  "name": "setReduceReservesBlockDelta",
3028
- "outputs": [
3029
- {
3030
- "internalType": "uint256",
3031
- "name": "",
3032
- "type": "uint256"
3033
- }
3034
- ],
3074
+ "outputs": [],
3035
3075
  "payable": false,
3036
3076
  "stateMutability": "nonpayable",
3037
3077
  "type": "function"
@@ -3200,5 +3240,5 @@
3200
3240
  }
3201
3241
  ],
3202
3242
  "numDeployments": 1,
3203
- "implementation": "0x8d79c8f4400fe68fd17040539fe5e1706c1f2850"
3243
+ "implementation": "0xad6aa8bb4829560412a94aa930745f407bf8000b"
3204
3244
  }
@@ -1720,6 +1720,12 @@
1720
1720
  "internalType": "uint256",
1721
1721
  "name": "mintTokens",
1722
1722
  "type": "uint256"
1723
+ },
1724
+ {
1725
+ "indexed": false,
1726
+ "internalType": "uint256",
1727
+ "name": "totalSupply",
1728
+ "type": "uint256"
1723
1729
  }
1724
1730
  ],
1725
1731
  "name": "Mint",
@@ -1751,11 +1757,36 @@
1751
1757
  "internalType": "uint256",
1752
1758
  "name": "mintTokens",
1753
1759
  "type": "uint256"
1760
+ },
1761
+ {
1762
+ "indexed": false,
1763
+ "internalType": "uint256",
1764
+ "name": "totalSupply",
1765
+ "type": "uint256"
1754
1766
  }
1755
1767
  ],
1756
1768
  "name": "MintBehalf",
1757
1769
  "type": "event"
1758
1770
  },
1771
+ {
1772
+ "anonymous": false,
1773
+ "inputs": [
1774
+ {
1775
+ "indexed": false,
1776
+ "internalType": "address",
1777
+ "name": "oldAccessControlAddress",
1778
+ "type": "address"
1779
+ },
1780
+ {
1781
+ "indexed": false,
1782
+ "internalType": "address",
1783
+ "name": "newAccessControlAddress",
1784
+ "type": "address"
1785
+ }
1786
+ ],
1787
+ "name": "NewAccessControlManager",
1788
+ "type": "event"
1789
+ },
1759
1790
  {
1760
1791
  "anonymous": false,
1761
1792
  "inputs": [
@@ -1832,6 +1863,44 @@
1832
1863
  "name": "NewPendingAdmin",
1833
1864
  "type": "event"
1834
1865
  },
1866
+ {
1867
+ "anonymous": false,
1868
+ "inputs": [
1869
+ {
1870
+ "indexed": true,
1871
+ "internalType": "address",
1872
+ "name": "oldProtocolShareReserve",
1873
+ "type": "address"
1874
+ },
1875
+ {
1876
+ "indexed": true,
1877
+ "internalType": "address",
1878
+ "name": "newProtocolShareReserve",
1879
+ "type": "address"
1880
+ }
1881
+ ],
1882
+ "name": "NewProtocolShareReserve",
1883
+ "type": "event"
1884
+ },
1885
+ {
1886
+ "anonymous": false,
1887
+ "inputs": [
1888
+ {
1889
+ "indexed": false,
1890
+ "internalType": "uint256",
1891
+ "name": "oldReduceReservesBlockDelta",
1892
+ "type": "uint256"
1893
+ },
1894
+ {
1895
+ "indexed": false,
1896
+ "internalType": "uint256",
1897
+ "name": "newReduceReservesBlockDelta",
1898
+ "type": "uint256"
1899
+ }
1900
+ ],
1901
+ "name": "NewReduceReservesBlockDelta",
1902
+ "type": "event"
1903
+ },
1835
1904
  {
1836
1905
  "anonymous": false,
1837
1906
  "inputs": [
@@ -1871,6 +1940,12 @@
1871
1940
  "internalType": "uint256",
1872
1941
  "name": "redeemTokens",
1873
1942
  "type": "uint256"
1943
+ },
1944
+ {
1945
+ "indexed": false,
1946
+ "internalType": "uint256",
1947
+ "name": "totalSupply",
1948
+ "type": "uint256"
1874
1949
  }
1875
1950
  ],
1876
1951
  "name": "Redeem",
@@ -1969,7 +2044,7 @@
1969
2044
  {
1970
2045
  "indexed": false,
1971
2046
  "internalType": "address",
1972
- "name": "admin",
2047
+ "name": "protocolShareReserve",
1973
2048
  "type": "address"
1974
2049
  },
1975
2050
  {
@@ -2069,7 +2144,7 @@
2069
2144
  "inputs": [
2070
2145
  {
2071
2146
  "internalType": "uint256",
2072
- "name": "reduceAmount",
2147
+ "name": "reduceAmount_",
2073
2148
  "type": "uint256"
2074
2149
  }
2075
2150
  ],
@@ -2120,7 +2195,7 @@
2120
2195
  "inputs": [
2121
2196
  {
2122
2197
  "internalType": "contract InterestRateModel",
2123
- "name": "newInterestRateModel",
2198
+ "name": "newInterestRateModel_",
2124
2199
  "type": "address"
2125
2200
  }
2126
2201
  ],
@@ -2162,7 +2237,7 @@
2162
2237
  "inputs": [
2163
2238
  {
2164
2239
  "internalType": "uint256",
2165
- "name": "newReserveFactorMantissa",
2240
+ "name": "newReserveFactorMantissa_",
2166
2241
  "type": "uint256"
2167
2242
  }
2168
2243
  ],
@@ -2178,6 +2253,21 @@
2178
2253
  "stateMutability": "nonpayable",
2179
2254
  "type": "function"
2180
2255
  },
2256
+ {
2257
+ "constant": true,
2258
+ "inputs": [],
2259
+ "name": "accessControlManager",
2260
+ "outputs": [
2261
+ {
2262
+ "internalType": "address",
2263
+ "name": "",
2264
+ "type": "address"
2265
+ }
2266
+ ],
2267
+ "payable": false,
2268
+ "stateMutability": "view",
2269
+ "type": "function"
2270
+ },
2181
2271
  {
2182
2272
  "constant": true,
2183
2273
  "inputs": [],
@@ -2380,6 +2470,32 @@
2380
2470
  "stateMutability": "view",
2381
2471
  "type": "function"
2382
2472
  },
2473
+ {
2474
+ "constant": false,
2475
+ "inputs": [
2476
+ {
2477
+ "internalType": "address",
2478
+ "name": "borrower",
2479
+ "type": "address"
2480
+ },
2481
+ {
2482
+ "internalType": "uint256",
2483
+ "name": "borrowAmount",
2484
+ "type": "uint256"
2485
+ }
2486
+ ],
2487
+ "name": "borrowBehalf",
2488
+ "outputs": [
2489
+ {
2490
+ "internalType": "uint256",
2491
+ "name": "",
2492
+ "type": "uint256"
2493
+ }
2494
+ ],
2495
+ "payable": false,
2496
+ "stateMutability": "nonpayable",
2497
+ "type": "function"
2498
+ },
2383
2499
  {
2384
2500
  "constant": true,
2385
2501
  "inputs": [],
@@ -2759,6 +2875,21 @@
2759
2875
  "stateMutability": "view",
2760
2876
  "type": "function"
2761
2877
  },
2878
+ {
2879
+ "constant": true,
2880
+ "inputs": [],
2881
+ "name": "protocolShareReserve",
2882
+ "outputs": [
2883
+ {
2884
+ "internalType": "address payable",
2885
+ "name": "",
2886
+ "type": "address"
2887
+ }
2888
+ ],
2889
+ "payable": false,
2890
+ "stateMutability": "view",
2891
+ "type": "function"
2892
+ },
2762
2893
  {
2763
2894
  "constant": false,
2764
2895
  "inputs": [
@@ -2780,6 +2911,32 @@
2780
2911
  "stateMutability": "nonpayable",
2781
2912
  "type": "function"
2782
2913
  },
2914
+ {
2915
+ "constant": false,
2916
+ "inputs": [
2917
+ {
2918
+ "internalType": "address",
2919
+ "name": "redeemer",
2920
+ "type": "address"
2921
+ },
2922
+ {
2923
+ "internalType": "uint256",
2924
+ "name": "redeemTokens",
2925
+ "type": "uint256"
2926
+ }
2927
+ ],
2928
+ "name": "redeemBehalf",
2929
+ "outputs": [
2930
+ {
2931
+ "internalType": "uint256",
2932
+ "name": "",
2933
+ "type": "uint256"
2934
+ }
2935
+ ],
2936
+ "payable": false,
2937
+ "stateMutability": "nonpayable",
2938
+ "type": "function"
2939
+ },
2783
2940
  {
2784
2941
  "constant": false,
2785
2942
  "inputs": [
@@ -2801,6 +2958,62 @@
2801
2958
  "stateMutability": "nonpayable",
2802
2959
  "type": "function"
2803
2960
  },
2961
+ {
2962
+ "constant": false,
2963
+ "inputs": [
2964
+ {
2965
+ "internalType": "address",
2966
+ "name": "redeemer",
2967
+ "type": "address"
2968
+ },
2969
+ {
2970
+ "internalType": "uint256",
2971
+ "name": "redeemAmount",
2972
+ "type": "uint256"
2973
+ }
2974
+ ],
2975
+ "name": "redeemUnderlyingBehalf",
2976
+ "outputs": [
2977
+ {
2978
+ "internalType": "uint256",
2979
+ "name": "",
2980
+ "type": "uint256"
2981
+ }
2982
+ ],
2983
+ "payable": false,
2984
+ "stateMutability": "nonpayable",
2985
+ "type": "function"
2986
+ },
2987
+ {
2988
+ "constant": true,
2989
+ "inputs": [],
2990
+ "name": "reduceReservesBlockDelta",
2991
+ "outputs": [
2992
+ {
2993
+ "internalType": "uint256",
2994
+ "name": "",
2995
+ "type": "uint256"
2996
+ }
2997
+ ],
2998
+ "payable": false,
2999
+ "stateMutability": "view",
3000
+ "type": "function"
3001
+ },
3002
+ {
3003
+ "constant": true,
3004
+ "inputs": [],
3005
+ "name": "reduceReservesBlockNumber",
3006
+ "outputs": [
3007
+ {
3008
+ "internalType": "uint256",
3009
+ "name": "",
3010
+ "type": "uint256"
3011
+ }
3012
+ ],
3013
+ "payable": false,
3014
+ "stateMutability": "view",
3015
+ "type": "function"
3016
+ },
2804
3017
  {
2805
3018
  "constant": false,
2806
3019
  "inputs": [
@@ -2894,6 +3107,57 @@
2894
3107
  "stateMutability": "nonpayable",
2895
3108
  "type": "function"
2896
3109
  },
3110
+ {
3111
+ "constant": false,
3112
+ "inputs": [
3113
+ {
3114
+ "internalType": "address",
3115
+ "name": "newAccessControlManagerAddress",
3116
+ "type": "address"
3117
+ }
3118
+ ],
3119
+ "name": "setAccessControlManager",
3120
+ "outputs": [
3121
+ {
3122
+ "internalType": "uint256",
3123
+ "name": "",
3124
+ "type": "uint256"
3125
+ }
3126
+ ],
3127
+ "payable": false,
3128
+ "stateMutability": "nonpayable",
3129
+ "type": "function"
3130
+ },
3131
+ {
3132
+ "constant": false,
3133
+ "inputs": [
3134
+ {
3135
+ "internalType": "address payable",
3136
+ "name": "protcolShareReserve_",
3137
+ "type": "address"
3138
+ }
3139
+ ],
3140
+ "name": "setProtocolShareReserve",
3141
+ "outputs": [],
3142
+ "payable": false,
3143
+ "stateMutability": "nonpayable",
3144
+ "type": "function"
3145
+ },
3146
+ {
3147
+ "constant": false,
3148
+ "inputs": [
3149
+ {
3150
+ "internalType": "uint256",
3151
+ "name": "newReduceReservesBlockDelta_",
3152
+ "type": "uint256"
3153
+ }
3154
+ ],
3155
+ "name": "setReduceReservesBlockDelta",
3156
+ "outputs": [],
3157
+ "payable": false,
3158
+ "stateMutability": "nonpayable",
3159
+ "type": "function"
3160
+ },
2897
3161
  {
2898
3162
  "constant": true,
2899
3163
  "inputs": [],
@@ -3058,5 +3322,5 @@
3058
3322
  }
3059
3323
  ],
3060
3324
  "numDeployments": 1,
3061
- "implementation": "0xc01902dbf72c2ccbfebadb9b7a9e23577893d3a3"
3325
+ "implementation": "0xad6aa8bb4829560412a94aa930745f407bf8000b"
3062
3326
  }
@@ -2829,6 +2829,32 @@
2829
2829
  "stateMutability": "nonpayable",
2830
2830
  "type": "function"
2831
2831
  },
2832
+ {
2833
+ "constant": false,
2834
+ "inputs": [
2835
+ {
2836
+ "internalType": "address",
2837
+ "name": "redeemer",
2838
+ "type": "address"
2839
+ },
2840
+ {
2841
+ "internalType": "uint256",
2842
+ "name": "redeemTokens",
2843
+ "type": "uint256"
2844
+ }
2845
+ ],
2846
+ "name": "redeemBehalf",
2847
+ "outputs": [
2848
+ {
2849
+ "internalType": "uint256",
2850
+ "name": "",
2851
+ "type": "uint256"
2852
+ }
2853
+ ],
2854
+ "payable": false,
2855
+ "stateMutability": "nonpayable",
2856
+ "type": "function"
2857
+ },
2832
2858
  {
2833
2859
  "constant": false,
2834
2860
  "inputs": [
@@ -2850,6 +2876,32 @@
2850
2876
  "stateMutability": "nonpayable",
2851
2877
  "type": "function"
2852
2878
  },
2879
+ {
2880
+ "constant": false,
2881
+ "inputs": [
2882
+ {
2883
+ "internalType": "address",
2884
+ "name": "redeemer",
2885
+ "type": "address"
2886
+ },
2887
+ {
2888
+ "internalType": "uint256",
2889
+ "name": "redeemAmount",
2890
+ "type": "uint256"
2891
+ }
2892
+ ],
2893
+ "name": "redeemUnderlyingBehalf",
2894
+ "outputs": [
2895
+ {
2896
+ "internalType": "uint256",
2897
+ "name": "",
2898
+ "type": "uint256"
2899
+ }
2900
+ ],
2901
+ "payable": false,
2902
+ "stateMutability": "nonpayable",
2903
+ "type": "function"
2904
+ },
2853
2905
  {
2854
2906
  "constant": true,
2855
2907
  "inputs": [],
@@ -3004,13 +3056,7 @@
3004
3056
  }
3005
3057
  ],
3006
3058
  "name": "setProtocolShareReserve",
3007
- "outputs": [
3008
- {
3009
- "internalType": "uint256",
3010
- "name": "",
3011
- "type": "uint256"
3012
- }
3013
- ],
3059
+ "outputs": [],
3014
3060
  "payable": false,
3015
3061
  "stateMutability": "nonpayable",
3016
3062
  "type": "function"
@@ -3025,13 +3071,7 @@
3025
3071
  }
3026
3072
  ],
3027
3073
  "name": "setReduceReservesBlockDelta",
3028
- "outputs": [
3029
- {
3030
- "internalType": "uint256",
3031
- "name": "",
3032
- "type": "uint256"
3033
- }
3034
- ],
3074
+ "outputs": [],
3035
3075
  "payable": false,
3036
3076
  "stateMutability": "nonpayable",
3037
3077
  "type": "function"
@@ -3200,5 +3240,5 @@
3200
3240
  }
3201
3241
  ],
3202
3242
  "numDeployments": 1,
3203
- "implementation": "0x8d79c8f4400fe68fd17040539fe5e1706c1f2850"
3243
+ "implementation": "0xad6aa8bb4829560412a94aa930745f407bf8000b"
3204
3244
  }