@indigo-labs/indigo-sdk 0.2.35 → 0.2.37
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 +633 -43
- package/dist/index.d.ts +633 -43
- package/dist/index.js +1292 -419
- package/dist/index.mjs +1274 -426
- package/package.json +6 -3
- package/src/contracts/cdp/transactions.ts +175 -201
- package/src/contracts/collector/transactions.ts +7 -11
- package/src/contracts/gov/transactions.ts +72 -67
- package/src/contracts/initialize/helpers.ts +45 -0
- package/{tests/endpoints/initialize.ts → src/contracts/initialize/transactions.ts} +240 -264
- package/src/contracts/initialize/types.ts +42 -0
- package/src/contracts/interest-oracle/transactions.ts +6 -6
- package/src/contracts/leverage/transactions.ts +24 -19
- package/src/contracts/lrp/transactions.ts +18 -20
- package/src/contracts/poll/helpers.ts +1 -1
- package/src/contracts/price-oracle/transactions.ts +6 -5
- package/src/contracts/stability-pool/transactions.ts +4 -10
- package/src/contracts/staking/helpers.ts +30 -47
- package/src/contracts/staking/transactions.ts +89 -58
- package/src/contracts/treasury/transactions.ts +10 -6
- package/src/contracts/vesting/helpers.ts +18 -67
- package/src/index.ts +7 -0
- package/src/utils/lucid-utils.ts +42 -0
- package/tests/cdp.test.ts +1 -1
- package/tests/gov.test.ts +99 -17
- package/tests/initialize.test.ts +1 -1
- package/tests/lrp-leverage.test.ts +1 -1
- package/tests/lrp.test.ts +1 -1
- package/tests/mock/assets-mock.ts +2 -29
- package/tests/stability-pool.test.ts +1 -1
- package/tests/staking.test.ts +25 -6
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _lucid_evolution_lucid from '@lucid-evolution/lucid';
|
|
2
|
-
import { Data, Network, OutRef, Credential, LucidEvolution,
|
|
2
|
+
import { Data, Network, OutRef, Credential, UTxO, LucidEvolution, Datum, ScriptHash, Address, Assets, SLOT_CONFIG_NETWORK, TxBuilder, Redeemer, SpendingValidator, MintingPolicy, PolicyId, Unit } from '@lucid-evolution/lucid';
|
|
3
3
|
import { option, ord } from 'fp-ts';
|
|
4
4
|
import { Core } from '@evolution-sdk/evolution';
|
|
5
5
|
|
|
@@ -302,20 +302,49 @@ declare function fromSystemParamsAsset(asset: AssetClassSP): AssetClass;
|
|
|
302
302
|
declare function fromSystemParamsScriptRef(ref: ScriptReference): OutRef;
|
|
303
303
|
declare function fromSysParamsScriptCredential(cred: ScriptCredential): Credential;
|
|
304
304
|
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
305
|
+
/**
|
|
306
|
+
* Union type accepting either a full UTxO or just an OutRef.
|
|
307
|
+
* When a full UTxO is provided, no network fetch is needed.
|
|
308
|
+
* When only an OutRef is provided, the UTxO will be fetched via utxosByOutRef.
|
|
309
|
+
*/
|
|
310
|
+
type UtxoOrOutRef = UTxO | OutRef;
|
|
311
|
+
/**
|
|
312
|
+
* Resolves a UTxOOrOutRef to a full UTxO.
|
|
313
|
+
* If the input is already a UTxO (has 'address' property), returns it directly.
|
|
314
|
+
* If the input is an OutRef, fetches the UTxO from the network.
|
|
315
|
+
*
|
|
316
|
+
* @param input - Either a full UTxO or an OutRef
|
|
317
|
+
* @param lucid - The LucidEvolution instance for network queries
|
|
318
|
+
* @param errorMsg - Custom error message if the UTxO cannot be found
|
|
319
|
+
* @returns The resolved UTxO
|
|
320
|
+
*/
|
|
321
|
+
declare function resolveUtxo(input: UtxoOrOutRef, lucid: LucidEvolution, errorMsg?: string): Promise<UTxO>;
|
|
322
|
+
/**
|
|
323
|
+
* Returns the inline datum.
|
|
324
|
+
* Throws when the UTXO doesn't have an inline datum
|
|
325
|
+
* (i.e. in case it has hash datum or no datum).
|
|
326
|
+
*/
|
|
327
|
+
declare function getInlineDatumOrThrow(utxo: UTxO): Datum;
|
|
328
|
+
declare function addrDetails(lucid: LucidEvolution): Promise<[Credential, Credential | undefined]>;
|
|
329
|
+
declare function createScriptAddress(network: Network, scriptHash: ScriptHash, stakeCredential?: Credential): Address;
|
|
330
|
+
declare function scriptRef(ref: ScriptReference, lucid: LucidEvolution): Promise<UTxO>;
|
|
331
|
+
declare function balance(utxos: UTxO[]): Assets;
|
|
332
|
+
declare function updateSlotConfigNetwork(slotConfigNetwork: typeof SLOT_CONFIG_NETWORK): void;
|
|
333
|
+
|
|
334
|
+
declare function openCdp(collateralAmount: bigint, mintedAmount: bigint, sysParams: SystemParams, cdpCreator: UtxoOrOutRef, iasset: UtxoOrOutRef, priceOracle: UtxoOrOutRef, interestOracle: UtxoOrOutRef, collector: UtxoOrOutRef, lucid: LucidEvolution, currentSlot: number): Promise<TxBuilder>;
|
|
335
|
+
declare function depositCdp(amount: bigint, cdp: UtxoOrOutRef, iasset: UtxoOrOutRef, priceOracle: UtxoOrOutRef, interestOracle: UtxoOrOutRef, collector: UtxoOrOutRef, gov: UtxoOrOutRef, treasury: UtxoOrOutRef, params: SystemParams, lucid: LucidEvolution, currentSlot: number): Promise<TxBuilder>;
|
|
336
|
+
declare function withdrawCdp(amount: bigint, cdp: UtxoOrOutRef, iasset: UtxoOrOutRef, priceOracle: UtxoOrOutRef, interestOracle: UtxoOrOutRef, collector: UtxoOrOutRef, gov: UtxoOrOutRef, treasury: UtxoOrOutRef, params: SystemParams, lucid: LucidEvolution, currentSlot: number): Promise<TxBuilder>;
|
|
337
|
+
declare function mintCdp(amount: bigint, cdp: UtxoOrOutRef, iasset: UtxoOrOutRef, priceOracle: UtxoOrOutRef, interestOracle: UtxoOrOutRef, collector: UtxoOrOutRef, gov: UtxoOrOutRef, treasury: UtxoOrOutRef, params: SystemParams, lucid: LucidEvolution, currentSlot: number): Promise<TxBuilder>;
|
|
338
|
+
declare function burnCdp(amount: bigint, cdp: UtxoOrOutRef, iasset: UtxoOrOutRef, priceOracle: UtxoOrOutRef, interestOracle: UtxoOrOutRef, collector: UtxoOrOutRef, gov: UtxoOrOutRef, treasury: UtxoOrOutRef, params: SystemParams, lucid: LucidEvolution, currentSlot: number): Promise<TxBuilder>;
|
|
339
|
+
declare function closeCdp(cdp: UtxoOrOutRef, iasset: UtxoOrOutRef, priceOracle: UtxoOrOutRef, interestOracle: UtxoOrOutRef, collector: UtxoOrOutRef, gov: UtxoOrOutRef, treasury: UtxoOrOutRef, sysParams: SystemParams, lucid: LucidEvolution, currentSlot: number): Promise<TxBuilder>;
|
|
311
340
|
declare function redeemCdp(
|
|
312
341
|
/**
|
|
313
342
|
* When the goal is to redeem the maximum possible, just pass in the total minted amount of the CDP.
|
|
314
343
|
* The logic will automatically cap the amount to the max.
|
|
315
344
|
*/
|
|
316
|
-
attemptedRedemptionIAssetAmt: bigint,
|
|
317
|
-
declare function freezeCdp(
|
|
318
|
-
declare function liquidateCdp(
|
|
345
|
+
attemptedRedemptionIAssetAmt: bigint, cdp: UtxoOrOutRef, iasset: UtxoOrOutRef, priceOracle: UtxoOrOutRef, interestOracle: UtxoOrOutRef, collector: UtxoOrOutRef, treasury: UtxoOrOutRef, sysParams: SystemParams, lucid: LucidEvolution, currentSlot: number): Promise<TxBuilder>;
|
|
346
|
+
declare function freezeCdp(cdp: UtxoOrOutRef, iasset: UtxoOrOutRef, priceOracle: UtxoOrOutRef, interestOracle: UtxoOrOutRef, sysParams: SystemParams, lucid: LucidEvolution, currentSlot: number): Promise<TxBuilder>;
|
|
347
|
+
declare function liquidateCdp(cdp: UtxoOrOutRef, stabilityPool: UtxoOrOutRef, collector: UtxoOrOutRef, treasury: UtxoOrOutRef, sysParams: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
319
348
|
declare function mergeCdps(cdpsToMergeUtxos: OutRef[], sysParams: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
320
349
|
|
|
321
350
|
declare const OnChainDecimalSchema: _lucid_evolution_lucid.TObject<{
|
|
@@ -765,7 +794,11 @@ declare const mkPollManagerValidatorFromSP: (params: PollManagerParamsSP) => Spe
|
|
|
765
794
|
declare const mkPollShardValidator: (params: PollShardParams) => SpendingValidator;
|
|
766
795
|
declare const mkPollShardValidatorFromSP: (params: PollShardParamsSP) => SpendingValidator;
|
|
767
796
|
|
|
768
|
-
declare function collectorFeeTx(fee: bigint, lucid: LucidEvolution, params: SystemParams, tx: TxBuilder,
|
|
797
|
+
declare function collectorFeeTx(fee: bigint, lucid: LucidEvolution, params: SystemParams, tx: TxBuilder, collector: UtxoOrOutRef): Promise<void>;
|
|
798
|
+
|
|
799
|
+
declare const CollectorRedeemerSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TLiteral<"UpgradeVersion"> | _lucid_evolution_lucid.TLiteral<"Collect"> | _lucid_evolution_lucid.TLiteral<"DistributeToStakers">)[]>;
|
|
800
|
+
type CollectorRedeemer = Data.Static<typeof CollectorRedeemerSchema>;
|
|
801
|
+
declare function serialiseCollectorRedeemer(redeemer: CollectorRedeemer): Redeemer;
|
|
769
802
|
|
|
770
803
|
declare const GovDatumSchema: _lucid_evolution_lucid.TObject<{
|
|
771
804
|
currentProposal: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
@@ -1008,6 +1041,63 @@ declare function serialiseGovDatum(d: GovDatum): Datum;
|
|
|
1008
1041
|
declare function serialiseGovRedeemer(redeemer: GovRedeemer): Redeemer;
|
|
1009
1042
|
declare function castGovParams(params: GovParams): Data;
|
|
1010
1043
|
|
|
1044
|
+
declare const ProtocolParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1045
|
+
proposalDeposit: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1046
|
+
votingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1047
|
+
effectiveDelay: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1048
|
+
expirationPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1049
|
+
collateralFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
1050
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1051
|
+
}>;
|
|
1052
|
+
proposingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1053
|
+
totalShards: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1054
|
+
minimumQuorum: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1055
|
+
maxTreasuryLovelaceSpend: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1056
|
+
maxTreasuryIndySpend: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1057
|
+
}>;
|
|
1058
|
+
type ProtocolParams = Data.Static<typeof ProtocolParamsSchema>;
|
|
1059
|
+
declare const ProtocolParams: ProtocolParams;
|
|
1060
|
+
declare const ProposeAssetContentSchema: _lucid_evolution_lucid.TObject<{
|
|
1061
|
+
asset: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1062
|
+
priceOracleNft: _lucid_evolution_lucid.TObject<{
|
|
1063
|
+
oracleNft: _lucid_evolution_lucid.TObject<{
|
|
1064
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1065
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1066
|
+
}>;
|
|
1067
|
+
}>;
|
|
1068
|
+
interestOracleNft: _lucid_evolution_lucid.TObject<{
|
|
1069
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1070
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1071
|
+
}>;
|
|
1072
|
+
redemptionRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
1073
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1074
|
+
}>;
|
|
1075
|
+
maintenanceRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
1076
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1077
|
+
}>;
|
|
1078
|
+
liquidationRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
1079
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1080
|
+
}>;
|
|
1081
|
+
debtMintingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
1082
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1083
|
+
}>;
|
|
1084
|
+
liquidationProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
1085
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1086
|
+
}>;
|
|
1087
|
+
stabilityPoolWithdrawalFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
1088
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1089
|
+
}>;
|
|
1090
|
+
redemptionReimbursementPercentage: _lucid_evolution_lucid.TObject<{
|
|
1091
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1092
|
+
}>;
|
|
1093
|
+
redemptionProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
1094
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1095
|
+
}>;
|
|
1096
|
+
interestCollectorPortionPercentage: _lucid_evolution_lucid.TObject<{
|
|
1097
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1098
|
+
}>;
|
|
1099
|
+
}>;
|
|
1100
|
+
type ProposeAssetContent = Data.Static<typeof ProposeAssetContentSchema>;
|
|
1011
1101
|
declare const ProposalContentSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
|
|
1012
1102
|
ProposeAsset: _lucid_evolution_lucid.TObject<{
|
|
1013
1103
|
asset: _lucid_evolution_lucid.TUnsafe<string>;
|
|
@@ -1128,11 +1218,20 @@ declare const ProposalContentSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolu
|
|
|
1128
1218
|
}>)[]>;
|
|
1129
1219
|
type ProposalContent = Data.Static<typeof ProposalContentSchema>;
|
|
1130
1220
|
declare const ProposalContent: ProposalContent;
|
|
1221
|
+
declare const UpgradePathsSchema: Core.TSchema.Struct<{
|
|
1222
|
+
upgradeId: Core.TSchema.Integer;
|
|
1223
|
+
upgradePaths: Core.TSchema.Map<Core.TSchema.ByteArray, Core.TSchema.Struct<{
|
|
1224
|
+
upgradeSymbol: Core.TSchema.ByteArray;
|
|
1225
|
+
}>>;
|
|
1226
|
+
}>;
|
|
1227
|
+
type UpgradePaths = typeof UpgradePathsSchema.Type;
|
|
1228
|
+
declare function serialiseUpgradePaths(d: UpgradePaths): Data;
|
|
1229
|
+
declare function parseUpgradePaths(d: Data): UpgradePaths;
|
|
1131
1230
|
|
|
1132
1231
|
/**
|
|
1133
1232
|
* Returns the new PollId.
|
|
1134
1233
|
*/
|
|
1135
|
-
declare function createProposal(proposalContent: ProposalContent, treasuryWithdrawal: TreasuryWithdrawal | null, sysParams: SystemParams, lucid: LucidEvolution, currentSlot: number,
|
|
1234
|
+
declare function createProposal(proposalContent: ProposalContent, treasuryWithdrawal: TreasuryWithdrawal | null, sysParams: SystemParams, lucid: LucidEvolution, currentSlot: number, gov: UtxoOrOutRef,
|
|
1136
1235
|
/**
|
|
1137
1236
|
* This has to be passed only in case of createAsset proposal
|
|
1138
1237
|
*/
|
|
@@ -1144,16 +1243,16 @@ declare function createShardsChunks(
|
|
|
1144
1243
|
/**
|
|
1145
1244
|
* This gets automatically capped to total shards count.
|
|
1146
1245
|
*/
|
|
1147
|
-
chunkSize: bigint,
|
|
1148
|
-
declare function vote(voteOption: VoteOption,
|
|
1149
|
-
declare function mergeShards(
|
|
1150
|
-
declare function endProposal(
|
|
1151
|
-
declare function executeProposal(
|
|
1246
|
+
chunkSize: bigint, pollManager: UtxoOrOutRef, sysParams: SystemParams, currentSlot: number, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
1247
|
+
declare function vote(voteOption: VoteOption, pollShard: UtxoOrOutRef, stakingPosition: UtxoOrOutRef, sysParams: SystemParams, lucid: LucidEvolution, currentSlot: number): Promise<TxBuilder>;
|
|
1248
|
+
declare function mergeShards(pollManager: UtxoOrOutRef, shardsOutRefs: OutRef[], sysParams: SystemParams, lucid: LucidEvolution, currentSlot: number): Promise<TxBuilder>;
|
|
1249
|
+
declare function endProposal(pollManager: UtxoOrOutRef, gov: UtxoOrOutRef, sysParams: SystemParams, lucid: LucidEvolution, currentSlot: number): Promise<TxBuilder>;
|
|
1250
|
+
declare function executeProposal(execute: UtxoOrOutRef, gov: UtxoOrOutRef, treasuryWithdrawal: UtxoOrOutRef | null, allIAssetOrefs: OutRef[] | null, modifyIAsset: UtxoOrOutRef | null, sysParams: SystemParams, lucid: LucidEvolution, currentSlot: number): Promise<TxBuilder>;
|
|
1152
1251
|
|
|
1153
1252
|
declare function createSpAccount(asset: string, amount: bigint, params: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
1154
1253
|
declare function adjustSpAccount(asset: string, amount: bigint, accountUtxo: UTxO, params: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
1155
1254
|
declare function closeSpAccount(accountUtxo: UTxO, params: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
1156
|
-
declare function processSpRequest(asset: string, stabilityPoolUtxo: UTxO, accountUtxo: UTxO, govUtxo: UTxO, iAssetUtxo: UTxO, newSnapshotUtxo: UTxO | undefined, params: SystemParams, lucid: LucidEvolution,
|
|
1255
|
+
declare function processSpRequest(asset: string, stabilityPoolUtxo: UTxO, accountUtxo: UTxO, govUtxo: UTxO, iAssetUtxo: UTxO, newSnapshotUtxo: UTxO | undefined, params: SystemParams, lucid: LucidEvolution, collector: UtxoOrOutRef): Promise<TxBuilder>;
|
|
1157
1256
|
declare function annulRequest(accountUtxo: UTxO, params: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
1158
1257
|
|
|
1159
1258
|
declare const SPIntegerSchema: Core.TSchema.Struct<{
|
|
@@ -1559,17 +1658,17 @@ type StakingManagerOutput = {
|
|
|
1559
1658
|
* Update the staking position locked amount. In case proposal's voting finished, unlock the amount.
|
|
1560
1659
|
*/
|
|
1561
1660
|
declare function updateStakingLockedAmount(stakingPosLockedAmt: StakingPosLockedAmt, currentTime: bigint): StakingPosLockedAmt;
|
|
1562
|
-
declare function findStakingManagerByOutRef(
|
|
1661
|
+
declare function findStakingManagerByOutRef(stakingManager: UtxoOrOutRef, lucid: LucidEvolution): Promise<StakingManagerOutput>;
|
|
1563
1662
|
declare function findStakingManager(params: SystemParams, lucid: LucidEvolution): Promise<StakingManagerOutput>;
|
|
1564
|
-
declare function findStakingPositionByOutRef(
|
|
1663
|
+
declare function findStakingPositionByOutRef(stakingPosition: UtxoOrOutRef, lucid: LucidEvolution): Promise<StakingPositionOutput>;
|
|
1565
1664
|
declare const rewardSnapshotPrecision: bigint;
|
|
1566
1665
|
declare function distributeReward(snapshotAda: bigint, adaReward: bigint, totalStake: bigint): bigint;
|
|
1567
1666
|
declare function calculateAdaReward(currentSnapshotAda: bigint, oldSnapshotAda: bigint, existingIndyAmount: bigint): bigint;
|
|
1568
1667
|
|
|
1569
|
-
declare function openStakingPosition(amount: bigint, params: SystemParams, lucid: LucidEvolution,
|
|
1570
|
-
declare function adjustStakingPosition(
|
|
1571
|
-
declare function closeStakingPosition(
|
|
1572
|
-
declare function distributeAda(
|
|
1668
|
+
declare function openStakingPosition(amount: bigint, params: SystemParams, lucid: LucidEvolution, stakingManager: UtxoOrOutRef): Promise<TxBuilder>;
|
|
1669
|
+
declare function adjustStakingPosition(stakingPosition: UtxoOrOutRef, amount: bigint, params: SystemParams, lucid: LucidEvolution, currentSlot: number, stakingManager: UtxoOrOutRef): Promise<TxBuilder>;
|
|
1670
|
+
declare function closeStakingPosition(stakingPosition: UtxoOrOutRef, params: SystemParams, lucid: LucidEvolution, currentSlot: number, stakingManager: UtxoOrOutRef): Promise<TxBuilder>;
|
|
1671
|
+
declare function distributeAda(stakingManager: UtxoOrOutRef, collectorRefs: OutRef[], params: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
1573
1672
|
|
|
1574
1673
|
declare const StakingParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1575
1674
|
stakingManagerNft: _lucid_evolution_lucid.TObject<{
|
|
@@ -1609,7 +1708,7 @@ type StakingRedeemer = Data.Static<typeof StakingRedeemerSchema>;
|
|
|
1609
1708
|
declare function serialiseStakingRedeemer(redeemer: StakingRedeemer): Redeemer;
|
|
1610
1709
|
declare function castStakingParams(params: StakingParams): Data;
|
|
1611
1710
|
|
|
1612
|
-
declare function startInterestOracle(initialUnitaryInterest: bigint, initialInterestRate: bigint, initialLastInterestUpdate: bigint, oracleParams: InterestOracleParams, lucid: LucidEvolution, interestTokenName?: string, withScriptRef?: boolean,
|
|
1711
|
+
declare function startInterestOracle(initialUnitaryInterest: bigint, initialInterestRate: bigint, initialLastInterestUpdate: bigint, oracleParams: InterestOracleParams, lucid: LucidEvolution, interestTokenName?: string, withScriptRef?: boolean, refUtxo?: UtxoOrOutRef): Promise<[TxBuilder, AssetClass]>;
|
|
1613
1712
|
declare function feedInterestOracle(params: InterestOracleParams, newInterestRate: bigint, lucid: LucidEvolution, assetClass?: AssetClass, utxo?: UTxO, scriptRef?: UTxO): Promise<TxBuilder>;
|
|
1614
1713
|
|
|
1615
1714
|
declare function mkInterestOracleValidator(params: InterestOracleParams): SpendingValidator;
|
|
@@ -1635,18 +1734,7 @@ declare function castVersionRecordTokenParams(params: VersionRecordTokenParams):
|
|
|
1635
1734
|
declare function mkVersionRecordTokenPolicy(params: VersionRecordTokenParams): MintingPolicy;
|
|
1636
1735
|
declare const mkVersionRegistryValidator: () => SpendingValidator;
|
|
1637
1736
|
|
|
1638
|
-
declare function treasuryFeeTx(fee: bigint, lucid: LucidEvolution, sysParams: SystemParams, tx: TxBuilder,
|
|
1639
|
-
|
|
1640
|
-
/**
|
|
1641
|
-
* Returns the inline datum.
|
|
1642
|
-
* Throws when the UTXO doesn't have an inline datum
|
|
1643
|
-
* (i.e. in case it has hash datum or no datum).
|
|
1644
|
-
*/
|
|
1645
|
-
declare function getInlineDatumOrThrow(utxo: UTxO): Datum;
|
|
1646
|
-
declare function addrDetails(lucid: LucidEvolution): Promise<[Credential, Credential | undefined]>;
|
|
1647
|
-
declare function createScriptAddress(network: Network, scriptHash: ScriptHash, stakeCredential?: Credential): Address;
|
|
1648
|
-
declare function scriptRef(ref: ScriptReference, lucid: LucidEvolution): Promise<UTxO>;
|
|
1649
|
-
declare function balance(utxos: UTxO[]): Assets;
|
|
1737
|
+
declare function treasuryFeeTx(fee: bigint, lucid: LucidEvolution, sysParams: SystemParams, tx: TxBuilder, treasury: UtxoOrOutRef): Promise<void>;
|
|
1650
1738
|
|
|
1651
1739
|
declare const initSpSnapshot: StabilityPoolSnapshot;
|
|
1652
1740
|
declare const initEpochToScaleToSumMap: () => EpochToScaleToSum;
|
|
@@ -1677,6 +1765,45 @@ declare const mkCollectorValidatorFromSP: (params: CollectorParamsSP) => Spendin
|
|
|
1677
1765
|
|
|
1678
1766
|
declare const mkTreasuryValidatorFromSP: (params: TreasuryParamsSP) => SpendingValidator;
|
|
1679
1767
|
|
|
1768
|
+
declare const TreasuryParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1769
|
+
upgradeToken: _lucid_evolution_lucid.TObject<{
|
|
1770
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1771
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1772
|
+
}>;
|
|
1773
|
+
versionRecordToken: _lucid_evolution_lucid.TObject<{
|
|
1774
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1775
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1776
|
+
}>;
|
|
1777
|
+
treasuryUtxosStakeCredential: _lucid_evolution_lucid.TUnsafe<{
|
|
1778
|
+
Inline: [{
|
|
1779
|
+
PublicKeyCredential: [string];
|
|
1780
|
+
} | {
|
|
1781
|
+
ScriptCredential: [string];
|
|
1782
|
+
}];
|
|
1783
|
+
} | {
|
|
1784
|
+
Pointer: [{
|
|
1785
|
+
slotNumber: bigint;
|
|
1786
|
+
transactionIndex: bigint;
|
|
1787
|
+
certificateIndex: bigint;
|
|
1788
|
+
}];
|
|
1789
|
+
} | null>;
|
|
1790
|
+
}>;
|
|
1791
|
+
type TreasuryParams = Data.Static<typeof TreasuryParamsSchema>;
|
|
1792
|
+
declare const TreasuryParams: TreasuryParams;
|
|
1793
|
+
declare const TreasuryRedeemerSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TLiteral<"UpgradeVersion"> | _lucid_evolution_lucid.TLiteral<"Withdraw"> | _lucid_evolution_lucid.TLiteral<"PrepareWithdraw"> | _lucid_evolution_lucid.TLiteral<"Split"> | _lucid_evolution_lucid.TLiteral<"Merge"> | _lucid_evolution_lucid.TLiteral<"CollectAda">)[]>;
|
|
1794
|
+
type TreasuryRedeemer = Data.Static<typeof TreasuryRedeemerSchema>;
|
|
1795
|
+
declare const WithdrawalOutputDatumSchema: _lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TUnsafe<string>, _lucid_evolution_lucid.TObject<{
|
|
1796
|
+
txHash: _lucid_evolution_lucid.TObject<{
|
|
1797
|
+
hash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1798
|
+
}>;
|
|
1799
|
+
outputIndex: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1800
|
+
}>]>;
|
|
1801
|
+
type WithdrawalOutputDatum = Data.Static<typeof WithdrawalOutputDatumSchema>;
|
|
1802
|
+
declare function serialiseWithdrawalOutputDatum(d: WithdrawalOutputDatum): Datum;
|
|
1803
|
+
declare function serialiseTreasuryRedeemer(redeemer: TreasuryRedeemer): Redeemer;
|
|
1804
|
+
declare function serialiseTreasuryDatum(): Datum;
|
|
1805
|
+
declare function castTreasuryParams(params: TreasuryParams): Data;
|
|
1806
|
+
|
|
1680
1807
|
declare const ExecuteParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1681
1808
|
govNFT: _lucid_evolution_lucid.TObject<{
|
|
1682
1809
|
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
@@ -1961,6 +2088,398 @@ type StabilityPoolParams = Data.Static<typeof StabilityPoolParamsSchema>;
|
|
|
1961
2088
|
declare const StabilityPoolParams: StabilityPoolParams;
|
|
1962
2089
|
declare function castStabilityPoolParams(params: StabilityPoolParams): Data;
|
|
1963
2090
|
|
|
2091
|
+
declare const PollStatusSchema: _lucid_evolution_lucid.TObject<{
|
|
2092
|
+
yesVotes: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2093
|
+
noVotes: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2094
|
+
}>;
|
|
2095
|
+
type PollStatus = Data.Static<typeof PollStatusSchema>;
|
|
2096
|
+
declare const PollManagerContentSchema: _lucid_evolution_lucid.TObject<{
|
|
2097
|
+
pollId: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2098
|
+
pollOwner: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2099
|
+
content: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
|
|
2100
|
+
ProposeAsset: _lucid_evolution_lucid.TObject<{
|
|
2101
|
+
asset: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2102
|
+
priceOracleNft: _lucid_evolution_lucid.TObject<{
|
|
2103
|
+
oracleNft: _lucid_evolution_lucid.TObject<{
|
|
2104
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2105
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2106
|
+
}>;
|
|
2107
|
+
}>;
|
|
2108
|
+
interestOracleNft: _lucid_evolution_lucid.TObject<{
|
|
2109
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2110
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2111
|
+
}>;
|
|
2112
|
+
redemptionRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2113
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2114
|
+
}>;
|
|
2115
|
+
maintenanceRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2116
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2117
|
+
}>;
|
|
2118
|
+
liquidationRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2119
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2120
|
+
}>;
|
|
2121
|
+
debtMintingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2122
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2123
|
+
}>;
|
|
2124
|
+
liquidationProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2125
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2126
|
+
}>;
|
|
2127
|
+
stabilityPoolWithdrawalFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2128
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2129
|
+
}>;
|
|
2130
|
+
redemptionReimbursementPercentage: _lucid_evolution_lucid.TObject<{
|
|
2131
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2132
|
+
}>;
|
|
2133
|
+
redemptionProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2134
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2135
|
+
}>;
|
|
2136
|
+
interestCollectorPortionPercentage: _lucid_evolution_lucid.TObject<{
|
|
2137
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2138
|
+
}>;
|
|
2139
|
+
}>;
|
|
2140
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2141
|
+
ModifyAsset: _lucid_evolution_lucid.TObject<{
|
|
2142
|
+
asset: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2143
|
+
newAssetPriceInfo: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
|
|
2144
|
+
Delisted: _lucid_evolution_lucid.TObject<{
|
|
2145
|
+
content: _lucid_evolution_lucid.TObject<{
|
|
2146
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2147
|
+
}>;
|
|
2148
|
+
}>;
|
|
2149
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2150
|
+
Oracle: _lucid_evolution_lucid.TObject<{
|
|
2151
|
+
content: _lucid_evolution_lucid.TObject<{
|
|
2152
|
+
oracleNft: _lucid_evolution_lucid.TObject<{
|
|
2153
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2154
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2155
|
+
}>;
|
|
2156
|
+
}>;
|
|
2157
|
+
}>;
|
|
2158
|
+
}>)[]>;
|
|
2159
|
+
newInterestOracleNft: _lucid_evolution_lucid.TObject<{
|
|
2160
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2161
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2162
|
+
}>;
|
|
2163
|
+
newRedemptionRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2164
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2165
|
+
}>;
|
|
2166
|
+
newMaintenanceRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2167
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2168
|
+
}>;
|
|
2169
|
+
newLiquidationRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2170
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2171
|
+
}>;
|
|
2172
|
+
newDebtMintingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2173
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2174
|
+
}>;
|
|
2175
|
+
newLiquidationProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2176
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2177
|
+
}>;
|
|
2178
|
+
newStabilityPoolWithdrawalFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2179
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2180
|
+
}>;
|
|
2181
|
+
newRedemptionReimbursementPercentage: _lucid_evolution_lucid.TObject<{
|
|
2182
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2183
|
+
}>;
|
|
2184
|
+
newRedemptionProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2185
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2186
|
+
}>;
|
|
2187
|
+
newInterestCollectorPortionPercentage: _lucid_evolution_lucid.TObject<{
|
|
2188
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2189
|
+
}>;
|
|
2190
|
+
}>;
|
|
2191
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2192
|
+
ModifyProtocolParams: _lucid_evolution_lucid.TObject<{
|
|
2193
|
+
newParams: _lucid_evolution_lucid.TObject<{
|
|
2194
|
+
proposalDeposit: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2195
|
+
votingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2196
|
+
effectiveDelay: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2197
|
+
expirationPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2198
|
+
collateralFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2199
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2200
|
+
}>;
|
|
2201
|
+
proposingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2202
|
+
totalShards: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2203
|
+
minimumQuorum: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2204
|
+
maxTreasuryLovelaceSpend: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2205
|
+
maxTreasuryIndySpend: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2206
|
+
}>;
|
|
2207
|
+
}>;
|
|
2208
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2209
|
+
UpgradeProtocol: _lucid_evolution_lucid.TObject<{
|
|
2210
|
+
content: _lucid_evolution_lucid.TUnsafe<Data>;
|
|
2211
|
+
}>;
|
|
2212
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2213
|
+
TextProposal: _lucid_evolution_lucid.TObject<{
|
|
2214
|
+
bytes: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2215
|
+
}>;
|
|
2216
|
+
}>)[]>;
|
|
2217
|
+
treasuryWithdrawal: _lucid_evolution_lucid.TUnsafe<{
|
|
2218
|
+
value: [string, string, bigint][];
|
|
2219
|
+
destination: {
|
|
2220
|
+
paymentCredential: {
|
|
2221
|
+
PublicKeyCredential: [string];
|
|
2222
|
+
} | {
|
|
2223
|
+
ScriptCredential: [string];
|
|
2224
|
+
};
|
|
2225
|
+
stakeCredential: {
|
|
2226
|
+
Inline: [{
|
|
2227
|
+
PublicKeyCredential: [string];
|
|
2228
|
+
} | {
|
|
2229
|
+
ScriptCredential: [string];
|
|
2230
|
+
}];
|
|
2231
|
+
} | {
|
|
2232
|
+
Pointer: [{
|
|
2233
|
+
slotNumber: bigint;
|
|
2234
|
+
transactionIndex: bigint;
|
|
2235
|
+
certificateIndex: bigint;
|
|
2236
|
+
}];
|
|
2237
|
+
} | null;
|
|
2238
|
+
};
|
|
2239
|
+
} | null>;
|
|
2240
|
+
status: _lucid_evolution_lucid.TObject<{
|
|
2241
|
+
yesVotes: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2242
|
+
noVotes: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2243
|
+
}>;
|
|
2244
|
+
votingEndTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2245
|
+
createdShardsCount: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2246
|
+
talliedShardsCount: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2247
|
+
totalShardsCount: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2248
|
+
proposingEndTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2249
|
+
expirationTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2250
|
+
protocolVersion: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2251
|
+
minimumQuorum: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2252
|
+
}>;
|
|
2253
|
+
type PollManagerContent = Data.Static<typeof PollManagerContentSchema>;
|
|
2254
|
+
declare const PollShardContentSchema: _lucid_evolution_lucid.TObject<{
|
|
2255
|
+
pollId: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2256
|
+
status: _lucid_evolution_lucid.TObject<{
|
|
2257
|
+
yesVotes: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2258
|
+
noVotes: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2259
|
+
}>;
|
|
2260
|
+
votingEndTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2261
|
+
managerAddress: _lucid_evolution_lucid.TObject<{
|
|
2262
|
+
paymentCredential: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
|
|
2263
|
+
PublicKeyCredential: _lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TUnsafe<string>]>;
|
|
2264
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2265
|
+
ScriptCredential: _lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TUnsafe<string>]>;
|
|
2266
|
+
}>)[]>;
|
|
2267
|
+
stakeCredential: _lucid_evolution_lucid.TUnsafe<{
|
|
2268
|
+
Inline: [{
|
|
2269
|
+
PublicKeyCredential: [string];
|
|
2270
|
+
} | {
|
|
2271
|
+
ScriptCredential: [string];
|
|
2272
|
+
}];
|
|
2273
|
+
} | {
|
|
2274
|
+
Pointer: [{
|
|
2275
|
+
slotNumber: bigint;
|
|
2276
|
+
transactionIndex: bigint;
|
|
2277
|
+
certificateIndex: bigint;
|
|
2278
|
+
}];
|
|
2279
|
+
} | null>;
|
|
2280
|
+
}>;
|
|
2281
|
+
}>;
|
|
2282
|
+
type PollShardContent = Data.Static<typeof PollShardContentSchema>;
|
|
2283
|
+
declare const PollDatumSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
|
|
2284
|
+
PollManager: _lucid_evolution_lucid.TObject<{
|
|
2285
|
+
content: _lucid_evolution_lucid.TObject<{
|
|
2286
|
+
pollId: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2287
|
+
pollOwner: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2288
|
+
content: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
|
|
2289
|
+
ProposeAsset: _lucid_evolution_lucid.TObject<{
|
|
2290
|
+
asset: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2291
|
+
priceOracleNft: _lucid_evolution_lucid.TObject<{
|
|
2292
|
+
oracleNft: _lucid_evolution_lucid.TObject<{
|
|
2293
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2294
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2295
|
+
}>;
|
|
2296
|
+
}>;
|
|
2297
|
+
interestOracleNft: _lucid_evolution_lucid.TObject<{
|
|
2298
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2299
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2300
|
+
}>;
|
|
2301
|
+
redemptionRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2302
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2303
|
+
}>;
|
|
2304
|
+
maintenanceRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2305
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2306
|
+
}>;
|
|
2307
|
+
liquidationRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2308
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2309
|
+
}>;
|
|
2310
|
+
debtMintingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2311
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2312
|
+
}>;
|
|
2313
|
+
liquidationProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2314
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2315
|
+
}>;
|
|
2316
|
+
stabilityPoolWithdrawalFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2317
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2318
|
+
}>;
|
|
2319
|
+
redemptionReimbursementPercentage: _lucid_evolution_lucid.TObject<{
|
|
2320
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2321
|
+
}>;
|
|
2322
|
+
redemptionProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2323
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2324
|
+
}>;
|
|
2325
|
+
interestCollectorPortionPercentage: _lucid_evolution_lucid.TObject<{
|
|
2326
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2327
|
+
}>;
|
|
2328
|
+
}>;
|
|
2329
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2330
|
+
ModifyAsset: _lucid_evolution_lucid.TObject<{
|
|
2331
|
+
asset: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2332
|
+
newAssetPriceInfo: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
|
|
2333
|
+
Delisted: _lucid_evolution_lucid.TObject<{
|
|
2334
|
+
content: _lucid_evolution_lucid.TObject<{
|
|
2335
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2336
|
+
}>;
|
|
2337
|
+
}>;
|
|
2338
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2339
|
+
Oracle: _lucid_evolution_lucid.TObject<{
|
|
2340
|
+
content: _lucid_evolution_lucid.TObject<{
|
|
2341
|
+
oracleNft: _lucid_evolution_lucid.TObject<{
|
|
2342
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2343
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2344
|
+
}>;
|
|
2345
|
+
}>;
|
|
2346
|
+
}>;
|
|
2347
|
+
}>)[]>;
|
|
2348
|
+
newInterestOracleNft: _lucid_evolution_lucid.TObject<{
|
|
2349
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2350
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2351
|
+
}>;
|
|
2352
|
+
newRedemptionRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2353
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2354
|
+
}>;
|
|
2355
|
+
newMaintenanceRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2356
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2357
|
+
}>;
|
|
2358
|
+
newLiquidationRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2359
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2360
|
+
}>;
|
|
2361
|
+
newDebtMintingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2362
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2363
|
+
}>;
|
|
2364
|
+
newLiquidationProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2365
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2366
|
+
}>;
|
|
2367
|
+
newStabilityPoolWithdrawalFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2368
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2369
|
+
}>;
|
|
2370
|
+
newRedemptionReimbursementPercentage: _lucid_evolution_lucid.TObject<{
|
|
2371
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2372
|
+
}>;
|
|
2373
|
+
newRedemptionProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2374
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2375
|
+
}>;
|
|
2376
|
+
newInterestCollectorPortionPercentage: _lucid_evolution_lucid.TObject<{
|
|
2377
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2378
|
+
}>;
|
|
2379
|
+
}>;
|
|
2380
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2381
|
+
ModifyProtocolParams: _lucid_evolution_lucid.TObject<{
|
|
2382
|
+
newParams: _lucid_evolution_lucid.TObject<{
|
|
2383
|
+
proposalDeposit: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2384
|
+
votingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2385
|
+
effectiveDelay: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2386
|
+
expirationPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2387
|
+
collateralFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2388
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2389
|
+
}>;
|
|
2390
|
+
proposingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2391
|
+
totalShards: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2392
|
+
minimumQuorum: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2393
|
+
maxTreasuryLovelaceSpend: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2394
|
+
maxTreasuryIndySpend: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2395
|
+
}>;
|
|
2396
|
+
}>;
|
|
2397
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2398
|
+
UpgradeProtocol: _lucid_evolution_lucid.TObject<{
|
|
2399
|
+
content: _lucid_evolution_lucid.TUnsafe<Data>;
|
|
2400
|
+
}>;
|
|
2401
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2402
|
+
TextProposal: _lucid_evolution_lucid.TObject<{
|
|
2403
|
+
bytes: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2404
|
+
}>;
|
|
2405
|
+
}>)[]>;
|
|
2406
|
+
treasuryWithdrawal: _lucid_evolution_lucid.TUnsafe<{
|
|
2407
|
+
value: [string, string, bigint][];
|
|
2408
|
+
destination: {
|
|
2409
|
+
paymentCredential: {
|
|
2410
|
+
PublicKeyCredential: [string];
|
|
2411
|
+
} | {
|
|
2412
|
+
ScriptCredential: [string];
|
|
2413
|
+
};
|
|
2414
|
+
stakeCredential: {
|
|
2415
|
+
Inline: [{
|
|
2416
|
+
PublicKeyCredential: [string];
|
|
2417
|
+
} | {
|
|
2418
|
+
ScriptCredential: [string];
|
|
2419
|
+
}];
|
|
2420
|
+
} | {
|
|
2421
|
+
Pointer: [{
|
|
2422
|
+
slotNumber: bigint;
|
|
2423
|
+
transactionIndex: bigint;
|
|
2424
|
+
certificateIndex: bigint;
|
|
2425
|
+
}];
|
|
2426
|
+
} | null;
|
|
2427
|
+
};
|
|
2428
|
+
} | null>;
|
|
2429
|
+
status: _lucid_evolution_lucid.TObject<{
|
|
2430
|
+
yesVotes: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2431
|
+
noVotes: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2432
|
+
}>;
|
|
2433
|
+
votingEndTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2434
|
+
createdShardsCount: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2435
|
+
talliedShardsCount: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2436
|
+
totalShardsCount: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2437
|
+
proposingEndTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2438
|
+
expirationTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2439
|
+
protocolVersion: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2440
|
+
minimumQuorum: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2441
|
+
}>;
|
|
2442
|
+
}>;
|
|
2443
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2444
|
+
PollShard: _lucid_evolution_lucid.TObject<{
|
|
2445
|
+
content: _lucid_evolution_lucid.TObject<{
|
|
2446
|
+
pollId: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2447
|
+
status: _lucid_evolution_lucid.TObject<{
|
|
2448
|
+
yesVotes: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2449
|
+
noVotes: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2450
|
+
}>;
|
|
2451
|
+
votingEndTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2452
|
+
managerAddress: _lucid_evolution_lucid.TObject<{
|
|
2453
|
+
paymentCredential: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
|
|
2454
|
+
PublicKeyCredential: _lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TUnsafe<string>]>;
|
|
2455
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2456
|
+
ScriptCredential: _lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TUnsafe<string>]>;
|
|
2457
|
+
}>)[]>;
|
|
2458
|
+
stakeCredential: _lucid_evolution_lucid.TUnsafe<{
|
|
2459
|
+
Inline: [{
|
|
2460
|
+
PublicKeyCredential: [string];
|
|
2461
|
+
} | {
|
|
2462
|
+
ScriptCredential: [string];
|
|
2463
|
+
}];
|
|
2464
|
+
} | {
|
|
2465
|
+
Pointer: [{
|
|
2466
|
+
slotNumber: bigint;
|
|
2467
|
+
transactionIndex: bigint;
|
|
2468
|
+
certificateIndex: bigint;
|
|
2469
|
+
}];
|
|
2470
|
+
} | null>;
|
|
2471
|
+
}>;
|
|
2472
|
+
}>;
|
|
2473
|
+
}>;
|
|
2474
|
+
}>)[]>;
|
|
2475
|
+
type PollDatum = Data.Static<typeof PollDatumSchema>;
|
|
2476
|
+
declare const PollDatum: PollDatum;
|
|
2477
|
+
declare function parsePollManager(datum: Datum): option.Option<PollManagerContent>;
|
|
2478
|
+
declare function parsePollManagerOrThrow(datum: Datum): PollManagerContent;
|
|
2479
|
+
declare function parsePollShard(datum: Datum): option.Option<PollShardContent>;
|
|
2480
|
+
declare function parsePollShardOrThrow(datum: Datum): PollShardContent;
|
|
2481
|
+
declare function serialisePollDatum(datum: PollDatum): Datum;
|
|
2482
|
+
|
|
1964
2483
|
declare const LRPParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1965
2484
|
versionRecordToken: _lucid_evolution_lucid.TObject<{
|
|
1966
2485
|
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
@@ -2060,14 +2579,14 @@ declare function randomLrpsSubsetSatisfyingTargetLovelaces(iasset: string, targe
|
|
|
2060
2579
|
maxLrpsInTx: number, randomiseFn?: (arr: [UTxO, LRPDatum][]) => [UTxO, LRPDatum][]): [UTxO, LRPDatum][];
|
|
2061
2580
|
|
|
2062
2581
|
declare function openLrp(assetTokenName: string, lovelacesAmt: bigint, maxPrice: OnChainDecimal, lucid: LucidEvolution, sysParams: SystemParams, lrpStakeCredential?: Credential): Promise<TxBuilder>;
|
|
2063
|
-
declare function cancelLrp(
|
|
2582
|
+
declare function cancelLrp(lrp: UtxoOrOutRef, sysParams: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
2064
2583
|
declare function redeemLrp(
|
|
2065
2584
|
/** The tuple represents the LRP outref and the amount of iAssets to redeem against it. */
|
|
2066
|
-
redemptionLrpsData: [OutRef, bigint][],
|
|
2585
|
+
redemptionLrpsData: [OutRef, bigint][], priceOracle: UtxoOrOutRef, iasset: UtxoOrOutRef, lucid: LucidEvolution, sysParams: SystemParams): Promise<TxBuilder>;
|
|
2067
2586
|
/**
|
|
2068
2587
|
* Create Tx adjusting the LRP and claiming the received iAssets
|
|
2069
2588
|
*/
|
|
2070
|
-
declare function adjustLrp(lucid: LucidEvolution,
|
|
2589
|
+
declare function adjustLrp(lucid: LucidEvolution, lrp: UtxoOrOutRef,
|
|
2071
2590
|
/**
|
|
2072
2591
|
* A positive amount increases the lovelaces in the LRP,
|
|
2073
2592
|
* and a negative amount takes lovelaces from the LRP.
|
|
@@ -2076,7 +2595,7 @@ lovelacesAdjustAmt: bigint, newMaxPrice: OnChainDecimal | undefined, sysParams:
|
|
|
2076
2595
|
/**
|
|
2077
2596
|
* Create Tx claiming the received iAssets.
|
|
2078
2597
|
*/
|
|
2079
|
-
declare function claimLrp(lucid: LucidEvolution,
|
|
2598
|
+
declare function claimLrp(lucid: LucidEvolution, lrp: UtxoOrOutRef, sysParams: SystemParams): Promise<TxBuilder>;
|
|
2080
2599
|
|
|
2081
2600
|
declare const mkLrpValidator: (params: LRPParams) => SpendingValidator;
|
|
2082
2601
|
declare const mkLrpValidatorFromSP: (params: LrpParamsSP) => SpendingValidator;
|
|
@@ -2125,7 +2644,7 @@ declare function assetClassValueOf(assets: Assets, assetClass: AssetClass): bigi
|
|
|
2125
2644
|
declare function negateAssets(assets: Assets): Assets;
|
|
2126
2645
|
declare function isAssetsZero(assets: Assets): boolean;
|
|
2127
2646
|
|
|
2128
|
-
declare function leverageCdpWithLrp(leverage: number, baseCollateral: bigint,
|
|
2647
|
+
declare function leverageCdpWithLrp(leverage: number, baseCollateral: bigint, priceOracle: UtxoOrOutRef, iasset: UtxoOrOutRef, cdpCreator: UtxoOrOutRef, interestOracle: UtxoOrOutRef, collector: UtxoOrOutRef, sysParams: SystemParams, lucid: LucidEvolution, allLrps: [UTxO, LRPDatum][], currentSlot: number): Promise<TxBuilder>;
|
|
2129
2648
|
|
|
2130
2649
|
/**
|
|
2131
2650
|
* The following is the math related to the leverage calculations.
|
|
@@ -2227,4 +2746,75 @@ declare function calculateCollateralRatioFromLeverage(iasset: string, leverage:
|
|
|
2227
2746
|
*/
|
|
2228
2747
|
declare function calculateLeverageFromCollateralRatio(iasset: string, collateralRatioPercentage: OnChainDecimal, baseCollateral: bigint, iassetPrice: OnChainDecimal, debtMintingFeePercentage: OnChainDecimal, redemptionReimbursementPercentage: OnChainDecimal, lrpParams: LrpParamsSP, allLrps: [UTxO, LRPDatum][]): number | undefined;
|
|
2229
2748
|
|
|
2230
|
-
|
|
2749
|
+
/**
|
|
2750
|
+
* Configuration for an asset to be initialized on the Indigo Protocol.
|
|
2751
|
+
*/
|
|
2752
|
+
type InitialAsset = {
|
|
2753
|
+
name: string;
|
|
2754
|
+
priceOracle: {
|
|
2755
|
+
tokenName: string;
|
|
2756
|
+
startPrice: bigint;
|
|
2757
|
+
params: {
|
|
2758
|
+
biasTime: bigint;
|
|
2759
|
+
expirationTime: bigint;
|
|
2760
|
+
};
|
|
2761
|
+
};
|
|
2762
|
+
interestOracle: {
|
|
2763
|
+
tokenName: string;
|
|
2764
|
+
initialInterestRate: bigint;
|
|
2765
|
+
params: {
|
|
2766
|
+
biasTime: bigint;
|
|
2767
|
+
};
|
|
2768
|
+
};
|
|
2769
|
+
redemptionRatioPercentage: bigint;
|
|
2770
|
+
maintenanceRatioPercentage: bigint;
|
|
2771
|
+
liquidationRatioPercentage: bigint;
|
|
2772
|
+
debtMintingFeePercentage: bigint;
|
|
2773
|
+
liquidationProcessingFeePercentage: bigint;
|
|
2774
|
+
stabilityPoolWithdrawalFeePercentage: bigint;
|
|
2775
|
+
redemptionReimbursementPercentage: bigint;
|
|
2776
|
+
redemptionProcessingFeePercentage: bigint;
|
|
2777
|
+
interestCollectorPortionPercentage: bigint;
|
|
2778
|
+
firstAsset: boolean;
|
|
2779
|
+
nextAsset?: string;
|
|
2780
|
+
};
|
|
2781
|
+
/**
|
|
2782
|
+
* Result of initializing a single asset (iAsset + stability pool + oracles).
|
|
2783
|
+
*/
|
|
2784
|
+
type AssetInfo = {
|
|
2785
|
+
iassetTokenNameAscii: string;
|
|
2786
|
+
oracleParams: PriceOracleParams;
|
|
2787
|
+
};
|
|
2788
|
+
|
|
2789
|
+
/** Token names used during protocol initialization. */
|
|
2790
|
+
declare const INDY_TOKEN_NAME = "INDY";
|
|
2791
|
+
declare const DAO_TOKEN_NAME = "DAO";
|
|
2792
|
+
declare const GOV_NFT_TOKEN_NAME = "GOV_NFT";
|
|
2793
|
+
declare const POLL_MANAGER_TOKEN_NAME = "POLL_MANAGER";
|
|
2794
|
+
declare const UPGRADE_TOKEN_NAME = "UPGRADE";
|
|
2795
|
+
declare const IASSET_TOKEN_NAME = "IASSET";
|
|
2796
|
+
declare const STABILITY_POOL_TOKEN_NAME = "STABILITY_POOL";
|
|
2797
|
+
declare const VERSION_RECORD_TOKEN_NAME = "VERSION_RECORD";
|
|
2798
|
+
declare const CDP_CREATOR_TOKEN_NAME = "CDP_CREATOR";
|
|
2799
|
+
declare const CDP_TOKEN_NAME = "CDP";
|
|
2800
|
+
declare const STAKING_MANAGER_TOKEN_NAME = "STAKING_MANAGER";
|
|
2801
|
+
declare const STAKING_TOKEN_NAME = "STAKING_POSITION";
|
|
2802
|
+
declare const SNAPSHOT_EPOCH_TO_SCALE_TO_SUM_TOKEN_NAME = "SNAPSHOT_EPOCH_TO_SCALE_TO_SUM";
|
|
2803
|
+
declare const ACCOUNT_TOKEN_NAME = "SP_ACCOUNT";
|
|
2804
|
+
declare const TOTAL_INDY_SUPPLY = 35000000000000n;
|
|
2805
|
+
declare const TREASURY_INDY_AMOUNT = 100000n;
|
|
2806
|
+
declare const NUM_CDP_CREATORS = 2n;
|
|
2807
|
+
declare const NUM_COLLECTORS = 2n;
|
|
2808
|
+
/**
|
|
2809
|
+
* Script hash of a validator that always fails; used to create script reference UTxOs.
|
|
2810
|
+
*/
|
|
2811
|
+
declare const ALWAYS_FAIL_VALIDATOR_HASH = "ea84d625650d066e1645e3e81d9c70a73f9ed837bd96dc49850ae744";
|
|
2812
|
+
/**
|
|
2813
|
+
* Complete, sign, submit a TxBuilder and wait for confirmation.
|
|
2814
|
+
* Used by initialize transactions so the contract does not depend on test helpers.
|
|
2815
|
+
*/
|
|
2816
|
+
declare function submitAndAwaitTx(lucid: LucidEvolution, tx: TxBuilder): Promise<string>;
|
|
2817
|
+
|
|
2818
|
+
declare function init(lucid: LucidEvolution, initialAssets: InitialAsset[], now?: number): Promise<[SystemParams, AssetInfo[]]>;
|
|
2819
|
+
|
|
2820
|
+
export { ACCOUNT_TOKEN_NAME, ALWAYS_FAIL_VALIDATOR_HASH, type AccountAction, type AccountContent, AccountContentSchema, ActionReturnDatum, ActionReturnDatumSchema, type AddressCredential, type AddressCredentialOrDatum, AddressD, type AddressSP, AddressSchema, type Amount, type AssetClass, type AssetClassSP, AssetClassSchema, type AssetInfo, type AuthTokenPolicies, type CDPContent, CDPContentSchema, CDPCreatorParams, type CDPCreatorParamsSP, CDPCreatorRedeemer, type CDPDatum, CDPDatumSchema, type CDPFees, CDPFeesSchema, type CDPRedeemer, CDP_CREATOR_TOKEN_NAME, CDP_TOKEN_NAME, type CdpParams, type CdpParamsSP, type CollectorParamsSP, type CollectorRedeemer, CredentialD, CredentialSchema, type CurrencySymbol, DAO_TOKEN_NAME, type DistributionParams, type EpochToScaleToSum, EpochToScaleToSumSchema, ExecuteDatum, ExecuteParams, type ExecuteParamsSP, type FeedInterestOracleRedeemer, FeedInterestOracleRedeemerSchema, GOV_NFT_TOKEN_NAME, type GovDatum, GovParams, type GovParamsSP, GovRedeemer, IASSET_TOKEN_NAME, type IAssetContent, IAssetContentSchema, type IAssetOutput, IAssetPriceInfoSchema, INDY_TOKEN_NAME, type InitialAsset, type Input, type InterestOracleDatum, InterestOracleDatumSchema, type InterestOracleParams, InterestOracleParamsSchema, type LRPDatum, LRPDatumSchema, type LRPParams, LRPParamsSchema, type LRPRedeemer, LRPRedeemerSchema, type LrpOutput, type LrpParamsSP, MAX_REDEMPTIONS_WITH_CDP_OPEN, MIN_LRP_COLLATERAL_AMT, NUM_CDP_CREATORS, NUM_COLLECTORS, ONE_DAY, ONE_HOUR, ONE_SECOND, ONE_YEAR, type OracleAssetNft, OracleAssetNftSchema, type Output, type OutputReference, OutputReferenceSchema, POLL_MANAGER_TOKEN_NAME, PollDatum, type PollManagerContent, PollManagerParams, type PollManagerParamsSP, PollManagerRedeemer, type PollShardContent, PollShardParams, type PollShardParamsSP, PollShardRedeemer, type PollStatus, type PriceOracleDatum, PriceOracleDatumSchema, type PriceOracleParams, PriceOracleParamsSchema, type PriceOracleRedeemer, ProposalContent, ProposalContentSchema, type ProposeAssetContent, ProtocolParams, ProtocolParamsSchema, type PubKeyHash, SNAPSHOT_EPOCH_TO_SCALE_TO_SUM_TOKEN_NAME, type SPInteger, SPIntegerSchema, STABILITY_POOL_TOKEN_NAME, STAKING_MANAGER_TOKEN_NAME, STAKING_TOKEN_NAME, type ScriptCredential, type ScriptOutput, type ScriptRef, type ScriptReference, type ScriptReferences, type SnapshotEpochToScaleToSumContent, SnapshotEpochToScaleToSumContentSchema, type StabilityPoolContent, StabilityPoolContentSchema, StabilityPoolDatumSchema, StabilityPoolParams, type StabilityPoolParamsSP, type StabilityPoolRedeemer, StabilityPoolRedeemerSchema, type StabilityPoolSnapshot, StakeCredentialSchema, type StakingManager, type StakingManagerOutput, type StakingParamsSP, type StakingPosLockedAmt, type StakingPosition, type StakingPositionOutput, type StakingRedeemer, type StartTime, type SystemParams, TOTAL_INDY_SUPPLY, TREASURY_INDY_AMOUNT, type TokenName, TreasuryParams, type TreasuryParamsSP, TreasuryParamsSchema, type TreasuryRedeemer, type TreasuryWithdrawal, type TreasuryWithdrawalItem, TreasuryWithdrawalSchema, UPGRADE_TOKEN_NAME, type UpgradePaths, type UtxoOrOutRef, VERSION_RECORD_TOKEN_NAME, type ValidatorHashes, VerificationKeyHashSchema, type VersionRecordParams, VersionRecordTokenParams, type VoteOption, type WithdrawalOutputDatum, addrDetails, addressFromBech32, addressToBech32, adjust, adjustLrp, adjustSpAccount, adjustStakingPosition, adjustmentHelper, annulRequest, approximateLeverageRedemptions, assetClassToUnit, assetClassValueOf, balance, buildRedemptionsTx, burnCdp, calculateAccruedInterest, calculateAdaReward, calculateCollateralRatioFromLeverage, calculateIAssetRedemptionAmt, calculateLeverageFromCollateralRatio, calculateMinCollateralCappedIAssetRedemptionAmt, calculateTotalAdaForRedemption, calculateUnitaryInterest, calculateUnitaryInterestSinceOracleLastUpdated, cancelLrp, castCDPCreatorParams, castCdpParams, castExecuteParams, castGovParams, castInterestOracleParams, castLrpParams, castPollManagerParams, castPollShardParams, castPriceOracleParams, castStabilityPoolParams, castStakingParams, castTreasuryParams, castVersionRecordTokenParams, cdpCollateralRatioPercentage, claimLrp, closeCdp, closeSpAccount, closeStakingPosition, collectorFeeTx, computeInterestLovelacesFor100PercentCR, createProposal, createScriptAddress, createShardsChunks, createSpAccount, depositCdp, distributeAda, distributeReward, endProposal, executeProposal, feedInterestOracle, findStakingManager, findStakingManagerByOutRef, findStakingPositionByOutRef, freezeCdp, fromSPInteger, fromSysParamsScriptCredential, fromSystemParamsAsset, fromSystemParamsScriptRef, getAccountFund, getAccountReward, getInlineDatumOrThrow, getRandomElement, getSumFromEpochToScaleToSum, init, initEpochToScaleToSumMap, initSpSnapshot, insertSorted, isAssetsZero, leverageCdpWithLrp, liquidateCdp, liquidationHelper, loadSystemParamsFromFile, loadSystemParamsFromUrl, lovelacesAmt, lrpRedeemableLovelacesInclReimb, matchSingle, mergeCdps, mergeShards, mintCdp, mkAssetsOf, mkCDPCreatorValidator, mkCDPCreatorValidatorFromSP, mkCdpValidatorFromSP, mkCollectorValidatorFromSP, mkExecuteValidator, mkExecuteValidatorFromSP, mkInterestOracleValidator, mkLovelacesOf, mkLrpValidator, mkLrpValidatorFromSP, mkPollManagerValidator, mkPollManagerValidatorFromSP, mkPollShardValidator, mkPollShardValidatorFromSP, mkSPInteger, mkTreasuryValidatorFromSP, mkVersionRecordTokenPolicy, mkVersionRegistryValidator, negateAssets, oneShotMintTx, openCdp, openLrp, openStakingPosition, parseAccountDatum, parseCdpDatum, parseCdpDatumOrThrow, parseExecuteDatum, parseExecuteDatumOrThrow, parseGovDatum, parseGovDatumOrThrow, parseIAssetDatum, parseIAssetDatumOrThrow, parseInterestOracleDatum, parseLrpDatum, parseLrpDatumOrThrow, parsePollManager, parsePollManagerOrThrow, parsePollShard, parsePollShardOrThrow, parsePriceOracleDatum, parseSnapshotEpochToScaleToSumDatum, parseStabilityPoolDatum, parseStakingManagerDatum, parseStakingPosition, parseStakingPositionOrThrow, parseUpgradePaths, processSpRequest, randomLrpsSubsetSatisfyingTargetLovelaces, redeemCdp, redeemLrp, resolveUtxo, rewardSnapshotPrecision, runCreateScriptRefTx, runOneShotMintTx, scriptRef, serialiseCDPCreatorDatum, serialiseCDPCreatorRedeemer, serialiseCdpDatum, serialiseCdpRedeemer, serialiseCollectorRedeemer, serialiseExecuteDatum, serialiseFeedInterestOracleRedeemer, serialiseGovDatum, serialiseGovRedeemer, serialiseIAssetDatum, serialiseInterestOracleDatum, serialiseLrpDatum, serialiseLrpRedeemer, serialisePollDatum, serialisePollManagerRedeemer, serialisePollShardRedeemer, serialisePriceOracleDatum, serialisePriceOracleRedeemer, serialiseStabilityPoolDatum, serialiseStabilityPoolRedeemer, serialiseStakingDatum, serialiseStakingRedeemer, serialiseTreasuryDatum, serialiseTreasuryRedeemer, serialiseUpgradePaths, serialiseWithdrawalOutputDatum, setSumInEpochToScaleToSum, shuffle, spAdd, spDiv, spMul, spSub, startInterestOracle, submitAndAwaitTx, summarizeActualLeverageRedemptions, toSystemParamsAsset, treasuryFeeTx, updatePoolSnapshotWithdrawalFee, updateSlotConfigNetwork, updateStakingLockedAmount, vote, withdrawCdp };
|