@venusprotocol/isolated-pools 4.0.0-dev.1 → 4.0.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.
- package/deployments/ethereum/VToken_vBAL_Core.json +257 -0
- package/deployments/ethereum.json +74 -0
- package/deployments/ethereum_addresses.json +1 -0
- package/deployments/sepolia/MockBAL.json +458 -0
- package/deployments/sepolia/VToken_vBAL_Core.json +257 -0
- package/deployments/sepolia.json +383 -0
- package/deployments/sepolia_addresses.json +2 -0
- package/dist/deployments/ethereum.json +74 -0
- package/dist/deployments/sepolia.json +383 -0
- package/dist/helpers/deploymentConfig.js +50 -0
- package/dist/typechain/factories/IVToken__factory.d.ts +1 -5
- package/dist/typechain/factories/IVToken__factory.js +1 -201
- package/package.json +1 -1
- package/typechain/IVToken.d.ts +4 -341
- package/typechain/factories/IVToken__factory.ts +1 -201
|
@@ -8159,6 +8159,315 @@
|
|
|
8159
8159
|
}
|
|
8160
8160
|
]
|
|
8161
8161
|
},
|
|
8162
|
+
"MockBAL": {
|
|
8163
|
+
"address": "0xa18a6F0F51ddA0BAE3f2368bEE4b1542f6BE66C0",
|
|
8164
|
+
"abi": [
|
|
8165
|
+
{
|
|
8166
|
+
"inputs": [
|
|
8167
|
+
{
|
|
8168
|
+
"internalType": "string",
|
|
8169
|
+
"name": "name_",
|
|
8170
|
+
"type": "string"
|
|
8171
|
+
},
|
|
8172
|
+
{
|
|
8173
|
+
"internalType": "string",
|
|
8174
|
+
"name": "symbol_",
|
|
8175
|
+
"type": "string"
|
|
8176
|
+
},
|
|
8177
|
+
{
|
|
8178
|
+
"internalType": "uint8",
|
|
8179
|
+
"name": "decimals_",
|
|
8180
|
+
"type": "uint8"
|
|
8181
|
+
}
|
|
8182
|
+
],
|
|
8183
|
+
"stateMutability": "nonpayable",
|
|
8184
|
+
"type": "constructor"
|
|
8185
|
+
},
|
|
8186
|
+
{
|
|
8187
|
+
"anonymous": false,
|
|
8188
|
+
"inputs": [
|
|
8189
|
+
{
|
|
8190
|
+
"indexed": true,
|
|
8191
|
+
"internalType": "address",
|
|
8192
|
+
"name": "owner",
|
|
8193
|
+
"type": "address"
|
|
8194
|
+
},
|
|
8195
|
+
{
|
|
8196
|
+
"indexed": true,
|
|
8197
|
+
"internalType": "address",
|
|
8198
|
+
"name": "spender",
|
|
8199
|
+
"type": "address"
|
|
8200
|
+
},
|
|
8201
|
+
{
|
|
8202
|
+
"indexed": false,
|
|
8203
|
+
"internalType": "uint256",
|
|
8204
|
+
"name": "value",
|
|
8205
|
+
"type": "uint256"
|
|
8206
|
+
}
|
|
8207
|
+
],
|
|
8208
|
+
"name": "Approval",
|
|
8209
|
+
"type": "event"
|
|
8210
|
+
},
|
|
8211
|
+
{
|
|
8212
|
+
"anonymous": false,
|
|
8213
|
+
"inputs": [
|
|
8214
|
+
{
|
|
8215
|
+
"indexed": true,
|
|
8216
|
+
"internalType": "address",
|
|
8217
|
+
"name": "from",
|
|
8218
|
+
"type": "address"
|
|
8219
|
+
},
|
|
8220
|
+
{
|
|
8221
|
+
"indexed": true,
|
|
8222
|
+
"internalType": "address",
|
|
8223
|
+
"name": "to",
|
|
8224
|
+
"type": "address"
|
|
8225
|
+
},
|
|
8226
|
+
{
|
|
8227
|
+
"indexed": false,
|
|
8228
|
+
"internalType": "uint256",
|
|
8229
|
+
"name": "value",
|
|
8230
|
+
"type": "uint256"
|
|
8231
|
+
}
|
|
8232
|
+
],
|
|
8233
|
+
"name": "Transfer",
|
|
8234
|
+
"type": "event"
|
|
8235
|
+
},
|
|
8236
|
+
{
|
|
8237
|
+
"inputs": [
|
|
8238
|
+
{
|
|
8239
|
+
"internalType": "address",
|
|
8240
|
+
"name": "owner",
|
|
8241
|
+
"type": "address"
|
|
8242
|
+
},
|
|
8243
|
+
{
|
|
8244
|
+
"internalType": "address",
|
|
8245
|
+
"name": "spender",
|
|
8246
|
+
"type": "address"
|
|
8247
|
+
}
|
|
8248
|
+
],
|
|
8249
|
+
"name": "allowance",
|
|
8250
|
+
"outputs": [
|
|
8251
|
+
{
|
|
8252
|
+
"internalType": "uint256",
|
|
8253
|
+
"name": "",
|
|
8254
|
+
"type": "uint256"
|
|
8255
|
+
}
|
|
8256
|
+
],
|
|
8257
|
+
"stateMutability": "view",
|
|
8258
|
+
"type": "function"
|
|
8259
|
+
},
|
|
8260
|
+
{
|
|
8261
|
+
"inputs": [
|
|
8262
|
+
{
|
|
8263
|
+
"internalType": "address",
|
|
8264
|
+
"name": "spender",
|
|
8265
|
+
"type": "address"
|
|
8266
|
+
},
|
|
8267
|
+
{
|
|
8268
|
+
"internalType": "uint256",
|
|
8269
|
+
"name": "amount",
|
|
8270
|
+
"type": "uint256"
|
|
8271
|
+
}
|
|
8272
|
+
],
|
|
8273
|
+
"name": "approve",
|
|
8274
|
+
"outputs": [
|
|
8275
|
+
{
|
|
8276
|
+
"internalType": "bool",
|
|
8277
|
+
"name": "",
|
|
8278
|
+
"type": "bool"
|
|
8279
|
+
}
|
|
8280
|
+
],
|
|
8281
|
+
"stateMutability": "nonpayable",
|
|
8282
|
+
"type": "function"
|
|
8283
|
+
},
|
|
8284
|
+
{
|
|
8285
|
+
"inputs": [
|
|
8286
|
+
{
|
|
8287
|
+
"internalType": "address",
|
|
8288
|
+
"name": "account",
|
|
8289
|
+
"type": "address"
|
|
8290
|
+
}
|
|
8291
|
+
],
|
|
8292
|
+
"name": "balanceOf",
|
|
8293
|
+
"outputs": [
|
|
8294
|
+
{
|
|
8295
|
+
"internalType": "uint256",
|
|
8296
|
+
"name": "",
|
|
8297
|
+
"type": "uint256"
|
|
8298
|
+
}
|
|
8299
|
+
],
|
|
8300
|
+
"stateMutability": "view",
|
|
8301
|
+
"type": "function"
|
|
8302
|
+
},
|
|
8303
|
+
{
|
|
8304
|
+
"inputs": [],
|
|
8305
|
+
"name": "decimals",
|
|
8306
|
+
"outputs": [
|
|
8307
|
+
{
|
|
8308
|
+
"internalType": "uint8",
|
|
8309
|
+
"name": "",
|
|
8310
|
+
"type": "uint8"
|
|
8311
|
+
}
|
|
8312
|
+
],
|
|
8313
|
+
"stateMutability": "view",
|
|
8314
|
+
"type": "function"
|
|
8315
|
+
},
|
|
8316
|
+
{
|
|
8317
|
+
"inputs": [
|
|
8318
|
+
{
|
|
8319
|
+
"internalType": "address",
|
|
8320
|
+
"name": "spender",
|
|
8321
|
+
"type": "address"
|
|
8322
|
+
},
|
|
8323
|
+
{
|
|
8324
|
+
"internalType": "uint256",
|
|
8325
|
+
"name": "subtractedValue",
|
|
8326
|
+
"type": "uint256"
|
|
8327
|
+
}
|
|
8328
|
+
],
|
|
8329
|
+
"name": "decreaseAllowance",
|
|
8330
|
+
"outputs": [
|
|
8331
|
+
{
|
|
8332
|
+
"internalType": "bool",
|
|
8333
|
+
"name": "",
|
|
8334
|
+
"type": "bool"
|
|
8335
|
+
}
|
|
8336
|
+
],
|
|
8337
|
+
"stateMutability": "nonpayable",
|
|
8338
|
+
"type": "function"
|
|
8339
|
+
},
|
|
8340
|
+
{
|
|
8341
|
+
"inputs": [
|
|
8342
|
+
{
|
|
8343
|
+
"internalType": "uint256",
|
|
8344
|
+
"name": "amount",
|
|
8345
|
+
"type": "uint256"
|
|
8346
|
+
}
|
|
8347
|
+
],
|
|
8348
|
+
"name": "faucet",
|
|
8349
|
+
"outputs": [],
|
|
8350
|
+
"stateMutability": "nonpayable",
|
|
8351
|
+
"type": "function"
|
|
8352
|
+
},
|
|
8353
|
+
{
|
|
8354
|
+
"inputs": [
|
|
8355
|
+
{
|
|
8356
|
+
"internalType": "address",
|
|
8357
|
+
"name": "spender",
|
|
8358
|
+
"type": "address"
|
|
8359
|
+
},
|
|
8360
|
+
{
|
|
8361
|
+
"internalType": "uint256",
|
|
8362
|
+
"name": "addedValue",
|
|
8363
|
+
"type": "uint256"
|
|
8364
|
+
}
|
|
8365
|
+
],
|
|
8366
|
+
"name": "increaseAllowance",
|
|
8367
|
+
"outputs": [
|
|
8368
|
+
{
|
|
8369
|
+
"internalType": "bool",
|
|
8370
|
+
"name": "",
|
|
8371
|
+
"type": "bool"
|
|
8372
|
+
}
|
|
8373
|
+
],
|
|
8374
|
+
"stateMutability": "nonpayable",
|
|
8375
|
+
"type": "function"
|
|
8376
|
+
},
|
|
8377
|
+
{
|
|
8378
|
+
"inputs": [],
|
|
8379
|
+
"name": "name",
|
|
8380
|
+
"outputs": [
|
|
8381
|
+
{
|
|
8382
|
+
"internalType": "string",
|
|
8383
|
+
"name": "",
|
|
8384
|
+
"type": "string"
|
|
8385
|
+
}
|
|
8386
|
+
],
|
|
8387
|
+
"stateMutability": "view",
|
|
8388
|
+
"type": "function"
|
|
8389
|
+
},
|
|
8390
|
+
{
|
|
8391
|
+
"inputs": [],
|
|
8392
|
+
"name": "symbol",
|
|
8393
|
+
"outputs": [
|
|
8394
|
+
{
|
|
8395
|
+
"internalType": "string",
|
|
8396
|
+
"name": "",
|
|
8397
|
+
"type": "string"
|
|
8398
|
+
}
|
|
8399
|
+
],
|
|
8400
|
+
"stateMutability": "view",
|
|
8401
|
+
"type": "function"
|
|
8402
|
+
},
|
|
8403
|
+
{
|
|
8404
|
+
"inputs": [],
|
|
8405
|
+
"name": "totalSupply",
|
|
8406
|
+
"outputs": [
|
|
8407
|
+
{
|
|
8408
|
+
"internalType": "uint256",
|
|
8409
|
+
"name": "",
|
|
8410
|
+
"type": "uint256"
|
|
8411
|
+
}
|
|
8412
|
+
],
|
|
8413
|
+
"stateMutability": "view",
|
|
8414
|
+
"type": "function"
|
|
8415
|
+
},
|
|
8416
|
+
{
|
|
8417
|
+
"inputs": [
|
|
8418
|
+
{
|
|
8419
|
+
"internalType": "address",
|
|
8420
|
+
"name": "to",
|
|
8421
|
+
"type": "address"
|
|
8422
|
+
},
|
|
8423
|
+
{
|
|
8424
|
+
"internalType": "uint256",
|
|
8425
|
+
"name": "amount",
|
|
8426
|
+
"type": "uint256"
|
|
8427
|
+
}
|
|
8428
|
+
],
|
|
8429
|
+
"name": "transfer",
|
|
8430
|
+
"outputs": [
|
|
8431
|
+
{
|
|
8432
|
+
"internalType": "bool",
|
|
8433
|
+
"name": "",
|
|
8434
|
+
"type": "bool"
|
|
8435
|
+
}
|
|
8436
|
+
],
|
|
8437
|
+
"stateMutability": "nonpayable",
|
|
8438
|
+
"type": "function"
|
|
8439
|
+
},
|
|
8440
|
+
{
|
|
8441
|
+
"inputs": [
|
|
8442
|
+
{
|
|
8443
|
+
"internalType": "address",
|
|
8444
|
+
"name": "from",
|
|
8445
|
+
"type": "address"
|
|
8446
|
+
},
|
|
8447
|
+
{
|
|
8448
|
+
"internalType": "address",
|
|
8449
|
+
"name": "to",
|
|
8450
|
+
"type": "address"
|
|
8451
|
+
},
|
|
8452
|
+
{
|
|
8453
|
+
"internalType": "uint256",
|
|
8454
|
+
"name": "amount",
|
|
8455
|
+
"type": "uint256"
|
|
8456
|
+
}
|
|
8457
|
+
],
|
|
8458
|
+
"name": "transferFrom",
|
|
8459
|
+
"outputs": [
|
|
8460
|
+
{
|
|
8461
|
+
"internalType": "bool",
|
|
8462
|
+
"name": "",
|
|
8463
|
+
"type": "bool"
|
|
8464
|
+
}
|
|
8465
|
+
],
|
|
8466
|
+
"stateMutability": "nonpayable",
|
|
8467
|
+
"type": "function"
|
|
8468
|
+
}
|
|
8469
|
+
]
|
|
8470
|
+
},
|
|
8162
8471
|
"MockCRV": {
|
|
8163
8472
|
"address": "0x2c78EF7eab67A6e0C9cAa6f2821929351bdDF3d3",
|
|
8164
8473
|
"abi": [
|
|
@@ -31641,6 +31950,80 @@
|
|
|
31641
31950
|
}
|
|
31642
31951
|
]
|
|
31643
31952
|
},
|
|
31953
|
+
"VToken_vBAL_Core": {
|
|
31954
|
+
"address": "0xD4B82B7B7CdedB029e0E58AC1B6a04F6616BEd40",
|
|
31955
|
+
"abi": [
|
|
31956
|
+
{
|
|
31957
|
+
"inputs": [
|
|
31958
|
+
{
|
|
31959
|
+
"internalType": "address",
|
|
31960
|
+
"name": "beacon",
|
|
31961
|
+
"type": "address"
|
|
31962
|
+
},
|
|
31963
|
+
{
|
|
31964
|
+
"internalType": "bytes",
|
|
31965
|
+
"name": "data",
|
|
31966
|
+
"type": "bytes"
|
|
31967
|
+
}
|
|
31968
|
+
],
|
|
31969
|
+
"stateMutability": "payable",
|
|
31970
|
+
"type": "constructor"
|
|
31971
|
+
},
|
|
31972
|
+
{
|
|
31973
|
+
"anonymous": false,
|
|
31974
|
+
"inputs": [
|
|
31975
|
+
{
|
|
31976
|
+
"indexed": false,
|
|
31977
|
+
"internalType": "address",
|
|
31978
|
+
"name": "previousAdmin",
|
|
31979
|
+
"type": "address"
|
|
31980
|
+
},
|
|
31981
|
+
{
|
|
31982
|
+
"indexed": false,
|
|
31983
|
+
"internalType": "address",
|
|
31984
|
+
"name": "newAdmin",
|
|
31985
|
+
"type": "address"
|
|
31986
|
+
}
|
|
31987
|
+
],
|
|
31988
|
+
"name": "AdminChanged",
|
|
31989
|
+
"type": "event"
|
|
31990
|
+
},
|
|
31991
|
+
{
|
|
31992
|
+
"anonymous": false,
|
|
31993
|
+
"inputs": [
|
|
31994
|
+
{
|
|
31995
|
+
"indexed": true,
|
|
31996
|
+
"internalType": "address",
|
|
31997
|
+
"name": "beacon",
|
|
31998
|
+
"type": "address"
|
|
31999
|
+
}
|
|
32000
|
+
],
|
|
32001
|
+
"name": "BeaconUpgraded",
|
|
32002
|
+
"type": "event"
|
|
32003
|
+
},
|
|
32004
|
+
{
|
|
32005
|
+
"anonymous": false,
|
|
32006
|
+
"inputs": [
|
|
32007
|
+
{
|
|
32008
|
+
"indexed": true,
|
|
32009
|
+
"internalType": "address",
|
|
32010
|
+
"name": "implementation",
|
|
32011
|
+
"type": "address"
|
|
32012
|
+
}
|
|
32013
|
+
],
|
|
32014
|
+
"name": "Upgraded",
|
|
32015
|
+
"type": "event"
|
|
32016
|
+
},
|
|
32017
|
+
{
|
|
32018
|
+
"stateMutability": "payable",
|
|
32019
|
+
"type": "fallback"
|
|
32020
|
+
},
|
|
32021
|
+
{
|
|
32022
|
+
"stateMutability": "payable",
|
|
32023
|
+
"type": "receive"
|
|
32024
|
+
}
|
|
32025
|
+
]
|
|
32026
|
+
},
|
|
31644
32027
|
"VToken_vCRV_Core": {
|
|
31645
32028
|
"address": "0x121E3be152F283319310D807ed847E8b98319C1e",
|
|
31646
32029
|
"abi": [
|
|
@@ -2960,6 +2960,13 @@ exports.globalConfig = {
|
|
|
2960
2960
|
decimals: 18,
|
|
2961
2961
|
tokenAddress: hardhat_1.ethers.constants.AddressZero,
|
|
2962
2962
|
},
|
|
2963
|
+
{
|
|
2964
|
+
isMock: true,
|
|
2965
|
+
name: "Balancer",
|
|
2966
|
+
symbol: "BAL",
|
|
2967
|
+
decimals: 18,
|
|
2968
|
+
tokenAddress: hardhat_1.ethers.constants.AddressZero,
|
|
2969
|
+
},
|
|
2963
2970
|
],
|
|
2964
2971
|
poolConfig: [
|
|
2965
2972
|
{
|
|
@@ -3239,6 +3246,24 @@ exports.globalConfig = {
|
|
|
3239
3246
|
reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
|
|
3240
3247
|
vTokenReceiver: exports.preconfiguredAddresses.sepolia.VTreasury,
|
|
3241
3248
|
},
|
|
3249
|
+
{
|
|
3250
|
+
name: "Venus BAL (Core)",
|
|
3251
|
+
asset: "BAL",
|
|
3252
|
+
symbol: "vBAL_Core",
|
|
3253
|
+
rateModel: InterestRateModels.JumpRate.toString(),
|
|
3254
|
+
baseRatePerYear: "0",
|
|
3255
|
+
multiplierPerYear: (0, utils_1.convertToUnit)("0.09", 18),
|
|
3256
|
+
jumpMultiplierPerYear: (0, utils_1.convertToUnit)("3", 18),
|
|
3257
|
+
kink_: (0, utils_1.convertToUnit)("0.45", 18),
|
|
3258
|
+
collateralFactor: (0, utils_1.convertToUnit)("0.57", 18),
|
|
3259
|
+
liquidationThreshold: (0, utils_1.convertToUnit)("0.59", 18),
|
|
3260
|
+
reserveFactor: (0, utils_1.convertToUnit)("0.2", 18),
|
|
3261
|
+
initialSupply: (0, utils_1.convertToUnit)("4000", 18),
|
|
3262
|
+
supplyCap: (0, utils_1.convertToUnit)(1500000, 18),
|
|
3263
|
+
borrowCap: (0, utils_1.convertToUnit)(700000, 18),
|
|
3264
|
+
reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
|
|
3265
|
+
vTokenReceiver: exports.preconfiguredAddresses.sepolia.VTreasury,
|
|
3266
|
+
},
|
|
3242
3267
|
],
|
|
3243
3268
|
rewards: [
|
|
3244
3269
|
// XVS Rewards Over 90 days (648000 blocks)
|
|
@@ -3906,6 +3931,13 @@ exports.globalConfig = {
|
|
|
3906
3931
|
decimals: 18,
|
|
3907
3932
|
tokenAddress: "0xa3931d71877C0E7a3148CB7Eb4463524FEc27fbD",
|
|
3908
3933
|
},
|
|
3934
|
+
{
|
|
3935
|
+
isMock: false,
|
|
3936
|
+
name: "Balancer",
|
|
3937
|
+
symbol: "BAL",
|
|
3938
|
+
decimals: 18,
|
|
3939
|
+
tokenAddress: "0xba100000625a3754423978a60c9317c58a424e3D",
|
|
3940
|
+
},
|
|
3909
3941
|
],
|
|
3910
3942
|
poolConfig: [
|
|
3911
3943
|
{
|
|
@@ -4173,6 +4205,24 @@ exports.globalConfig = {
|
|
|
4173
4205
|
reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
|
|
4174
4206
|
vTokenReceiver: "0x9c489E4efba90A67299C1097a8628e233C33BB7B",
|
|
4175
4207
|
},
|
|
4208
|
+
{
|
|
4209
|
+
name: "Venus BAL (Core)",
|
|
4210
|
+
asset: "BAL",
|
|
4211
|
+
symbol: "vBAL_Core",
|
|
4212
|
+
rateModel: InterestRateModels.JumpRate.toString(),
|
|
4213
|
+
baseRatePerYear: "0",
|
|
4214
|
+
multiplierPerYear: (0, utils_1.convertToUnit)("0.09", 18),
|
|
4215
|
+
jumpMultiplierPerYear: (0, utils_1.convertToUnit)("3", 18),
|
|
4216
|
+
kink_: (0, utils_1.convertToUnit)("0.45", 18),
|
|
4217
|
+
collateralFactor: (0, utils_1.convertToUnit)("0.57", 18),
|
|
4218
|
+
liquidationThreshold: (0, utils_1.convertToUnit)("0.59", 18),
|
|
4219
|
+
reserveFactor: (0, utils_1.convertToUnit)("0.2", 18),
|
|
4220
|
+
initialSupply: (0, utils_1.convertToUnit)("4000", 18),
|
|
4221
|
+
supplyCap: (0, utils_1.convertToUnit)(1500000, 18),
|
|
4222
|
+
borrowCap: (0, utils_1.convertToUnit)(700000, 18),
|
|
4223
|
+
reduceReservesBlockDelta: DEFAULT_REDUCE_RESERVES_BLOCK_DELTA,
|
|
4224
|
+
vTokenReceiver: "0x36cc7B13029B5DEe4034745FB4F24034f3F2ffc6",
|
|
4225
|
+
},
|
|
4176
4226
|
],
|
|
4177
4227
|
rewards: [
|
|
4178
4228
|
// XVS Rewards Over 90 days (648000 blocks)
|
|
@@ -3,11 +3,7 @@ import { Provider } from "@ethersproject/providers";
|
|
|
3
3
|
import type { IVToken, IVTokenInterface } from "../IVToken";
|
|
4
4
|
export declare class IVToken__factory {
|
|
5
5
|
static readonly abi: {
|
|
6
|
-
inputs:
|
|
7
|
-
internalType: string;
|
|
8
|
-
name: string;
|
|
9
|
-
type: string;
|
|
10
|
-
}[];
|
|
6
|
+
inputs: never[];
|
|
11
7
|
name: string;
|
|
12
8
|
outputs: {
|
|
13
9
|
internalType: string;
|