@raac/rpc 1.0.1 → 1.0.2-beta.1
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/17000.json +127 -0
- package/dist/configs/chains/8453.json +26 -14
- package/dist/configs/chains/index.js +2 -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/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 +2 -0
- package/dist/types/configs/createConfig.d.ts +6 -0
- package/dist/types/configs/index.d.ts +1 -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 +2 -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
package/dist/types/typechain-types/contracts/interfaces/core/minters/RAACMinter/IRAACMinter.d.ts
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../../../../common";
|
|
3
3
|
export interface IRAACMinterInterface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "emergencyShutdown" | "getEmissionRate" | "getExcessTokens" | "getTotalSupply" | "
|
|
5
|
-
getEvent(nameOrSignatureOrTopic: "AdjustmentFactorUpdated" | "BenchmarkRateUpdated" | "EmergencyShutdown" | "EmissionRateUpdated" | "EmissionUpdateIntervalUpdated" | "LastUpdateBlockSet" | "MaxEmissionRateUpdated" | "MinEmissionRateUpdated" | "ParameterUpdated" | "RAACMinted" | "RAACTokenOwnershipTransferInitiated" | "RAACTokenOwnershipTransferred" | "UtilizationTargetUpdated"): EventFragment;
|
|
4
|
+
getFunction(nameOrSignature: "emergencyShutdown" | "getEmissionRate" | "getExcessTokens" | "getTotalSupply" | "setBurnTaxRate" | "setFeeCollector" | "setLendingPool" | "setStabilityPool" | "setSwapTaxRate" | "tick" | "updateBenchmarkRate" | "updateEmissionRate"): FunctionFragment;
|
|
5
|
+
getEvent(nameOrSignatureOrTopic: "AdjustmentFactorUpdated" | "BenchmarkRateUpdated" | "DistributionFailed" | "DistributionPoolUpdated" | "EmergencyShutdown" | "EmissionRateUpdated" | "EmissionUpdateIntervalUpdated" | "LastUpdateBlockSet" | "MaxEmissionRateUpdated" | "MinEmissionRateUpdated" | "ParameterUpdated" | "RAACMinted" | "RAACTokenOwnershipTransferInitiated" | "RAACTokenOwnershipTransferred" | "RewardsDistributed" | "UtilizationTargetUpdated"): EventFragment;
|
|
6
6
|
encodeFunctionData(functionFragment: "emergencyShutdown", values: [boolean, BigNumberish]): string;
|
|
7
7
|
encodeFunctionData(functionFragment: "getEmissionRate", values?: undefined): string;
|
|
8
8
|
encodeFunctionData(functionFragment: "getExcessTokens", values?: undefined): string;
|
|
9
9
|
encodeFunctionData(functionFragment: "getTotalSupply", values?: undefined): string;
|
|
10
|
-
encodeFunctionData(functionFragment: "mintRewards", values: [AddressLike, BigNumberish]): string;
|
|
11
10
|
encodeFunctionData(functionFragment: "setBurnTaxRate", values: [BigNumberish]): string;
|
|
12
11
|
encodeFunctionData(functionFragment: "setFeeCollector", values: [AddressLike]): string;
|
|
13
12
|
encodeFunctionData(functionFragment: "setLendingPool", values: [AddressLike]): string;
|
|
@@ -15,12 +14,11 @@ export interface IRAACMinterInterface extends Interface {
|
|
|
15
14
|
encodeFunctionData(functionFragment: "setSwapTaxRate", values: [BigNumberish]): string;
|
|
16
15
|
encodeFunctionData(functionFragment: "tick", values?: undefined): string;
|
|
17
16
|
encodeFunctionData(functionFragment: "updateBenchmarkRate", values: [BigNumberish]): string;
|
|
18
|
-
encodeFunctionData(functionFragment: "updateEmissionRate", values
|
|
17
|
+
encodeFunctionData(functionFragment: "updateEmissionRate", values: [BigNumberish]): string;
|
|
19
18
|
decodeFunctionResult(functionFragment: "emergencyShutdown", data: BytesLike): Result;
|
|
20
19
|
decodeFunctionResult(functionFragment: "getEmissionRate", data: BytesLike): Result;
|
|
21
20
|
decodeFunctionResult(functionFragment: "getExcessTokens", data: BytesLike): Result;
|
|
22
21
|
decodeFunctionResult(functionFragment: "getTotalSupply", data: BytesLike): Result;
|
|
23
|
-
decodeFunctionResult(functionFragment: "mintRewards", data: BytesLike): Result;
|
|
24
22
|
decodeFunctionResult(functionFragment: "setBurnTaxRate", data: BytesLike): Result;
|
|
25
23
|
decodeFunctionResult(functionFragment: "setFeeCollector", data: BytesLike): Result;
|
|
26
24
|
decodeFunctionResult(functionFragment: "setLendingPool", data: BytesLike): Result;
|
|
@@ -54,6 +52,30 @@ export declare namespace BenchmarkRateUpdatedEvent {
|
|
|
54
52
|
type Log = TypedEventLog<Event>;
|
|
55
53
|
type LogDescription = TypedLogDescription<Event>;
|
|
56
54
|
}
|
|
55
|
+
export declare namespace DistributionFailedEvent {
|
|
56
|
+
type InputTuple = [pool: AddressLike, amount: BigNumberish];
|
|
57
|
+
type OutputTuple = [pool: string, amount: bigint];
|
|
58
|
+
interface OutputObject {
|
|
59
|
+
pool: string;
|
|
60
|
+
amount: bigint;
|
|
61
|
+
}
|
|
62
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
63
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
64
|
+
type Log = TypedEventLog<Event>;
|
|
65
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
66
|
+
}
|
|
67
|
+
export declare namespace DistributionPoolUpdatedEvent {
|
|
68
|
+
type InputTuple = [pool: AddressLike, weight: BigNumberish];
|
|
69
|
+
type OutputTuple = [pool: string, weight: bigint];
|
|
70
|
+
interface OutputObject {
|
|
71
|
+
pool: string;
|
|
72
|
+
weight: bigint;
|
|
73
|
+
}
|
|
74
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
75
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
76
|
+
type Log = TypedEventLog<Event>;
|
|
77
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
78
|
+
}
|
|
57
79
|
export declare namespace EmergencyShutdownEvent {
|
|
58
80
|
type InputTuple = [
|
|
59
81
|
initiator: AddressLike,
|
|
@@ -70,9 +92,10 @@ export declare namespace EmergencyShutdownEvent {
|
|
|
70
92
|
type LogDescription = TypedLogDescription<Event>;
|
|
71
93
|
}
|
|
72
94
|
export declare namespace EmissionRateUpdatedEvent {
|
|
73
|
-
type InputTuple = [newRate: BigNumberish];
|
|
74
|
-
type OutputTuple = [newRate: bigint];
|
|
95
|
+
type InputTuple = [oldRate: BigNumberish, newRate: BigNumberish];
|
|
96
|
+
type OutputTuple = [oldRate: bigint, newRate: bigint];
|
|
75
97
|
interface OutputObject {
|
|
98
|
+
oldRate: bigint;
|
|
76
99
|
newRate: bigint;
|
|
77
100
|
}
|
|
78
101
|
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
@@ -176,6 +199,18 @@ export declare namespace RAACTokenOwnershipTransferredEvent {
|
|
|
176
199
|
type Log = TypedEventLog<Event>;
|
|
177
200
|
type LogDescription = TypedLogDescription<Event>;
|
|
178
201
|
}
|
|
202
|
+
export declare namespace RewardsDistributedEvent {
|
|
203
|
+
type InputTuple = [pool: AddressLike, amount: BigNumberish];
|
|
204
|
+
type OutputTuple = [pool: string, amount: bigint];
|
|
205
|
+
interface OutputObject {
|
|
206
|
+
pool: string;
|
|
207
|
+
amount: bigint;
|
|
208
|
+
}
|
|
209
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
210
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
211
|
+
type Log = TypedEventLog<Event>;
|
|
212
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
213
|
+
}
|
|
179
214
|
export declare namespace UtilizationTargetUpdatedEvent {
|
|
180
215
|
type InputTuple = [oldTarget: BigNumberish, newTarget: BigNumberish];
|
|
181
216
|
type OutputTuple = [oldTarget: bigint, newTarget: bigint];
|
|
@@ -210,12 +245,6 @@ export interface IRAACMinter extends BaseContract {
|
|
|
210
245
|
getEmissionRate: TypedContractMethod<[], [bigint], "view">;
|
|
211
246
|
getExcessTokens: TypedContractMethod<[], [bigint], "view">;
|
|
212
247
|
getTotalSupply: TypedContractMethod<[], [bigint], "view">;
|
|
213
|
-
mintRewards: TypedContractMethod<[
|
|
214
|
-
to: AddressLike,
|
|
215
|
-
amount: BigNumberish
|
|
216
|
-
], [
|
|
217
|
-
void
|
|
218
|
-
], "nonpayable">;
|
|
219
248
|
setBurnTaxRate: TypedContractMethod<[
|
|
220
249
|
_burnTaxRate: BigNumberish
|
|
221
250
|
], [
|
|
@@ -247,7 +276,11 @@ export interface IRAACMinter extends BaseContract {
|
|
|
247
276
|
], [
|
|
248
277
|
void
|
|
249
278
|
], "nonpayable">;
|
|
250
|
-
updateEmissionRate: TypedContractMethod<[
|
|
279
|
+
updateEmissionRate: TypedContractMethod<[
|
|
280
|
+
_newRate: BigNumberish
|
|
281
|
+
], [
|
|
282
|
+
void
|
|
283
|
+
], "nonpayable">;
|
|
251
284
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
252
285
|
getFunction(nameOrSignature: "emergencyShutdown"): TypedContractMethod<[
|
|
253
286
|
updateLastBlock: boolean,
|
|
@@ -258,12 +291,6 @@ export interface IRAACMinter extends BaseContract {
|
|
|
258
291
|
getFunction(nameOrSignature: "getEmissionRate"): TypedContractMethod<[], [bigint], "view">;
|
|
259
292
|
getFunction(nameOrSignature: "getExcessTokens"): TypedContractMethod<[], [bigint], "view">;
|
|
260
293
|
getFunction(nameOrSignature: "getTotalSupply"): TypedContractMethod<[], [bigint], "view">;
|
|
261
|
-
getFunction(nameOrSignature: "mintRewards"): TypedContractMethod<[
|
|
262
|
-
to: AddressLike,
|
|
263
|
-
amount: BigNumberish
|
|
264
|
-
], [
|
|
265
|
-
void
|
|
266
|
-
], "nonpayable">;
|
|
267
294
|
getFunction(nameOrSignature: "setBurnTaxRate"): TypedContractMethod<[_burnTaxRate: BigNumberish], [void], "nonpayable">;
|
|
268
295
|
getFunction(nameOrSignature: "setFeeCollector"): TypedContractMethod<[_feeCollector: AddressLike], [void], "nonpayable">;
|
|
269
296
|
getFunction(nameOrSignature: "setLendingPool"): TypedContractMethod<[_lendingPool: AddressLike], [void], "nonpayable">;
|
|
@@ -271,9 +298,11 @@ export interface IRAACMinter extends BaseContract {
|
|
|
271
298
|
getFunction(nameOrSignature: "setSwapTaxRate"): TypedContractMethod<[_swapTaxRate: BigNumberish], [void], "nonpayable">;
|
|
272
299
|
getFunction(nameOrSignature: "tick"): TypedContractMethod<[], [void], "nonpayable">;
|
|
273
300
|
getFunction(nameOrSignature: "updateBenchmarkRate"): TypedContractMethod<[_newRate: BigNumberish], [void], "nonpayable">;
|
|
274
|
-
getFunction(nameOrSignature: "updateEmissionRate"): TypedContractMethod<[], [void], "nonpayable">;
|
|
301
|
+
getFunction(nameOrSignature: "updateEmissionRate"): TypedContractMethod<[_newRate: BigNumberish], [void], "nonpayable">;
|
|
275
302
|
getEvent(key: "AdjustmentFactorUpdated"): TypedContractEvent<AdjustmentFactorUpdatedEvent.InputTuple, AdjustmentFactorUpdatedEvent.OutputTuple, AdjustmentFactorUpdatedEvent.OutputObject>;
|
|
276
303
|
getEvent(key: "BenchmarkRateUpdated"): TypedContractEvent<BenchmarkRateUpdatedEvent.InputTuple, BenchmarkRateUpdatedEvent.OutputTuple, BenchmarkRateUpdatedEvent.OutputObject>;
|
|
304
|
+
getEvent(key: "DistributionFailed"): TypedContractEvent<DistributionFailedEvent.InputTuple, DistributionFailedEvent.OutputTuple, DistributionFailedEvent.OutputObject>;
|
|
305
|
+
getEvent(key: "DistributionPoolUpdated"): TypedContractEvent<DistributionPoolUpdatedEvent.InputTuple, DistributionPoolUpdatedEvent.OutputTuple, DistributionPoolUpdatedEvent.OutputObject>;
|
|
277
306
|
getEvent(key: "EmergencyShutdown"): TypedContractEvent<EmergencyShutdownEvent.InputTuple, EmergencyShutdownEvent.OutputTuple, EmergencyShutdownEvent.OutputObject>;
|
|
278
307
|
getEvent(key: "EmissionRateUpdated"): TypedContractEvent<EmissionRateUpdatedEvent.InputTuple, EmissionRateUpdatedEvent.OutputTuple, EmissionRateUpdatedEvent.OutputObject>;
|
|
279
308
|
getEvent(key: "EmissionUpdateIntervalUpdated"): TypedContractEvent<EmissionUpdateIntervalUpdatedEvent.InputTuple, EmissionUpdateIntervalUpdatedEvent.OutputTuple, EmissionUpdateIntervalUpdatedEvent.OutputObject>;
|
|
@@ -284,15 +313,20 @@ export interface IRAACMinter extends BaseContract {
|
|
|
284
313
|
getEvent(key: "RAACMinted"): TypedContractEvent<RAACMintedEvent.InputTuple, RAACMintedEvent.OutputTuple, RAACMintedEvent.OutputObject>;
|
|
285
314
|
getEvent(key: "RAACTokenOwnershipTransferInitiated"): TypedContractEvent<RAACTokenOwnershipTransferInitiatedEvent.InputTuple, RAACTokenOwnershipTransferInitiatedEvent.OutputTuple, RAACTokenOwnershipTransferInitiatedEvent.OutputObject>;
|
|
286
315
|
getEvent(key: "RAACTokenOwnershipTransferred"): TypedContractEvent<RAACTokenOwnershipTransferredEvent.InputTuple, RAACTokenOwnershipTransferredEvent.OutputTuple, RAACTokenOwnershipTransferredEvent.OutputObject>;
|
|
316
|
+
getEvent(key: "RewardsDistributed"): TypedContractEvent<RewardsDistributedEvent.InputTuple, RewardsDistributedEvent.OutputTuple, RewardsDistributedEvent.OutputObject>;
|
|
287
317
|
getEvent(key: "UtilizationTargetUpdated"): TypedContractEvent<UtilizationTargetUpdatedEvent.InputTuple, UtilizationTargetUpdatedEvent.OutputTuple, UtilizationTargetUpdatedEvent.OutputObject>;
|
|
288
318
|
filters: {
|
|
289
319
|
"AdjustmentFactorUpdated(uint256,uint256)": TypedContractEvent<AdjustmentFactorUpdatedEvent.InputTuple, AdjustmentFactorUpdatedEvent.OutputTuple, AdjustmentFactorUpdatedEvent.OutputObject>;
|
|
290
320
|
AdjustmentFactorUpdated: TypedContractEvent<AdjustmentFactorUpdatedEvent.InputTuple, AdjustmentFactorUpdatedEvent.OutputTuple, AdjustmentFactorUpdatedEvent.OutputObject>;
|
|
291
321
|
"BenchmarkRateUpdated(uint256,uint256)": TypedContractEvent<BenchmarkRateUpdatedEvent.InputTuple, BenchmarkRateUpdatedEvent.OutputTuple, BenchmarkRateUpdatedEvent.OutputObject>;
|
|
292
322
|
BenchmarkRateUpdated: TypedContractEvent<BenchmarkRateUpdatedEvent.InputTuple, BenchmarkRateUpdatedEvent.OutputTuple, BenchmarkRateUpdatedEvent.OutputObject>;
|
|
323
|
+
"DistributionFailed(address,uint256)": TypedContractEvent<DistributionFailedEvent.InputTuple, DistributionFailedEvent.OutputTuple, DistributionFailedEvent.OutputObject>;
|
|
324
|
+
DistributionFailed: TypedContractEvent<DistributionFailedEvent.InputTuple, DistributionFailedEvent.OutputTuple, DistributionFailedEvent.OutputObject>;
|
|
325
|
+
"DistributionPoolUpdated(address,uint256)": TypedContractEvent<DistributionPoolUpdatedEvent.InputTuple, DistributionPoolUpdatedEvent.OutputTuple, DistributionPoolUpdatedEvent.OutputObject>;
|
|
326
|
+
DistributionPoolUpdated: TypedContractEvent<DistributionPoolUpdatedEvent.InputTuple, DistributionPoolUpdatedEvent.OutputTuple, DistributionPoolUpdatedEvent.OutputObject>;
|
|
293
327
|
"EmergencyShutdown(address,uint256)": TypedContractEvent<EmergencyShutdownEvent.InputTuple, EmergencyShutdownEvent.OutputTuple, EmergencyShutdownEvent.OutputObject>;
|
|
294
328
|
EmergencyShutdown: TypedContractEvent<EmergencyShutdownEvent.InputTuple, EmergencyShutdownEvent.OutputTuple, EmergencyShutdownEvent.OutputObject>;
|
|
295
|
-
"EmissionRateUpdated(uint256)": TypedContractEvent<EmissionRateUpdatedEvent.InputTuple, EmissionRateUpdatedEvent.OutputTuple, EmissionRateUpdatedEvent.OutputObject>;
|
|
329
|
+
"EmissionRateUpdated(uint256,uint256)": TypedContractEvent<EmissionRateUpdatedEvent.InputTuple, EmissionRateUpdatedEvent.OutputTuple, EmissionRateUpdatedEvent.OutputObject>;
|
|
296
330
|
EmissionRateUpdated: TypedContractEvent<EmissionRateUpdatedEvent.InputTuple, EmissionRateUpdatedEvent.OutputTuple, EmissionRateUpdatedEvent.OutputObject>;
|
|
297
331
|
"EmissionUpdateIntervalUpdated(uint256,uint256)": TypedContractEvent<EmissionUpdateIntervalUpdatedEvent.InputTuple, EmissionUpdateIntervalUpdatedEvent.OutputTuple, EmissionUpdateIntervalUpdatedEvent.OutputObject>;
|
|
298
332
|
EmissionUpdateIntervalUpdated: TypedContractEvent<EmissionUpdateIntervalUpdatedEvent.InputTuple, EmissionUpdateIntervalUpdatedEvent.OutputTuple, EmissionUpdateIntervalUpdatedEvent.OutputObject>;
|
|
@@ -310,6 +344,8 @@ export interface IRAACMinter extends BaseContract {
|
|
|
310
344
|
RAACTokenOwnershipTransferInitiated: TypedContractEvent<RAACTokenOwnershipTransferInitiatedEvent.InputTuple, RAACTokenOwnershipTransferInitiatedEvent.OutputTuple, RAACTokenOwnershipTransferInitiatedEvent.OutputObject>;
|
|
311
345
|
"RAACTokenOwnershipTransferred(address)": TypedContractEvent<RAACTokenOwnershipTransferredEvent.InputTuple, RAACTokenOwnershipTransferredEvent.OutputTuple, RAACTokenOwnershipTransferredEvent.OutputObject>;
|
|
312
346
|
RAACTokenOwnershipTransferred: TypedContractEvent<RAACTokenOwnershipTransferredEvent.InputTuple, RAACTokenOwnershipTransferredEvent.OutputTuple, RAACTokenOwnershipTransferredEvent.OutputObject>;
|
|
347
|
+
"RewardsDistributed(address,uint256)": TypedContractEvent<RewardsDistributedEvent.InputTuple, RewardsDistributedEvent.OutputTuple, RewardsDistributedEvent.OutputObject>;
|
|
348
|
+
RewardsDistributed: TypedContractEvent<RewardsDistributedEvent.InputTuple, RewardsDistributedEvent.OutputTuple, RewardsDistributedEvent.OutputObject>;
|
|
313
349
|
"UtilizationTargetUpdated(uint256,uint256)": TypedContractEvent<UtilizationTargetUpdatedEvent.InputTuple, UtilizationTargetUpdatedEvent.OutputTuple, UtilizationTargetUpdatedEvent.OutputObject>;
|
|
314
350
|
UtilizationTargetUpdated: TypedContractEvent<UtilizationTargetUpdatedEvent.InputTuple, UtilizationTargetUpdatedEvent.OutputTuple, UtilizationTargetUpdatedEvent.OutputObject>;
|
|
315
351
|
};
|
|
@@ -28,7 +28,7 @@ export declare namespace IReleaseOrchestrator {
|
|
|
28
28
|
export interface IReleaseOrchestratorInterface extends Interface {
|
|
29
29
|
getFunction(nameOrSignature: "createVestingSchedule" | "emergencyRevoke" | "getCategoryDetails" | "getTotalAllocation" | "getVestingSchedule" | "release" | "setEmergencyShutdown" | "updateCategoryAllocation"): FunctionFragment;
|
|
30
30
|
getEvent(nameOrSignatureOrTopic: "CategoryAllocationUpdated" | "EmergencyShutdown" | "EmergencyWithdraw" | "TokensReleased" | "VestingScheduleCreated" | "VestingScheduleRevoked"): EventFragment;
|
|
31
|
-
encodeFunctionData(functionFragment: "createVestingSchedule", values: [AddressLike, BytesLike, BigNumberish, BigNumberish]): string;
|
|
31
|
+
encodeFunctionData(functionFragment: "createVestingSchedule", values: [AddressLike, BytesLike, BigNumberish, BigNumberish, BigNumberish]): string;
|
|
32
32
|
encodeFunctionData(functionFragment: "emergencyRevoke", values: [AddressLike]): string;
|
|
33
33
|
encodeFunctionData(functionFragment: "getCategoryDetails", values: [BytesLike]): string;
|
|
34
34
|
encodeFunctionData(functionFragment: "getTotalAllocation", values?: undefined): string;
|
|
@@ -145,7 +145,8 @@ export interface IReleaseOrchestrator extends BaseContract {
|
|
|
145
145
|
beneficiary: AddressLike,
|
|
146
146
|
category: BytesLike,
|
|
147
147
|
amount: BigNumberish,
|
|
148
|
-
startTime: BigNumberish
|
|
148
|
+
startTime: BigNumberish,
|
|
149
|
+
vestingDuration: BigNumberish
|
|
149
150
|
], [
|
|
150
151
|
void
|
|
151
152
|
], "nonpayable">;
|
|
@@ -185,7 +186,8 @@ export interface IReleaseOrchestrator extends BaseContract {
|
|
|
185
186
|
beneficiary: AddressLike,
|
|
186
187
|
category: BytesLike,
|
|
187
188
|
amount: BigNumberish,
|
|
188
|
-
startTime: BigNumberish
|
|
189
|
+
startTime: BigNumberish,
|
|
190
|
+
vestingDuration: BigNumberish
|
|
189
191
|
], [
|
|
190
192
|
void
|
|
191
193
|
], "nonpayable">;
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, EventFragment, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
|
+
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedLogDescription, TypedListener, TypedContractMethod } from "../../../../common";
|
|
3
|
+
export declare namespace IBaseVRFv2Consumer {
|
|
4
|
+
type RequestStatusStruct = {
|
|
5
|
+
fulfilled: boolean;
|
|
6
|
+
exists: boolean;
|
|
7
|
+
randomWords: BigNumberish[];
|
|
8
|
+
};
|
|
9
|
+
type RequestStatusStructOutput = [
|
|
10
|
+
fulfilled: boolean,
|
|
11
|
+
exists: boolean,
|
|
12
|
+
randomWords: bigint[]
|
|
13
|
+
] & {
|
|
14
|
+
fulfilled: boolean;
|
|
15
|
+
exists: boolean;
|
|
16
|
+
randomWords: bigint[];
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export interface IBaseVRFv2ConsumerInterface extends Interface {
|
|
20
|
+
getFunction(nameOrSignature: "getRequestStatus" | "requestRandomWords"): FunctionFragment;
|
|
21
|
+
getEvent(nameOrSignatureOrTopic: "RequestFulfilled" | "RequestSent"): EventFragment;
|
|
22
|
+
encodeFunctionData(functionFragment: "getRequestStatus", values?: undefined): string;
|
|
23
|
+
encodeFunctionData(functionFragment: "requestRandomWords", values?: undefined): string;
|
|
24
|
+
decodeFunctionResult(functionFragment: "getRequestStatus", data: BytesLike): Result;
|
|
25
|
+
decodeFunctionResult(functionFragment: "requestRandomWords", data: BytesLike): Result;
|
|
26
|
+
}
|
|
27
|
+
export declare namespace RequestFulfilledEvent {
|
|
28
|
+
type InputTuple = [
|
|
29
|
+
requestId: BigNumberish,
|
|
30
|
+
randomWords: BigNumberish[]
|
|
31
|
+
];
|
|
32
|
+
type OutputTuple = [requestId: bigint, randomWords: bigint[]];
|
|
33
|
+
interface OutputObject {
|
|
34
|
+
requestId: bigint;
|
|
35
|
+
randomWords: bigint[];
|
|
36
|
+
}
|
|
37
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
38
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
39
|
+
type Log = TypedEventLog<Event>;
|
|
40
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
41
|
+
}
|
|
42
|
+
export declare namespace RequestSentEvent {
|
|
43
|
+
type InputTuple = [requestId: BigNumberish, numWords: BigNumberish];
|
|
44
|
+
type OutputTuple = [requestId: bigint, numWords: bigint];
|
|
45
|
+
interface OutputObject {
|
|
46
|
+
requestId: bigint;
|
|
47
|
+
numWords: bigint;
|
|
48
|
+
}
|
|
49
|
+
type Event = TypedContractEvent<InputTuple, OutputTuple, OutputObject>;
|
|
50
|
+
type Filter = TypedDeferredTopicFilter<Event>;
|
|
51
|
+
type Log = TypedEventLog<Event>;
|
|
52
|
+
type LogDescription = TypedLogDescription<Event>;
|
|
53
|
+
}
|
|
54
|
+
export interface IBaseVRFv2Consumer extends BaseContract {
|
|
55
|
+
connect(runner?: ContractRunner | null): IBaseVRFv2Consumer;
|
|
56
|
+
waitForDeployment(): Promise<this>;
|
|
57
|
+
interface: IBaseVRFv2ConsumerInterface;
|
|
58
|
+
queryFilter<TCEvent extends TypedContractEvent>(event: TCEvent, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
59
|
+
queryFilter<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, fromBlockOrBlockhash?: string | number | undefined, toBlock?: string | number | undefined): Promise<Array<TypedEventLog<TCEvent>>>;
|
|
60
|
+
on<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
61
|
+
on<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
62
|
+
once<TCEvent extends TypedContractEvent>(event: TCEvent, listener: TypedListener<TCEvent>): Promise<this>;
|
|
63
|
+
once<TCEvent extends TypedContractEvent>(filter: TypedDeferredTopicFilter<TCEvent>, listener: TypedListener<TCEvent>): Promise<this>;
|
|
64
|
+
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
65
|
+
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
66
|
+
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
67
|
+
getRequestStatus: TypedContractMethod<[
|
|
68
|
+
], [
|
|
69
|
+
IBaseVRFv2Consumer.RequestStatusStructOutput
|
|
70
|
+
], "view">;
|
|
71
|
+
requestRandomWords: TypedContractMethod<[], [bigint], "nonpayable">;
|
|
72
|
+
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
73
|
+
getFunction(nameOrSignature: "getRequestStatus"): TypedContractMethod<[
|
|
74
|
+
], [
|
|
75
|
+
IBaseVRFv2Consumer.RequestStatusStructOutput
|
|
76
|
+
], "view">;
|
|
77
|
+
getFunction(nameOrSignature: "requestRandomWords"): TypedContractMethod<[], [bigint], "nonpayable">;
|
|
78
|
+
getEvent(key: "RequestFulfilled"): TypedContractEvent<RequestFulfilledEvent.InputTuple, RequestFulfilledEvent.OutputTuple, RequestFulfilledEvent.OutputObject>;
|
|
79
|
+
getEvent(key: "RequestSent"): TypedContractEvent<RequestSentEvent.InputTuple, RequestSentEvent.OutputTuple, RequestSentEvent.OutputObject>;
|
|
80
|
+
filters: {
|
|
81
|
+
"RequestFulfilled(uint256,uint256[])": TypedContractEvent<RequestFulfilledEvent.InputTuple, RequestFulfilledEvent.OutputTuple, RequestFulfilledEvent.OutputObject>;
|
|
82
|
+
RequestFulfilled: TypedContractEvent<RequestFulfilledEvent.InputTuple, RequestFulfilledEvent.OutputTuple, RequestFulfilledEvent.OutputObject>;
|
|
83
|
+
"RequestSent(uint256,uint32)": TypedContractEvent<RequestSentEvent.InputTuple, RequestSentEvent.OutputTuple, RequestSentEvent.OutputObject>;
|
|
84
|
+
RequestSent: TypedContractEvent<RequestSentEvent.InputTuple, RequestSentEvent.OutputTuple, RequestSentEvent.OutputObject>;
|
|
85
|
+
};
|
|
86
|
+
}
|
|
@@ -1,25 +1,33 @@
|
|
|
1
1
|
import type { BaseContract, BigNumberish, BytesLike, FunctionFragment, Result, Interface, AddressLike, ContractRunner, ContractMethod, Listener } from "ethers";
|
|
2
2
|
import type { TypedContractEvent, TypedDeferredTopicFilter, TypedEventLog, TypedListener, TypedContractMethod } from "../../../../common";
|
|
3
3
|
export interface ILiquidityPoolInterface extends Interface {
|
|
4
|
-
getFunction(nameOrSignature: "
|
|
5
|
-
encodeFunctionData(functionFragment: "
|
|
6
|
-
encodeFunctionData(functionFragment: "
|
|
4
|
+
getFunction(nameOrSignature: "A" | "add_liquidity" | "balances" | "coins" | "exchange" | "fee" | "getExchangeRate" | "getTotalLiquidity" | "getTotalValueLocked" | "getUserLiquidity" | "get_dy" | "remove_liquidity" | "remove_liquidity_one_coin"): FunctionFragment;
|
|
5
|
+
encodeFunctionData(functionFragment: "A", values?: undefined): string;
|
|
6
|
+
encodeFunctionData(functionFragment: "add_liquidity", values: [[BigNumberish, BigNumberish], BigNumberish]): string;
|
|
7
|
+
encodeFunctionData(functionFragment: "balances", values: [BigNumberish]): string;
|
|
8
|
+
encodeFunctionData(functionFragment: "coins", values: [BigNumberish]): string;
|
|
9
|
+
encodeFunctionData(functionFragment: "exchange", values: [BigNumberish, BigNumberish, BigNumberish, BigNumberish]): string;
|
|
10
|
+
encodeFunctionData(functionFragment: "fee", values?: undefined): string;
|
|
7
11
|
encodeFunctionData(functionFragment: "getExchangeRate", values: [AddressLike]): string;
|
|
8
|
-
encodeFunctionData(functionFragment: "getMarkets", values?: undefined): string;
|
|
9
12
|
encodeFunctionData(functionFragment: "getTotalLiquidity", values: [AddressLike]): string;
|
|
10
13
|
encodeFunctionData(functionFragment: "getTotalValueLocked", values?: undefined): string;
|
|
11
14
|
encodeFunctionData(functionFragment: "getUserLiquidity", values: [AddressLike, AddressLike]): string;
|
|
12
|
-
encodeFunctionData(functionFragment: "
|
|
13
|
-
encodeFunctionData(functionFragment: "
|
|
14
|
-
|
|
15
|
-
decodeFunctionResult(functionFragment: "
|
|
15
|
+
encodeFunctionData(functionFragment: "get_dy", values: [BigNumberish, BigNumberish, BigNumberish]): string;
|
|
16
|
+
encodeFunctionData(functionFragment: "remove_liquidity", values: [BigNumberish, [BigNumberish, BigNumberish]]): string;
|
|
17
|
+
encodeFunctionData(functionFragment: "remove_liquidity_one_coin", values: [BigNumberish, BigNumberish, BigNumberish]): string;
|
|
18
|
+
decodeFunctionResult(functionFragment: "A", data: BytesLike): Result;
|
|
19
|
+
decodeFunctionResult(functionFragment: "add_liquidity", data: BytesLike): Result;
|
|
20
|
+
decodeFunctionResult(functionFragment: "balances", data: BytesLike): Result;
|
|
21
|
+
decodeFunctionResult(functionFragment: "coins", data: BytesLike): Result;
|
|
22
|
+
decodeFunctionResult(functionFragment: "exchange", data: BytesLike): Result;
|
|
23
|
+
decodeFunctionResult(functionFragment: "fee", data: BytesLike): Result;
|
|
16
24
|
decodeFunctionResult(functionFragment: "getExchangeRate", data: BytesLike): Result;
|
|
17
|
-
decodeFunctionResult(functionFragment: "getMarkets", data: BytesLike): Result;
|
|
18
25
|
decodeFunctionResult(functionFragment: "getTotalLiquidity", data: BytesLike): Result;
|
|
19
26
|
decodeFunctionResult(functionFragment: "getTotalValueLocked", data: BytesLike): Result;
|
|
20
27
|
decodeFunctionResult(functionFragment: "getUserLiquidity", data: BytesLike): Result;
|
|
21
|
-
decodeFunctionResult(functionFragment: "
|
|
22
|
-
decodeFunctionResult(functionFragment: "
|
|
28
|
+
decodeFunctionResult(functionFragment: "get_dy", data: BytesLike): Result;
|
|
29
|
+
decodeFunctionResult(functionFragment: "remove_liquidity", data: BytesLike): Result;
|
|
30
|
+
decodeFunctionResult(functionFragment: "remove_liquidity_one_coin", data: BytesLike): Result;
|
|
23
31
|
}
|
|
24
32
|
export interface ILiquidityPool extends BaseContract {
|
|
25
33
|
connect(runner?: ContractRunner | null): ILiquidityPool;
|
|
@@ -34,19 +42,24 @@ export interface ILiquidityPool extends BaseContract {
|
|
|
34
42
|
listeners<TCEvent extends TypedContractEvent>(event: TCEvent): Promise<Array<TypedListener<TCEvent>>>;
|
|
35
43
|
listeners(eventName?: string): Promise<Array<Listener>>;
|
|
36
44
|
removeAllListeners<TCEvent extends TypedContractEvent>(event?: TCEvent): Promise<this>;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
minLPAmount: BigNumberish
|
|
45
|
+
A: TypedContractMethod<[], [bigint], "view">;
|
|
46
|
+
add_liquidity: TypedContractMethod<[
|
|
47
|
+
amounts: [BigNumberish, BigNumberish],
|
|
48
|
+
min_mint_amount: BigNumberish
|
|
42
49
|
], [
|
|
43
|
-
|
|
50
|
+
bigint
|
|
44
51
|
], "nonpayable">;
|
|
45
|
-
|
|
46
|
-
|
|
52
|
+
balances: TypedContractMethod<[i: BigNumberish], [bigint], "view">;
|
|
53
|
+
coins: TypedContractMethod<[i: BigNumberish], [string], "view">;
|
|
54
|
+
exchange: TypedContractMethod<[
|
|
55
|
+
i: BigNumberish,
|
|
56
|
+
j: BigNumberish,
|
|
57
|
+
dx: BigNumberish,
|
|
58
|
+
min_dy: BigNumberish
|
|
47
59
|
], [
|
|
48
|
-
|
|
60
|
+
bigint
|
|
49
61
|
], "nonpayable">;
|
|
62
|
+
fee: TypedContractMethod<[], [bigint], "view">;
|
|
50
63
|
getExchangeRate: TypedContractMethod<[
|
|
51
64
|
_pairedToken: AddressLike
|
|
52
65
|
], [
|
|
@@ -55,7 +68,6 @@ export interface ILiquidityPool extends BaseContract {
|
|
|
55
68
|
pairedPerRaac: bigint;
|
|
56
69
|
}
|
|
57
70
|
], "view">;
|
|
58
|
-
getMarkets: TypedContractMethod<[], [string[]], "view">;
|
|
59
71
|
getTotalLiquidity: TypedContractMethod<[
|
|
60
72
|
_pairedToken: AddressLike
|
|
61
73
|
], [
|
|
@@ -79,29 +91,45 @@ export interface ILiquidityPool extends BaseContract {
|
|
|
79
91
|
lpAmount: bigint;
|
|
80
92
|
}
|
|
81
93
|
], "view">;
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
minPairedAmount: BigNumberish
|
|
94
|
+
get_dy: TypedContractMethod<[
|
|
95
|
+
i: BigNumberish,
|
|
96
|
+
j: BigNumberish,
|
|
97
|
+
dx: BigNumberish
|
|
87
98
|
], [
|
|
88
|
-
|
|
99
|
+
bigint
|
|
100
|
+
], "view">;
|
|
101
|
+
remove_liquidity: TypedContractMethod<[
|
|
102
|
+
_amount: BigNumberish,
|
|
103
|
+
min_amounts: [BigNumberish, BigNumberish]
|
|
104
|
+
], [
|
|
105
|
+
[bigint, bigint]
|
|
89
106
|
], "nonpayable">;
|
|
90
|
-
|
|
91
|
-
|
|
107
|
+
remove_liquidity_one_coin: TypedContractMethod<[
|
|
108
|
+
token_amount: BigNumberish,
|
|
109
|
+
i: BigNumberish,
|
|
110
|
+
min_amount: BigNumberish
|
|
92
111
|
], [
|
|
93
|
-
|
|
112
|
+
bigint
|
|
94
113
|
], "nonpayable">;
|
|
95
114
|
getFunction<T extends ContractMethod = ContractMethod>(key: string | FunctionFragment): T;
|
|
96
|
-
getFunction(nameOrSignature: "
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
minLPAmount: BigNumberish
|
|
115
|
+
getFunction(nameOrSignature: "A"): TypedContractMethod<[], [bigint], "view">;
|
|
116
|
+
getFunction(nameOrSignature: "add_liquidity"): TypedContractMethod<[
|
|
117
|
+
amounts: [BigNumberish, BigNumberish],
|
|
118
|
+
min_mint_amount: BigNumberish
|
|
101
119
|
], [
|
|
102
|
-
|
|
120
|
+
bigint
|
|
103
121
|
], "nonpayable">;
|
|
104
|
-
getFunction(nameOrSignature: "
|
|
122
|
+
getFunction(nameOrSignature: "balances"): TypedContractMethod<[i: BigNumberish], [bigint], "view">;
|
|
123
|
+
getFunction(nameOrSignature: "coins"): TypedContractMethod<[i: BigNumberish], [string], "view">;
|
|
124
|
+
getFunction(nameOrSignature: "exchange"): TypedContractMethod<[
|
|
125
|
+
i: BigNumberish,
|
|
126
|
+
j: BigNumberish,
|
|
127
|
+
dx: BigNumberish,
|
|
128
|
+
min_dy: BigNumberish
|
|
129
|
+
], [
|
|
130
|
+
bigint
|
|
131
|
+
], "nonpayable">;
|
|
132
|
+
getFunction(nameOrSignature: "fee"): TypedContractMethod<[], [bigint], "view">;
|
|
105
133
|
getFunction(nameOrSignature: "getExchangeRate"): TypedContractMethod<[
|
|
106
134
|
_pairedToken: AddressLike
|
|
107
135
|
], [
|
|
@@ -110,7 +138,6 @@ export interface ILiquidityPool extends BaseContract {
|
|
|
110
138
|
pairedPerRaac: bigint;
|
|
111
139
|
}
|
|
112
140
|
], "view">;
|
|
113
|
-
getFunction(nameOrSignature: "getMarkets"): TypedContractMethod<[], [string[]], "view">;
|
|
114
141
|
getFunction(nameOrSignature: "getTotalLiquidity"): TypedContractMethod<[
|
|
115
142
|
_pairedToken: AddressLike
|
|
116
143
|
], [
|
|
@@ -134,14 +161,25 @@ export interface ILiquidityPool extends BaseContract {
|
|
|
134
161
|
lpAmount: bigint;
|
|
135
162
|
}
|
|
136
163
|
], "view">;
|
|
137
|
-
getFunction(nameOrSignature: "
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
164
|
+
getFunction(nameOrSignature: "get_dy"): TypedContractMethod<[
|
|
165
|
+
i: BigNumberish,
|
|
166
|
+
j: BigNumberish,
|
|
167
|
+
dx: BigNumberish
|
|
168
|
+
], [
|
|
169
|
+
bigint
|
|
170
|
+
], "view">;
|
|
171
|
+
getFunction(nameOrSignature: "remove_liquidity"): TypedContractMethod<[
|
|
172
|
+
_amount: BigNumberish,
|
|
173
|
+
min_amounts: [BigNumberish, BigNumberish]
|
|
174
|
+
], [
|
|
175
|
+
[bigint, bigint]
|
|
176
|
+
], "nonpayable">;
|
|
177
|
+
getFunction(nameOrSignature: "remove_liquidity_one_coin"): TypedContractMethod<[
|
|
178
|
+
token_amount: BigNumberish,
|
|
179
|
+
i: BigNumberish,
|
|
180
|
+
min_amount: BigNumberish
|
|
142
181
|
], [
|
|
143
|
-
|
|
182
|
+
bigint
|
|
144
183
|
], "nonpayable">;
|
|
145
|
-
getFunction(nameOrSignature: "removeMarket"): TypedContractMethod<[_pairedToken: AddressLike], [void], "nonpayable">;
|
|
146
184
|
filters: {};
|
|
147
185
|
}
|