@indigo-labs/indigo-sdk 0.2.37 → 0.2.39

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 CHANGED
@@ -1736,6 +1736,52 @@ declare const mkVersionRegistryValidator: () => SpendingValidator;
1736
1736
 
1737
1737
  declare function treasuryFeeTx(fee: bigint, lucid: LucidEvolution, sysParams: SystemParams, tx: TxBuilder, treasury: UtxoOrOutRef): Promise<void>;
1738
1738
 
1739
+ declare const OracleAssetNftSchema: _lucid_evolution_lucid.TObject<{
1740
+ oracleNft: _lucid_evolution_lucid.TObject<{
1741
+ currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
1742
+ tokenName: _lucid_evolution_lucid.TUnsafe<string>;
1743
+ }>;
1744
+ }>;
1745
+ type OracleAssetNft = Data.Static<typeof OracleAssetNftSchema>;
1746
+ declare const PriceOracleParamsSchema: _lucid_evolution_lucid.TObject<{
1747
+ owner: _lucid_evolution_lucid.TUnsafe<string>;
1748
+ /** Milliseconds */
1749
+ biasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
1750
+ /** Milliseconds */
1751
+ expiration: _lucid_evolution_lucid.TUnsafe<bigint>;
1752
+ }>;
1753
+ type PriceOracleParams = Data.Static<typeof PriceOracleParamsSchema>;
1754
+ declare const PriceOracleDatumSchema: _lucid_evolution_lucid.TObject<{
1755
+ price: _lucid_evolution_lucid.TObject<{
1756
+ getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1757
+ }>;
1758
+ expiration: _lucid_evolution_lucid.TUnsafe<bigint>;
1759
+ }>;
1760
+ type PriceOracleDatum = Data.Static<typeof PriceOracleDatumSchema>;
1761
+ declare const PriceOracleRedeemerSchema: _lucid_evolution_lucid.TObject<{
1762
+ currentTime: _lucid_evolution_lucid.TUnsafe<bigint>;
1763
+ newPrice: _lucid_evolution_lucid.TObject<{
1764
+ getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1765
+ }>;
1766
+ }>;
1767
+ type PriceOracleRedeemer = Data.Static<typeof PriceOracleRedeemerSchema>;
1768
+ declare function serialisePriceOracleRedeemer(r: PriceOracleRedeemer): Redeemer;
1769
+ declare function parsePriceOracleDatum(datum: Datum): PriceOracleDatum;
1770
+ declare function serialisePriceOracleDatum(datum: PriceOracleDatum): Datum;
1771
+ declare function castPriceOracleParams(params: PriceOracleParams): Data;
1772
+
1773
+ declare function startPriceOracleTx(lucid: LucidEvolution, assetName: string, startPrice: OnChainDecimal, oracleParams: PriceOracleParams, now?: number, refOutRef?: OutRef): Promise<[TxBuilder, OracleAssetNft]>;
1774
+ declare function feedPriceOracleTx(lucid: LucidEvolution, oracle: UtxoOrOutRef, newPrice: OnChainDecimal, oracleParams: PriceOracleParams, currentSlot: number): Promise<TxBuilder>;
1775
+
1776
+ /**
1777
+ * Calculates the validity range based on the oracle expiration,
1778
+ * and caps the upper bound when necessary.
1779
+ */
1780
+ declare function oracleExpirationAwareValidity(currentSlot: number, biasTime: number, oracleExpiration: number, network: Network): {
1781
+ validFrom: number;
1782
+ validTo: number;
1783
+ };
1784
+
1739
1785
  declare const initSpSnapshot: StabilityPoolSnapshot;
1740
1786
  declare const initEpochToScaleToSumMap: () => EpochToScaleToSum;
1741
1787
  declare function getSumFromEpochToScaleToSum(e2s2s: EpochToScaleToSum, epoch: bigint, scale: bigint): SPInteger | undefined;
@@ -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
@@ -1736,6 +1736,52 @@ declare const mkVersionRegistryValidator: () => SpendingValidator;
1736
1736
 
1737
1737
  declare function treasuryFeeTx(fee: bigint, lucid: LucidEvolution, sysParams: SystemParams, tx: TxBuilder, treasury: UtxoOrOutRef): Promise<void>;
1738
1738
 
1739
+ declare const OracleAssetNftSchema: _lucid_evolution_lucid.TObject<{
1740
+ oracleNft: _lucid_evolution_lucid.TObject<{
1741
+ currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
1742
+ tokenName: _lucid_evolution_lucid.TUnsafe<string>;
1743
+ }>;
1744
+ }>;
1745
+ type OracleAssetNft = Data.Static<typeof OracleAssetNftSchema>;
1746
+ declare const PriceOracleParamsSchema: _lucid_evolution_lucid.TObject<{
1747
+ owner: _lucid_evolution_lucid.TUnsafe<string>;
1748
+ /** Milliseconds */
1749
+ biasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
1750
+ /** Milliseconds */
1751
+ expiration: _lucid_evolution_lucid.TUnsafe<bigint>;
1752
+ }>;
1753
+ type PriceOracleParams = Data.Static<typeof PriceOracleParamsSchema>;
1754
+ declare const PriceOracleDatumSchema: _lucid_evolution_lucid.TObject<{
1755
+ price: _lucid_evolution_lucid.TObject<{
1756
+ getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1757
+ }>;
1758
+ expiration: _lucid_evolution_lucid.TUnsafe<bigint>;
1759
+ }>;
1760
+ type PriceOracleDatum = Data.Static<typeof PriceOracleDatumSchema>;
1761
+ declare const PriceOracleRedeemerSchema: _lucid_evolution_lucid.TObject<{
1762
+ currentTime: _lucid_evolution_lucid.TUnsafe<bigint>;
1763
+ newPrice: _lucid_evolution_lucid.TObject<{
1764
+ getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1765
+ }>;
1766
+ }>;
1767
+ type PriceOracleRedeemer = Data.Static<typeof PriceOracleRedeemerSchema>;
1768
+ declare function serialisePriceOracleRedeemer(r: PriceOracleRedeemer): Redeemer;
1769
+ declare function parsePriceOracleDatum(datum: Datum): PriceOracleDatum;
1770
+ declare function serialisePriceOracleDatum(datum: PriceOracleDatum): Datum;
1771
+ declare function castPriceOracleParams(params: PriceOracleParams): Data;
1772
+
1773
+ declare function startPriceOracleTx(lucid: LucidEvolution, assetName: string, startPrice: OnChainDecimal, oracleParams: PriceOracleParams, now?: number, refOutRef?: OutRef): Promise<[TxBuilder, OracleAssetNft]>;
1774
+ declare function feedPriceOracleTx(lucid: LucidEvolution, oracle: UtxoOrOutRef, newPrice: OnChainDecimal, oracleParams: PriceOracleParams, currentSlot: number): Promise<TxBuilder>;
1775
+
1776
+ /**
1777
+ * Calculates the validity range based on the oracle expiration,
1778
+ * and caps the upper bound when necessary.
1779
+ */
1780
+ declare function oracleExpirationAwareValidity(currentSlot: number, biasTime: number, oracleExpiration: number, network: Network): {
1781
+ validFrom: number;
1782
+ validTo: number;
1783
+ };
1784
+
1739
1785
  declare const initSpSnapshot: StabilityPoolSnapshot;
1740
1786
  declare const initEpochToScaleToSumMap: () => EpochToScaleToSum;
1741
1787
  declare function getSumFromEpochToScaleToSum(e2s2s: EpochToScaleToSum, epoch: bigint, scale: bigint): SPInteger | undefined;
@@ -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 };