@indigo-labs/indigo-sdk 0.3.4 → 0.3.6

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
@@ -1750,6 +1750,9 @@ type GovParams = Data.Static<typeof GovParamsSchema>;
1750
1750
  declare const GovParams: GovParams;
1751
1751
  declare function castGovParams(params: GovParams): Data;
1752
1752
 
1753
+ declare const mkGovValidator: (params: GovParams) => SpendingValidator;
1754
+ declare const mkGovValidatorFromSP: (params: GovParamsSP) => SpendingValidator;
1755
+
1753
1756
  declare function requestSpAccountCreation(assetAscii: string, amount: bigint, sysParams: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
1754
1757
  declare function requestSpAccountAdjustment(amount: bigint, accountUtxo: UTxO, sysParams: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
1755
1758
  declare function requestSpAccountClosure(accountUtxo: UTxO, sysParams: SystemParams, lucid: LucidEvolution, maxTxFee?: bigint): Promise<TxBuilder>;
@@ -1761,6 +1764,58 @@ allE2s2sSnapshotOrefs: OutRef[], sysParams: SystemParams, lucid: LucidEvolution,
1761
1764
  declare function createE2s2sSnapshots(stabilityPoolOref: OutRef, sysParams: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
1762
1765
  declare function annulRequest(accountUtxo: UTxO, params: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
1763
1766
 
1767
+ /** SP Parameters */
1768
+ declare const StabilityPoolParamsSchema: _lucid_evolution_lucid.TObject<{
1769
+ assetSymbol: _lucid_evolution_lucid.TUnsafe<string>;
1770
+ stabilityPoolToken: _lucid_evolution_lucid.TObject<{
1771
+ currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
1772
+ tokenName: _lucid_evolution_lucid.TUnsafe<string>;
1773
+ }>;
1774
+ snapshotEpochToScaleToSumToken: _lucid_evolution_lucid.TObject<{
1775
+ currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
1776
+ tokenName: _lucid_evolution_lucid.TUnsafe<string>;
1777
+ }>;
1778
+ accountToken: _lucid_evolution_lucid.TObject<{
1779
+ currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
1780
+ tokenName: _lucid_evolution_lucid.TUnsafe<string>;
1781
+ }>;
1782
+ cdpToken: _lucid_evolution_lucid.TObject<{
1783
+ currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
1784
+ tokenName: _lucid_evolution_lucid.TUnsafe<string>;
1785
+ }>;
1786
+ iAssetAuthToken: _lucid_evolution_lucid.TObject<{
1787
+ currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
1788
+ tokenName: _lucid_evolution_lucid.TUnsafe<string>;
1789
+ }>;
1790
+ versionRecordToken: _lucid_evolution_lucid.TObject<{
1791
+ currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
1792
+ tokenName: _lucid_evolution_lucid.TUnsafe<string>;
1793
+ }>;
1794
+ iassetValHash: _lucid_evolution_lucid.TUnsafe<string>;
1795
+ accountCreateFeeLovelaces: _lucid_evolution_lucid.TUnsafe<bigint>;
1796
+ accountProcessingCooldownMs: _lucid_evolution_lucid.TUnsafe<bigint>;
1797
+ accountProcessingBiasMs: _lucid_evolution_lucid.TUnsafe<bigint>;
1798
+ stakeCredential: _lucid_evolution_lucid.TUnsafe<{
1799
+ Inline: [{
1800
+ PublicKeyCredential: [string];
1801
+ } | {
1802
+ ScriptCredential: [string];
1803
+ }];
1804
+ } | {
1805
+ Pointer: [{
1806
+ slotNumber: bigint;
1807
+ transactionIndex: bigint;
1808
+ certificateIndex: bigint;
1809
+ }];
1810
+ } | null>;
1811
+ }>;
1812
+ type StabilityPoolParams = Data.Static<typeof StabilityPoolParamsSchema>;
1813
+ declare const StabilityPoolParams: StabilityPoolParams;
1814
+ declare function castStabilityPoolParams(params: StabilityPoolParams): Data;
1815
+
1816
+ declare const mkStabilityPoolValidator: (params: StabilityPoolParams) => SpendingValidator;
1817
+ declare const mkStabilityPoolValidatorFromSP: (params: StabilityPoolParamsSP) => SpendingValidator;
1818
+
1764
1819
  declare function openStakingPosition(amount: bigint, params: SystemParams, lucid: LucidEvolution, stakingManagerRef?: OutRef): Promise<TxBuilder>;
1765
1820
  declare function adjustStakingPosition(stakingPositionRef: OutRef, amount: bigint, params: SystemParams, lucid: LucidEvolution, currentSlot: number, stakingManagerRef?: OutRef): Promise<TxBuilder>;
1766
1821
  declare function closeStakingPosition(stakingPositionRef: OutRef, params: SystemParams, lucid: LucidEvolution, currentSlot: number, stakingManagerRef?: OutRef): Promise<TxBuilder>;
@@ -2874,55 +2929,6 @@ declare const PriceOracleParamsSchema: _lucid_evolution_lucid.TObject<{
2874
2929
  type PriceOracleParams = Data.Static<typeof PriceOracleParamsSchema>;
2875
2930
  declare function castPriceOracleParams(params: PriceOracleParams): Data;
2876
2931
 
2877
- /** SP Parameters */
2878
- declare const StabilityPoolParamsSchema: _lucid_evolution_lucid.TObject<{
2879
- assetSymbol: _lucid_evolution_lucid.TUnsafe<string>;
2880
- stabilityPoolToken: _lucid_evolution_lucid.TObject<{
2881
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
2882
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
2883
- }>;
2884
- snapshotEpochToScaleToSumToken: _lucid_evolution_lucid.TObject<{
2885
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
2886
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
2887
- }>;
2888
- accountToken: _lucid_evolution_lucid.TObject<{
2889
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
2890
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
2891
- }>;
2892
- cdpToken: _lucid_evolution_lucid.TObject<{
2893
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
2894
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
2895
- }>;
2896
- iAssetAuthToken: _lucid_evolution_lucid.TObject<{
2897
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
2898
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
2899
- }>;
2900
- versionRecordToken: _lucid_evolution_lucid.TObject<{
2901
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
2902
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
2903
- }>;
2904
- iassetValHash: _lucid_evolution_lucid.TUnsafe<string>;
2905
- accountCreateFeeLovelaces: _lucid_evolution_lucid.TUnsafe<bigint>;
2906
- accountProcessingCooldownMs: _lucid_evolution_lucid.TUnsafe<bigint>;
2907
- accountProcessingBiasMs: _lucid_evolution_lucid.TUnsafe<bigint>;
2908
- stakeCredential: _lucid_evolution_lucid.TUnsafe<{
2909
- Inline: [{
2910
- PublicKeyCredential: [string];
2911
- } | {
2912
- ScriptCredential: [string];
2913
- }];
2914
- } | {
2915
- Pointer: [{
2916
- slotNumber: bigint;
2917
- transactionIndex: bigint;
2918
- certificateIndex: bigint;
2919
- }];
2920
- } | null>;
2921
- }>;
2922
- type StabilityPoolParams = Data.Static<typeof StabilityPoolParamsSchema>;
2923
- declare const StabilityPoolParams: StabilityPoolParams;
2924
- declare function castStabilityPoolParams(params: StabilityPoolParams): Data;
2925
-
2926
2932
  declare const RobOrderTypeSchema: TSchema.Union<[TSchema.Struct<{
2927
2933
  BuyIAssetOrder: TSchema.Struct<{
2928
2934
  collateralAsset: TSchema.Struct<{
@@ -3583,6 +3589,29 @@ declare function encodeSignedPythMessage(update: PriceUpdate, secretKey: Uint8Ar
3583
3589
 
3584
3590
  declare const mkPythFeedValidator: (params: PythFeedParams) => SpendingValidator;
3585
3591
 
3592
+ declare const IAssetScriptParamsSchema: _lucid_evolution_lucid.TObject<{
3593
+ upgradeToken: _lucid_evolution_lucid.TObject<{
3594
+ currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
3595
+ tokenName: _lucid_evolution_lucid.TUnsafe<string>;
3596
+ }>;
3597
+ versionRecordToken: _lucid_evolution_lucid.TObject<{
3598
+ currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
3599
+ tokenName: _lucid_evolution_lucid.TUnsafe<string>;
3600
+ }>;
3601
+ }>;
3602
+ type IAssetScriptParams = Data.Static<typeof IAssetScriptParamsSchema>;
3603
+ declare const IAssetScriptParams: IAssetScriptParams;
3604
+ declare const mkIAssetValidatorFromSP: (params: IAssetParamsSP) => SpendingValidator;
3605
+
3606
+ type Interval = {
3607
+ validFrom: number;
3608
+ validTo: number;
3609
+ };
3610
+ declare function attachOracle(iasset: Uint8Array<ArrayBufferLike>, collateralAsset: AssetClass, priceInfo: IAssetPriceInfo, priceOracleOref: OutRef | undefined, pythStateOref: OutRef | undefined, pythMessage: string | undefined, pythConfig: PythConfig, biasTime: bigint, currentSlot: number, lucid: LucidEvolution, tx: TxBuilder): Promise<{
3611
+ interval: Interval;
3612
+ referenceInputs: UTxO[];
3613
+ }>;
3614
+
3586
3615
  declare const BASE_MAX_EXECUTION_FEE = 1000000n;
3587
3616
  declare function createDestinationDatum(datum: Data$1.Data | null, outRef: OutRef): string;
3588
3617
 
@@ -3649,10 +3678,29 @@ declare function serialiseStableswapOrderRedeemer(r: StableswapOrderRedeemer): s
3649
3678
  declare function parseStableswapOrderRedeemer(redeemerCborHex: string): option.Option<StableswapOrderRedeemer>;
3650
3679
  declare function parseStableswapOrderRedeemerOrThrow(redeemerCborHex: string): StableswapOrderRedeemer;
3651
3680
 
3681
+ declare const StableswapParamsSchema: _lucid_evolution_lucid.TObject<{
3682
+ iassetSymbol: _lucid_evolution_lucid.TUnsafe<string>;
3683
+ cdpToken: _lucid_evolution_lucid.TObject<{
3684
+ currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
3685
+ tokenName: _lucid_evolution_lucid.TUnsafe<string>;
3686
+ }>;
3687
+ versionRecordToken: _lucid_evolution_lucid.TObject<{
3688
+ currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
3689
+ tokenName: _lucid_evolution_lucid.TUnsafe<string>;
3690
+ }>;
3691
+ cdpValHash: _lucid_evolution_lucid.TUnsafe<string>;
3692
+ treasuryValHash: _lucid_evolution_lucid.TUnsafe<string>;
3693
+ }>;
3694
+ type StableswapParams = Data.Static<typeof StableswapParamsSchema>;
3695
+ declare const StableswapParams: StableswapParams;
3696
+
3697
+ declare const mkStableswapValidator: (params: StableswapParams) => SpendingValidator;
3698
+ declare const mkStableswapValidatorFromSP: (params: StableswapParamsSP) => SpendingValidator;
3699
+
3652
3700
  declare function mkIAssetTokenPolicy(ac: AssetClass): MintingPolicy;
3653
3701
 
3654
3702
  declare function mkAuthTokenPolicy(ac: AssetClass, tn: string): MintingPolicy;
3655
3703
 
3656
3704
  declare const alwaysFailValidator: SpendingValidator;
3657
3705
 
3658
- export { type AccountAction, type AccountContent, AccountContentSchema, type ActionReturnDatum, type AddCollateralAsssetContent, type AddressCredential, type AddressCredentialOrDatum, type AddressSP, AikenIntervalIntervalBound, AikenIntervalIntervalBoundType, type Amount, type AssetClassD, type AssetClassSP, AssetClassSchema, type AssetInfo, type AssetSnapshot, type AssetState, type AuthTokenPolicies, BASE_MAX_EXECUTION_FEE, BASE_MAX_TX_FEE, BigIntOrd, type CDPContent, CDPCreatorParams, type CDPCreatorParamsSP, type CDPDatum, CardanoTransactionValidityRange, type CdpParams, type CdpParamsSP, type CdpRedeemParams, type CdpRedeemParamsSP, type CdpRedeemer, type CollateralAssetContent, type CollateralAssetInfo, type CollateralAssetOutput, type CollectorParamsSP, type CollectorRedeemer, CollectorRedeemerSchema, CredentialD, CredentialSchema, type CurrencySymbolSP, DEFAULT_INIT_OPTIONS, type DerivedPythPrice, type DerivedPythPriceSP, DerivedPythPriceSchema, type E2S2SIndex, type E2S2SIndicesPerAsset, type EpochToScaleKey, type EpochToScaleToSumEntry, type ExecuteDatum, ExecuteParams, type ExecuteParamsSP, type Feed, type FindE2S2SIdxResult, type GovDatum, GovParams, type GovParamsSP, type GovRedeemer, type IAssetContent, type IAssetDatum, type IAssetOutput, type IAssetParamsSP, type IAssetPriceInfo, IAssetPriceInfoSchema, type IAssetRedeemer, INIT_TOKEN_NAMES, type IndigoOracleNftParam, type InitialAssetParam, type InitialCollateralAssetParam, type InitialStablepoolParam, type InitializeOptions, type Input, type InterestCollectionDatum, type InterestCollectionParams, type InterestCollectionParamsSP, InterestCollectionParamsSchema, type InterestCollectionRedeemer, type InterestOracleDatum, InterestOracleDatumSchema, type InterestOracleParams, InterestOracleParamsSchema, type InterestOracleRedeemer, MAX_E2S2S_ENTRIES_COUNT, MIN_ROB_COLLATERAL_AMT, type MarketSession, type ModifyStableswapPoolContent, ONE_DAY, ONE_HOUR, ONE_SECOND, ONE_YEAR, type OracleIdx, OracleIdxSchema, type Output, PRICE_UPDATE_MAGIC, type ParsedOutput, PollManagerParams, type PollManagerParamsSP, PollShardParams, type PollShardParamsSP, type PriceOracleDatum, type PriceOracleParam, type PriceOracleParams, PriceOracleParamsSchema, type PriceOracleRedeemer, type PriceUpdate, type ProcessRequestAccountContent, type ProposalContent, ProposalContentSchema, type ProposeAssetContent, type ProposeStableswapPoolContent, type ProtocolParams, ProtocolParamsSchema, type PubKeyHash, type PythConfig, type PythConfiguration, type PythFeedConfig, type PythFeedParams, type PythFeedParamsSP, type PythFeedRedeemer, type PythMessageParts, type PythOracleParam, type PythPriceConfigurationSP, type PythStateDatum, type PythUpdatesRedeemer, type Rational, RationalSchema, type RedeemCdpWithdrawalRedeemer, type RobDatum, type RobOrderType, type RobOutput, type RobParams, type RobParamsSP, RobParamsSchema, type RobRedeemer, SOLANA_FORMAT_MAGIC, type SPInteger, SPIntegerSchema, type ScriptCredential, type ScriptOutput, type ScriptRef, type ScriptReference, type ScriptReferences, type SnapshotEpochToScaleToSumContent, SnapshotEpochToScaleToSumContentSchema, type StabilityPoolContent, StabilityPoolContentSchema, StabilityPoolDatumSchema, StabilityPoolParams, type StabilityPoolParamsSP, type StabilityPoolRedeemer, StabilityPoolRedeemerSchema, type StableswapOrderDatum, StableswapOrderDatumSchema, type StableswapOrderRedeemer, type StableswapOutputDatum, type StableswapParamsSP, type StableswapPoolContent, StakeCredential, StakeCredentialSchema, type StakingManager, type StakingManagerOutput, type StakingParamsSP, type StakingPosLockedAmt, type StakingPosition, type StakingPositionOutput, type StakingRedeemer, type StartTime, type StateSnapshot, type SumSnapshot, type SystemParams, type TokenNameSP, type TreasuryParamsSP, type TreasuryWithdrawal, type TreasuryWithdrawalItem, TreasuryWithdrawalSchema, type UpgradePaths, type ValidatorHashes, VerificationKeyHashSchema, type VersionRecordParams, VersionRecordTokenParams, addrDetails, adjustCdp, adjustPriceToDecimals, adjustRob, adjustStakingPosition, alwaysFailValidator, annulRequest, balance, batchCollectInterest, batchProcessStableswapOrders, bigintMax, bigintMin, buildRedemptionsTx, burnCdp, calculateAccruedInterest, calculateAdaReward, calculateIAssetRedemptionAmt, calculateMinCollateralCappedIAssetRedemptionAmt, calculateUnitaryInterest, calculateUnitaryInterestSinceOracleLastUpdated, cancelRob, cancelStableswapOrder, castCDPCreatorParams, castCdpParams, castCdpRedeemParams, castExecuteParams, castGovParams, castInterestCollectionParams, castInterestOracleParams, castPollManagerParams, castPollShardParams, castPriceOracleParams, castRobParams, castStabilityPoolParams, castStakingParams, castVersionRecordTokenParams, cdpCollateralRatioPercentage, claimRob, closeCdp, closeStakingPosition, collectInterestTx, collectorFeeTx, createDestinationDatum, createE2s2sSnapshots, createProcessRequestAccountRedeemer, createProposal, createScriptAddress, createShardsChunks, createStableswapOrder, decodePriceUpdate, decodePythMessage, depositCdp, deriveAuthToken, distributeAda, distributeInterest, distributeReward, divideOnChainCompatible, encodePriceUpdate, encodePythMessage, encodeSignedPythMessage, endProposal, estimateUtxoMinLovelace, executeProposal, feedInterestOracle, feedPriceOracleTx, findRelevantE2s2sIdxs, findStakingManager, findStakingManagerByOutRef, findStakingPositionByOutRef, freezeCdp, fromDataDerivedPythPrice, fromDecimal, fromSPInteger, fromSysParamsCredential, fromSysParamsDerivedPythPrice, fromSysParamsPythFeedParams, fromSysParamsStakeCredential, fromSystemParamsAsset, fromSystemParamsAssetLucid, fromSystemParamsScriptRef, getAssetClassComparisonStr, getInlineDatumOrThrow, getPythFeedConfig, getRandomElement, getUpdatedAccountDeposit, handleOracleForCollateralAsset, init, initCDPCreator, initCollector, initGovernance, initInterestCollector, initPythConfig, initScriptRef, initSpState, initStakingManager, initSumVal, initTreasury, initializeAsset, insertSorted, isFullyRedeemed, isSameEpochToScaleKey, liquidateCdp, liquidationHelper, loadSystemParamsFromFile, loadSystemParamsFromUrl, matchSingle, mergeCdps, mergeShards, mintAuthTokenDirect, mintCdp, mintOneTimeAsset, mintOneTimeToken, mkAuthTokenPolicy, mkCDPCreatorValidator, mkCDPCreatorValidatorFromSP, mkCdpRedeemValidatorFromSP, mkCdpValidatorFromSP, mkCollectorValidatorFromSP, mkExecuteValidator, mkExecuteValidatorFromSP, mkIAssetTokenPolicy, mkInterestCollectionValidator, mkInterestCollectionValidatorFromSP, mkInterestOracleValidator, mkPollManagerValidator, mkPollManagerValidatorFromSP, mkPollShardValidator, mkPollShardValidatorFromSP, mkPriceOracleValidator, mkPythFeedValidator, mkRobValidator, mkRobValidatorFromSP, mkSPInteger, mkStabilityPoolAddr, mkStakingValidatorFromSP, mkTreasuryAddr, mkTreasuryValidatorFromSP, mkVersionRecordTokenPolicy, mkVersionRegistryValidator, oneShotMintTx, openCdp, openRob, openStakingPosition, parseAccountDatum, parseAccountDatumOrThrow, parseCdpDatum, parseCdpDatumOrThrow, parseCollateralAssetDatum, parseCollateralAssetDatumOrThrow, parseExecuteDatum, parseExecuteDatumOrThrow, parseGovDatum, parseGovDatumOrThrow, parseIAssetDatum, parseIAssetDatumOrThrow, parseInterestCollectionDatum, parseInterestOracleDatum, parsePriceOracleDatum, parsePythStateDatum, parseRobDatum, parseRobDatumOrThrow, parseRobRedeemer, parseRobRedeemerOrThrow, parseSnapshotEpochToScaleToSumDatum, parseSnapshotEpochToScaleToSumDatumOrThrow, parseStabilityPoolDatum, parseStabilityPoolDatumOrThrow, parseStableswapOrderDatum, parseStableswapOrderDatumOrThrow, parseStableswapOrderRedeemer, parseStableswapOrderRedeemerOrThrow, parseStableswapPoolDatum, parseStableswapPoolDatumOrThrow, parseStakingManagerDatum, parseStakingPosition, parseStakingPositionOrThrow, partitionEpochToScaleToSums, processSpRequest, rationalAdd, rationalCeil, rationalDiv, rationalFloor, rationalFromInt, rationalMul, rationalNegate, rationalSub, rationalToFloat, rationalZero, redeemCdp, redeemRob, repsertReadonlyArr, repsertWithReadonlyArr, requestSpAccountAdjustment, requestSpAccountClosure, requestSpAccountCreation, rewardSnapshotPrecision, robAmountToSpend, runCreateScriptRefTx, runOneShotMintTx, scriptRef, serialiseActionReturnDatum, serialiseCdpDatum, serialiseCdpRedeemer, serialiseCollectorRedeemer, serialiseExecuteDatum, serialiseFeedInterestOracleRedeemer, serialiseGovDatum, serialiseGovRedeemer, serialiseIAssetDatum, serialiseIAssetRedeemer, serialiseInterestCollectionDatum, serialiseInterestCollectionRedeemer, serialiseInterestOracleDatum, serialisePriceOracleDatum, serialisePriceOracleRedeemer, serialisePythFeedParams, serialisePythFeedRedeemer, serialisePythStateDatum, serialisePythUpdatesRedeemer, serialiseRedeemCdpWithdrawalRedeemer, serialiseRobDatum, serialiseRobRedeemer, serialiseStabilityPoolDatum, serialiseStabilityPoolRedeemer, serialiseStableswapOrderDatum, serialiseStableswapOrderRedeemer, serialiseStableswapOutputDatum, serialiseStableswapPoolDatum, serialiseStakingDatum, serialiseStakingRedeemer, shuffle, signersAllOf, spAdd, spDiv, spMul, spSub, spZeroNegatives, startInterestOracle, startPriceOracleTx, submitTx, sum, toAssetClassFromLucid, toDataDerivedPythPrice, toSystemParamsAsset, treasuryCollect, treasuryFeeTx, treasuryMerge, treasuryPrepareWithdrawal, treasurySplit, updateAccount, updatePermissions, updatePoolStateWhenWithdrawalFee, updateStableswapPoolFees, updateStakingLockedAmount, vote, withdrawCdp, zeroNegatives };
3706
+ export { type AccountAction, type AccountContent, AccountContentSchema, type ActionReturnDatum, type AddCollateralAsssetContent, type AddressCredential, type AddressCredentialOrDatum, type AddressSP, AikenIntervalIntervalBound, AikenIntervalIntervalBoundType, type Amount, type AssetClassD, type AssetClassSP, AssetClassSchema, type AssetInfo, type AssetSnapshot, type AssetState, type AuthTokenPolicies, BASE_MAX_EXECUTION_FEE, BASE_MAX_TX_FEE, BigIntOrd, type CDPContent, CDPCreatorParams, type CDPCreatorParamsSP, type CDPDatum, CardanoTransactionValidityRange, type CdpParams, type CdpParamsSP, type CdpRedeemParams, type CdpRedeemParamsSP, type CdpRedeemer, type CollateralAssetContent, type CollateralAssetInfo, type CollateralAssetOutput, type CollectorParamsSP, type CollectorRedeemer, CollectorRedeemerSchema, CredentialD, CredentialSchema, type CurrencySymbolSP, DEFAULT_INIT_OPTIONS, type DerivedPythPrice, type DerivedPythPriceSP, DerivedPythPriceSchema, type E2S2SIndex, type E2S2SIndicesPerAsset, type EpochToScaleKey, type EpochToScaleToSumEntry, type ExecuteDatum, ExecuteParams, type ExecuteParamsSP, type Feed, type FindE2S2SIdxResult, type GovDatum, GovParams, type GovParamsSP, type GovRedeemer, type IAssetContent, type IAssetDatum, type IAssetOutput, type IAssetParamsSP, type IAssetPriceInfo, IAssetPriceInfoSchema, type IAssetRedeemer, IAssetScriptParams, INIT_TOKEN_NAMES, type IndigoOracleNftParam, type InitialAssetParam, type InitialCollateralAssetParam, type InitialStablepoolParam, type InitializeOptions, type Input, type InterestCollectionDatum, type InterestCollectionParams, type InterestCollectionParamsSP, InterestCollectionParamsSchema, type InterestCollectionRedeemer, type InterestOracleDatum, InterestOracleDatumSchema, type InterestOracleParams, InterestOracleParamsSchema, type InterestOracleRedeemer, MAX_E2S2S_ENTRIES_COUNT, MIN_ROB_COLLATERAL_AMT, type MarketSession, type ModifyStableswapPoolContent, ONE_DAY, ONE_HOUR, ONE_SECOND, ONE_YEAR, type OracleIdx, OracleIdxSchema, type Output, PRICE_UPDATE_MAGIC, type ParsedOutput, PollManagerParams, type PollManagerParamsSP, PollShardParams, type PollShardParamsSP, type PriceOracleDatum, type PriceOracleParam, type PriceOracleParams, PriceOracleParamsSchema, type PriceOracleRedeemer, type PriceUpdate, type ProcessRequestAccountContent, type ProposalContent, ProposalContentSchema, type ProposeAssetContent, type ProposeStableswapPoolContent, type ProtocolParams, ProtocolParamsSchema, type PubKeyHash, type PythConfig, type PythConfiguration, type PythFeedConfig, type PythFeedParams, type PythFeedParamsSP, type PythFeedRedeemer, type PythMessageParts, type PythOracleParam, type PythPriceConfigurationSP, type PythStateDatum, type PythUpdatesRedeemer, type Rational, RationalSchema, type RedeemCdpWithdrawalRedeemer, type RobDatum, type RobOrderType, type RobOutput, type RobParams, type RobParamsSP, RobParamsSchema, type RobRedeemer, SOLANA_FORMAT_MAGIC, type SPInteger, SPIntegerSchema, type ScriptCredential, type ScriptOutput, type ScriptRef, type ScriptReference, type ScriptReferences, type SnapshotEpochToScaleToSumContent, SnapshotEpochToScaleToSumContentSchema, type StabilityPoolContent, StabilityPoolContentSchema, StabilityPoolDatumSchema, StabilityPoolParams, type StabilityPoolParamsSP, type StabilityPoolRedeemer, StabilityPoolRedeemerSchema, type StableswapOrderDatum, StableswapOrderDatumSchema, type StableswapOrderRedeemer, type StableswapOutputDatum, type StableswapParamsSP, type StableswapPoolContent, StakeCredential, StakeCredentialSchema, type StakingManager, type StakingManagerOutput, type StakingParamsSP, type StakingPosLockedAmt, type StakingPosition, type StakingPositionOutput, type StakingRedeemer, type StartTime, type StateSnapshot, type SumSnapshot, type SystemParams, type TokenNameSP, type TreasuryParamsSP, type TreasuryWithdrawal, type TreasuryWithdrawalItem, TreasuryWithdrawalSchema, type UpgradePaths, type ValidatorHashes, VerificationKeyHashSchema, type VersionRecordParams, VersionRecordTokenParams, addrDetails, adjustCdp, adjustPriceToDecimals, adjustRob, adjustStakingPosition, alwaysFailValidator, annulRequest, attachOracle, balance, batchCollectInterest, batchProcessStableswapOrders, bigintMax, bigintMin, buildRedemptionsTx, burnCdp, calculateAccruedInterest, calculateAdaReward, calculateIAssetRedemptionAmt, calculateMinCollateralCappedIAssetRedemptionAmt, calculateUnitaryInterest, calculateUnitaryInterestSinceOracleLastUpdated, cancelRob, cancelStableswapOrder, castCDPCreatorParams, castCdpParams, castCdpRedeemParams, castExecuteParams, castGovParams, castInterestCollectionParams, castInterestOracleParams, castPollManagerParams, castPollShardParams, castPriceOracleParams, castRobParams, castStabilityPoolParams, castStakingParams, castVersionRecordTokenParams, cdpCollateralRatioPercentage, claimRob, closeCdp, closeStakingPosition, collectInterestTx, collectorFeeTx, createDestinationDatum, createE2s2sSnapshots, createProcessRequestAccountRedeemer, createProposal, createScriptAddress, createShardsChunks, createStableswapOrder, decodePriceUpdate, decodePythMessage, depositCdp, deriveAuthToken, distributeAda, distributeInterest, distributeReward, divideOnChainCompatible, encodePriceUpdate, encodePythMessage, encodeSignedPythMessage, endProposal, estimateUtxoMinLovelace, executeProposal, feedInterestOracle, feedPriceOracleTx, findRelevantE2s2sIdxs, findStakingManager, findStakingManagerByOutRef, findStakingPositionByOutRef, freezeCdp, fromDataDerivedPythPrice, fromDecimal, fromSPInteger, fromSysParamsCredential, fromSysParamsDerivedPythPrice, fromSysParamsPythFeedParams, fromSysParamsStakeCredential, fromSystemParamsAsset, fromSystemParamsAssetLucid, fromSystemParamsScriptRef, getAssetClassComparisonStr, getInlineDatumOrThrow, getPythFeedConfig, getRandomElement, getUpdatedAccountDeposit, handleOracleForCollateralAsset, init, initCDPCreator, initCollector, initGovernance, initInterestCollector, initPythConfig, initScriptRef, initSpState, initStakingManager, initSumVal, initTreasury, initializeAsset, insertSorted, isFullyRedeemed, isSameEpochToScaleKey, liquidateCdp, liquidationHelper, loadSystemParamsFromFile, loadSystemParamsFromUrl, matchSingle, mergeCdps, mergeShards, mintAuthTokenDirect, mintCdp, mintOneTimeAsset, mintOneTimeToken, mkAuthTokenPolicy, mkCDPCreatorValidator, mkCDPCreatorValidatorFromSP, mkCdpRedeemValidatorFromSP, mkCdpValidatorFromSP, mkCollectorValidatorFromSP, mkExecuteValidator, mkExecuteValidatorFromSP, mkGovValidator, mkGovValidatorFromSP, mkIAssetTokenPolicy, mkIAssetValidatorFromSP, mkInterestCollectionValidator, mkInterestCollectionValidatorFromSP, mkInterestOracleValidator, mkPollManagerValidator, mkPollManagerValidatorFromSP, mkPollShardValidator, mkPollShardValidatorFromSP, mkPriceOracleValidator, mkPythFeedValidator, mkRobValidator, mkRobValidatorFromSP, mkSPInteger, mkStabilityPoolAddr, mkStabilityPoolValidator, mkStabilityPoolValidatorFromSP, mkStableswapValidator, mkStableswapValidatorFromSP, mkStakingValidatorFromSP, mkTreasuryAddr, mkTreasuryValidatorFromSP, mkVersionRecordTokenPolicy, mkVersionRegistryValidator, oneShotMintTx, openCdp, openRob, openStakingPosition, parseAccountDatum, parseAccountDatumOrThrow, parseCdpDatum, parseCdpDatumOrThrow, parseCollateralAssetDatum, parseCollateralAssetDatumOrThrow, parseExecuteDatum, parseExecuteDatumOrThrow, parseGovDatum, parseGovDatumOrThrow, parseIAssetDatum, parseIAssetDatumOrThrow, parseInterestCollectionDatum, parseInterestOracleDatum, parsePriceOracleDatum, parsePythStateDatum, parseRobDatum, parseRobDatumOrThrow, parseRobRedeemer, parseRobRedeemerOrThrow, parseSnapshotEpochToScaleToSumDatum, parseSnapshotEpochToScaleToSumDatumOrThrow, parseStabilityPoolDatum, parseStabilityPoolDatumOrThrow, parseStableswapOrderDatum, parseStableswapOrderDatumOrThrow, parseStableswapOrderRedeemer, parseStableswapOrderRedeemerOrThrow, parseStableswapPoolDatum, parseStableswapPoolDatumOrThrow, parseStakingManagerDatum, parseStakingPosition, parseStakingPositionOrThrow, partitionEpochToScaleToSums, processSpRequest, rationalAdd, rationalCeil, rationalDiv, rationalFloor, rationalFromInt, rationalMul, rationalNegate, rationalSub, rationalToFloat, rationalZero, redeemCdp, redeemRob, repsertReadonlyArr, repsertWithReadonlyArr, requestSpAccountAdjustment, requestSpAccountClosure, requestSpAccountCreation, rewardSnapshotPrecision, robAmountToSpend, runCreateScriptRefTx, runOneShotMintTx, scriptRef, serialiseActionReturnDatum, serialiseCdpDatum, serialiseCdpRedeemer, serialiseCollectorRedeemer, serialiseExecuteDatum, serialiseFeedInterestOracleRedeemer, serialiseGovDatum, serialiseGovRedeemer, serialiseIAssetDatum, serialiseIAssetRedeemer, serialiseInterestCollectionDatum, serialiseInterestCollectionRedeemer, serialiseInterestOracleDatum, serialisePriceOracleDatum, serialisePriceOracleRedeemer, serialisePythFeedParams, serialisePythFeedRedeemer, serialisePythStateDatum, serialisePythUpdatesRedeemer, serialiseRedeemCdpWithdrawalRedeemer, serialiseRobDatum, serialiseRobRedeemer, serialiseStabilityPoolDatum, serialiseStabilityPoolRedeemer, serialiseStableswapOrderDatum, serialiseStableswapOrderRedeemer, serialiseStableswapOutputDatum, serialiseStableswapPoolDatum, serialiseStakingDatum, serialiseStakingRedeemer, shuffle, signersAllOf, spAdd, spDiv, spMul, spSub, spZeroNegatives, startInterestOracle, startPriceOracleTx, submitTx, sum, toAssetClassFromLucid, toDataDerivedPythPrice, toSystemParamsAsset, treasuryCollect, treasuryFeeTx, treasuryMerge, treasuryPrepareWithdrawal, treasurySplit, updateAccount, updatePermissions, updatePoolStateWhenWithdrawalFee, updateStableswapPoolFees, updateStakingLockedAmount, vote, withdrawCdp, zeroNegatives };
package/dist/index.d.ts CHANGED
@@ -1750,6 +1750,9 @@ type GovParams = Data.Static<typeof GovParamsSchema>;
1750
1750
  declare const GovParams: GovParams;
1751
1751
  declare function castGovParams(params: GovParams): Data;
1752
1752
 
1753
+ declare const mkGovValidator: (params: GovParams) => SpendingValidator;
1754
+ declare const mkGovValidatorFromSP: (params: GovParamsSP) => SpendingValidator;
1755
+
1753
1756
  declare function requestSpAccountCreation(assetAscii: string, amount: bigint, sysParams: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
1754
1757
  declare function requestSpAccountAdjustment(amount: bigint, accountUtxo: UTxO, sysParams: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
1755
1758
  declare function requestSpAccountClosure(accountUtxo: UTxO, sysParams: SystemParams, lucid: LucidEvolution, maxTxFee?: bigint): Promise<TxBuilder>;
@@ -1761,6 +1764,58 @@ allE2s2sSnapshotOrefs: OutRef[], sysParams: SystemParams, lucid: LucidEvolution,
1761
1764
  declare function createE2s2sSnapshots(stabilityPoolOref: OutRef, sysParams: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
1762
1765
  declare function annulRequest(accountUtxo: UTxO, params: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
1763
1766
 
1767
+ /** SP Parameters */
1768
+ declare const StabilityPoolParamsSchema: _lucid_evolution_lucid.TObject<{
1769
+ assetSymbol: _lucid_evolution_lucid.TUnsafe<string>;
1770
+ stabilityPoolToken: _lucid_evolution_lucid.TObject<{
1771
+ currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
1772
+ tokenName: _lucid_evolution_lucid.TUnsafe<string>;
1773
+ }>;
1774
+ snapshotEpochToScaleToSumToken: _lucid_evolution_lucid.TObject<{
1775
+ currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
1776
+ tokenName: _lucid_evolution_lucid.TUnsafe<string>;
1777
+ }>;
1778
+ accountToken: _lucid_evolution_lucid.TObject<{
1779
+ currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
1780
+ tokenName: _lucid_evolution_lucid.TUnsafe<string>;
1781
+ }>;
1782
+ cdpToken: _lucid_evolution_lucid.TObject<{
1783
+ currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
1784
+ tokenName: _lucid_evolution_lucid.TUnsafe<string>;
1785
+ }>;
1786
+ iAssetAuthToken: _lucid_evolution_lucid.TObject<{
1787
+ currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
1788
+ tokenName: _lucid_evolution_lucid.TUnsafe<string>;
1789
+ }>;
1790
+ versionRecordToken: _lucid_evolution_lucid.TObject<{
1791
+ currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
1792
+ tokenName: _lucid_evolution_lucid.TUnsafe<string>;
1793
+ }>;
1794
+ iassetValHash: _lucid_evolution_lucid.TUnsafe<string>;
1795
+ accountCreateFeeLovelaces: _lucid_evolution_lucid.TUnsafe<bigint>;
1796
+ accountProcessingCooldownMs: _lucid_evolution_lucid.TUnsafe<bigint>;
1797
+ accountProcessingBiasMs: _lucid_evolution_lucid.TUnsafe<bigint>;
1798
+ stakeCredential: _lucid_evolution_lucid.TUnsafe<{
1799
+ Inline: [{
1800
+ PublicKeyCredential: [string];
1801
+ } | {
1802
+ ScriptCredential: [string];
1803
+ }];
1804
+ } | {
1805
+ Pointer: [{
1806
+ slotNumber: bigint;
1807
+ transactionIndex: bigint;
1808
+ certificateIndex: bigint;
1809
+ }];
1810
+ } | null>;
1811
+ }>;
1812
+ type StabilityPoolParams = Data.Static<typeof StabilityPoolParamsSchema>;
1813
+ declare const StabilityPoolParams: StabilityPoolParams;
1814
+ declare function castStabilityPoolParams(params: StabilityPoolParams): Data;
1815
+
1816
+ declare const mkStabilityPoolValidator: (params: StabilityPoolParams) => SpendingValidator;
1817
+ declare const mkStabilityPoolValidatorFromSP: (params: StabilityPoolParamsSP) => SpendingValidator;
1818
+
1764
1819
  declare function openStakingPosition(amount: bigint, params: SystemParams, lucid: LucidEvolution, stakingManagerRef?: OutRef): Promise<TxBuilder>;
1765
1820
  declare function adjustStakingPosition(stakingPositionRef: OutRef, amount: bigint, params: SystemParams, lucid: LucidEvolution, currentSlot: number, stakingManagerRef?: OutRef): Promise<TxBuilder>;
1766
1821
  declare function closeStakingPosition(stakingPositionRef: OutRef, params: SystemParams, lucid: LucidEvolution, currentSlot: number, stakingManagerRef?: OutRef): Promise<TxBuilder>;
@@ -2874,55 +2929,6 @@ declare const PriceOracleParamsSchema: _lucid_evolution_lucid.TObject<{
2874
2929
  type PriceOracleParams = Data.Static<typeof PriceOracleParamsSchema>;
2875
2930
  declare function castPriceOracleParams(params: PriceOracleParams): Data;
2876
2931
 
2877
- /** SP Parameters */
2878
- declare const StabilityPoolParamsSchema: _lucid_evolution_lucid.TObject<{
2879
- assetSymbol: _lucid_evolution_lucid.TUnsafe<string>;
2880
- stabilityPoolToken: _lucid_evolution_lucid.TObject<{
2881
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
2882
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
2883
- }>;
2884
- snapshotEpochToScaleToSumToken: _lucid_evolution_lucid.TObject<{
2885
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
2886
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
2887
- }>;
2888
- accountToken: _lucid_evolution_lucid.TObject<{
2889
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
2890
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
2891
- }>;
2892
- cdpToken: _lucid_evolution_lucid.TObject<{
2893
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
2894
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
2895
- }>;
2896
- iAssetAuthToken: _lucid_evolution_lucid.TObject<{
2897
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
2898
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
2899
- }>;
2900
- versionRecordToken: _lucid_evolution_lucid.TObject<{
2901
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
2902
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
2903
- }>;
2904
- iassetValHash: _lucid_evolution_lucid.TUnsafe<string>;
2905
- accountCreateFeeLovelaces: _lucid_evolution_lucid.TUnsafe<bigint>;
2906
- accountProcessingCooldownMs: _lucid_evolution_lucid.TUnsafe<bigint>;
2907
- accountProcessingBiasMs: _lucid_evolution_lucid.TUnsafe<bigint>;
2908
- stakeCredential: _lucid_evolution_lucid.TUnsafe<{
2909
- Inline: [{
2910
- PublicKeyCredential: [string];
2911
- } | {
2912
- ScriptCredential: [string];
2913
- }];
2914
- } | {
2915
- Pointer: [{
2916
- slotNumber: bigint;
2917
- transactionIndex: bigint;
2918
- certificateIndex: bigint;
2919
- }];
2920
- } | null>;
2921
- }>;
2922
- type StabilityPoolParams = Data.Static<typeof StabilityPoolParamsSchema>;
2923
- declare const StabilityPoolParams: StabilityPoolParams;
2924
- declare function castStabilityPoolParams(params: StabilityPoolParams): Data;
2925
-
2926
2932
  declare const RobOrderTypeSchema: TSchema.Union<[TSchema.Struct<{
2927
2933
  BuyIAssetOrder: TSchema.Struct<{
2928
2934
  collateralAsset: TSchema.Struct<{
@@ -3583,6 +3589,29 @@ declare function encodeSignedPythMessage(update: PriceUpdate, secretKey: Uint8Ar
3583
3589
 
3584
3590
  declare const mkPythFeedValidator: (params: PythFeedParams) => SpendingValidator;
3585
3591
 
3592
+ declare const IAssetScriptParamsSchema: _lucid_evolution_lucid.TObject<{
3593
+ upgradeToken: _lucid_evolution_lucid.TObject<{
3594
+ currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
3595
+ tokenName: _lucid_evolution_lucid.TUnsafe<string>;
3596
+ }>;
3597
+ versionRecordToken: _lucid_evolution_lucid.TObject<{
3598
+ currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
3599
+ tokenName: _lucid_evolution_lucid.TUnsafe<string>;
3600
+ }>;
3601
+ }>;
3602
+ type IAssetScriptParams = Data.Static<typeof IAssetScriptParamsSchema>;
3603
+ declare const IAssetScriptParams: IAssetScriptParams;
3604
+ declare const mkIAssetValidatorFromSP: (params: IAssetParamsSP) => SpendingValidator;
3605
+
3606
+ type Interval = {
3607
+ validFrom: number;
3608
+ validTo: number;
3609
+ };
3610
+ declare function attachOracle(iasset: Uint8Array<ArrayBufferLike>, collateralAsset: AssetClass, priceInfo: IAssetPriceInfo, priceOracleOref: OutRef | undefined, pythStateOref: OutRef | undefined, pythMessage: string | undefined, pythConfig: PythConfig, biasTime: bigint, currentSlot: number, lucid: LucidEvolution, tx: TxBuilder): Promise<{
3611
+ interval: Interval;
3612
+ referenceInputs: UTxO[];
3613
+ }>;
3614
+
3586
3615
  declare const BASE_MAX_EXECUTION_FEE = 1000000n;
3587
3616
  declare function createDestinationDatum(datum: Data$1.Data | null, outRef: OutRef): string;
3588
3617
 
@@ -3649,10 +3678,29 @@ declare function serialiseStableswapOrderRedeemer(r: StableswapOrderRedeemer): s
3649
3678
  declare function parseStableswapOrderRedeemer(redeemerCborHex: string): option.Option<StableswapOrderRedeemer>;
3650
3679
  declare function parseStableswapOrderRedeemerOrThrow(redeemerCborHex: string): StableswapOrderRedeemer;
3651
3680
 
3681
+ declare const StableswapParamsSchema: _lucid_evolution_lucid.TObject<{
3682
+ iassetSymbol: _lucid_evolution_lucid.TUnsafe<string>;
3683
+ cdpToken: _lucid_evolution_lucid.TObject<{
3684
+ currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
3685
+ tokenName: _lucid_evolution_lucid.TUnsafe<string>;
3686
+ }>;
3687
+ versionRecordToken: _lucid_evolution_lucid.TObject<{
3688
+ currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
3689
+ tokenName: _lucid_evolution_lucid.TUnsafe<string>;
3690
+ }>;
3691
+ cdpValHash: _lucid_evolution_lucid.TUnsafe<string>;
3692
+ treasuryValHash: _lucid_evolution_lucid.TUnsafe<string>;
3693
+ }>;
3694
+ type StableswapParams = Data.Static<typeof StableswapParamsSchema>;
3695
+ declare const StableswapParams: StableswapParams;
3696
+
3697
+ declare const mkStableswapValidator: (params: StableswapParams) => SpendingValidator;
3698
+ declare const mkStableswapValidatorFromSP: (params: StableswapParamsSP) => SpendingValidator;
3699
+
3652
3700
  declare function mkIAssetTokenPolicy(ac: AssetClass): MintingPolicy;
3653
3701
 
3654
3702
  declare function mkAuthTokenPolicy(ac: AssetClass, tn: string): MintingPolicy;
3655
3703
 
3656
3704
  declare const alwaysFailValidator: SpendingValidator;
3657
3705
 
3658
- export { type AccountAction, type AccountContent, AccountContentSchema, type ActionReturnDatum, type AddCollateralAsssetContent, type AddressCredential, type AddressCredentialOrDatum, type AddressSP, AikenIntervalIntervalBound, AikenIntervalIntervalBoundType, type Amount, type AssetClassD, type AssetClassSP, AssetClassSchema, type AssetInfo, type AssetSnapshot, type AssetState, type AuthTokenPolicies, BASE_MAX_EXECUTION_FEE, BASE_MAX_TX_FEE, BigIntOrd, type CDPContent, CDPCreatorParams, type CDPCreatorParamsSP, type CDPDatum, CardanoTransactionValidityRange, type CdpParams, type CdpParamsSP, type CdpRedeemParams, type CdpRedeemParamsSP, type CdpRedeemer, type CollateralAssetContent, type CollateralAssetInfo, type CollateralAssetOutput, type CollectorParamsSP, type CollectorRedeemer, CollectorRedeemerSchema, CredentialD, CredentialSchema, type CurrencySymbolSP, DEFAULT_INIT_OPTIONS, type DerivedPythPrice, type DerivedPythPriceSP, DerivedPythPriceSchema, type E2S2SIndex, type E2S2SIndicesPerAsset, type EpochToScaleKey, type EpochToScaleToSumEntry, type ExecuteDatum, ExecuteParams, type ExecuteParamsSP, type Feed, type FindE2S2SIdxResult, type GovDatum, GovParams, type GovParamsSP, type GovRedeemer, type IAssetContent, type IAssetDatum, type IAssetOutput, type IAssetParamsSP, type IAssetPriceInfo, IAssetPriceInfoSchema, type IAssetRedeemer, INIT_TOKEN_NAMES, type IndigoOracleNftParam, type InitialAssetParam, type InitialCollateralAssetParam, type InitialStablepoolParam, type InitializeOptions, type Input, type InterestCollectionDatum, type InterestCollectionParams, type InterestCollectionParamsSP, InterestCollectionParamsSchema, type InterestCollectionRedeemer, type InterestOracleDatum, InterestOracleDatumSchema, type InterestOracleParams, InterestOracleParamsSchema, type InterestOracleRedeemer, MAX_E2S2S_ENTRIES_COUNT, MIN_ROB_COLLATERAL_AMT, type MarketSession, type ModifyStableswapPoolContent, ONE_DAY, ONE_HOUR, ONE_SECOND, ONE_YEAR, type OracleIdx, OracleIdxSchema, type Output, PRICE_UPDATE_MAGIC, type ParsedOutput, PollManagerParams, type PollManagerParamsSP, PollShardParams, type PollShardParamsSP, type PriceOracleDatum, type PriceOracleParam, type PriceOracleParams, PriceOracleParamsSchema, type PriceOracleRedeemer, type PriceUpdate, type ProcessRequestAccountContent, type ProposalContent, ProposalContentSchema, type ProposeAssetContent, type ProposeStableswapPoolContent, type ProtocolParams, ProtocolParamsSchema, type PubKeyHash, type PythConfig, type PythConfiguration, type PythFeedConfig, type PythFeedParams, type PythFeedParamsSP, type PythFeedRedeemer, type PythMessageParts, type PythOracleParam, type PythPriceConfigurationSP, type PythStateDatum, type PythUpdatesRedeemer, type Rational, RationalSchema, type RedeemCdpWithdrawalRedeemer, type RobDatum, type RobOrderType, type RobOutput, type RobParams, type RobParamsSP, RobParamsSchema, type RobRedeemer, SOLANA_FORMAT_MAGIC, type SPInteger, SPIntegerSchema, type ScriptCredential, type ScriptOutput, type ScriptRef, type ScriptReference, type ScriptReferences, type SnapshotEpochToScaleToSumContent, SnapshotEpochToScaleToSumContentSchema, type StabilityPoolContent, StabilityPoolContentSchema, StabilityPoolDatumSchema, StabilityPoolParams, type StabilityPoolParamsSP, type StabilityPoolRedeemer, StabilityPoolRedeemerSchema, type StableswapOrderDatum, StableswapOrderDatumSchema, type StableswapOrderRedeemer, type StableswapOutputDatum, type StableswapParamsSP, type StableswapPoolContent, StakeCredential, StakeCredentialSchema, type StakingManager, type StakingManagerOutput, type StakingParamsSP, type StakingPosLockedAmt, type StakingPosition, type StakingPositionOutput, type StakingRedeemer, type StartTime, type StateSnapshot, type SumSnapshot, type SystemParams, type TokenNameSP, type TreasuryParamsSP, type TreasuryWithdrawal, type TreasuryWithdrawalItem, TreasuryWithdrawalSchema, type UpgradePaths, type ValidatorHashes, VerificationKeyHashSchema, type VersionRecordParams, VersionRecordTokenParams, addrDetails, adjustCdp, adjustPriceToDecimals, adjustRob, adjustStakingPosition, alwaysFailValidator, annulRequest, balance, batchCollectInterest, batchProcessStableswapOrders, bigintMax, bigintMin, buildRedemptionsTx, burnCdp, calculateAccruedInterest, calculateAdaReward, calculateIAssetRedemptionAmt, calculateMinCollateralCappedIAssetRedemptionAmt, calculateUnitaryInterest, calculateUnitaryInterestSinceOracleLastUpdated, cancelRob, cancelStableswapOrder, castCDPCreatorParams, castCdpParams, castCdpRedeemParams, castExecuteParams, castGovParams, castInterestCollectionParams, castInterestOracleParams, castPollManagerParams, castPollShardParams, castPriceOracleParams, castRobParams, castStabilityPoolParams, castStakingParams, castVersionRecordTokenParams, cdpCollateralRatioPercentage, claimRob, closeCdp, closeStakingPosition, collectInterestTx, collectorFeeTx, createDestinationDatum, createE2s2sSnapshots, createProcessRequestAccountRedeemer, createProposal, createScriptAddress, createShardsChunks, createStableswapOrder, decodePriceUpdate, decodePythMessage, depositCdp, deriveAuthToken, distributeAda, distributeInterest, distributeReward, divideOnChainCompatible, encodePriceUpdate, encodePythMessage, encodeSignedPythMessage, endProposal, estimateUtxoMinLovelace, executeProposal, feedInterestOracle, feedPriceOracleTx, findRelevantE2s2sIdxs, findStakingManager, findStakingManagerByOutRef, findStakingPositionByOutRef, freezeCdp, fromDataDerivedPythPrice, fromDecimal, fromSPInteger, fromSysParamsCredential, fromSysParamsDerivedPythPrice, fromSysParamsPythFeedParams, fromSysParamsStakeCredential, fromSystemParamsAsset, fromSystemParamsAssetLucid, fromSystemParamsScriptRef, getAssetClassComparisonStr, getInlineDatumOrThrow, getPythFeedConfig, getRandomElement, getUpdatedAccountDeposit, handleOracleForCollateralAsset, init, initCDPCreator, initCollector, initGovernance, initInterestCollector, initPythConfig, initScriptRef, initSpState, initStakingManager, initSumVal, initTreasury, initializeAsset, insertSorted, isFullyRedeemed, isSameEpochToScaleKey, liquidateCdp, liquidationHelper, loadSystemParamsFromFile, loadSystemParamsFromUrl, matchSingle, mergeCdps, mergeShards, mintAuthTokenDirect, mintCdp, mintOneTimeAsset, mintOneTimeToken, mkAuthTokenPolicy, mkCDPCreatorValidator, mkCDPCreatorValidatorFromSP, mkCdpRedeemValidatorFromSP, mkCdpValidatorFromSP, mkCollectorValidatorFromSP, mkExecuteValidator, mkExecuteValidatorFromSP, mkIAssetTokenPolicy, mkInterestCollectionValidator, mkInterestCollectionValidatorFromSP, mkInterestOracleValidator, mkPollManagerValidator, mkPollManagerValidatorFromSP, mkPollShardValidator, mkPollShardValidatorFromSP, mkPriceOracleValidator, mkPythFeedValidator, mkRobValidator, mkRobValidatorFromSP, mkSPInteger, mkStabilityPoolAddr, mkStakingValidatorFromSP, mkTreasuryAddr, mkTreasuryValidatorFromSP, mkVersionRecordTokenPolicy, mkVersionRegistryValidator, oneShotMintTx, openCdp, openRob, openStakingPosition, parseAccountDatum, parseAccountDatumOrThrow, parseCdpDatum, parseCdpDatumOrThrow, parseCollateralAssetDatum, parseCollateralAssetDatumOrThrow, parseExecuteDatum, parseExecuteDatumOrThrow, parseGovDatum, parseGovDatumOrThrow, parseIAssetDatum, parseIAssetDatumOrThrow, parseInterestCollectionDatum, parseInterestOracleDatum, parsePriceOracleDatum, parsePythStateDatum, parseRobDatum, parseRobDatumOrThrow, parseRobRedeemer, parseRobRedeemerOrThrow, parseSnapshotEpochToScaleToSumDatum, parseSnapshotEpochToScaleToSumDatumOrThrow, parseStabilityPoolDatum, parseStabilityPoolDatumOrThrow, parseStableswapOrderDatum, parseStableswapOrderDatumOrThrow, parseStableswapOrderRedeemer, parseStableswapOrderRedeemerOrThrow, parseStableswapPoolDatum, parseStableswapPoolDatumOrThrow, parseStakingManagerDatum, parseStakingPosition, parseStakingPositionOrThrow, partitionEpochToScaleToSums, processSpRequest, rationalAdd, rationalCeil, rationalDiv, rationalFloor, rationalFromInt, rationalMul, rationalNegate, rationalSub, rationalToFloat, rationalZero, redeemCdp, redeemRob, repsertReadonlyArr, repsertWithReadonlyArr, requestSpAccountAdjustment, requestSpAccountClosure, requestSpAccountCreation, rewardSnapshotPrecision, robAmountToSpend, runCreateScriptRefTx, runOneShotMintTx, scriptRef, serialiseActionReturnDatum, serialiseCdpDatum, serialiseCdpRedeemer, serialiseCollectorRedeemer, serialiseExecuteDatum, serialiseFeedInterestOracleRedeemer, serialiseGovDatum, serialiseGovRedeemer, serialiseIAssetDatum, serialiseIAssetRedeemer, serialiseInterestCollectionDatum, serialiseInterestCollectionRedeemer, serialiseInterestOracleDatum, serialisePriceOracleDatum, serialisePriceOracleRedeemer, serialisePythFeedParams, serialisePythFeedRedeemer, serialisePythStateDatum, serialisePythUpdatesRedeemer, serialiseRedeemCdpWithdrawalRedeemer, serialiseRobDatum, serialiseRobRedeemer, serialiseStabilityPoolDatum, serialiseStabilityPoolRedeemer, serialiseStableswapOrderDatum, serialiseStableswapOrderRedeemer, serialiseStableswapOutputDatum, serialiseStableswapPoolDatum, serialiseStakingDatum, serialiseStakingRedeemer, shuffle, signersAllOf, spAdd, spDiv, spMul, spSub, spZeroNegatives, startInterestOracle, startPriceOracleTx, submitTx, sum, toAssetClassFromLucid, toDataDerivedPythPrice, toSystemParamsAsset, treasuryCollect, treasuryFeeTx, treasuryMerge, treasuryPrepareWithdrawal, treasurySplit, updateAccount, updatePermissions, updatePoolStateWhenWithdrawalFee, updateStableswapPoolFees, updateStakingLockedAmount, vote, withdrawCdp, zeroNegatives };
3706
+ export { type AccountAction, type AccountContent, AccountContentSchema, type ActionReturnDatum, type AddCollateralAsssetContent, type AddressCredential, type AddressCredentialOrDatum, type AddressSP, AikenIntervalIntervalBound, AikenIntervalIntervalBoundType, type Amount, type AssetClassD, type AssetClassSP, AssetClassSchema, type AssetInfo, type AssetSnapshot, type AssetState, type AuthTokenPolicies, BASE_MAX_EXECUTION_FEE, BASE_MAX_TX_FEE, BigIntOrd, type CDPContent, CDPCreatorParams, type CDPCreatorParamsSP, type CDPDatum, CardanoTransactionValidityRange, type CdpParams, type CdpParamsSP, type CdpRedeemParams, type CdpRedeemParamsSP, type CdpRedeemer, type CollateralAssetContent, type CollateralAssetInfo, type CollateralAssetOutput, type CollectorParamsSP, type CollectorRedeemer, CollectorRedeemerSchema, CredentialD, CredentialSchema, type CurrencySymbolSP, DEFAULT_INIT_OPTIONS, type DerivedPythPrice, type DerivedPythPriceSP, DerivedPythPriceSchema, type E2S2SIndex, type E2S2SIndicesPerAsset, type EpochToScaleKey, type EpochToScaleToSumEntry, type ExecuteDatum, ExecuteParams, type ExecuteParamsSP, type Feed, type FindE2S2SIdxResult, type GovDatum, GovParams, type GovParamsSP, type GovRedeemer, type IAssetContent, type IAssetDatum, type IAssetOutput, type IAssetParamsSP, type IAssetPriceInfo, IAssetPriceInfoSchema, type IAssetRedeemer, IAssetScriptParams, INIT_TOKEN_NAMES, type IndigoOracleNftParam, type InitialAssetParam, type InitialCollateralAssetParam, type InitialStablepoolParam, type InitializeOptions, type Input, type InterestCollectionDatum, type InterestCollectionParams, type InterestCollectionParamsSP, InterestCollectionParamsSchema, type InterestCollectionRedeemer, type InterestOracleDatum, InterestOracleDatumSchema, type InterestOracleParams, InterestOracleParamsSchema, type InterestOracleRedeemer, MAX_E2S2S_ENTRIES_COUNT, MIN_ROB_COLLATERAL_AMT, type MarketSession, type ModifyStableswapPoolContent, ONE_DAY, ONE_HOUR, ONE_SECOND, ONE_YEAR, type OracleIdx, OracleIdxSchema, type Output, PRICE_UPDATE_MAGIC, type ParsedOutput, PollManagerParams, type PollManagerParamsSP, PollShardParams, type PollShardParamsSP, type PriceOracleDatum, type PriceOracleParam, type PriceOracleParams, PriceOracleParamsSchema, type PriceOracleRedeemer, type PriceUpdate, type ProcessRequestAccountContent, type ProposalContent, ProposalContentSchema, type ProposeAssetContent, type ProposeStableswapPoolContent, type ProtocolParams, ProtocolParamsSchema, type PubKeyHash, type PythConfig, type PythConfiguration, type PythFeedConfig, type PythFeedParams, type PythFeedParamsSP, type PythFeedRedeemer, type PythMessageParts, type PythOracleParam, type PythPriceConfigurationSP, type PythStateDatum, type PythUpdatesRedeemer, type Rational, RationalSchema, type RedeemCdpWithdrawalRedeemer, type RobDatum, type RobOrderType, type RobOutput, type RobParams, type RobParamsSP, RobParamsSchema, type RobRedeemer, SOLANA_FORMAT_MAGIC, type SPInteger, SPIntegerSchema, type ScriptCredential, type ScriptOutput, type ScriptRef, type ScriptReference, type ScriptReferences, type SnapshotEpochToScaleToSumContent, SnapshotEpochToScaleToSumContentSchema, type StabilityPoolContent, StabilityPoolContentSchema, StabilityPoolDatumSchema, StabilityPoolParams, type StabilityPoolParamsSP, type StabilityPoolRedeemer, StabilityPoolRedeemerSchema, type StableswapOrderDatum, StableswapOrderDatumSchema, type StableswapOrderRedeemer, type StableswapOutputDatum, type StableswapParamsSP, type StableswapPoolContent, StakeCredential, StakeCredentialSchema, type StakingManager, type StakingManagerOutput, type StakingParamsSP, type StakingPosLockedAmt, type StakingPosition, type StakingPositionOutput, type StakingRedeemer, type StartTime, type StateSnapshot, type SumSnapshot, type SystemParams, type TokenNameSP, type TreasuryParamsSP, type TreasuryWithdrawal, type TreasuryWithdrawalItem, TreasuryWithdrawalSchema, type UpgradePaths, type ValidatorHashes, VerificationKeyHashSchema, type VersionRecordParams, VersionRecordTokenParams, addrDetails, adjustCdp, adjustPriceToDecimals, adjustRob, adjustStakingPosition, alwaysFailValidator, annulRequest, attachOracle, balance, batchCollectInterest, batchProcessStableswapOrders, bigintMax, bigintMin, buildRedemptionsTx, burnCdp, calculateAccruedInterest, calculateAdaReward, calculateIAssetRedemptionAmt, calculateMinCollateralCappedIAssetRedemptionAmt, calculateUnitaryInterest, calculateUnitaryInterestSinceOracleLastUpdated, cancelRob, cancelStableswapOrder, castCDPCreatorParams, castCdpParams, castCdpRedeemParams, castExecuteParams, castGovParams, castInterestCollectionParams, castInterestOracleParams, castPollManagerParams, castPollShardParams, castPriceOracleParams, castRobParams, castStabilityPoolParams, castStakingParams, castVersionRecordTokenParams, cdpCollateralRatioPercentage, claimRob, closeCdp, closeStakingPosition, collectInterestTx, collectorFeeTx, createDestinationDatum, createE2s2sSnapshots, createProcessRequestAccountRedeemer, createProposal, createScriptAddress, createShardsChunks, createStableswapOrder, decodePriceUpdate, decodePythMessage, depositCdp, deriveAuthToken, distributeAda, distributeInterest, distributeReward, divideOnChainCompatible, encodePriceUpdate, encodePythMessage, encodeSignedPythMessage, endProposal, estimateUtxoMinLovelace, executeProposal, feedInterestOracle, feedPriceOracleTx, findRelevantE2s2sIdxs, findStakingManager, findStakingManagerByOutRef, findStakingPositionByOutRef, freezeCdp, fromDataDerivedPythPrice, fromDecimal, fromSPInteger, fromSysParamsCredential, fromSysParamsDerivedPythPrice, fromSysParamsPythFeedParams, fromSysParamsStakeCredential, fromSystemParamsAsset, fromSystemParamsAssetLucid, fromSystemParamsScriptRef, getAssetClassComparisonStr, getInlineDatumOrThrow, getPythFeedConfig, getRandomElement, getUpdatedAccountDeposit, handleOracleForCollateralAsset, init, initCDPCreator, initCollector, initGovernance, initInterestCollector, initPythConfig, initScriptRef, initSpState, initStakingManager, initSumVal, initTreasury, initializeAsset, insertSorted, isFullyRedeemed, isSameEpochToScaleKey, liquidateCdp, liquidationHelper, loadSystemParamsFromFile, loadSystemParamsFromUrl, matchSingle, mergeCdps, mergeShards, mintAuthTokenDirect, mintCdp, mintOneTimeAsset, mintOneTimeToken, mkAuthTokenPolicy, mkCDPCreatorValidator, mkCDPCreatorValidatorFromSP, mkCdpRedeemValidatorFromSP, mkCdpValidatorFromSP, mkCollectorValidatorFromSP, mkExecuteValidator, mkExecuteValidatorFromSP, mkGovValidator, mkGovValidatorFromSP, mkIAssetTokenPolicy, mkIAssetValidatorFromSP, mkInterestCollectionValidator, mkInterestCollectionValidatorFromSP, mkInterestOracleValidator, mkPollManagerValidator, mkPollManagerValidatorFromSP, mkPollShardValidator, mkPollShardValidatorFromSP, mkPriceOracleValidator, mkPythFeedValidator, mkRobValidator, mkRobValidatorFromSP, mkSPInteger, mkStabilityPoolAddr, mkStabilityPoolValidator, mkStabilityPoolValidatorFromSP, mkStableswapValidator, mkStableswapValidatorFromSP, mkStakingValidatorFromSP, mkTreasuryAddr, mkTreasuryValidatorFromSP, mkVersionRecordTokenPolicy, mkVersionRegistryValidator, oneShotMintTx, openCdp, openRob, openStakingPosition, parseAccountDatum, parseAccountDatumOrThrow, parseCdpDatum, parseCdpDatumOrThrow, parseCollateralAssetDatum, parseCollateralAssetDatumOrThrow, parseExecuteDatum, parseExecuteDatumOrThrow, parseGovDatum, parseGovDatumOrThrow, parseIAssetDatum, parseIAssetDatumOrThrow, parseInterestCollectionDatum, parseInterestOracleDatum, parsePriceOracleDatum, parsePythStateDatum, parseRobDatum, parseRobDatumOrThrow, parseRobRedeemer, parseRobRedeemerOrThrow, parseSnapshotEpochToScaleToSumDatum, parseSnapshotEpochToScaleToSumDatumOrThrow, parseStabilityPoolDatum, parseStabilityPoolDatumOrThrow, parseStableswapOrderDatum, parseStableswapOrderDatumOrThrow, parseStableswapOrderRedeemer, parseStableswapOrderRedeemerOrThrow, parseStableswapPoolDatum, parseStableswapPoolDatumOrThrow, parseStakingManagerDatum, parseStakingPosition, parseStakingPositionOrThrow, partitionEpochToScaleToSums, processSpRequest, rationalAdd, rationalCeil, rationalDiv, rationalFloor, rationalFromInt, rationalMul, rationalNegate, rationalSub, rationalToFloat, rationalZero, redeemCdp, redeemRob, repsertReadonlyArr, repsertWithReadonlyArr, requestSpAccountAdjustment, requestSpAccountClosure, requestSpAccountCreation, rewardSnapshotPrecision, robAmountToSpend, runCreateScriptRefTx, runOneShotMintTx, scriptRef, serialiseActionReturnDatum, serialiseCdpDatum, serialiseCdpRedeemer, serialiseCollectorRedeemer, serialiseExecuteDatum, serialiseFeedInterestOracleRedeemer, serialiseGovDatum, serialiseGovRedeemer, serialiseIAssetDatum, serialiseIAssetRedeemer, serialiseInterestCollectionDatum, serialiseInterestCollectionRedeemer, serialiseInterestOracleDatum, serialisePriceOracleDatum, serialisePriceOracleRedeemer, serialisePythFeedParams, serialisePythFeedRedeemer, serialisePythStateDatum, serialisePythUpdatesRedeemer, serialiseRedeemCdpWithdrawalRedeemer, serialiseRobDatum, serialiseRobRedeemer, serialiseStabilityPoolDatum, serialiseStabilityPoolRedeemer, serialiseStableswapOrderDatum, serialiseStableswapOrderRedeemer, serialiseStableswapOutputDatum, serialiseStableswapPoolDatum, serialiseStakingDatum, serialiseStakingRedeemer, shuffle, signersAllOf, spAdd, spDiv, spMul, spSub, spZeroNegatives, startInterestOracle, startPriceOracleTx, submitTx, sum, toAssetClassFromLucid, toDataDerivedPythPrice, toSystemParamsAsset, treasuryCollect, treasuryFeeTx, treasuryMerge, treasuryPrepareWithdrawal, treasurySplit, updateAccount, updatePermissions, updatePoolStateWhenWithdrawalFee, updateStableswapPoolFees, updateStakingLockedAmount, vote, withdrawCdp, zeroNegatives };