@indigo-labs/indigo-sdk 0.3.4 → 0.3.5
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 +53 -50
- package/dist/index.d.ts +53 -50
- package/dist/index.js +12 -0
- package/dist/index.mjs +10 -0
- package/package.json +1 -1
- package/src/index.ts +1 -0
package/dist/index.d.mts
CHANGED
|
@@ -1761,6 +1761,58 @@ allE2s2sSnapshotOrefs: OutRef[], sysParams: SystemParams, lucid: LucidEvolution,
|
|
|
1761
1761
|
declare function createE2s2sSnapshots(stabilityPoolOref: OutRef, sysParams: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
1762
1762
|
declare function annulRequest(accountUtxo: UTxO, params: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
1763
1763
|
|
|
1764
|
+
/** SP Parameters */
|
|
1765
|
+
declare const StabilityPoolParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1766
|
+
assetSymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1767
|
+
stabilityPoolToken: _lucid_evolution_lucid.TObject<{
|
|
1768
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1769
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1770
|
+
}>;
|
|
1771
|
+
snapshotEpochToScaleToSumToken: _lucid_evolution_lucid.TObject<{
|
|
1772
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1773
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1774
|
+
}>;
|
|
1775
|
+
accountToken: _lucid_evolution_lucid.TObject<{
|
|
1776
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1777
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1778
|
+
}>;
|
|
1779
|
+
cdpToken: _lucid_evolution_lucid.TObject<{
|
|
1780
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1781
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1782
|
+
}>;
|
|
1783
|
+
iAssetAuthToken: _lucid_evolution_lucid.TObject<{
|
|
1784
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1785
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1786
|
+
}>;
|
|
1787
|
+
versionRecordToken: _lucid_evolution_lucid.TObject<{
|
|
1788
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1789
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1790
|
+
}>;
|
|
1791
|
+
iassetValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1792
|
+
accountCreateFeeLovelaces: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1793
|
+
accountProcessingCooldownMs: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1794
|
+
accountProcessingBiasMs: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1795
|
+
stakeCredential: _lucid_evolution_lucid.TUnsafe<{
|
|
1796
|
+
Inline: [{
|
|
1797
|
+
PublicKeyCredential: [string];
|
|
1798
|
+
} | {
|
|
1799
|
+
ScriptCredential: [string];
|
|
1800
|
+
}];
|
|
1801
|
+
} | {
|
|
1802
|
+
Pointer: [{
|
|
1803
|
+
slotNumber: bigint;
|
|
1804
|
+
transactionIndex: bigint;
|
|
1805
|
+
certificateIndex: bigint;
|
|
1806
|
+
}];
|
|
1807
|
+
} | null>;
|
|
1808
|
+
}>;
|
|
1809
|
+
type StabilityPoolParams = Data.Static<typeof StabilityPoolParamsSchema>;
|
|
1810
|
+
declare const StabilityPoolParams: StabilityPoolParams;
|
|
1811
|
+
declare function castStabilityPoolParams(params: StabilityPoolParams): Data;
|
|
1812
|
+
|
|
1813
|
+
declare const mkStabilityPoolValidator: (params: StabilityPoolParams) => SpendingValidator;
|
|
1814
|
+
declare const mkStabilityPoolValidatorFromSP: (params: StabilityPoolParamsSP) => SpendingValidator;
|
|
1815
|
+
|
|
1764
1816
|
declare function openStakingPosition(amount: bigint, params: SystemParams, lucid: LucidEvolution, stakingManagerRef?: OutRef): Promise<TxBuilder>;
|
|
1765
1817
|
declare function adjustStakingPosition(stakingPositionRef: OutRef, amount: bigint, params: SystemParams, lucid: LucidEvolution, currentSlot: number, stakingManagerRef?: OutRef): Promise<TxBuilder>;
|
|
1766
1818
|
declare function closeStakingPosition(stakingPositionRef: OutRef, params: SystemParams, lucid: LucidEvolution, currentSlot: number, stakingManagerRef?: OutRef): Promise<TxBuilder>;
|
|
@@ -2874,55 +2926,6 @@ declare const PriceOracleParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
|
2874
2926
|
type PriceOracleParams = Data.Static<typeof PriceOracleParamsSchema>;
|
|
2875
2927
|
declare function castPriceOracleParams(params: PriceOracleParams): Data;
|
|
2876
2928
|
|
|
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
2929
|
declare const RobOrderTypeSchema: TSchema.Union<[TSchema.Struct<{
|
|
2927
2930
|
BuyIAssetOrder: TSchema.Struct<{
|
|
2928
2931
|
collateralAsset: TSchema.Struct<{
|
|
@@ -3655,4 +3658,4 @@ declare function mkAuthTokenPolicy(ac: AssetClass, tn: string): MintingPolicy;
|
|
|
3655
3658
|
|
|
3656
3659
|
declare const alwaysFailValidator: SpendingValidator;
|
|
3657
3660
|
|
|
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 };
|
|
3661
|
+
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, mkStabilityPoolValidator, mkStabilityPoolValidatorFromSP, 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
|
@@ -1761,6 +1761,58 @@ allE2s2sSnapshotOrefs: OutRef[], sysParams: SystemParams, lucid: LucidEvolution,
|
|
|
1761
1761
|
declare function createE2s2sSnapshots(stabilityPoolOref: OutRef, sysParams: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
1762
1762
|
declare function annulRequest(accountUtxo: UTxO, params: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
1763
1763
|
|
|
1764
|
+
/** SP Parameters */
|
|
1765
|
+
declare const StabilityPoolParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1766
|
+
assetSymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1767
|
+
stabilityPoolToken: _lucid_evolution_lucid.TObject<{
|
|
1768
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1769
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1770
|
+
}>;
|
|
1771
|
+
snapshotEpochToScaleToSumToken: _lucid_evolution_lucid.TObject<{
|
|
1772
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1773
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1774
|
+
}>;
|
|
1775
|
+
accountToken: _lucid_evolution_lucid.TObject<{
|
|
1776
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1777
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1778
|
+
}>;
|
|
1779
|
+
cdpToken: _lucid_evolution_lucid.TObject<{
|
|
1780
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1781
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1782
|
+
}>;
|
|
1783
|
+
iAssetAuthToken: _lucid_evolution_lucid.TObject<{
|
|
1784
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1785
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1786
|
+
}>;
|
|
1787
|
+
versionRecordToken: _lucid_evolution_lucid.TObject<{
|
|
1788
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1789
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1790
|
+
}>;
|
|
1791
|
+
iassetValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1792
|
+
accountCreateFeeLovelaces: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1793
|
+
accountProcessingCooldownMs: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1794
|
+
accountProcessingBiasMs: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1795
|
+
stakeCredential: _lucid_evolution_lucid.TUnsafe<{
|
|
1796
|
+
Inline: [{
|
|
1797
|
+
PublicKeyCredential: [string];
|
|
1798
|
+
} | {
|
|
1799
|
+
ScriptCredential: [string];
|
|
1800
|
+
}];
|
|
1801
|
+
} | {
|
|
1802
|
+
Pointer: [{
|
|
1803
|
+
slotNumber: bigint;
|
|
1804
|
+
transactionIndex: bigint;
|
|
1805
|
+
certificateIndex: bigint;
|
|
1806
|
+
}];
|
|
1807
|
+
} | null>;
|
|
1808
|
+
}>;
|
|
1809
|
+
type StabilityPoolParams = Data.Static<typeof StabilityPoolParamsSchema>;
|
|
1810
|
+
declare const StabilityPoolParams: StabilityPoolParams;
|
|
1811
|
+
declare function castStabilityPoolParams(params: StabilityPoolParams): Data;
|
|
1812
|
+
|
|
1813
|
+
declare const mkStabilityPoolValidator: (params: StabilityPoolParams) => SpendingValidator;
|
|
1814
|
+
declare const mkStabilityPoolValidatorFromSP: (params: StabilityPoolParamsSP) => SpendingValidator;
|
|
1815
|
+
|
|
1764
1816
|
declare function openStakingPosition(amount: bigint, params: SystemParams, lucid: LucidEvolution, stakingManagerRef?: OutRef): Promise<TxBuilder>;
|
|
1765
1817
|
declare function adjustStakingPosition(stakingPositionRef: OutRef, amount: bigint, params: SystemParams, lucid: LucidEvolution, currentSlot: number, stakingManagerRef?: OutRef): Promise<TxBuilder>;
|
|
1766
1818
|
declare function closeStakingPosition(stakingPositionRef: OutRef, params: SystemParams, lucid: LucidEvolution, currentSlot: number, stakingManagerRef?: OutRef): Promise<TxBuilder>;
|
|
@@ -2874,55 +2926,6 @@ declare const PriceOracleParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
|
2874
2926
|
type PriceOracleParams = Data.Static<typeof PriceOracleParamsSchema>;
|
|
2875
2927
|
declare function castPriceOracleParams(params: PriceOracleParams): Data;
|
|
2876
2928
|
|
|
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
2929
|
declare const RobOrderTypeSchema: TSchema.Union<[TSchema.Struct<{
|
|
2927
2930
|
BuyIAssetOrder: TSchema.Struct<{
|
|
2928
2931
|
collateralAsset: TSchema.Struct<{
|
|
@@ -3655,4 +3658,4 @@ declare function mkAuthTokenPolicy(ac: AssetClass, tn: string): MintingPolicy;
|
|
|
3655
3658
|
|
|
3656
3659
|
declare const alwaysFailValidator: SpendingValidator;
|
|
3657
3660
|
|
|
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 };
|
|
3661
|
+
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, mkStabilityPoolValidator, mkStabilityPoolValidatorFromSP, 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.js
CHANGED
|
@@ -213,6 +213,8 @@ __export(index_exports, {
|
|
|
213
213
|
mkRobValidatorFromSP: () => mkRobValidatorFromSP,
|
|
214
214
|
mkSPInteger: () => mkSPInteger,
|
|
215
215
|
mkStabilityPoolAddr: () => mkStabilityPoolAddr,
|
|
216
|
+
mkStabilityPoolValidator: () => mkStabilityPoolValidator,
|
|
217
|
+
mkStabilityPoolValidatorFromSP: () => mkStabilityPoolValidatorFromSP,
|
|
216
218
|
mkStakingValidatorFromSP: () => mkStakingValidatorFromSP,
|
|
217
219
|
mkTreasuryAddr: () => mkTreasuryAddr,
|
|
218
220
|
mkTreasuryValidatorFromSP: () => mkTreasuryValidatorFromSP,
|
|
@@ -1280,6 +1282,14 @@ var _stabilityPoolValidator = {
|
|
|
1280
1282
|
};
|
|
1281
1283
|
|
|
1282
1284
|
// src/contracts/stability-pool/scripts.ts
|
|
1285
|
+
var mkStabilityPoolValidator = (params) => {
|
|
1286
|
+
return {
|
|
1287
|
+
type: "PlutusV3",
|
|
1288
|
+
script: (0, import_lucid7.applyParamsToScript)(_stabilityPoolValidator.cborHex, [
|
|
1289
|
+
castStabilityPoolParams(params)
|
|
1290
|
+
])
|
|
1291
|
+
};
|
|
1292
|
+
};
|
|
1283
1293
|
var mkStabilityPoolValidatorFromSP = (params) => {
|
|
1284
1294
|
return {
|
|
1285
1295
|
type: "PlutusV3",
|
|
@@ -10863,6 +10873,8 @@ async function updateStableswapPoolFees(stableswapPoolOutRef, stableswapFeeOutRe
|
|
|
10863
10873
|
mkRobValidatorFromSP,
|
|
10864
10874
|
mkSPInteger,
|
|
10865
10875
|
mkStabilityPoolAddr,
|
|
10876
|
+
mkStabilityPoolValidator,
|
|
10877
|
+
mkStabilityPoolValidatorFromSP,
|
|
10866
10878
|
mkStakingValidatorFromSP,
|
|
10867
10879
|
mkTreasuryAddr,
|
|
10868
10880
|
mkTreasuryValidatorFromSP,
|
package/dist/index.mjs
CHANGED
|
@@ -989,6 +989,14 @@ var _stabilityPoolValidator = {
|
|
|
989
989
|
};
|
|
990
990
|
|
|
991
991
|
// src/contracts/stability-pool/scripts.ts
|
|
992
|
+
var mkStabilityPoolValidator = (params) => {
|
|
993
|
+
return {
|
|
994
|
+
type: "PlutusV3",
|
|
995
|
+
script: applyParamsToScript(_stabilityPoolValidator.cborHex, [
|
|
996
|
+
castStabilityPoolParams(params)
|
|
997
|
+
])
|
|
998
|
+
};
|
|
999
|
+
};
|
|
992
1000
|
var mkStabilityPoolValidatorFromSP = (params) => {
|
|
993
1001
|
return {
|
|
994
1002
|
type: "PlutusV3",
|
|
@@ -10826,6 +10834,8 @@ export {
|
|
|
10826
10834
|
mkRobValidatorFromSP,
|
|
10827
10835
|
mkSPInteger,
|
|
10828
10836
|
mkStabilityPoolAddr,
|
|
10837
|
+
mkStabilityPoolValidator,
|
|
10838
|
+
mkStabilityPoolValidatorFromSP,
|
|
10829
10839
|
mkStakingValidatorFromSP,
|
|
10830
10840
|
mkTreasuryAddr,
|
|
10831
10841
|
mkTreasuryValidatorFromSP,
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -12,6 +12,7 @@ export * from './contracts/gov/transactions';
|
|
|
12
12
|
export * from './contracts/gov/types';
|
|
13
13
|
export * from './contracts/gov/types-new';
|
|
14
14
|
export * from './contracts/stability-pool/transactions';
|
|
15
|
+
export * from './contracts/stability-pool/scripts';
|
|
15
16
|
export * from './contracts/staking/transactions';
|
|
16
17
|
export * from './contracts/staking/helpers';
|
|
17
18
|
export * from './contracts/staking/types-new';
|