@raac/rpc 1.0.1 → 1.0.2-beta.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/dist/RPCLibrary.js +61 -8
- package/dist/artifacts/core/collectors/FeeCollector.sol/FeeCollector.json +1743 -0
- package/dist/artifacts/core/minters/RAACMinter/RAACMinter.sol/RAACMinter.json +175 -67
- package/dist/artifacts/core/oracles/BaseVRFv2Consumer.sol/BaseVRFv2Consumer.json +279 -0
- package/dist/artifacts/core/pools/LendingPool/LendingPool.sol/LendingPool.json +1231 -195
- package/dist/artifacts/core/pools/StabilityPool/StabilityPool.sol/StabilityPool.json +153 -199
- package/dist/artifacts/core/primitives/RAACHousePrices.sol/RAACHousePrices.json +72 -2
- package/dist/artifacts/core/tokens/DEToken.sol/DEToken.json +2 -2
- package/dist/artifacts/core/tokens/IndexToken.sol/IndexToken.json +770 -0
- package/dist/artifacts/core/tokens/RAACNFT.sol/RAACNFT.json +707 -49
- package/dist/artifacts/core/tokens/RAACToken.sol/RAACToken.json +23 -84
- package/dist/artifacts/core/tokens/RToken.sol/RToken.json +62 -62
- package/dist/artifacts/core/tokens/veRAACToken.sol/veRAACToken.json +2 -2
- package/dist/artifacts/mocks/core/oracles/MockVRFCoordinatorV2.sol/MockVRFCoordinatorV2.json +774 -0
- package/dist/artifacts/zeno/Auction.sol/Auction.json +34 -114
- package/dist/artifacts/zeno/AuctionFactory.sol/AuctionFactory.json +3 -3
- package/dist/artifacts/zeno/Zeno.sol/Zeno.json +3 -3
- package/dist/artifacts/zeno/ZenoFactory.sol/ZenoFactory.json +3 -3
- package/dist/configs/chains/11155111.json +132 -0
- package/dist/configs/chains/17000.json +127 -0
- package/dist/configs/chains/8453.json +26 -14
- package/dist/configs/chains/index.js +4 -0
- package/dist/configs/createConfig.js +6 -0
- package/dist/contracts/feeCollector/claimRewardFromPool.js +24 -0
- package/dist/contracts/housePrices/getLatestPrice.js +1 -1
- package/dist/contracts/indexToken/getNextRandomNFT.js +30 -0
- package/dist/contracts/indexToken/redeemNFT.js +39 -0
- package/dist/methods/commons/estimateGasPrice.js +7 -2
- package/dist/nfts/getAllTokens.js +34 -0
- package/dist/nfts/{addNewBatch.js → getBaseUri.js} +7 -8
- package/dist/nfts/getMintFeePercentage.js +23 -0
- package/dist/nfts/getMintPrice.js +28 -0
- package/dist/nfts/getTokenURI.js +23 -0
- package/dist/nfts/getTokensByOwner.js +35 -0
- package/dist/nfts/getTotalPropertiesCount.js +23 -0
- package/dist/nfts/{getCurrentBatchSize.js → totalNFTSupply.js} +3 -3
- package/dist/pools/lendingPool/borrowFromLendingPool.js +4 -3
- package/dist/pools/lendingPool/borrowFromLendingPoolWithInsurance.js +40 -0
- package/dist/pools/lendingPool/calculateInsuranceFee.js +20 -0
- package/dist/pools/lendingPool/claimReward.js +22 -0
- package/dist/pools/lendingPool/closeLiquidation.js +28 -0
- package/dist/pools/lendingPool/depositNFTToLendingPool.js +0 -1
- package/dist/pools/lendingPool/depositToLendingPool.js +2 -2
- package/dist/pools/lendingPool/getAllUserData.js +28 -0
- package/dist/pools/lendingPool/getEligibleUserDeposits.js +27 -0
- package/dist/pools/lendingPool/getHealthFactor.js +27 -0
- package/dist/pools/lendingPool/getLendingPoolInfo.js +8 -5
- package/dist/pools/lendingPool/getPendingReward.js +20 -0
- package/dist/pools/lendingPool/getPositionDebt.js +27 -0
- package/dist/pools/lendingPool/getPositionScaledDebt.js +27 -0
- package/dist/pools/lendingPool/getPositionView.js +38 -0
- package/dist/pools/lendingPool/getPositionsScaledDebt.js +27 -0
- package/dist/pools/lendingPool/getRawUserDepositsInLendingPool.js +21 -0
- package/dist/pools/lendingPool/getUserCollateralValue.js +27 -0
- package/dist/pools/lendingPool/initializeLiquidation.js +28 -0
- package/dist/pools/lendingPool/repayToLendingPool.js +4 -8
- package/dist/pools/lendingPool/withdrawFromLendingPool.js +2 -2
- package/dist/pools/stabilityPool/depositNFTToStabilityPool.js +40 -0
- package/dist/pools/stabilityPool/getRawUserDepositsInStabilityPool.js +21 -0
- package/dist/pools/stabilityPool/getStabilityPoolInfo.js +2 -12
- package/dist/scripts/index.js +90 -35
- package/dist/types/RPCLibrary.d.ts +61 -8
- package/dist/types/configs/chains/index.d.ts +5 -1
- package/dist/types/configs/createConfig.d.ts +6 -0
- package/dist/types/configs/index.d.ts +2 -0
- package/dist/types/contracts/feeCollector/claimRewardFromPool.d.ts +4 -0
- package/dist/types/contracts/housePrices/getLatestPrice.d.ts +1 -1
- package/dist/types/contracts/indexToken/getNextRandomNFT.d.ts +7 -0
- package/dist/types/contracts/indexToken/redeemNFT.d.ts +4 -0
- package/dist/types/nfts/getAllTokens.d.ts +7 -0
- package/dist/types/nfts/getBaseUri.d.ts +4 -0
- package/dist/types/nfts/getMintFeePercentage.d.ts +4 -0
- package/dist/types/nfts/getMintPrice.d.ts +7 -0
- package/dist/types/nfts/getTokenURI.d.ts +4 -0
- package/dist/types/nfts/getTokensByOwner.d.ts +10 -0
- package/dist/types/nfts/getTotalPropertiesCount.d.ts +4 -0
- package/dist/types/nfts/totalNFTSupply.d.ts +4 -0
- package/dist/types/pools/lendingPool/borrowFromLendingPool.d.ts +1 -1
- package/dist/types/pools/lendingPool/borrowFromLendingPoolWithInsurance.d.ts +4 -0
- package/dist/types/pools/lendingPool/calculateInsuranceFee.d.ts +4 -0
- package/dist/types/pools/lendingPool/claimReward.d.ts +4 -0
- package/dist/types/pools/lendingPool/closeLiquidation.d.ts +11 -0
- package/dist/types/pools/lendingPool/getAllUserData.d.ts +16 -0
- package/dist/types/pools/lendingPool/getEligibleUserDeposits.d.ts +11 -0
- package/dist/types/pools/lendingPool/getHealthFactor.d.ts +11 -0
- package/dist/types/pools/lendingPool/getLendingPoolInfo.d.ts +2 -1
- package/dist/types/pools/lendingPool/getPendingReward.d.ts +4 -0
- package/dist/types/pools/lendingPool/getPositionDebt.d.ts +11 -0
- package/dist/types/pools/lendingPool/getPositionScaledDebt.d.ts +11 -0
- package/dist/types/pools/lendingPool/getPositionView.d.ts +27 -0
- package/dist/types/pools/lendingPool/getPositionsScaledDebt.d.ts +11 -0
- package/dist/types/pools/lendingPool/getRawUserDepositsInLendingPool.d.ts +4 -0
- package/dist/types/pools/lendingPool/getUserCollateralValue.d.ts +11 -0
- package/dist/types/pools/lendingPool/initializeLiquidation.d.ts +11 -0
- package/dist/types/pools/lendingPool/repayToLendingPool.d.ts +2 -2
- package/dist/types/pools/lendingPool/withdrawNFTFromLendingPool.d.ts +1 -1
- package/dist/types/pools/stabilityPool/depositNFTToStabilityPool.d.ts +4 -0
- package/dist/types/pools/stabilityPool/getRawUserDepositsInStabilityPool.d.ts +4 -0
- package/dist/types/pools/stabilityPool/getStabilityPoolInfo.d.ts +1 -3
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/index.d.ts +2 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/vrf/VRFConsumerBaseV2.d.ts +35 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/vrf/index.d.ts +3 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/vrf/interfaces/VRFCoordinatorV2Interface.d.ts +156 -0
- package/dist/types/typechain-types/@chainlink/contracts/src/v0.8/vrf/interfaces/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/core/collectors/FeeCollector.d.ts +446 -221
- package/dist/types/typechain-types/contracts/core/minters/RAACMinter/RAACMinter.d.ts +108 -20
- package/dist/types/typechain-types/contracts/core/minters/RAACReleaseOrchestrator/RAACReleaseOrchestrator.d.ts +6 -16
- package/dist/types/typechain-types/contracts/core/oracles/BaseVRFv2Consumer.d.ts +166 -0
- package/dist/types/typechain-types/contracts/core/oracles/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/core/pools/LendingPool/LendingPool.d.ts +811 -99
- package/dist/types/typechain-types/contracts/core/pools/StabilityPool/StabilityPool.d.ts +152 -148
- package/dist/types/typechain-types/contracts/core/pools/StabilityPool/index.d.ts +0 -1
- package/dist/types/typechain-types/contracts/core/primitives/RAACHousePrices.d.ts +29 -2
- package/dist/types/typechain-types/contracts/core/tokens/DebtToken.d.ts +65 -51
- package/dist/types/typechain-types/contracts/core/tokens/IndexToken.d.ts +187 -2
- package/dist/types/typechain-types/contracts/core/tokens/RAACNFT.d.ts +413 -19
- package/dist/types/typechain-types/contracts/core/tokens/RToken.d.ts +40 -40
- package/dist/types/typechain-types/contracts/interfaces/core/collectors/IBaseCollector.d.ts +39 -0
- package/dist/types/typechain-types/contracts/interfaces/core/collectors/IFeeCollector.d.ts +317 -130
- package/dist/types/typechain-types/contracts/interfaces/core/collectors/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/interfaces/core/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/interfaces/core/minters/RAACMinter/IRAACMinter.d.ts +58 -22
- package/dist/types/typechain-types/contracts/interfaces/core/minters/RAACReleaseOrchestrator/IReleaseOrchestrator.d.ts +5 -3
- package/dist/types/typechain-types/contracts/interfaces/core/oracles/IBaseVRFv2Consumer.d.ts +86 -0
- package/dist/types/typechain-types/contracts/interfaces/core/oracles/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/interfaces/core/pools/ILiquidityPool.d.ts +83 -45
- package/dist/types/typechain-types/contracts/interfaces/core/pools/LendingPool/ILendingPool.d.ts +539 -54
- package/dist/types/typechain-types/contracts/interfaces/core/pools/StabilityPool/IStabilityPool.d.ts +92 -71
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IDebtToken.d.ts +123 -27
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IIndexToken.d.ts +187 -0
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IRAACNFT.d.ts +243 -17
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/IRToken.d.ts +37 -37
- package/dist/types/typechain-types/contracts/interfaces/core/tokens/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/interfaces/core/vaults/IBaseVault.d.ts +83 -0
- package/dist/types/typechain-types/contracts/interfaces/core/vaults/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/interfaces/index.d.ts +0 -1
- package/dist/types/typechain-types/contracts/mocks/core/collectors/index.d.ts +0 -1
- package/dist/types/typechain-types/contracts/mocks/core/governance/proposals/TimelockTestTarget.d.ts +5 -1
- package/dist/types/typechain-types/contracts/mocks/core/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/mocks/core/oracles/MockVRFCoordinatorV2.d.ts +530 -0
- package/dist/types/typechain-types/contracts/mocks/core/oracles/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/mocks/core/pools/MockLendingPoolCollector.d.ts +156 -0
- package/dist/types/typechain-types/contracts/mocks/core/pools/MockLendingPoolDebtToken.d.ts +557 -102
- package/dist/types/typechain-types/contracts/mocks/core/pools/MockLiquidityPool.d.ts +486 -0
- package/dist/types/typechain-types/contracts/mocks/core/pools/index.d.ts +2 -0
- package/dist/types/typechain-types/contracts/mocks/core/primitives/MockDistributableContract.d.ts +35 -0
- package/dist/types/typechain-types/contracts/mocks/core/primitives/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/mocks/core/tokens/MockCollectableUnderlying.d.ts +292 -0
- package/dist/types/typechain-types/contracts/mocks/core/tokens/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/mocks/core/vaults/MockVault.d.ts +290 -0
- package/dist/types/typechain-types/contracts/mocks/core/vaults/index.d.ts +1 -0
- package/dist/types/typechain-types/contracts/mocks/libraries/MockStringUtils.d.ts +25 -0
- package/dist/types/typechain-types/contracts/mocks/libraries/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/VRFConsumerBaseV2__factory.d.ts +33 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/interfaces/VRFCoordinatorV2Interface__factory.d.ts +171 -0
- package/dist/types/typechain-types/factories/@chainlink/contracts/src/v0.8/vrf/interfaces/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/core/collectors/FeeCollector__factory.d.ts +571 -194
- package/dist/types/typechain-types/factories/contracts/core/minters/RAACMinter/RAACMinter__factory.d.ts +138 -54
- package/dist/types/typechain-types/factories/contracts/core/minters/RAACReleaseOrchestrator/RAACReleaseOrchestrator__factory.d.ts +5 -31
- package/dist/types/typechain-types/factories/contracts/core/oracles/BaseVRFv2Consumer__factory.d.ts +231 -0
- package/dist/types/typechain-types/factories/contracts/core/oracles/RAACHousePriceOracle__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/oracles/RAACPrimeRateOracle__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/oracles/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/core/pools/LendingPool/LendingPool__factory.d.ts +897 -64
- package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/NFTLiquidator__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/StabilityPool__factory.d.ts +128 -161
- package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/contracts/core/primitives/RAACHousePrices__factory.d.ts +54 -1
- package/dist/types/typechain-types/factories/contracts/core/tokens/DebtToken__factory.d.ts +47 -29
- package/dist/types/typechain-types/factories/contracts/core/tokens/IndexToken__factory.d.ts +317 -1
- package/dist/types/typechain-types/factories/contracts/core/tokens/RAACNFT__factory.d.ts +525 -17
- package/dist/types/typechain-types/factories/contracts/core/tokens/RAACToken__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/core/tokens/RToken__factory.d.ts +52 -52
- package/dist/types/typechain-types/factories/contracts/core/tokens/VeRAACToken__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/interfaces/core/collectors/IBaseCollector__factory.d.ts +33 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/collectors/IFeeCollector__factory.d.ts +409 -90
- package/dist/types/typechain-types/factories/contracts/interfaces/core/collectors/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/minters/RAACMinter/IRAACMinter__factory.d.ts +59 -15
- package/dist/types/typechain-types/factories/contracts/interfaces/core/minters/RAACReleaseOrchestrator/IReleaseOrchestrator__factory.d.ts +4 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/oracles/IBaseVRFv2Consumer__factory.d.ts +78 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/oracles/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/ILiquidityPool__factory.d.ts +119 -39
- package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/LendingPool/ILendingPool__factory.d.ts +547 -19
- package/dist/types/typechain-types/factories/contracts/interfaces/core/pools/StabilityPool/IStabilityPool__factory.d.ts +68 -67
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IDebtToken__factory.d.ts +119 -6
- package/dist/types/typechain-types/factories/{erc721a/contracts/IERC721A__factory.d.ts → contracts/interfaces/core/tokens/IIndexToken__factory.d.ts} +74 -215
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IRAACNFT__factory.d.ts +274 -10
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/IRToken__factory.d.ts +26 -26
- package/dist/types/typechain-types/factories/contracts/interfaces/core/tokens/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/{IMarketCreator__factory.d.ts → core/vaults/IBaseVault__factory.d.ts} +78 -42
- package/dist/types/typechain-types/factories/contracts/interfaces/core/vaults/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/interfaces/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/contracts/libraries/pools/ReserveLibrary__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/collectors/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/governance/gauges/MockBaseGauge__factory.d.ts +16 -4
- package/dist/types/typechain-types/factories/contracts/mocks/core/governance/proposals/TimelockTestTarget__factory.d.ts +10 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/MockOracle__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/MockVRFCoordinatorV2__factory.d.ts +620 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/TestRAACHousePriceOracle__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/TestRAACPrimeRateOracle__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/oracles/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLendingPoolCollector__factory.d.ts +234 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLendingPoolDebtToken__factory.d.ts +539 -77
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLendingPool__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockLiquidityPool__factory.d.ts +795 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/MockStabilityPool__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/core/pools/index.d.ts +2 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/primitives/MockDistributableContract__factory.d.ts +68 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/primitives/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/MockCollectableUnderlying__factory.d.ts +451 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/tokens/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/vaults/MockVault__factory.d.ts +525 -0
- package/dist/types/typechain-types/factories/contracts/mocks/core/vaults/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/MockStringUtils__factory.d.ts +40 -0
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/index.d.ts +1 -0
- package/dist/types/typechain-types/factories/contracts/mocks/libraries/pools/ReserveLibraryMock__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/contracts/mocks/tests/VeRAACFuzzHelper__factory.d.ts +1 -1
- package/dist/types/typechain-types/factories/index.d.ts +0 -1
- package/dist/types/typechain-types/index.d.ts +28 -10
- package/dist/types/utils/artifacts.d.ts +677 -39
- package/dist/types/utils/contracts.d.ts +4 -0
- package/dist/utils/artifacts.js +9 -0
- package/package.json +1 -1
- package/dist/nfts/getDepositedNFTs.js +0 -19
- package/dist/nfts/getOwnedNFTs.js +0 -34
- package/dist/types/nfts/addNewBatch.d.ts +0 -4
- package/dist/types/nfts/getCurrentBatchSize.d.ts +0 -4
- package/dist/types/nfts/getDepositedNFTs.d.ts +0 -7
- package/dist/types/nfts/getOwnedNFTs.d.ts +0 -7
- package/dist/types/typechain-types/contracts/core/pools/StabilityPool/MarketCreator.d.ts +0 -274
- package/dist/types/typechain-types/contracts/interfaces/IMarketCreator.d.ts +0 -85
- package/dist/types/typechain-types/contracts/mocks/core/collectors/MockFeeCollector.d.ts +0 -708
- package/dist/types/typechain-types/erc721a/contracts/IERC721A.d.ts +0 -242
- package/dist/types/typechain-types/erc721a/contracts/index.d.ts +0 -1
- package/dist/types/typechain-types/erc721a/index.d.ts +0 -2
- package/dist/types/typechain-types/factories/contracts/core/pools/StabilityPool/MarketCreator__factory.d.ts +0 -405
- package/dist/types/typechain-types/factories/contracts/mocks/core/collectors/MockFeeCollector__factory.d.ts +0 -985
- package/dist/types/typechain-types/factories/erc721a/contracts/index.d.ts +0 -1
- package/dist/types/typechain-types/factories/erc721a/index.d.ts +0 -1
|
@@ -0,0 +1,486 @@
|
|
|
1
|
+
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../../../common";
|
|
3
|
+
export interface MockLiquidityPoolInterface extends Interface {
|
|
4
|
+
getFunction(nameOrSignature: "A" | "ADMIN_FEE" | "A_PRECISION" | "A_precise" | "FEE_DENOMINATOR" | "MAX_A" | "MAX_ADMIN_FEE" | "MAX_FEE" | "N_COINS" | "PRECISION" | "add_liquidity" | "allowance" | "approve" | "balanceOf" | "balances" | "coins" | "decimals" | "exchange" | "fee" | "getExchangeRate" | "getTotalLiquidity" | "getTotalValueLocked" | "getUserLiquidity" | "get_dy" | "name" | "owner" | "remove_liquidity" | "remove_liquidity_one_coin" | "renounceOwnership" | "symbol" | "totalSupply" | "transfer" | "transferFrom" | "transferOwnership"): FunctionFragment;
|
|
5
|
+
getEvent(nameOrSignatureOrTopic: "AddLiquidity" | "Approval" | "OwnershipTransferred" | "RemoveLiquidity" | "RemoveLiquidityOne" | "TokenExchange" | "Transfer"): EventFragment;
|
|
6
|
+
encodeFunctionData(functionFragment: "A", values?: undefined): string;
|
|
7
|
+
encodeFunctionData(functionFragment: "ADMIN_FEE", values?: undefined): string;
|
|
8
|
+
encodeFunctionData(functionFragment: "A_PRECISION", values?: undefined): string;
|
|
9
|
+
encodeFunctionData(functionFragment: "A_precise", values?: undefined): string;
|
|
10
|
+
encodeFunctionData(functionFragment: "FEE_DENOMINATOR", values?: undefined): string;
|
|
11
|
+
encodeFunctionData(functionFragment: "MAX_A", values?: undefined): string;
|
|
12
|
+
encodeFunctionData(functionFragment: "MAX_ADMIN_FEE", values?: undefined): string;
|
|
13
|
+
encodeFunctionData(functionFragment: "MAX_FEE", values?: undefined): string;
|
|
14
|
+
encodeFunctionData(functionFragment: "N_COINS", values?: undefined): string;
|
|
15
|
+
encodeFunctionData(functionFragment: "PRECISION", values?: undefined): string;
|
|
16
|
+
encodeFunctionData(functionFragment: "add_liquidity", values: [[BigNumberish, BigNumberish], BigNumberish]): string;
|
|
17
|
+
encodeFunctionData(functionFragment: "allowance", values: [AddressLike, AddressLike]): string;
|
|
18
|
+
encodeFunctionData(functionFragment: "approve", values: [AddressLike, BigNumberish]): string;
|
|
19
|
+
encodeFunctionData(functionFragment: "balanceOf", values: [AddressLike]): string;
|
|
20
|
+
encodeFunctionData(functionFragment: "balances", values: [BigNumberish]): string;
|
|
21
|
+
encodeFunctionData(functionFragment: "coins", values: [BigNumberish]): string;
|
|
22
|
+
encodeFunctionData(functionFragment: "decimals", values?: undefined): string;
|
|
23
|
+
encodeFunctionData(functionFragment: "exchange", values: [BigNumberish, BigNumberish, BigNumberish, BigNumberish]): string;
|
|
24
|
+
encodeFunctionData(functionFragment: "fee", values?: undefined): string;
|
|
25
|
+
encodeFunctionData(functionFragment: "getExchangeRate", values: [AddressLike]): string;
|
|
26
|
+
encodeFunctionData(functionFragment: "getTotalLiquidity", values: [AddressLike]): string;
|
|
27
|
+
encodeFunctionData(functionFragment: "getTotalValueLocked", values?: undefined): string;
|
|
28
|
+
encodeFunctionData(functionFragment: "getUserLiquidity", values: [AddressLike, AddressLike]): string;
|
|
29
|
+
encodeFunctionData(functionFragment: "get_dy", values: [BigNumberish, BigNumberish, BigNumberish]): string;
|
|
30
|
+
encodeFunctionData(functionFragment: "name", values?: undefined): string;
|
|
31
|
+
encodeFunctionData(functionFragment: "owner", values?: undefined): string;
|
|
32
|
+
encodeFunctionData(functionFragment: "remove_liquidity", values: [BigNumberish, [BigNumberish, BigNumberish]]): string;
|
|
33
|
+
encodeFunctionData(functionFragment: "remove_liquidity_one_coin", values: [BigNumberish, BigNumberish, BigNumberish]): string;
|
|
34
|
+
encodeFunctionData(functionFragment: "renounceOwnership", values?: undefined): string;
|
|
35
|
+
encodeFunctionData(functionFragment: "symbol", values?: undefined): string;
|
|
36
|
+
encodeFunctionData(functionFragment: "totalSupply", values?: undefined): string;
|
|
37
|
+
encodeFunctionData(functionFragment: "transfer", values: [AddressLike, BigNumberish]): string;
|
|
38
|
+
encodeFunctionData(functionFragment: "transferFrom", values: [AddressLike, AddressLike, BigNumberish]): string;
|
|
39
|
+
encodeFunctionData(functionFragment: "transferOwnership", values: [AddressLike]): string;
|
|
40
|
+
decodeFunctionResult(functionFragment: "A", data: BytesLike): Result;
|
|
41
|
+
decodeFunctionResult(functionFragment: "ADMIN_FEE", data: BytesLike): Result;
|
|
42
|
+
decodeFunctionResult(functionFragment: "A_PRECISION", data: BytesLike): Result;
|
|
43
|
+
decodeFunctionResult(functionFragment: "A_precise", data: BytesLike): Result;
|
|
44
|
+
decodeFunctionResult(functionFragment: "FEE_DENOMINATOR", data: BytesLike): Result;
|
|
45
|
+
decodeFunctionResult(functionFragment: "MAX_A", data: BytesLike): Result;
|
|
46
|
+
decodeFunctionResult(functionFragment: "MAX_ADMIN_FEE", data: BytesLike): Result;
|
|
47
|
+
decodeFunctionResult(functionFragment: "MAX_FEE", data: BytesLike): Result;
|
|
48
|
+
decodeFunctionResult(functionFragment: "N_COINS", data: BytesLike): Result;
|
|
49
|
+
decodeFunctionResult(functionFragment: "PRECISION", data: BytesLike): Result;
|
|
50
|
+
decodeFunctionResult(functionFragment: "add_liquidity", data: BytesLike): Result;
|
|
51
|
+
decodeFunctionResult(functionFragment: "allowance", data: BytesLike): Result;
|
|
52
|
+
decodeFunctionResult(functionFragment: "approve", data: BytesLike): Result;
|
|
53
|
+
decodeFunctionResult(functionFragment: "balanceOf", data: BytesLike): Result;
|
|
54
|
+
decodeFunctionResult(functionFragment: "balances", data: BytesLike): Result;
|
|
55
|
+
decodeFunctionResult(functionFragment: "coins", data: BytesLike): Result;
|
|
56
|
+
decodeFunctionResult(functionFragment: "decimals", data: BytesLike): Result;
|
|
57
|
+
decodeFunctionResult(functionFragment: "exchange", data: BytesLike): Result;
|
|
58
|
+
decodeFunctionResult(functionFragment: "fee", data: BytesLike): Result;
|
|
59
|
+
decodeFunctionResult(functionFragment: "getExchangeRate", data: BytesLike): Result;
|
|
60
|
+
decodeFunctionResult(functionFragment: "getTotalLiquidity", data: BytesLike): Result;
|
|
61
|
+
decodeFunctionResult(functionFragment: "getTotalValueLocked", data: BytesLike): Result;
|
|
62
|
+
decodeFunctionResult(functionFragment: "getUserLiquidity", data: BytesLike): Result;
|
|
63
|
+
decodeFunctionResult(functionFragment: "get_dy", data: BytesLike): Result;
|
|
64
|
+
decodeFunctionResult(functionFragment: "name", data: BytesLike): Result;
|
|
65
|
+
decodeFunctionResult(functionFragment: "owner", data: BytesLike): Result;
|
|
66
|
+
decodeFunctionResult(functionFragment: "remove_liquidity", data: BytesLike): Result;
|
|
67
|
+
decodeFunctionResult(functionFragment: "remove_liquidity_one_coin", data: BytesLike): Result;
|
|
68
|
+
decodeFunctionResult(functionFragment: "renounceOwnership", data: BytesLike): Result;
|
|
69
|
+
decodeFunctionResult(functionFragment: "symbol", data: BytesLike): Result;
|
|
70
|
+
decodeFunctionResult(functionFragment: "totalSupply", data: BytesLike): Result;
|
|
71
|
+
decodeFunctionResult(functionFragment: "transfer", data: BytesLike): Result;
|
|
72
|
+
decodeFunctionResult(functionFragment: "transferFrom", data: BytesLike): Result;
|
|
73
|
+
decodeFunctionResult(functionFragment: "transferOwnership", data: BytesLike): Result;
|
|
74
|
+
}
|
|
75
|
+
export declare namespace AddLiquidityEvent {
|
|
76
|
+
type InputTuple = [
|
|
77
|
+
provider: AddressLike,
|
|
78
|
+
token_amounts: [BigNumberish, BigNumberish],
|
|
79
|
+
fees: [BigNumberish, BigNumberish],
|
|
80
|
+
invariant: BigNumberish,
|
|
81
|
+
token_supply: BigNumberish
|
|
82
|
+
];
|
|
83
|
+
type OutputTuple = [
|
|
84
|
+
provider: string,
|
|
85
|
+
token_amounts: [bigint, bigint],
|
|
86
|
+
fees: [bigint, bigint],
|
|
87
|
+
invariant: bigint,
|
|
88
|
+
token_supply: bigint
|
|
89
|
+
];
|
|
90
|
+
interface OutputObject {
|
|
91
|
+
provider: string;
|
|
92
|
+
token_amounts: [bigint, bigint];
|
|
93
|
+
fees: [bigint, bigint];
|
|
94
|
+
invariant: bigint;
|
|
95
|
+
token_supply: bigint;
|
|
96
|
+
}
|
|
97
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
98
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
99
|
+
type Log = TypedEventLog<Event>;
|
|
100
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
101
|
+
}
|
|
102
|
+
export declare namespace ApprovalEvent {
|
|
103
|
+
type InputTuple = [
|
|
104
|
+
owner: AddressLike,
|
|
105
|
+
spender: AddressLike,
|
|
106
|
+
value: BigNumberish
|
|
107
|
+
];
|
|
108
|
+
type OutputTuple = [owner: string, spender: string, value: bigint];
|
|
109
|
+
interface OutputObject {
|
|
110
|
+
owner: string;
|
|
111
|
+
spender: string;
|
|
112
|
+
value: bigint;
|
|
113
|
+
}
|
|
114
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
115
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
116
|
+
type Log = TypedEventLog<Event>;
|
|
117
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
118
|
+
}
|
|
119
|
+
export declare namespace OwnershipTransferredEvent {
|
|
120
|
+
type InputTuple = [previousOwner: AddressLike, newOwner: AddressLike];
|
|
121
|
+
type OutputTuple = [previousOwner: string, newOwner: string];
|
|
122
|
+
interface OutputObject {
|
|
123
|
+
previousOwner: string;
|
|
124
|
+
newOwner: string;
|
|
125
|
+
}
|
|
126
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
127
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
128
|
+
type Log = TypedEventLog<Event>;
|
|
129
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
130
|
+
}
|
|
131
|
+
export declare namespace RemoveLiquidityEvent {
|
|
132
|
+
type InputTuple = [
|
|
133
|
+
provider: AddressLike,
|
|
134
|
+
token_amounts: [BigNumberish, BigNumberish],
|
|
135
|
+
fees: [BigNumberish, BigNumberish],
|
|
136
|
+
token_supply: BigNumberish
|
|
137
|
+
];
|
|
138
|
+
type OutputTuple = [
|
|
139
|
+
provider: string,
|
|
140
|
+
token_amounts: [bigint, bigint],
|
|
141
|
+
fees: [bigint, bigint],
|
|
142
|
+
token_supply: bigint
|
|
143
|
+
];
|
|
144
|
+
interface OutputObject {
|
|
145
|
+
provider: string;
|
|
146
|
+
token_amounts: [bigint, bigint];
|
|
147
|
+
fees: [bigint, bigint];
|
|
148
|
+
token_supply: bigint;
|
|
149
|
+
}
|
|
150
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
151
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
152
|
+
type Log = TypedEventLog<Event>;
|
|
153
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
154
|
+
}
|
|
155
|
+
export declare namespace RemoveLiquidityOneEvent {
|
|
156
|
+
type InputTuple = [
|
|
157
|
+
provider: AddressLike,
|
|
158
|
+
token_amount: BigNumberish,
|
|
159
|
+
coin_amount: BigNumberish,
|
|
160
|
+
token_supply: BigNumberish
|
|
161
|
+
];
|
|
162
|
+
type OutputTuple = [
|
|
163
|
+
provider: string,
|
|
164
|
+
token_amount: bigint,
|
|
165
|
+
coin_amount: bigint,
|
|
166
|
+
token_supply: bigint
|
|
167
|
+
];
|
|
168
|
+
interface OutputObject {
|
|
169
|
+
provider: string;
|
|
170
|
+
token_amount: bigint;
|
|
171
|
+
coin_amount: bigint;
|
|
172
|
+
token_supply: bigint;
|
|
173
|
+
}
|
|
174
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
175
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
176
|
+
type Log = TypedEventLog<Event>;
|
|
177
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
178
|
+
}
|
|
179
|
+
export declare namespace TokenExchangeEvent {
|
|
180
|
+
type InputTuple = [
|
|
181
|
+
buyer: AddressLike,
|
|
182
|
+
sold_id: BigNumberish,
|
|
183
|
+
tokens_sold: BigNumberish,
|
|
184
|
+
bought_id: BigNumberish,
|
|
185
|
+
tokens_bought: BigNumberish
|
|
186
|
+
];
|
|
187
|
+
type OutputTuple = [
|
|
188
|
+
buyer: string,
|
|
189
|
+
sold_id: bigint,
|
|
190
|
+
tokens_sold: bigint,
|
|
191
|
+
bought_id: bigint,
|
|
192
|
+
tokens_bought: bigint
|
|
193
|
+
];
|
|
194
|
+
interface OutputObject {
|
|
195
|
+
buyer: string;
|
|
196
|
+
sold_id: bigint;
|
|
197
|
+
tokens_sold: bigint;
|
|
198
|
+
bought_id: bigint;
|
|
199
|
+
tokens_bought: bigint;
|
|
200
|
+
}
|
|
201
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
202
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
203
|
+
type Log = TypedEventLog<Event>;
|
|
204
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
205
|
+
}
|
|
206
|
+
export declare namespace TransferEvent {
|
|
207
|
+
type InputTuple = [
|
|
208
|
+
from: AddressLike,
|
|
209
|
+
to: AddressLike,
|
|
210
|
+
value: BigNumberish
|
|
211
|
+
];
|
|
212
|
+
type OutputTuple = [from: string, to: string, value: bigint];
|
|
213
|
+
interface OutputObject {
|
|
214
|
+
from: string;
|
|
215
|
+
to: string;
|
|
216
|
+
value: bigint;
|
|
217
|
+
}
|
|
218
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
219
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
220
|
+
type Log = TypedEventLog<Event>;
|
|
221
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
222
|
+
}
|
|
223
|
+
export interface MockLiquidityPool extends BaseContract {
|
|
224
|
+
connect(runner?: ContractRunner | null): MockLiquidityPool;
|
|
225
|
+
waitForDeployment(): Promise<this>;
|
|
226
|
+
interface: MockLiquidityPoolInterface;
|
|
227
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
228
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
229
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
230
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
231
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
232
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
233
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
234
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
235
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
236
|
+
A: TypedContractMethod<[], [bigint], "view">;
|
|
237
|
+
ADMIN_FEE: TypedContractMethod<[], [bigint], "view">;
|
|
238
|
+
A_PRECISION: TypedContractMethod<[], [bigint], "view">;
|
|
239
|
+
A_precise: TypedContractMethod<[], [bigint], "view">;
|
|
240
|
+
FEE_DENOMINATOR: TypedContractMethod<[], [bigint], "view">;
|
|
241
|
+
MAX_A: TypedContractMethod<[], [bigint], "view">;
|
|
242
|
+
MAX_ADMIN_FEE: TypedContractMethod<[], [bigint], "view">;
|
|
243
|
+
MAX_FEE: TypedContractMethod<[], [bigint], "view">;
|
|
244
|
+
N_COINS: TypedContractMethod<[], [bigint], "view">;
|
|
245
|
+
PRECISION: TypedContractMethod<[], [bigint], "view">;
|
|
246
|
+
add_liquidity: TypedContractMethod<[
|
|
247
|
+
amounts: [BigNumberish, BigNumberish],
|
|
248
|
+
arg1: BigNumberish
|
|
249
|
+
], [
|
|
250
|
+
bigint
|
|
251
|
+
], "nonpayable">;
|
|
252
|
+
allowance: TypedContractMethod<[
|
|
253
|
+
owner: AddressLike,
|
|
254
|
+
spender: AddressLike
|
|
255
|
+
], [
|
|
256
|
+
bigint
|
|
257
|
+
], "view">;
|
|
258
|
+
approve: TypedContractMethod<[
|
|
259
|
+
spender: AddressLike,
|
|
260
|
+
value: BigNumberish
|
|
261
|
+
], [
|
|
262
|
+
boolean
|
|
263
|
+
], "nonpayable">;
|
|
264
|
+
balanceOf: TypedContractMethod<[account: AddressLike], [bigint], "view">;
|
|
265
|
+
balances: TypedContractMethod<[i: BigNumberish], [bigint], "view">;
|
|
266
|
+
coins: TypedContractMethod<[i: BigNumberish], [string], "view">;
|
|
267
|
+
decimals: TypedContractMethod<[], [bigint], "view">;
|
|
268
|
+
exchange: TypedContractMethod<[
|
|
269
|
+
i: BigNumberish,
|
|
270
|
+
j: BigNumberish,
|
|
271
|
+
dx: BigNumberish,
|
|
272
|
+
min_dy: BigNumberish
|
|
273
|
+
], [
|
|
274
|
+
bigint
|
|
275
|
+
], "nonpayable">;
|
|
276
|
+
fee: TypedContractMethod<[], [bigint], "view">;
|
|
277
|
+
getExchangeRate: TypedContractMethod<[
|
|
278
|
+
_pairedToken: AddressLike
|
|
279
|
+
], [
|
|
280
|
+
[bigint, bigint] & {
|
|
281
|
+
raacPerPaired: bigint;
|
|
282
|
+
pairedPerRaac: bigint;
|
|
283
|
+
}
|
|
284
|
+
], "view">;
|
|
285
|
+
getTotalLiquidity: TypedContractMethod<[
|
|
286
|
+
_pairedToken: AddressLike
|
|
287
|
+
], [
|
|
288
|
+
[bigint, bigint] & {
|
|
289
|
+
raacLiquidity: bigint;
|
|
290
|
+
pairedLiquidity: bigint;
|
|
291
|
+
}
|
|
292
|
+
], "view">;
|
|
293
|
+
getTotalValueLocked: TypedContractMethod<[], [bigint], "view">;
|
|
294
|
+
getUserLiquidity: TypedContractMethod<[
|
|
295
|
+
_pairedToken: AddressLike,
|
|
296
|
+
_user: AddressLike
|
|
297
|
+
], [
|
|
298
|
+
[
|
|
299
|
+
bigint,
|
|
300
|
+
bigint,
|
|
301
|
+
bigint
|
|
302
|
+
] & {
|
|
303
|
+
raacLiquidity: bigint;
|
|
304
|
+
pairedLiquidity: bigint;
|
|
305
|
+
lpAmount: bigint;
|
|
306
|
+
}
|
|
307
|
+
], "view">;
|
|
308
|
+
get_dy: TypedContractMethod<[
|
|
309
|
+
i: BigNumberish,
|
|
310
|
+
j: BigNumberish,
|
|
311
|
+
dx: BigNumberish
|
|
312
|
+
], [
|
|
313
|
+
bigint
|
|
314
|
+
], "view">;
|
|
315
|
+
name: TypedContractMethod<[], [string], "view">;
|
|
316
|
+
owner: TypedContractMethod<[], [string], "view">;
|
|
317
|
+
remove_liquidity: TypedContractMethod<[
|
|
318
|
+
_amount: BigNumberish,
|
|
319
|
+
min_amounts: [BigNumberish, BigNumberish]
|
|
320
|
+
], [
|
|
321
|
+
[bigint, bigint]
|
|
322
|
+
], "nonpayable">;
|
|
323
|
+
remove_liquidity_one_coin: TypedContractMethod<[
|
|
324
|
+
_token_amount: BigNumberish,
|
|
325
|
+
i: BigNumberish,
|
|
326
|
+
min_amount: BigNumberish
|
|
327
|
+
], [
|
|
328
|
+
bigint
|
|
329
|
+
], "nonpayable">;
|
|
330
|
+
renounceOwnership: TypedContractMethod<[], [void], "nonpayable">;
|
|
331
|
+
symbol: TypedContractMethod<[], [string], "view">;
|
|
332
|
+
totalSupply: TypedContractMethod<[], [bigint], "view">;
|
|
333
|
+
transfer: TypedContractMethod<[
|
|
334
|
+
to: AddressLike,
|
|
335
|
+
value: BigNumberish
|
|
336
|
+
], [
|
|
337
|
+
boolean
|
|
338
|
+
], "nonpayable">;
|
|
339
|
+
transferFrom: TypedContractMethod<[
|
|
340
|
+
from: AddressLike,
|
|
341
|
+
to: AddressLike,
|
|
342
|
+
value: BigNumberish
|
|
343
|
+
], [
|
|
344
|
+
boolean
|
|
345
|
+
], "nonpayable">;
|
|
346
|
+
transferOwnership: TypedContractMethod<[
|
|
347
|
+
newOwner: AddressLike
|
|
348
|
+
], [
|
|
349
|
+
void
|
|
350
|
+
], "nonpayable">;
|
|
351
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
352
|
+
getFunction(nameOrSignature: "A"): TypedContractMethod<[], [bigint], "view">;
|
|
353
|
+
getFunction(nameOrSignature: "ADMIN_FEE"): TypedContractMethod<[], [bigint], "view">;
|
|
354
|
+
getFunction(nameOrSignature: "A_PRECISION"): TypedContractMethod<[], [bigint], "view">;
|
|
355
|
+
getFunction(nameOrSignature: "A_precise"): TypedContractMethod<[], [bigint], "view">;
|
|
356
|
+
getFunction(nameOrSignature: "FEE_DENOMINATOR"): TypedContractMethod<[], [bigint], "view">;
|
|
357
|
+
getFunction(nameOrSignature: "MAX_A"): TypedContractMethod<[], [bigint], "view">;
|
|
358
|
+
getFunction(nameOrSignature: "MAX_ADMIN_FEE"): TypedContractMethod<[], [bigint], "view">;
|
|
359
|
+
getFunction(nameOrSignature: "MAX_FEE"): TypedContractMethod<[], [bigint], "view">;
|
|
360
|
+
getFunction(nameOrSignature: "N_COINS"): TypedContractMethod<[], [bigint], "view">;
|
|
361
|
+
getFunction(nameOrSignature: "PRECISION"): TypedContractMethod<[], [bigint], "view">;
|
|
362
|
+
getFunction(nameOrSignature: "add_liquidity"): TypedContractMethod<[
|
|
363
|
+
amounts: [BigNumberish, BigNumberish],
|
|
364
|
+
arg1: BigNumberish
|
|
365
|
+
], [
|
|
366
|
+
bigint
|
|
367
|
+
], "nonpayable">;
|
|
368
|
+
getFunction(nameOrSignature: "allowance"): TypedContractMethod<[
|
|
369
|
+
owner: AddressLike,
|
|
370
|
+
spender: AddressLike
|
|
371
|
+
], [
|
|
372
|
+
bigint
|
|
373
|
+
], "view">;
|
|
374
|
+
getFunction(nameOrSignature: "approve"): TypedContractMethod<[
|
|
375
|
+
spender: AddressLike,
|
|
376
|
+
value: BigNumberish
|
|
377
|
+
], [
|
|
378
|
+
boolean
|
|
379
|
+
], "nonpayable">;
|
|
380
|
+
getFunction(nameOrSignature: "balanceOf"): TypedContractMethod<[account: AddressLike], [bigint], "view">;
|
|
381
|
+
getFunction(nameOrSignature: "balances"): TypedContractMethod<[i: BigNumberish], [bigint], "view">;
|
|
382
|
+
getFunction(nameOrSignature: "coins"): TypedContractMethod<[i: BigNumberish], [string], "view">;
|
|
383
|
+
getFunction(nameOrSignature: "decimals"): TypedContractMethod<[], [bigint], "view">;
|
|
384
|
+
getFunction(nameOrSignature: "exchange"): TypedContractMethod<[
|
|
385
|
+
i: BigNumberish,
|
|
386
|
+
j: BigNumberish,
|
|
387
|
+
dx: BigNumberish,
|
|
388
|
+
min_dy: BigNumberish
|
|
389
|
+
], [
|
|
390
|
+
bigint
|
|
391
|
+
], "nonpayable">;
|
|
392
|
+
getFunction(nameOrSignature: "fee"): TypedContractMethod<[], [bigint], "view">;
|
|
393
|
+
getFunction(nameOrSignature: "getExchangeRate"): TypedContractMethod<[
|
|
394
|
+
_pairedToken: AddressLike
|
|
395
|
+
], [
|
|
396
|
+
[bigint, bigint] & {
|
|
397
|
+
raacPerPaired: bigint;
|
|
398
|
+
pairedPerRaac: bigint;
|
|
399
|
+
}
|
|
400
|
+
], "view">;
|
|
401
|
+
getFunction(nameOrSignature: "getTotalLiquidity"): TypedContractMethod<[
|
|
402
|
+
_pairedToken: AddressLike
|
|
403
|
+
], [
|
|
404
|
+
[bigint, bigint] & {
|
|
405
|
+
raacLiquidity: bigint;
|
|
406
|
+
pairedLiquidity: bigint;
|
|
407
|
+
}
|
|
408
|
+
], "view">;
|
|
409
|
+
getFunction(nameOrSignature: "getTotalValueLocked"): TypedContractMethod<[], [bigint], "view">;
|
|
410
|
+
getFunction(nameOrSignature: "getUserLiquidity"): TypedContractMethod<[
|
|
411
|
+
_pairedToken: AddressLike,
|
|
412
|
+
_user: AddressLike
|
|
413
|
+
], [
|
|
414
|
+
[
|
|
415
|
+
bigint,
|
|
416
|
+
bigint,
|
|
417
|
+
bigint
|
|
418
|
+
] & {
|
|
419
|
+
raacLiquidity: bigint;
|
|
420
|
+
pairedLiquidity: bigint;
|
|
421
|
+
lpAmount: bigint;
|
|
422
|
+
}
|
|
423
|
+
], "view">;
|
|
424
|
+
getFunction(nameOrSignature: "get_dy"): TypedContractMethod<[
|
|
425
|
+
i: BigNumberish,
|
|
426
|
+
j: BigNumberish,
|
|
427
|
+
dx: BigNumberish
|
|
428
|
+
], [
|
|
429
|
+
bigint
|
|
430
|
+
], "view">;
|
|
431
|
+
getFunction(nameOrSignature: "name"): TypedContractMethod<[], [string], "view">;
|
|
432
|
+
getFunction(nameOrSignature: "owner"): TypedContractMethod<[], [string], "view">;
|
|
433
|
+
getFunction(nameOrSignature: "remove_liquidity"): TypedContractMethod<[
|
|
434
|
+
_amount: BigNumberish,
|
|
435
|
+
min_amounts: [BigNumberish, BigNumberish]
|
|
436
|
+
], [
|
|
437
|
+
[bigint, bigint]
|
|
438
|
+
], "nonpayable">;
|
|
439
|
+
getFunction(nameOrSignature: "remove_liquidity_one_coin"): TypedContractMethod<[
|
|
440
|
+
_token_amount: BigNumberish,
|
|
441
|
+
i: BigNumberish,
|
|
442
|
+
min_amount: BigNumberish
|
|
443
|
+
], [
|
|
444
|
+
bigint
|
|
445
|
+
], "nonpayable">;
|
|
446
|
+
getFunction(nameOrSignature: "renounceOwnership"): TypedContractMethod<[], [void], "nonpayable">;
|
|
447
|
+
getFunction(nameOrSignature: "symbol"): TypedContractMethod<[], [string], "view">;
|
|
448
|
+
getFunction(nameOrSignature: "totalSupply"): TypedContractMethod<[], [bigint], "view">;
|
|
449
|
+
getFunction(nameOrSignature: "transfer"): TypedContractMethod<[
|
|
450
|
+
to: AddressLike,
|
|
451
|
+
value: BigNumberish
|
|
452
|
+
], [
|
|
453
|
+
boolean
|
|
454
|
+
], "nonpayable">;
|
|
455
|
+
getFunction(nameOrSignature: "transferFrom"): TypedContractMethod<[
|
|
456
|
+
from: AddressLike,
|
|
457
|
+
to: AddressLike,
|
|
458
|
+
value: BigNumberish
|
|
459
|
+
], [
|
|
460
|
+
boolean
|
|
461
|
+
], "nonpayable">;
|
|
462
|
+
getFunction(nameOrSignature: "transferOwnership"): TypedContractMethod<[newOwner: AddressLike], [void], "nonpayable">;
|
|
463
|
+
getEvent(key: "AddLiquidity"): TypedContractEvent<AddLiquidityEvent.InputTuple, AddLiquidityEvent.OutputTuple, AddLiquidityEvent.OutputObject>;
|
|
464
|
+
getEvent(key: "Approval"): TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
465
|
+
getEvent(key: "OwnershipTransferred"): TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
466
|
+
getEvent(key: "RemoveLiquidity"): TypedContractEvent<RemoveLiquidityEvent.InputTuple, RemoveLiquidityEvent.OutputTuple, RemoveLiquidityEvent.OutputObject>;
|
|
467
|
+
getEvent(key: "RemoveLiquidityOne"): TypedContractEvent<RemoveLiquidityOneEvent.InputTuple, RemoveLiquidityOneEvent.OutputTuple, RemoveLiquidityOneEvent.OutputObject>;
|
|
468
|
+
getEvent(key: "TokenExchange"): TypedContractEvent<TokenExchangeEvent.InputTuple, TokenExchangeEvent.OutputTuple, TokenExchangeEvent.OutputObject>;
|
|
469
|
+
getEvent(key: "Transfer"): TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
|
|
470
|
+
filters: {
|
|
471
|
+
"AddLiquidity(address,uint256[2],uint256[2],uint256,uint256)": TypedContractEvent<AddLiquidityEvent.InputTuple, AddLiquidityEvent.OutputTuple, AddLiquidityEvent.OutputObject>;
|
|
472
|
+
AddLiquidity: TypedContractEvent<AddLiquidityEvent.InputTuple, AddLiquidityEvent.OutputTuple, AddLiquidityEvent.OutputObject>;
|
|
473
|
+
"Approval(address,address,uint256)": TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
474
|
+
Approval: TypedContractEvent<ApprovalEvent.InputTuple, ApprovalEvent.OutputTuple, ApprovalEvent.OutputObject>;
|
|
475
|
+
"OwnershipTransferred(address,address)": TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
476
|
+
OwnershipTransferred: TypedContractEvent<OwnershipTransferredEvent.InputTuple, OwnershipTransferredEvent.OutputTuple, OwnershipTransferredEvent.OutputObject>;
|
|
477
|
+
"RemoveLiquidity(address,uint256[2],uint256[2],uint256)": TypedContractEvent<RemoveLiquidityEvent.InputTuple, RemoveLiquidityEvent.OutputTuple, RemoveLiquidityEvent.OutputObject>;
|
|
478
|
+
RemoveLiquidity: TypedContractEvent<RemoveLiquidityEvent.InputTuple, RemoveLiquidityEvent.OutputTuple, RemoveLiquidityEvent.OutputObject>;
|
|
479
|
+
"RemoveLiquidityOne(address,uint256,uint256,uint256)": TypedContractEvent<RemoveLiquidityOneEvent.InputTuple, RemoveLiquidityOneEvent.OutputTuple, RemoveLiquidityOneEvent.OutputObject>;
|
|
480
|
+
RemoveLiquidityOne: TypedContractEvent<RemoveLiquidityOneEvent.InputTuple, RemoveLiquidityOneEvent.OutputTuple, RemoveLiquidityOneEvent.OutputObject>;
|
|
481
|
+
"TokenExchange(address,int128,uint256,int128,uint256)": TypedContractEvent<TokenExchangeEvent.InputTuple, TokenExchangeEvent.OutputTuple, TokenExchangeEvent.OutputObject>;
|
|
482
|
+
TokenExchange: TypedContractEvent<TokenExchangeEvent.InputTuple, TokenExchangeEvent.OutputTuple, TokenExchangeEvent.OutputObject>;
|
|
483
|
+
"Transfer(address,address,uint256)": TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
|
|
484
|
+
Transfer: TypedContractEvent<TransferEvent.InputTuple, TransferEvent.OutputTuple, TransferEvent.OutputObject>;
|
|
485
|
+
};
|
|
486
|
+
}
|
|
@@ -1,4 +1,6 @@
|
|
|
1
1
|
export type { MockLendingPool } from "./MockLendingPool";
|
|
2
|
+
export type { MockLendingPoolCollector } from "./MockLendingPoolCollector";
|
|
2
3
|
export type { MockLendingPoolDebtToken } from "./MockLendingPoolDebtToken";
|
|
4
|
+
export type { MockLiquidityPool } from "./MockLiquidityPool";
|
|
3
5
|
export type { MockPool } from "./MockPool";
|
|
4
6
|
export type { MockStabilityPool } from "./MockStabilityPool";
|
package/dist/types/typechain-types/contracts/mocks/core/primitives/MockDistributableContract.d.ts
ADDED
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../../common";
|
|
3
|
+
export interface MockDistributableContractInterface extends Interface {
|
|
4
|
+
getFunction(nameOrSignature: "distributeRewards"): FunctionFragment;
|
|
5
|
+
encodeFunctionData(functionFragment: "distributeRewards", values: [AddressLike, BigNumberish]): string;
|
|
6
|
+
decodeFunctionResult(functionFragment: "distributeRewards", data: BytesLike): Result;
|
|
7
|
+
}
|
|
8
|
+
export interface MockDistributableContract extends BaseContract {
|
|
9
|
+
connect(runner?: ContractRunner | null): MockDistributableContract;
|
|
10
|
+
waitForDeployment(): Promise<this>;
|
|
11
|
+
interface: MockDistributableContractInterface;
|
|
12
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
13
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
14
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
15
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
16
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
17
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
18
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
19
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
20
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
21
|
+
distributeRewards: TypedContractMethod<[
|
|
22
|
+
token: AddressLike,
|
|
23
|
+
amount: BigNumberish
|
|
24
|
+
], [
|
|
25
|
+
boolean
|
|
26
|
+
], "nonpayable">;
|
|
27
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
28
|
+
getFunction(nameOrSignature: "distributeRewards"): TypedContractMethod<[
|
|
29
|
+
token: AddressLike,
|
|
30
|
+
amount: BigNumberish
|
|
31
|
+
], [
|
|
32
|
+
boolean
|
|
33
|
+
], "nonpayable">;
|
|
34
|
+
filters: {};
|
|
35
|
+
}
|