@venusprotocol/isolated-pools 4.0.0-dev.3 → 4.0.0-dev.4
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/unichainsepolia/NativeTokenGateway_vWETH_Core.json +599 -0
- package/deployments/unichainsepolia.json +379 -0
- package/deployments/unichainsepolia_addresses.json +1 -0
- package/dist/deploy/018-native-token-gateway.js +7 -0
- package/dist/deployments/unichainsepolia.json +10133 -0
- package/dist/typechain/factories/IVToken__factory.d.ts +5 -1
- package/dist/typechain/factories/IVToken__factory.js +201 -1
- package/package.json +1 -1
- package/typechain/IVToken.d.ts +341 -4
- package/typechain/factories/IVToken__factory.ts +201 -1
|
@@ -4479,6 +4479,385 @@
|
|
|
4479
4479
|
}
|
|
4480
4480
|
]
|
|
4481
4481
|
},
|
|
4482
|
+
"NativeTokenGateway_vWETH_Core": {
|
|
4483
|
+
"address": "0x148C41b07A5c1f289CFB57C2F40d5EEF8ab30DB1",
|
|
4484
|
+
"abi": [
|
|
4485
|
+
{
|
|
4486
|
+
"inputs": [
|
|
4487
|
+
{
|
|
4488
|
+
"internalType": "contract IVToken",
|
|
4489
|
+
"name": "vWrappedNativeToken",
|
|
4490
|
+
"type": "address"
|
|
4491
|
+
}
|
|
4492
|
+
],
|
|
4493
|
+
"stateMutability": "nonpayable",
|
|
4494
|
+
"type": "constructor"
|
|
4495
|
+
},
|
|
4496
|
+
{
|
|
4497
|
+
"inputs": [],
|
|
4498
|
+
"name": "NativeTokenTransferFailed",
|
|
4499
|
+
"type": "error"
|
|
4500
|
+
},
|
|
4501
|
+
{
|
|
4502
|
+
"inputs": [],
|
|
4503
|
+
"name": "ZeroAddressNotAllowed",
|
|
4504
|
+
"type": "error"
|
|
4505
|
+
},
|
|
4506
|
+
{
|
|
4507
|
+
"inputs": [],
|
|
4508
|
+
"name": "ZeroValueNotAllowed",
|
|
4509
|
+
"type": "error"
|
|
4510
|
+
},
|
|
4511
|
+
{
|
|
4512
|
+
"anonymous": false,
|
|
4513
|
+
"inputs": [
|
|
4514
|
+
{
|
|
4515
|
+
"indexed": true,
|
|
4516
|
+
"internalType": "address",
|
|
4517
|
+
"name": "previousOwner",
|
|
4518
|
+
"type": "address"
|
|
4519
|
+
},
|
|
4520
|
+
{
|
|
4521
|
+
"indexed": true,
|
|
4522
|
+
"internalType": "address",
|
|
4523
|
+
"name": "newOwner",
|
|
4524
|
+
"type": "address"
|
|
4525
|
+
}
|
|
4526
|
+
],
|
|
4527
|
+
"name": "OwnershipTransferStarted",
|
|
4528
|
+
"type": "event"
|
|
4529
|
+
},
|
|
4530
|
+
{
|
|
4531
|
+
"anonymous": false,
|
|
4532
|
+
"inputs": [
|
|
4533
|
+
{
|
|
4534
|
+
"indexed": true,
|
|
4535
|
+
"internalType": "address",
|
|
4536
|
+
"name": "previousOwner",
|
|
4537
|
+
"type": "address"
|
|
4538
|
+
},
|
|
4539
|
+
{
|
|
4540
|
+
"indexed": true,
|
|
4541
|
+
"internalType": "address",
|
|
4542
|
+
"name": "newOwner",
|
|
4543
|
+
"type": "address"
|
|
4544
|
+
}
|
|
4545
|
+
],
|
|
4546
|
+
"name": "OwnershipTransferred",
|
|
4547
|
+
"type": "event"
|
|
4548
|
+
},
|
|
4549
|
+
{
|
|
4550
|
+
"anonymous": false,
|
|
4551
|
+
"inputs": [
|
|
4552
|
+
{
|
|
4553
|
+
"indexed": true,
|
|
4554
|
+
"internalType": "address",
|
|
4555
|
+
"name": "receiver",
|
|
4556
|
+
"type": "address"
|
|
4557
|
+
},
|
|
4558
|
+
{
|
|
4559
|
+
"indexed": false,
|
|
4560
|
+
"internalType": "uint256",
|
|
4561
|
+
"name": "amount",
|
|
4562
|
+
"type": "uint256"
|
|
4563
|
+
}
|
|
4564
|
+
],
|
|
4565
|
+
"name": "SweepNative",
|
|
4566
|
+
"type": "event"
|
|
4567
|
+
},
|
|
4568
|
+
{
|
|
4569
|
+
"anonymous": false,
|
|
4570
|
+
"inputs": [
|
|
4571
|
+
{
|
|
4572
|
+
"indexed": true,
|
|
4573
|
+
"internalType": "address",
|
|
4574
|
+
"name": "token",
|
|
4575
|
+
"type": "address"
|
|
4576
|
+
},
|
|
4577
|
+
{
|
|
4578
|
+
"indexed": true,
|
|
4579
|
+
"internalType": "address",
|
|
4580
|
+
"name": "receiver",
|
|
4581
|
+
"type": "address"
|
|
4582
|
+
},
|
|
4583
|
+
{
|
|
4584
|
+
"indexed": false,
|
|
4585
|
+
"internalType": "uint256",
|
|
4586
|
+
"name": "amount",
|
|
4587
|
+
"type": "uint256"
|
|
4588
|
+
}
|
|
4589
|
+
],
|
|
4590
|
+
"name": "SweepToken",
|
|
4591
|
+
"type": "event"
|
|
4592
|
+
},
|
|
4593
|
+
{
|
|
4594
|
+
"anonymous": false,
|
|
4595
|
+
"inputs": [
|
|
4596
|
+
{
|
|
4597
|
+
"indexed": true,
|
|
4598
|
+
"internalType": "address",
|
|
4599
|
+
"name": "sender",
|
|
4600
|
+
"type": "address"
|
|
4601
|
+
},
|
|
4602
|
+
{
|
|
4603
|
+
"indexed": true,
|
|
4604
|
+
"internalType": "address",
|
|
4605
|
+
"name": "vToken",
|
|
4606
|
+
"type": "address"
|
|
4607
|
+
},
|
|
4608
|
+
{
|
|
4609
|
+
"indexed": false,
|
|
4610
|
+
"internalType": "uint256",
|
|
4611
|
+
"name": "amount",
|
|
4612
|
+
"type": "uint256"
|
|
4613
|
+
}
|
|
4614
|
+
],
|
|
4615
|
+
"name": "TokensBorrowedAndUnwrapped",
|
|
4616
|
+
"type": "event"
|
|
4617
|
+
},
|
|
4618
|
+
{
|
|
4619
|
+
"anonymous": false,
|
|
4620
|
+
"inputs": [
|
|
4621
|
+
{
|
|
4622
|
+
"indexed": true,
|
|
4623
|
+
"internalType": "address",
|
|
4624
|
+
"name": "sender",
|
|
4625
|
+
"type": "address"
|
|
4626
|
+
},
|
|
4627
|
+
{
|
|
4628
|
+
"indexed": true,
|
|
4629
|
+
"internalType": "address",
|
|
4630
|
+
"name": "vToken",
|
|
4631
|
+
"type": "address"
|
|
4632
|
+
},
|
|
4633
|
+
{
|
|
4634
|
+
"indexed": false,
|
|
4635
|
+
"internalType": "uint256",
|
|
4636
|
+
"name": "amount",
|
|
4637
|
+
"type": "uint256"
|
|
4638
|
+
}
|
|
4639
|
+
],
|
|
4640
|
+
"name": "TokensRedeemedAndUnwrapped",
|
|
4641
|
+
"type": "event"
|
|
4642
|
+
},
|
|
4643
|
+
{
|
|
4644
|
+
"anonymous": false,
|
|
4645
|
+
"inputs": [
|
|
4646
|
+
{
|
|
4647
|
+
"indexed": true,
|
|
4648
|
+
"internalType": "address",
|
|
4649
|
+
"name": "sender",
|
|
4650
|
+
"type": "address"
|
|
4651
|
+
},
|
|
4652
|
+
{
|
|
4653
|
+
"indexed": true,
|
|
4654
|
+
"internalType": "address",
|
|
4655
|
+
"name": "vToken",
|
|
4656
|
+
"type": "address"
|
|
4657
|
+
},
|
|
4658
|
+
{
|
|
4659
|
+
"indexed": false,
|
|
4660
|
+
"internalType": "uint256",
|
|
4661
|
+
"name": "amount",
|
|
4662
|
+
"type": "uint256"
|
|
4663
|
+
}
|
|
4664
|
+
],
|
|
4665
|
+
"name": "TokensWrappedAndRepaid",
|
|
4666
|
+
"type": "event"
|
|
4667
|
+
},
|
|
4668
|
+
{
|
|
4669
|
+
"anonymous": false,
|
|
4670
|
+
"inputs": [
|
|
4671
|
+
{
|
|
4672
|
+
"indexed": true,
|
|
4673
|
+
"internalType": "address",
|
|
4674
|
+
"name": "sender",
|
|
4675
|
+
"type": "address"
|
|
4676
|
+
},
|
|
4677
|
+
{
|
|
4678
|
+
"indexed": true,
|
|
4679
|
+
"internalType": "address",
|
|
4680
|
+
"name": "vToken",
|
|
4681
|
+
"type": "address"
|
|
4682
|
+
},
|
|
4683
|
+
{
|
|
4684
|
+
"indexed": false,
|
|
4685
|
+
"internalType": "uint256",
|
|
4686
|
+
"name": "amount",
|
|
4687
|
+
"type": "uint256"
|
|
4688
|
+
}
|
|
4689
|
+
],
|
|
4690
|
+
"name": "TokensWrappedAndSupplied",
|
|
4691
|
+
"type": "event"
|
|
4692
|
+
},
|
|
4693
|
+
{
|
|
4694
|
+
"stateMutability": "payable",
|
|
4695
|
+
"type": "fallback"
|
|
4696
|
+
},
|
|
4697
|
+
{
|
|
4698
|
+
"inputs": [],
|
|
4699
|
+
"name": "acceptOwnership",
|
|
4700
|
+
"outputs": [],
|
|
4701
|
+
"stateMutability": "nonpayable",
|
|
4702
|
+
"type": "function"
|
|
4703
|
+
},
|
|
4704
|
+
{
|
|
4705
|
+
"inputs": [
|
|
4706
|
+
{
|
|
4707
|
+
"internalType": "uint256",
|
|
4708
|
+
"name": "borrowAmount",
|
|
4709
|
+
"type": "uint256"
|
|
4710
|
+
}
|
|
4711
|
+
],
|
|
4712
|
+
"name": "borrowAndUnwrap",
|
|
4713
|
+
"outputs": [],
|
|
4714
|
+
"stateMutability": "nonpayable",
|
|
4715
|
+
"type": "function"
|
|
4716
|
+
},
|
|
4717
|
+
{
|
|
4718
|
+
"inputs": [],
|
|
4719
|
+
"name": "owner",
|
|
4720
|
+
"outputs": [
|
|
4721
|
+
{
|
|
4722
|
+
"internalType": "address",
|
|
4723
|
+
"name": "",
|
|
4724
|
+
"type": "address"
|
|
4725
|
+
}
|
|
4726
|
+
],
|
|
4727
|
+
"stateMutability": "view",
|
|
4728
|
+
"type": "function"
|
|
4729
|
+
},
|
|
4730
|
+
{
|
|
4731
|
+
"inputs": [],
|
|
4732
|
+
"name": "pendingOwner",
|
|
4733
|
+
"outputs": [
|
|
4734
|
+
{
|
|
4735
|
+
"internalType": "address",
|
|
4736
|
+
"name": "",
|
|
4737
|
+
"type": "address"
|
|
4738
|
+
}
|
|
4739
|
+
],
|
|
4740
|
+
"stateMutability": "view",
|
|
4741
|
+
"type": "function"
|
|
4742
|
+
},
|
|
4743
|
+
{
|
|
4744
|
+
"inputs": [
|
|
4745
|
+
{
|
|
4746
|
+
"internalType": "uint256",
|
|
4747
|
+
"name": "redeemTokens",
|
|
4748
|
+
"type": "uint256"
|
|
4749
|
+
}
|
|
4750
|
+
],
|
|
4751
|
+
"name": "redeemAndUnwrap",
|
|
4752
|
+
"outputs": [],
|
|
4753
|
+
"stateMutability": "nonpayable",
|
|
4754
|
+
"type": "function"
|
|
4755
|
+
},
|
|
4756
|
+
{
|
|
4757
|
+
"inputs": [
|
|
4758
|
+
{
|
|
4759
|
+
"internalType": "uint256",
|
|
4760
|
+
"name": "redeemAmount",
|
|
4761
|
+
"type": "uint256"
|
|
4762
|
+
}
|
|
4763
|
+
],
|
|
4764
|
+
"name": "redeemUnderlyingAndUnwrap",
|
|
4765
|
+
"outputs": [],
|
|
4766
|
+
"stateMutability": "nonpayable",
|
|
4767
|
+
"type": "function"
|
|
4768
|
+
},
|
|
4769
|
+
{
|
|
4770
|
+
"inputs": [],
|
|
4771
|
+
"name": "renounceOwnership",
|
|
4772
|
+
"outputs": [],
|
|
4773
|
+
"stateMutability": "nonpayable",
|
|
4774
|
+
"type": "function"
|
|
4775
|
+
},
|
|
4776
|
+
{
|
|
4777
|
+
"inputs": [],
|
|
4778
|
+
"name": "sweepNative",
|
|
4779
|
+
"outputs": [],
|
|
4780
|
+
"stateMutability": "nonpayable",
|
|
4781
|
+
"type": "function"
|
|
4782
|
+
},
|
|
4783
|
+
{
|
|
4784
|
+
"inputs": [
|
|
4785
|
+
{
|
|
4786
|
+
"internalType": "contract IERC20",
|
|
4787
|
+
"name": "token",
|
|
4788
|
+
"type": "address"
|
|
4789
|
+
}
|
|
4790
|
+
],
|
|
4791
|
+
"name": "sweepToken",
|
|
4792
|
+
"outputs": [],
|
|
4793
|
+
"stateMutability": "nonpayable",
|
|
4794
|
+
"type": "function"
|
|
4795
|
+
},
|
|
4796
|
+
{
|
|
4797
|
+
"inputs": [
|
|
4798
|
+
{
|
|
4799
|
+
"internalType": "address",
|
|
4800
|
+
"name": "newOwner",
|
|
4801
|
+
"type": "address"
|
|
4802
|
+
}
|
|
4803
|
+
],
|
|
4804
|
+
"name": "transferOwnership",
|
|
4805
|
+
"outputs": [],
|
|
4806
|
+
"stateMutability": "nonpayable",
|
|
4807
|
+
"type": "function"
|
|
4808
|
+
},
|
|
4809
|
+
{
|
|
4810
|
+
"inputs": [],
|
|
4811
|
+
"name": "vWNativeToken",
|
|
4812
|
+
"outputs": [
|
|
4813
|
+
{
|
|
4814
|
+
"internalType": "contract IVToken",
|
|
4815
|
+
"name": "",
|
|
4816
|
+
"type": "address"
|
|
4817
|
+
}
|
|
4818
|
+
],
|
|
4819
|
+
"stateMutability": "view",
|
|
4820
|
+
"type": "function"
|
|
4821
|
+
},
|
|
4822
|
+
{
|
|
4823
|
+
"inputs": [],
|
|
4824
|
+
"name": "wNativeToken",
|
|
4825
|
+
"outputs": [
|
|
4826
|
+
{
|
|
4827
|
+
"internalType": "contract IWrappedNative",
|
|
4828
|
+
"name": "",
|
|
4829
|
+
"type": "address"
|
|
4830
|
+
}
|
|
4831
|
+
],
|
|
4832
|
+
"stateMutability": "view",
|
|
4833
|
+
"type": "function"
|
|
4834
|
+
},
|
|
4835
|
+
{
|
|
4836
|
+
"inputs": [],
|
|
4837
|
+
"name": "wrapAndRepay",
|
|
4838
|
+
"outputs": [],
|
|
4839
|
+
"stateMutability": "payable",
|
|
4840
|
+
"type": "function"
|
|
4841
|
+
},
|
|
4842
|
+
{
|
|
4843
|
+
"inputs": [
|
|
4844
|
+
{
|
|
4845
|
+
"internalType": "address",
|
|
4846
|
+
"name": "minter",
|
|
4847
|
+
"type": "address"
|
|
4848
|
+
}
|
|
4849
|
+
],
|
|
4850
|
+
"name": "wrapAndSupply",
|
|
4851
|
+
"outputs": [],
|
|
4852
|
+
"stateMutability": "payable",
|
|
4853
|
+
"type": "function"
|
|
4854
|
+
},
|
|
4855
|
+
{
|
|
4856
|
+
"stateMutability": "payable",
|
|
4857
|
+
"type": "receive"
|
|
4858
|
+
}
|
|
4859
|
+
]
|
|
4860
|
+
},
|
|
4482
4861
|
"PoolLens": {
|
|
4483
4862
|
"address": "0xE32DD86fc8cc7984E453703Ef04Fe822aF411f74",
|
|
4484
4863
|
"abi": [
|
|
@@ -12,6 +12,7 @@
|
|
|
12
12
|
"MockUSDC": "0xf16d4774893eB578130a645d5c69E9c4d183F3A5",
|
|
13
13
|
"MockUSDT": "0x7bc1b67fde923fd3667Fde59684c6c354C8EbFdA",
|
|
14
14
|
"MockcbBTC": "0x2979ef1676bb28192ac304173C717D7322b3b586",
|
|
15
|
+
"NativeTokenGateway_vWETH_Core": "0x148C41b07A5c1f289CFB57C2F40d5EEF8ab30DB1",
|
|
15
16
|
"PoolLens": "0xE32DD86fc8cc7984E453703Ef04Fe822aF411f74",
|
|
16
17
|
"PoolRegistry": "0x9027cF782515F3184bbF7A6cD7a33052dc52E439",
|
|
17
18
|
"PoolRegistry_Implementation": "0x8C4F774283b8CD051443182A6A92D3abbf2D36A9",
|
|
@@ -13,6 +13,7 @@ const opbnbtestnet_json_1 = require("../deployments/opbnbtestnet.json");
|
|
|
13
13
|
const opmainnet_json_1 = require("../deployments/opmainnet.json");
|
|
14
14
|
const opsepolia_json_1 = require("../deployments/opsepolia.json");
|
|
15
15
|
const sepolia_json_1 = require("../deployments/sepolia.json");
|
|
16
|
+
const unichainsepolia_json_1 = require("../deployments/unichainsepolia.json");
|
|
16
17
|
const zksyncmainnet_json_1 = require("../deployments/zksyncmainnet.json");
|
|
17
18
|
const zksyncsepolia_json_1 = require("../deployments/zksyncsepolia.json");
|
|
18
19
|
const deploymentConfig_1 = require("../helpers/deploymentConfig");
|
|
@@ -117,6 +118,12 @@ const VWNativeInfo = {
|
|
|
117
118
|
address: basemainnet_json_1.contracts.VToken_vWETH_Core.address,
|
|
118
119
|
},
|
|
119
120
|
],
|
|
121
|
+
unichainsepolia: [
|
|
122
|
+
{
|
|
123
|
+
name: "vWETH_Core",
|
|
124
|
+
address: unichainsepolia_json_1.contracts.VToken_vWETH_Core.address,
|
|
125
|
+
},
|
|
126
|
+
],
|
|
120
127
|
};
|
|
121
128
|
const getVWNativeTokens = (networkName) => {
|
|
122
129
|
const vTokensInfo = VWNativeInfo[networkName];
|