@indigo-labs/indigo-sdk 0.2.40 → 0.2.41
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/index.d.mts +47 -35
- package/dist/index.d.ts +47 -35
- package/dist/index.js +1448 -115114
- package/dist/index.mjs +1293 -114888
- package/package.json +3 -3
- package/src/index.ts +3 -0
package/dist/index.d.mts
CHANGED
|
@@ -1721,6 +1721,52 @@ declare function calculateAccruedInterest(now: bigint, unitaryInterestSnapshot:
|
|
|
1721
1721
|
*/
|
|
1722
1722
|
declare function computeInterestLovelacesFor100PercentCR(collateral: bigint, mintedAmt: bigint, price: OnChainDecimal): bigint;
|
|
1723
1723
|
|
|
1724
|
+
declare const OracleAssetNftSchema: _lucid_evolution_lucid.TObject<{
|
|
1725
|
+
oracleNft: _lucid_evolution_lucid.TObject<{
|
|
1726
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1727
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1728
|
+
}>;
|
|
1729
|
+
}>;
|
|
1730
|
+
type OracleAssetNft = Data.Static<typeof OracleAssetNftSchema>;
|
|
1731
|
+
declare const PriceOracleParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1732
|
+
owner: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1733
|
+
/** Milliseconds */
|
|
1734
|
+
biasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1735
|
+
/** Milliseconds */
|
|
1736
|
+
expiration: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1737
|
+
}>;
|
|
1738
|
+
type PriceOracleParams = Data.Static<typeof PriceOracleParamsSchema>;
|
|
1739
|
+
declare const PriceOracleDatumSchema: _lucid_evolution_lucid.TObject<{
|
|
1740
|
+
price: _lucid_evolution_lucid.TObject<{
|
|
1741
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1742
|
+
}>;
|
|
1743
|
+
expiration: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1744
|
+
}>;
|
|
1745
|
+
type PriceOracleDatum = Data.Static<typeof PriceOracleDatumSchema>;
|
|
1746
|
+
declare const PriceOracleRedeemerSchema: _lucid_evolution_lucid.TObject<{
|
|
1747
|
+
currentTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1748
|
+
newPrice: _lucid_evolution_lucid.TObject<{
|
|
1749
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1750
|
+
}>;
|
|
1751
|
+
}>;
|
|
1752
|
+
type PriceOracleRedeemer = Data.Static<typeof PriceOracleRedeemerSchema>;
|
|
1753
|
+
declare function serialisePriceOracleRedeemer(r: PriceOracleRedeemer): Redeemer;
|
|
1754
|
+
declare function parsePriceOracleDatum(datum: Datum): PriceOracleDatum;
|
|
1755
|
+
declare function serialisePriceOracleDatum(datum: PriceOracleDatum): Datum;
|
|
1756
|
+
declare function castPriceOracleParams(params: PriceOracleParams): Data;
|
|
1757
|
+
|
|
1758
|
+
declare function startPriceOracleTx(lucid: LucidEvolution, assetName: string, startPrice: OnChainDecimal, oracleParams: PriceOracleParams, now?: number, refOutRef?: OutRef): Promise<[TxBuilder, OracleAssetNft]>;
|
|
1759
|
+
declare function feedPriceOracleTx(lucid: LucidEvolution, oracle: UtxoOrOutRef, newPrice: OnChainDecimal, oracleParams: PriceOracleParams, currentSlot: number): Promise<TxBuilder>;
|
|
1760
|
+
|
|
1761
|
+
/**
|
|
1762
|
+
* Calculates the validity range based on the oracle expiration,
|
|
1763
|
+
* and caps the upper bound when necessary.
|
|
1764
|
+
*/
|
|
1765
|
+
declare function oracleExpirationAwareValidity(currentSlot: number, biasTime: number, oracleExpiration: number, network: Network): {
|
|
1766
|
+
validFrom: number;
|
|
1767
|
+
validTo: number;
|
|
1768
|
+
};
|
|
1769
|
+
|
|
1724
1770
|
declare const VersionRecordTokenParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1725
1771
|
upgradeToken: _lucid_evolution_lucid.TObject<{
|
|
1726
1772
|
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
@@ -1993,40 +2039,6 @@ declare function castExecuteParams(params: ExecuteParams): Data;
|
|
|
1993
2039
|
declare const mkExecuteValidator: (params: ExecuteParams) => SpendingValidator;
|
|
1994
2040
|
declare const mkExecuteValidatorFromSP: (params: ExecuteParamsSP) => SpendingValidator;
|
|
1995
2041
|
|
|
1996
|
-
declare const OracleAssetNftSchema: _lucid_evolution_lucid.TObject<{
|
|
1997
|
-
oracleNft: _lucid_evolution_lucid.TObject<{
|
|
1998
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1999
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2000
|
-
}>;
|
|
2001
|
-
}>;
|
|
2002
|
-
type OracleAssetNft = Data.Static<typeof OracleAssetNftSchema>;
|
|
2003
|
-
declare const PriceOracleParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
2004
|
-
owner: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2005
|
-
/** Milliseconds */
|
|
2006
|
-
biasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2007
|
-
/** Milliseconds */
|
|
2008
|
-
expiration: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2009
|
-
}>;
|
|
2010
|
-
type PriceOracleParams = Data.Static<typeof PriceOracleParamsSchema>;
|
|
2011
|
-
declare const PriceOracleDatumSchema: _lucid_evolution_lucid.TObject<{
|
|
2012
|
-
price: _lucid_evolution_lucid.TObject<{
|
|
2013
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2014
|
-
}>;
|
|
2015
|
-
expiration: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2016
|
-
}>;
|
|
2017
|
-
type PriceOracleDatum = Data.Static<typeof PriceOracleDatumSchema>;
|
|
2018
|
-
declare const PriceOracleRedeemerSchema: _lucid_evolution_lucid.TObject<{
|
|
2019
|
-
currentTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2020
|
-
newPrice: _lucid_evolution_lucid.TObject<{
|
|
2021
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2022
|
-
}>;
|
|
2023
|
-
}>;
|
|
2024
|
-
type PriceOracleRedeemer = Data.Static<typeof PriceOracleRedeemerSchema>;
|
|
2025
|
-
declare function serialisePriceOracleRedeemer(r: PriceOracleRedeemer): Redeemer;
|
|
2026
|
-
declare function parsePriceOracleDatum(datum: Datum): PriceOracleDatum;
|
|
2027
|
-
declare function serialisePriceOracleDatum(datum: PriceOracleDatum): Datum;
|
|
2028
|
-
declare function castPriceOracleParams(params: PriceOracleParams): Data;
|
|
2029
|
-
|
|
2030
2042
|
declare const ActionReturnDatumSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
|
|
2031
2043
|
IndigoStabilityPoolAccountAdjustment: _lucid_evolution_lucid.TObject<{
|
|
2032
2044
|
spent_account: _lucid_evolution_lucid.TObject<{
|
|
@@ -2817,4 +2829,4 @@ declare function submitAndAwaitTx(lucid: LucidEvolution, tx: TxBuilder): Promise
|
|
|
2817
2829
|
|
|
2818
2830
|
declare function init(lucid: LucidEvolution, initialAssets: InitialAsset[], now?: number): Promise<[SystemParams, AssetInfo[]]>;
|
|
2819
2831
|
|
|
2820
|
-
export { ACCOUNT_TOKEN_NAME, ALWAYS_FAIL_VALIDATOR_HASH, type AccountAction, type AccountContent, AccountContentSchema, ActionReturnDatum, ActionReturnDatumSchema, type AddressCredential, type AddressCredentialOrDatum, AddressD, type AddressSP, AddressSchema, type Amount, type AssetClass, type AssetClassSP, AssetClassSchema, type AssetInfo, type AuthTokenPolicies, type CDPContent, CDPContentSchema, CDPCreatorParams, type CDPCreatorParamsSP, CDPCreatorRedeemer, type CDPDatum, CDPDatumSchema, type CDPFees, CDPFeesSchema, type CDPRedeemer, CDP_CREATOR_TOKEN_NAME, CDP_TOKEN_NAME, type CdpParams, type CdpParamsSP, type CollectorParamsSP, type CollectorRedeemer, CredentialD, CredentialSchema, type CurrencySymbol, DAO_TOKEN_NAME, type DistributionParams, type EpochToScaleToSum, EpochToScaleToSumSchema, ExecuteDatum, ExecuteParams, type ExecuteParamsSP, type FeedInterestOracleRedeemer, FeedInterestOracleRedeemerSchema, GOV_NFT_TOKEN_NAME, type GovDatum, GovParams, type GovParamsSP, GovRedeemer, IASSET_TOKEN_NAME, type IAssetContent, IAssetContentSchema, type IAssetOutput, IAssetPriceInfoSchema, INDY_TOKEN_NAME, type InitialAsset, type Input, type InterestOracleDatum, InterestOracleDatumSchema, type InterestOracleParams, InterestOracleParamsSchema, type LRPDatum, LRPDatumSchema, type LRPParams, LRPParamsSchema, type LRPRedeemer, LRPRedeemerSchema, type LrpOutput, type LrpParamsSP, MAX_REDEMPTIONS_WITH_CDP_OPEN, MIN_LRP_COLLATERAL_AMT, NUM_CDP_CREATORS, NUM_COLLECTORS, ONE_DAY, ONE_HOUR, ONE_SECOND, ONE_YEAR, type OracleAssetNft, OracleAssetNftSchema, type Output, type OutputReference, OutputReferenceSchema, POLL_MANAGER_TOKEN_NAME, PollDatum, type PollManagerContent, PollManagerParams, type PollManagerParamsSP, PollManagerRedeemer, type PollShardContent, PollShardParams, type PollShardParamsSP, PollShardRedeemer, type PollStatus, type PriceOracleDatum, PriceOracleDatumSchema, type PriceOracleParams, PriceOracleParamsSchema, type PriceOracleRedeemer, ProposalContent, ProposalContentSchema, type ProposeAssetContent, ProtocolParams, ProtocolParamsSchema, type PubKeyHash, SNAPSHOT_EPOCH_TO_SCALE_TO_SUM_TOKEN_NAME, type SPInteger, SPIntegerSchema, STABILITY_POOL_TOKEN_NAME, STAKING_MANAGER_TOKEN_NAME, STAKING_TOKEN_NAME, type ScriptCredential, type ScriptOutput, type ScriptRef, type ScriptReference, type ScriptReferences, type SnapshotEpochToScaleToSumContent, SnapshotEpochToScaleToSumContentSchema, type StabilityPoolContent, StabilityPoolContentSchema, StabilityPoolDatumSchema, StabilityPoolParams, type StabilityPoolParamsSP, type StabilityPoolRedeemer, StabilityPoolRedeemerSchema, type StabilityPoolSnapshot, StakeCredentialSchema, type StakingManager, type StakingManagerOutput, type StakingParamsSP, type StakingPosLockedAmt, type StakingPosition, type StakingPositionOutput, type StakingRedeemer, type StartTime, type SystemParams, TOTAL_INDY_SUPPLY, TREASURY_INDY_AMOUNT, type TokenName, TreasuryParams, type TreasuryParamsSP, TreasuryParamsSchema, type TreasuryRedeemer, type TreasuryWithdrawal, type TreasuryWithdrawalItem, TreasuryWithdrawalSchema, UPGRADE_TOKEN_NAME, type UpgradePaths, type UtxoOrOutRef, VERSION_RECORD_TOKEN_NAME, type ValidatorHashes, VerificationKeyHashSchema, type VersionRecordParams, VersionRecordTokenParams, type VoteOption, type WithdrawalOutputDatum, addrDetails, addressFromBech32, addressToBech32, adjust, adjustLrp, adjustSpAccount, adjustStakingPosition, adjustmentHelper, annulRequest, approximateLeverageRedemptions, assetClassToUnit, assetClassValueOf, balance, buildRedemptionsTx, burnCdp, calculateAccruedInterest, calculateAdaReward, calculateCollateralRatioFromLeverage, calculateIAssetRedemptionAmt, calculateLeverageFromCollateralRatio, calculateMinCollateralCappedIAssetRedemptionAmt, calculateTotalAdaForRedemption, calculateUnitaryInterest, calculateUnitaryInterestSinceOracleLastUpdated, cancelLrp, castCDPCreatorParams, castCdpParams, castExecuteParams, castGovParams, castInterestOracleParams, castLrpParams, castPollManagerParams, castPollShardParams, castPriceOracleParams, castStabilityPoolParams, castStakingParams, castTreasuryParams, castVersionRecordTokenParams, cdpCollateralRatioPercentage, claimLrp, closeCdp, closeSpAccount, closeStakingPosition, collectorFeeTx, computeInterestLovelacesFor100PercentCR, createProposal, createScriptAddress, createShardsChunks, createSpAccount, depositCdp, distributeAda, distributeReward, endProposal, executeProposal, feedInterestOracle, findStakingManager, findStakingManagerByOutRef, findStakingPositionByOutRef, freezeCdp, fromSPInteger, fromSysParamsScriptCredential, fromSystemParamsAsset, fromSystemParamsScriptRef, getAccountFund, getAccountReward, getInlineDatumOrThrow, getRandomElement, getSumFromEpochToScaleToSum, init, initEpochToScaleToSumMap, initSpSnapshot, insertSorted, isAssetsZero, leverageCdpWithLrp, liquidateCdp, liquidationHelper, loadSystemParamsFromFile, loadSystemParamsFromUrl, lovelacesAmt, lrpRedeemableLovelacesInclReimb, matchSingle, mergeCdps, mergeShards, mintCdp, mkAssetsOf, mkCDPCreatorValidator, mkCDPCreatorValidatorFromSP, mkCdpValidatorFromSP, mkCollectorValidatorFromSP, mkExecuteValidator, mkExecuteValidatorFromSP, mkInterestOracleValidator, mkLovelacesOf, mkLrpValidator, mkLrpValidatorFromSP, mkPollManagerValidator, mkPollManagerValidatorFromSP, mkPollShardValidator, mkPollShardValidatorFromSP, mkSPInteger, mkTreasuryValidatorFromSP, mkVersionRecordTokenPolicy, mkVersionRegistryValidator, negateAssets, oneShotMintTx, openCdp, openLrp, openStakingPosition, parseAccountDatum, parseCdpDatum, parseCdpDatumOrThrow, parseExecuteDatum, parseExecuteDatumOrThrow, parseGovDatum, parseGovDatumOrThrow, parseIAssetDatum, parseIAssetDatumOrThrow, parseInterestOracleDatum, parseLrpDatum, parseLrpDatumOrThrow, parsePollManager, parsePollManagerOrThrow, parsePollShard, parsePollShardOrThrow, parsePriceOracleDatum, parseSnapshotEpochToScaleToSumDatum, parseStabilityPoolDatum, parseStakingManagerDatum, parseStakingPosition, parseStakingPositionOrThrow, parseUpgradePaths, processSpRequest, randomLrpsSubsetSatisfyingTargetLovelaces, redeemCdp, redeemLrp, resolveUtxo, rewardSnapshotPrecision, runCreateScriptRefTx, runOneShotMintTx, scriptRef, serialiseCDPCreatorDatum, serialiseCDPCreatorRedeemer, serialiseCdpDatum, serialiseCdpRedeemer, serialiseCollectorRedeemer, serialiseExecuteDatum, serialiseFeedInterestOracleRedeemer, serialiseGovDatum, serialiseGovRedeemer, serialiseIAssetDatum, serialiseInterestOracleDatum, serialiseLrpDatum, serialiseLrpRedeemer, serialisePollDatum, serialisePollManagerRedeemer, serialisePollShardRedeemer, serialisePriceOracleDatum, serialisePriceOracleRedeemer, serialiseStabilityPoolDatum, serialiseStabilityPoolRedeemer, serialiseStakingDatum, serialiseStakingRedeemer, serialiseTreasuryDatum, serialiseTreasuryRedeemer, serialiseUpgradePaths, serialiseWithdrawalOutputDatum, setSumInEpochToScaleToSum, shuffle, spAdd, spDiv, spMul, spSub, startInterestOracle, submitAndAwaitTx, summarizeActualLeverageRedemptions, toSystemParamsAsset, treasuryFeeTx, updatePoolSnapshotWithdrawalFee, updateSlotConfigNetwork, updateStakingLockedAmount, vote, withdrawCdp };
|
|
2832
|
+
export { ACCOUNT_TOKEN_NAME, ALWAYS_FAIL_VALIDATOR_HASH, type AccountAction, type AccountContent, AccountContentSchema, ActionReturnDatum, ActionReturnDatumSchema, type AddressCredential, type AddressCredentialOrDatum, AddressD, type AddressSP, AddressSchema, type Amount, type AssetClass, type AssetClassSP, AssetClassSchema, type AssetInfo, type AuthTokenPolicies, type CDPContent, CDPContentSchema, CDPCreatorParams, type CDPCreatorParamsSP, CDPCreatorRedeemer, type CDPDatum, CDPDatumSchema, type CDPFees, CDPFeesSchema, type CDPRedeemer, CDP_CREATOR_TOKEN_NAME, CDP_TOKEN_NAME, type CdpParams, type CdpParamsSP, type CollectorParamsSP, type CollectorRedeemer, CredentialD, CredentialSchema, type CurrencySymbol, DAO_TOKEN_NAME, type DistributionParams, type EpochToScaleToSum, EpochToScaleToSumSchema, ExecuteDatum, ExecuteParams, type ExecuteParamsSP, type FeedInterestOracleRedeemer, FeedInterestOracleRedeemerSchema, GOV_NFT_TOKEN_NAME, type GovDatum, GovParams, type GovParamsSP, GovRedeemer, IASSET_TOKEN_NAME, type IAssetContent, IAssetContentSchema, type IAssetOutput, IAssetPriceInfoSchema, INDY_TOKEN_NAME, type InitialAsset, type Input, type InterestOracleDatum, InterestOracleDatumSchema, type InterestOracleParams, InterestOracleParamsSchema, type LRPDatum, LRPDatumSchema, type LRPParams, LRPParamsSchema, type LRPRedeemer, LRPRedeemerSchema, type LrpOutput, type LrpParamsSP, MAX_REDEMPTIONS_WITH_CDP_OPEN, MIN_LRP_COLLATERAL_AMT, NUM_CDP_CREATORS, NUM_COLLECTORS, ONE_DAY, ONE_HOUR, ONE_SECOND, ONE_YEAR, type OracleAssetNft, OracleAssetNftSchema, type Output, type OutputReference, OutputReferenceSchema, POLL_MANAGER_TOKEN_NAME, PollDatum, type PollManagerContent, PollManagerParams, type PollManagerParamsSP, PollManagerRedeemer, type PollShardContent, PollShardParams, type PollShardParamsSP, PollShardRedeemer, type PollStatus, type PriceOracleDatum, PriceOracleDatumSchema, type PriceOracleParams, PriceOracleParamsSchema, type PriceOracleRedeemer, ProposalContent, ProposalContentSchema, type ProposeAssetContent, ProtocolParams, ProtocolParamsSchema, type PubKeyHash, SNAPSHOT_EPOCH_TO_SCALE_TO_SUM_TOKEN_NAME, type SPInteger, SPIntegerSchema, STABILITY_POOL_TOKEN_NAME, STAKING_MANAGER_TOKEN_NAME, STAKING_TOKEN_NAME, type ScriptCredential, type ScriptOutput, type ScriptRef, type ScriptReference, type ScriptReferences, type SnapshotEpochToScaleToSumContent, SnapshotEpochToScaleToSumContentSchema, type StabilityPoolContent, StabilityPoolContentSchema, StabilityPoolDatumSchema, StabilityPoolParams, type StabilityPoolParamsSP, type StabilityPoolRedeemer, StabilityPoolRedeemerSchema, type StabilityPoolSnapshot, StakeCredentialSchema, type StakingManager, type StakingManagerOutput, type StakingParamsSP, type StakingPosLockedAmt, type StakingPosition, type StakingPositionOutput, type StakingRedeemer, type StartTime, type SystemParams, TOTAL_INDY_SUPPLY, TREASURY_INDY_AMOUNT, type TokenName, TreasuryParams, type TreasuryParamsSP, TreasuryParamsSchema, type TreasuryRedeemer, type TreasuryWithdrawal, type TreasuryWithdrawalItem, TreasuryWithdrawalSchema, UPGRADE_TOKEN_NAME, type UpgradePaths, type UtxoOrOutRef, VERSION_RECORD_TOKEN_NAME, type ValidatorHashes, VerificationKeyHashSchema, type VersionRecordParams, VersionRecordTokenParams, type VoteOption, type WithdrawalOutputDatum, addrDetails, addressFromBech32, addressToBech32, adjust, adjustLrp, adjustSpAccount, adjustStakingPosition, adjustmentHelper, annulRequest, approximateLeverageRedemptions, assetClassToUnit, assetClassValueOf, balance, buildRedemptionsTx, burnCdp, calculateAccruedInterest, calculateAdaReward, calculateCollateralRatioFromLeverage, calculateIAssetRedemptionAmt, calculateLeverageFromCollateralRatio, calculateMinCollateralCappedIAssetRedemptionAmt, calculateTotalAdaForRedemption, calculateUnitaryInterest, calculateUnitaryInterestSinceOracleLastUpdated, cancelLrp, castCDPCreatorParams, castCdpParams, castExecuteParams, castGovParams, castInterestOracleParams, castLrpParams, castPollManagerParams, castPollShardParams, castPriceOracleParams, castStabilityPoolParams, castStakingParams, castTreasuryParams, castVersionRecordTokenParams, cdpCollateralRatioPercentage, claimLrp, closeCdp, closeSpAccount, closeStakingPosition, collectorFeeTx, computeInterestLovelacesFor100PercentCR, createProposal, createScriptAddress, createShardsChunks, createSpAccount, depositCdp, distributeAda, distributeReward, endProposal, executeProposal, feedInterestOracle, feedPriceOracleTx, findStakingManager, findStakingManagerByOutRef, findStakingPositionByOutRef, freezeCdp, fromSPInteger, fromSysParamsScriptCredential, fromSystemParamsAsset, fromSystemParamsScriptRef, getAccountFund, getAccountReward, getInlineDatumOrThrow, getRandomElement, getSumFromEpochToScaleToSum, init, initEpochToScaleToSumMap, initSpSnapshot, insertSorted, isAssetsZero, leverageCdpWithLrp, liquidateCdp, liquidationHelper, loadSystemParamsFromFile, loadSystemParamsFromUrl, lovelacesAmt, lrpRedeemableLovelacesInclReimb, matchSingle, mergeCdps, mergeShards, mintCdp, mkAssetsOf, mkCDPCreatorValidator, mkCDPCreatorValidatorFromSP, mkCdpValidatorFromSP, mkCollectorValidatorFromSP, mkExecuteValidator, mkExecuteValidatorFromSP, mkInterestOracleValidator, mkLovelacesOf, mkLrpValidator, mkLrpValidatorFromSP, mkPollManagerValidator, mkPollManagerValidatorFromSP, mkPollShardValidator, mkPollShardValidatorFromSP, mkSPInteger, mkTreasuryValidatorFromSP, mkVersionRecordTokenPolicy, mkVersionRegistryValidator, negateAssets, oneShotMintTx, openCdp, openLrp, openStakingPosition, oracleExpirationAwareValidity, parseAccountDatum, parseCdpDatum, parseCdpDatumOrThrow, parseExecuteDatum, parseExecuteDatumOrThrow, parseGovDatum, parseGovDatumOrThrow, parseIAssetDatum, parseIAssetDatumOrThrow, parseInterestOracleDatum, parseLrpDatum, parseLrpDatumOrThrow, parsePollManager, parsePollManagerOrThrow, parsePollShard, parsePollShardOrThrow, parsePriceOracleDatum, parseSnapshotEpochToScaleToSumDatum, parseStabilityPoolDatum, parseStakingManagerDatum, parseStakingPosition, parseStakingPositionOrThrow, parseUpgradePaths, processSpRequest, randomLrpsSubsetSatisfyingTargetLovelaces, redeemCdp, redeemLrp, resolveUtxo, rewardSnapshotPrecision, runCreateScriptRefTx, runOneShotMintTx, scriptRef, serialiseCDPCreatorDatum, serialiseCDPCreatorRedeemer, serialiseCdpDatum, serialiseCdpRedeemer, serialiseCollectorRedeemer, serialiseExecuteDatum, serialiseFeedInterestOracleRedeemer, serialiseGovDatum, serialiseGovRedeemer, serialiseIAssetDatum, serialiseInterestOracleDatum, serialiseLrpDatum, serialiseLrpRedeemer, serialisePollDatum, serialisePollManagerRedeemer, serialisePollShardRedeemer, serialisePriceOracleDatum, serialisePriceOracleRedeemer, serialiseStabilityPoolDatum, serialiseStabilityPoolRedeemer, serialiseStakingDatum, serialiseStakingRedeemer, serialiseTreasuryDatum, serialiseTreasuryRedeemer, serialiseUpgradePaths, serialiseWithdrawalOutputDatum, setSumInEpochToScaleToSum, shuffle, spAdd, spDiv, spMul, spSub, startInterestOracle, startPriceOracleTx, submitAndAwaitTx, summarizeActualLeverageRedemptions, toSystemParamsAsset, treasuryFeeTx, updatePoolSnapshotWithdrawalFee, updateSlotConfigNetwork, updateStakingLockedAmount, vote, withdrawCdp };
|
package/dist/index.d.ts
CHANGED
|
@@ -1721,6 +1721,52 @@ declare function calculateAccruedInterest(now: bigint, unitaryInterestSnapshot:
|
|
|
1721
1721
|
*/
|
|
1722
1722
|
declare function computeInterestLovelacesFor100PercentCR(collateral: bigint, mintedAmt: bigint, price: OnChainDecimal): bigint;
|
|
1723
1723
|
|
|
1724
|
+
declare const OracleAssetNftSchema: _lucid_evolution_lucid.TObject<{
|
|
1725
|
+
oracleNft: _lucid_evolution_lucid.TObject<{
|
|
1726
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1727
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1728
|
+
}>;
|
|
1729
|
+
}>;
|
|
1730
|
+
type OracleAssetNft = Data.Static<typeof OracleAssetNftSchema>;
|
|
1731
|
+
declare const PriceOracleParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1732
|
+
owner: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1733
|
+
/** Milliseconds */
|
|
1734
|
+
biasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1735
|
+
/** Milliseconds */
|
|
1736
|
+
expiration: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1737
|
+
}>;
|
|
1738
|
+
type PriceOracleParams = Data.Static<typeof PriceOracleParamsSchema>;
|
|
1739
|
+
declare const PriceOracleDatumSchema: _lucid_evolution_lucid.TObject<{
|
|
1740
|
+
price: _lucid_evolution_lucid.TObject<{
|
|
1741
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1742
|
+
}>;
|
|
1743
|
+
expiration: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1744
|
+
}>;
|
|
1745
|
+
type PriceOracleDatum = Data.Static<typeof PriceOracleDatumSchema>;
|
|
1746
|
+
declare const PriceOracleRedeemerSchema: _lucid_evolution_lucid.TObject<{
|
|
1747
|
+
currentTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1748
|
+
newPrice: _lucid_evolution_lucid.TObject<{
|
|
1749
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1750
|
+
}>;
|
|
1751
|
+
}>;
|
|
1752
|
+
type PriceOracleRedeemer = Data.Static<typeof PriceOracleRedeemerSchema>;
|
|
1753
|
+
declare function serialisePriceOracleRedeemer(r: PriceOracleRedeemer): Redeemer;
|
|
1754
|
+
declare function parsePriceOracleDatum(datum: Datum): PriceOracleDatum;
|
|
1755
|
+
declare function serialisePriceOracleDatum(datum: PriceOracleDatum): Datum;
|
|
1756
|
+
declare function castPriceOracleParams(params: PriceOracleParams): Data;
|
|
1757
|
+
|
|
1758
|
+
declare function startPriceOracleTx(lucid: LucidEvolution, assetName: string, startPrice: OnChainDecimal, oracleParams: PriceOracleParams, now?: number, refOutRef?: OutRef): Promise<[TxBuilder, OracleAssetNft]>;
|
|
1759
|
+
declare function feedPriceOracleTx(lucid: LucidEvolution, oracle: UtxoOrOutRef, newPrice: OnChainDecimal, oracleParams: PriceOracleParams, currentSlot: number): Promise<TxBuilder>;
|
|
1760
|
+
|
|
1761
|
+
/**
|
|
1762
|
+
* Calculates the validity range based on the oracle expiration,
|
|
1763
|
+
* and caps the upper bound when necessary.
|
|
1764
|
+
*/
|
|
1765
|
+
declare function oracleExpirationAwareValidity(currentSlot: number, biasTime: number, oracleExpiration: number, network: Network): {
|
|
1766
|
+
validFrom: number;
|
|
1767
|
+
validTo: number;
|
|
1768
|
+
};
|
|
1769
|
+
|
|
1724
1770
|
declare const VersionRecordTokenParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1725
1771
|
upgradeToken: _lucid_evolution_lucid.TObject<{
|
|
1726
1772
|
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
@@ -1993,40 +2039,6 @@ declare function castExecuteParams(params: ExecuteParams): Data;
|
|
|
1993
2039
|
declare const mkExecuteValidator: (params: ExecuteParams) => SpendingValidator;
|
|
1994
2040
|
declare const mkExecuteValidatorFromSP: (params: ExecuteParamsSP) => SpendingValidator;
|
|
1995
2041
|
|
|
1996
|
-
declare const OracleAssetNftSchema: _lucid_evolution_lucid.TObject<{
|
|
1997
|
-
oracleNft: _lucid_evolution_lucid.TObject<{
|
|
1998
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1999
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2000
|
-
}>;
|
|
2001
|
-
}>;
|
|
2002
|
-
type OracleAssetNft = Data.Static<typeof OracleAssetNftSchema>;
|
|
2003
|
-
declare const PriceOracleParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
2004
|
-
owner: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2005
|
-
/** Milliseconds */
|
|
2006
|
-
biasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2007
|
-
/** Milliseconds */
|
|
2008
|
-
expiration: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2009
|
-
}>;
|
|
2010
|
-
type PriceOracleParams = Data.Static<typeof PriceOracleParamsSchema>;
|
|
2011
|
-
declare const PriceOracleDatumSchema: _lucid_evolution_lucid.TObject<{
|
|
2012
|
-
price: _lucid_evolution_lucid.TObject<{
|
|
2013
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2014
|
-
}>;
|
|
2015
|
-
expiration: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2016
|
-
}>;
|
|
2017
|
-
type PriceOracleDatum = Data.Static<typeof PriceOracleDatumSchema>;
|
|
2018
|
-
declare const PriceOracleRedeemerSchema: _lucid_evolution_lucid.TObject<{
|
|
2019
|
-
currentTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2020
|
-
newPrice: _lucid_evolution_lucid.TObject<{
|
|
2021
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2022
|
-
}>;
|
|
2023
|
-
}>;
|
|
2024
|
-
type PriceOracleRedeemer = Data.Static<typeof PriceOracleRedeemerSchema>;
|
|
2025
|
-
declare function serialisePriceOracleRedeemer(r: PriceOracleRedeemer): Redeemer;
|
|
2026
|
-
declare function parsePriceOracleDatum(datum: Datum): PriceOracleDatum;
|
|
2027
|
-
declare function serialisePriceOracleDatum(datum: PriceOracleDatum): Datum;
|
|
2028
|
-
declare function castPriceOracleParams(params: PriceOracleParams): Data;
|
|
2029
|
-
|
|
2030
2042
|
declare const ActionReturnDatumSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
|
|
2031
2043
|
IndigoStabilityPoolAccountAdjustment: _lucid_evolution_lucid.TObject<{
|
|
2032
2044
|
spent_account: _lucid_evolution_lucid.TObject<{
|
|
@@ -2817,4 +2829,4 @@ declare function submitAndAwaitTx(lucid: LucidEvolution, tx: TxBuilder): Promise
|
|
|
2817
2829
|
|
|
2818
2830
|
declare function init(lucid: LucidEvolution, initialAssets: InitialAsset[], now?: number): Promise<[SystemParams, AssetInfo[]]>;
|
|
2819
2831
|
|
|
2820
|
-
export { ACCOUNT_TOKEN_NAME, ALWAYS_FAIL_VALIDATOR_HASH, type AccountAction, type AccountContent, AccountContentSchema, ActionReturnDatum, ActionReturnDatumSchema, type AddressCredential, type AddressCredentialOrDatum, AddressD, type AddressSP, AddressSchema, type Amount, type AssetClass, type AssetClassSP, AssetClassSchema, type AssetInfo, type AuthTokenPolicies, type CDPContent, CDPContentSchema, CDPCreatorParams, type CDPCreatorParamsSP, CDPCreatorRedeemer, type CDPDatum, CDPDatumSchema, type CDPFees, CDPFeesSchema, type CDPRedeemer, CDP_CREATOR_TOKEN_NAME, CDP_TOKEN_NAME, type CdpParams, type CdpParamsSP, type CollectorParamsSP, type CollectorRedeemer, CredentialD, CredentialSchema, type CurrencySymbol, DAO_TOKEN_NAME, type DistributionParams, type EpochToScaleToSum, EpochToScaleToSumSchema, ExecuteDatum, ExecuteParams, type ExecuteParamsSP, type FeedInterestOracleRedeemer, FeedInterestOracleRedeemerSchema, GOV_NFT_TOKEN_NAME, type GovDatum, GovParams, type GovParamsSP, GovRedeemer, IASSET_TOKEN_NAME, type IAssetContent, IAssetContentSchema, type IAssetOutput, IAssetPriceInfoSchema, INDY_TOKEN_NAME, type InitialAsset, type Input, type InterestOracleDatum, InterestOracleDatumSchema, type InterestOracleParams, InterestOracleParamsSchema, type LRPDatum, LRPDatumSchema, type LRPParams, LRPParamsSchema, type LRPRedeemer, LRPRedeemerSchema, type LrpOutput, type LrpParamsSP, MAX_REDEMPTIONS_WITH_CDP_OPEN, MIN_LRP_COLLATERAL_AMT, NUM_CDP_CREATORS, NUM_COLLECTORS, ONE_DAY, ONE_HOUR, ONE_SECOND, ONE_YEAR, type OracleAssetNft, OracleAssetNftSchema, type Output, type OutputReference, OutputReferenceSchema, POLL_MANAGER_TOKEN_NAME, PollDatum, type PollManagerContent, PollManagerParams, type PollManagerParamsSP, PollManagerRedeemer, type PollShardContent, PollShardParams, type PollShardParamsSP, PollShardRedeemer, type PollStatus, type PriceOracleDatum, PriceOracleDatumSchema, type PriceOracleParams, PriceOracleParamsSchema, type PriceOracleRedeemer, ProposalContent, ProposalContentSchema, type ProposeAssetContent, ProtocolParams, ProtocolParamsSchema, type PubKeyHash, SNAPSHOT_EPOCH_TO_SCALE_TO_SUM_TOKEN_NAME, type SPInteger, SPIntegerSchema, STABILITY_POOL_TOKEN_NAME, STAKING_MANAGER_TOKEN_NAME, STAKING_TOKEN_NAME, type ScriptCredential, type ScriptOutput, type ScriptRef, type ScriptReference, type ScriptReferences, type SnapshotEpochToScaleToSumContent, SnapshotEpochToScaleToSumContentSchema, type StabilityPoolContent, StabilityPoolContentSchema, StabilityPoolDatumSchema, StabilityPoolParams, type StabilityPoolParamsSP, type StabilityPoolRedeemer, StabilityPoolRedeemerSchema, type StabilityPoolSnapshot, StakeCredentialSchema, type StakingManager, type StakingManagerOutput, type StakingParamsSP, type StakingPosLockedAmt, type StakingPosition, type StakingPositionOutput, type StakingRedeemer, type StartTime, type SystemParams, TOTAL_INDY_SUPPLY, TREASURY_INDY_AMOUNT, type TokenName, TreasuryParams, type TreasuryParamsSP, TreasuryParamsSchema, type TreasuryRedeemer, type TreasuryWithdrawal, type TreasuryWithdrawalItem, TreasuryWithdrawalSchema, UPGRADE_TOKEN_NAME, type UpgradePaths, type UtxoOrOutRef, VERSION_RECORD_TOKEN_NAME, type ValidatorHashes, VerificationKeyHashSchema, type VersionRecordParams, VersionRecordTokenParams, type VoteOption, type WithdrawalOutputDatum, addrDetails, addressFromBech32, addressToBech32, adjust, adjustLrp, adjustSpAccount, adjustStakingPosition, adjustmentHelper, annulRequest, approximateLeverageRedemptions, assetClassToUnit, assetClassValueOf, balance, buildRedemptionsTx, burnCdp, calculateAccruedInterest, calculateAdaReward, calculateCollateralRatioFromLeverage, calculateIAssetRedemptionAmt, calculateLeverageFromCollateralRatio, calculateMinCollateralCappedIAssetRedemptionAmt, calculateTotalAdaForRedemption, calculateUnitaryInterest, calculateUnitaryInterestSinceOracleLastUpdated, cancelLrp, castCDPCreatorParams, castCdpParams, castExecuteParams, castGovParams, castInterestOracleParams, castLrpParams, castPollManagerParams, castPollShardParams, castPriceOracleParams, castStabilityPoolParams, castStakingParams, castTreasuryParams, castVersionRecordTokenParams, cdpCollateralRatioPercentage, claimLrp, closeCdp, closeSpAccount, closeStakingPosition, collectorFeeTx, computeInterestLovelacesFor100PercentCR, createProposal, createScriptAddress, createShardsChunks, createSpAccount, depositCdp, distributeAda, distributeReward, endProposal, executeProposal, feedInterestOracle, findStakingManager, findStakingManagerByOutRef, findStakingPositionByOutRef, freezeCdp, fromSPInteger, fromSysParamsScriptCredential, fromSystemParamsAsset, fromSystemParamsScriptRef, getAccountFund, getAccountReward, getInlineDatumOrThrow, getRandomElement, getSumFromEpochToScaleToSum, init, initEpochToScaleToSumMap, initSpSnapshot, insertSorted, isAssetsZero, leverageCdpWithLrp, liquidateCdp, liquidationHelper, loadSystemParamsFromFile, loadSystemParamsFromUrl, lovelacesAmt, lrpRedeemableLovelacesInclReimb, matchSingle, mergeCdps, mergeShards, mintCdp, mkAssetsOf, mkCDPCreatorValidator, mkCDPCreatorValidatorFromSP, mkCdpValidatorFromSP, mkCollectorValidatorFromSP, mkExecuteValidator, mkExecuteValidatorFromSP, mkInterestOracleValidator, mkLovelacesOf, mkLrpValidator, mkLrpValidatorFromSP, mkPollManagerValidator, mkPollManagerValidatorFromSP, mkPollShardValidator, mkPollShardValidatorFromSP, mkSPInteger, mkTreasuryValidatorFromSP, mkVersionRecordTokenPolicy, mkVersionRegistryValidator, negateAssets, oneShotMintTx, openCdp, openLrp, openStakingPosition, parseAccountDatum, parseCdpDatum, parseCdpDatumOrThrow, parseExecuteDatum, parseExecuteDatumOrThrow, parseGovDatum, parseGovDatumOrThrow, parseIAssetDatum, parseIAssetDatumOrThrow, parseInterestOracleDatum, parseLrpDatum, parseLrpDatumOrThrow, parsePollManager, parsePollManagerOrThrow, parsePollShard, parsePollShardOrThrow, parsePriceOracleDatum, parseSnapshotEpochToScaleToSumDatum, parseStabilityPoolDatum, parseStakingManagerDatum, parseStakingPosition, parseStakingPositionOrThrow, parseUpgradePaths, processSpRequest, randomLrpsSubsetSatisfyingTargetLovelaces, redeemCdp, redeemLrp, resolveUtxo, rewardSnapshotPrecision, runCreateScriptRefTx, runOneShotMintTx, scriptRef, serialiseCDPCreatorDatum, serialiseCDPCreatorRedeemer, serialiseCdpDatum, serialiseCdpRedeemer, serialiseCollectorRedeemer, serialiseExecuteDatum, serialiseFeedInterestOracleRedeemer, serialiseGovDatum, serialiseGovRedeemer, serialiseIAssetDatum, serialiseInterestOracleDatum, serialiseLrpDatum, serialiseLrpRedeemer, serialisePollDatum, serialisePollManagerRedeemer, serialisePollShardRedeemer, serialisePriceOracleDatum, serialisePriceOracleRedeemer, serialiseStabilityPoolDatum, serialiseStabilityPoolRedeemer, serialiseStakingDatum, serialiseStakingRedeemer, serialiseTreasuryDatum, serialiseTreasuryRedeemer, serialiseUpgradePaths, serialiseWithdrawalOutputDatum, setSumInEpochToScaleToSum, shuffle, spAdd, spDiv, spMul, spSub, startInterestOracle, submitAndAwaitTx, summarizeActualLeverageRedemptions, toSystemParamsAsset, treasuryFeeTx, updatePoolSnapshotWithdrawalFee, updateSlotConfigNetwork, updateStakingLockedAmount, vote, withdrawCdp };
|
|
2832
|
+
export { ACCOUNT_TOKEN_NAME, ALWAYS_FAIL_VALIDATOR_HASH, type AccountAction, type AccountContent, AccountContentSchema, ActionReturnDatum, ActionReturnDatumSchema, type AddressCredential, type AddressCredentialOrDatum, AddressD, type AddressSP, AddressSchema, type Amount, type AssetClass, type AssetClassSP, AssetClassSchema, type AssetInfo, type AuthTokenPolicies, type CDPContent, CDPContentSchema, CDPCreatorParams, type CDPCreatorParamsSP, CDPCreatorRedeemer, type CDPDatum, CDPDatumSchema, type CDPFees, CDPFeesSchema, type CDPRedeemer, CDP_CREATOR_TOKEN_NAME, CDP_TOKEN_NAME, type CdpParams, type CdpParamsSP, type CollectorParamsSP, type CollectorRedeemer, CredentialD, CredentialSchema, type CurrencySymbol, DAO_TOKEN_NAME, type DistributionParams, type EpochToScaleToSum, EpochToScaleToSumSchema, ExecuteDatum, ExecuteParams, type ExecuteParamsSP, type FeedInterestOracleRedeemer, FeedInterestOracleRedeemerSchema, GOV_NFT_TOKEN_NAME, type GovDatum, GovParams, type GovParamsSP, GovRedeemer, IASSET_TOKEN_NAME, type IAssetContent, IAssetContentSchema, type IAssetOutput, IAssetPriceInfoSchema, INDY_TOKEN_NAME, type InitialAsset, type Input, type InterestOracleDatum, InterestOracleDatumSchema, type InterestOracleParams, InterestOracleParamsSchema, type LRPDatum, LRPDatumSchema, type LRPParams, LRPParamsSchema, type LRPRedeemer, LRPRedeemerSchema, type LrpOutput, type LrpParamsSP, MAX_REDEMPTIONS_WITH_CDP_OPEN, MIN_LRP_COLLATERAL_AMT, NUM_CDP_CREATORS, NUM_COLLECTORS, ONE_DAY, ONE_HOUR, ONE_SECOND, ONE_YEAR, type OracleAssetNft, OracleAssetNftSchema, type Output, type OutputReference, OutputReferenceSchema, POLL_MANAGER_TOKEN_NAME, PollDatum, type PollManagerContent, PollManagerParams, type PollManagerParamsSP, PollManagerRedeemer, type PollShardContent, PollShardParams, type PollShardParamsSP, PollShardRedeemer, type PollStatus, type PriceOracleDatum, PriceOracleDatumSchema, type PriceOracleParams, PriceOracleParamsSchema, type PriceOracleRedeemer, ProposalContent, ProposalContentSchema, type ProposeAssetContent, ProtocolParams, ProtocolParamsSchema, type PubKeyHash, SNAPSHOT_EPOCH_TO_SCALE_TO_SUM_TOKEN_NAME, type SPInteger, SPIntegerSchema, STABILITY_POOL_TOKEN_NAME, STAKING_MANAGER_TOKEN_NAME, STAKING_TOKEN_NAME, type ScriptCredential, type ScriptOutput, type ScriptRef, type ScriptReference, type ScriptReferences, type SnapshotEpochToScaleToSumContent, SnapshotEpochToScaleToSumContentSchema, type StabilityPoolContent, StabilityPoolContentSchema, StabilityPoolDatumSchema, StabilityPoolParams, type StabilityPoolParamsSP, type StabilityPoolRedeemer, StabilityPoolRedeemerSchema, type StabilityPoolSnapshot, StakeCredentialSchema, type StakingManager, type StakingManagerOutput, type StakingParamsSP, type StakingPosLockedAmt, type StakingPosition, type StakingPositionOutput, type StakingRedeemer, type StartTime, type SystemParams, TOTAL_INDY_SUPPLY, TREASURY_INDY_AMOUNT, type TokenName, TreasuryParams, type TreasuryParamsSP, TreasuryParamsSchema, type TreasuryRedeemer, type TreasuryWithdrawal, type TreasuryWithdrawalItem, TreasuryWithdrawalSchema, UPGRADE_TOKEN_NAME, type UpgradePaths, type UtxoOrOutRef, VERSION_RECORD_TOKEN_NAME, type ValidatorHashes, VerificationKeyHashSchema, type VersionRecordParams, VersionRecordTokenParams, type VoteOption, type WithdrawalOutputDatum, addrDetails, addressFromBech32, addressToBech32, adjust, adjustLrp, adjustSpAccount, adjustStakingPosition, adjustmentHelper, annulRequest, approximateLeverageRedemptions, assetClassToUnit, assetClassValueOf, balance, buildRedemptionsTx, burnCdp, calculateAccruedInterest, calculateAdaReward, calculateCollateralRatioFromLeverage, calculateIAssetRedemptionAmt, calculateLeverageFromCollateralRatio, calculateMinCollateralCappedIAssetRedemptionAmt, calculateTotalAdaForRedemption, calculateUnitaryInterest, calculateUnitaryInterestSinceOracleLastUpdated, cancelLrp, castCDPCreatorParams, castCdpParams, castExecuteParams, castGovParams, castInterestOracleParams, castLrpParams, castPollManagerParams, castPollShardParams, castPriceOracleParams, castStabilityPoolParams, castStakingParams, castTreasuryParams, castVersionRecordTokenParams, cdpCollateralRatioPercentage, claimLrp, closeCdp, closeSpAccount, closeStakingPosition, collectorFeeTx, computeInterestLovelacesFor100PercentCR, createProposal, createScriptAddress, createShardsChunks, createSpAccount, depositCdp, distributeAda, distributeReward, endProposal, executeProposal, feedInterestOracle, feedPriceOracleTx, findStakingManager, findStakingManagerByOutRef, findStakingPositionByOutRef, freezeCdp, fromSPInteger, fromSysParamsScriptCredential, fromSystemParamsAsset, fromSystemParamsScriptRef, getAccountFund, getAccountReward, getInlineDatumOrThrow, getRandomElement, getSumFromEpochToScaleToSum, init, initEpochToScaleToSumMap, initSpSnapshot, insertSorted, isAssetsZero, leverageCdpWithLrp, liquidateCdp, liquidationHelper, loadSystemParamsFromFile, loadSystemParamsFromUrl, lovelacesAmt, lrpRedeemableLovelacesInclReimb, matchSingle, mergeCdps, mergeShards, mintCdp, mkAssetsOf, mkCDPCreatorValidator, mkCDPCreatorValidatorFromSP, mkCdpValidatorFromSP, mkCollectorValidatorFromSP, mkExecuteValidator, mkExecuteValidatorFromSP, mkInterestOracleValidator, mkLovelacesOf, mkLrpValidator, mkLrpValidatorFromSP, mkPollManagerValidator, mkPollManagerValidatorFromSP, mkPollShardValidator, mkPollShardValidatorFromSP, mkSPInteger, mkTreasuryValidatorFromSP, mkVersionRecordTokenPolicy, mkVersionRegistryValidator, negateAssets, oneShotMintTx, openCdp, openLrp, openStakingPosition, oracleExpirationAwareValidity, parseAccountDatum, parseCdpDatum, parseCdpDatumOrThrow, parseExecuteDatum, parseExecuteDatumOrThrow, parseGovDatum, parseGovDatumOrThrow, parseIAssetDatum, parseIAssetDatumOrThrow, parseInterestOracleDatum, parseLrpDatum, parseLrpDatumOrThrow, parsePollManager, parsePollManagerOrThrow, parsePollShard, parsePollShardOrThrow, parsePriceOracleDatum, parseSnapshotEpochToScaleToSumDatum, parseStabilityPoolDatum, parseStakingManagerDatum, parseStakingPosition, parseStakingPositionOrThrow, parseUpgradePaths, processSpRequest, randomLrpsSubsetSatisfyingTargetLovelaces, redeemCdp, redeemLrp, resolveUtxo, rewardSnapshotPrecision, runCreateScriptRefTx, runOneShotMintTx, scriptRef, serialiseCDPCreatorDatum, serialiseCDPCreatorRedeemer, serialiseCdpDatum, serialiseCdpRedeemer, serialiseCollectorRedeemer, serialiseExecuteDatum, serialiseFeedInterestOracleRedeemer, serialiseGovDatum, serialiseGovRedeemer, serialiseIAssetDatum, serialiseInterestOracleDatum, serialiseLrpDatum, serialiseLrpRedeemer, serialisePollDatum, serialisePollManagerRedeemer, serialisePollShardRedeemer, serialisePriceOracleDatum, serialisePriceOracleRedeemer, serialiseStabilityPoolDatum, serialiseStabilityPoolRedeemer, serialiseStakingDatum, serialiseStakingRedeemer, serialiseTreasuryDatum, serialiseTreasuryRedeemer, serialiseUpgradePaths, serialiseWithdrawalOutputDatum, setSumInEpochToScaleToSum, shuffle, spAdd, spDiv, spMul, spSub, startInterestOracle, startPriceOracleTx, submitAndAwaitTx, summarizeActualLeverageRedemptions, toSystemParamsAsset, treasuryFeeTx, updatePoolSnapshotWithdrawalFee, updateSlotConfigNetwork, updateStakingLockedAmount, vote, withdrawCdp };
|