@indigo-labs/indigo-sdk 0.4.3 → 0.5.0
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/.claude/settings.local.json +7 -0
- package/dist/index.d.mts +992 -905
- package/dist/index.d.ts +992 -905
- package/dist/index.js +2346 -2155
- package/dist/index.mjs +1925 -1750
- package/package.json +13 -21
- package/scripts/bench.sh +0 -0
- package/src/contracts/cdp/helpers.ts +7 -6
- package/src/contracts/cdp/transactions.ts +8 -29
- package/src/contracts/gov/transactions.ts +15 -17
- package/src/contracts/iasset/helpers.ts +2 -7
- package/src/contracts/initialize/actions.ts +0 -2
- package/src/contracts/initialize/helpers.ts +0 -4
- package/src/contracts/interest-collection/transactions.ts +2 -5
- package/src/contracts/interest-oracle/helpers.ts +4 -0
- package/src/contracts/interest-oracle/transactions.ts +1 -4
- package/src/contracts/price-oracle/helpers.ts +5 -11
- package/src/contracts/price-oracle/transactions.ts +2 -7
- package/src/contracts/rob/transactions.ts +0 -2
- package/src/contracts/rob-leverage/transactions.ts +1 -4
- package/{tests/queries/stability-pool-queries.ts → src/contracts/stability-pool/queries.ts} +22 -14
- package/src/contracts/stability-pool/transactions.ts +2 -8
- package/src/contracts/stableswap/helpers.ts +369 -1
- package/src/contracts/stableswap/transactions.ts +43 -191
- package/src/contracts/staking/transactions.ts +2 -7
- package/src/index.ts +4 -3
- package/tests/cdp/actions.ts +0 -11
- package/tests/cdp/cdp-helpers.ts +2 -2
- package/tests/cdp/cdp-queries.ts +8 -5
- package/tests/cdp/cdp.test.ts +409 -620
- package/tests/cdp/transactions-mutated.ts +30 -25
- package/tests/endpoints/initialize.ts +0 -2
- package/tests/gov/actions.ts +7 -32
- package/tests/gov/gov.test.ts +169 -401
- package/tests/indigo-test-helpers.ts +0 -1
- package/tests/initialize.test.ts +15 -20
- package/tests/interest-collection/interest-collection.test.ts +0 -4
- package/tests/interest-oracle.test.ts +1 -8
- package/tests/price-oracle/actions.ts +6 -8
- package/tests/price-oracle/price-oracle.test.ts +1 -13
- package/tests/price-oracle/transactions-mutated.ts +1 -4
- package/tests/pyth/pyth-feeds.test.ts +943 -0
- package/tests/pyth/pyth-indigo.test.ts +8 -12
- package/tests/pyth/pyth.test.ts +1 -2
- package/tests/rob/actions.ts +0 -2
- package/tests/rob/rob-leverage.test.ts +164 -220
- package/tests/rob/rob.test.ts +158 -263
- package/tests/rob/transactions-mutated.ts +7 -18
- package/tests/stability-pool/actions.ts +31 -22
- package/tests/stability-pool.test.ts +226 -319
- package/tests/stableswap/stableswap-actions.ts +0 -1
- package/tests/stableswap/stableswap.test.ts +226 -4
- package/tests/staking.test.ts +2 -13
- package/tests/treasury/treasury.test.ts +6 -30
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _lucid_evolution_lucid from '@lucid-evolution/lucid';
|
|
2
|
-
import { Data, UTxO, Credential, OutRef, LucidEvolution, TxBuilder, Assets,
|
|
2
|
+
import { Data, UTxO, Credential, OutRef, LucidEvolution, TxBuilder, Assets, WithdrawalValidator, SpendingValidator, MintingPolicy, Address, PolicyId, Network, ScriptHash, ProtocolParameters, OutputDatum, Script, Datum } from '@lucid-evolution/lucid';
|
|
3
3
|
import { AssetClass } from '@3rd-eye-labs/cardano-offchain-common';
|
|
4
4
|
import * as Core from '@evolution-sdk/evolution';
|
|
5
5
|
import { TSchema, Schema, Data as Data$1 } from '@evolution-sdk/evolution';
|
|
@@ -575,33 +575,33 @@ declare function openCdp(collateralAmount: bigint, mintedAmount: bigint, sysPara
|
|
|
575
575
|
/**
|
|
576
576
|
* `undefined` in case using direct treasury payment.
|
|
577
577
|
*/
|
|
578
|
-
treasuryOref: OutRef | undefined, lucid: LucidEvolution,
|
|
578
|
+
treasuryOref: OutRef | undefined, lucid: LucidEvolution, pythMessage?: string | undefined, pythStateOref?: OutRef | undefined): Promise<TxBuilder>;
|
|
579
579
|
declare function adjustCdp(collateralAdjustment: bigint, debtAdjustment: bigint, cdpOref: OutRef, iassetOref: OutRef, collateralAssetOref: OutRef, priceOracleOref: OutRef | undefined, interestOracleOref: OutRef,
|
|
580
580
|
/**
|
|
581
581
|
* `undefined` in case using direct treasury payment.
|
|
582
582
|
*/
|
|
583
|
-
treasuryOref: OutRef | undefined, interestCollectorOref: OutRef, sysParams: SystemParams, lucid: LucidEvolution,
|
|
583
|
+
treasuryOref: OutRef | undefined, interestCollectorOref: OutRef, sysParams: SystemParams, lucid: LucidEvolution, pythMessage?: string | undefined, pythStateOref?: OutRef | undefined): Promise<TxBuilder>;
|
|
584
584
|
declare function depositCdp(amount: bigint, cdpOref: OutRef, iassetOref: OutRef, collateralAssetOref: OutRef, interestOracleOref: OutRef,
|
|
585
585
|
/**
|
|
586
586
|
* `undefined` in case using direct treasury payment.
|
|
587
587
|
*/
|
|
588
|
-
treasuryOref: OutRef | undefined, interestCollectorOref: OutRef, params: SystemParams, lucid: LucidEvolution
|
|
588
|
+
treasuryOref: OutRef | undefined, interestCollectorOref: OutRef, params: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
589
589
|
declare function withdrawCdp(amount: bigint, cdpOref: OutRef, iassetOref: OutRef, collateralAssetOref: OutRef, priceOracleOref: OutRef | undefined, interestOracleOref: OutRef,
|
|
590
590
|
/**
|
|
591
591
|
* `undefined` in case using direct treasury payment.
|
|
592
592
|
*/
|
|
593
|
-
treasuryOref: OutRef | undefined, interestCollectorOref: OutRef, params: SystemParams, lucid: LucidEvolution,
|
|
593
|
+
treasuryOref: OutRef | undefined, interestCollectorOref: OutRef, params: SystemParams, lucid: LucidEvolution, pythMessage?: string | undefined, pythStateOref?: OutRef | undefined): Promise<TxBuilder>;
|
|
594
594
|
declare function mintCdp(amount: bigint, cdpOref: OutRef, iassetOref: OutRef, collateralAssetOref: OutRef, priceOracleOref: OutRef | undefined, interestOracleOref: OutRef,
|
|
595
595
|
/**
|
|
596
596
|
* `undefined` in case using direct treasury payment.
|
|
597
597
|
*/
|
|
598
|
-
treasuryOref: OutRef | undefined, interestCollectorOref: OutRef, params: SystemParams, lucid: LucidEvolution,
|
|
598
|
+
treasuryOref: OutRef | undefined, interestCollectorOref: OutRef, params: SystemParams, lucid: LucidEvolution, pythMessage?: string | undefined, pythStateOref?: OutRef | undefined): Promise<TxBuilder>;
|
|
599
599
|
declare function burnCdp(amount: bigint, cdpOref: OutRef, iassetOref: OutRef, collateralAssetOref: OutRef, interestOracleOref: OutRef,
|
|
600
600
|
/**
|
|
601
601
|
* `undefined` in case using direct treasury payment.
|
|
602
602
|
*/
|
|
603
|
-
treasuryOref: OutRef | undefined, interestCollectorOref: OutRef, params: SystemParams, lucid: LucidEvolution
|
|
604
|
-
declare function closeCdp(cdpOref: OutRef, collateralAssetOref: OutRef, interestOracleOref: OutRef, interestCollectorOref: OutRef, sysParams: SystemParams, lucid: LucidEvolution
|
|
603
|
+
treasuryOref: OutRef | undefined, interestCollectorOref: OutRef, params: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
604
|
+
declare function closeCdp(cdpOref: OutRef, collateralAssetOref: OutRef, interestOracleOref: OutRef, interestCollectorOref: OutRef, sysParams: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
605
605
|
declare function redeemCdp(
|
|
606
606
|
/**
|
|
607
607
|
* When the goal is to redeem the maximum possible, just pass in the total minted amount of the CDP.
|
|
@@ -611,8 +611,8 @@ attemptedRedemptionIAssetAmt: bigint, cdpOref: OutRef, iassetOref: OutRef, colla
|
|
|
611
611
|
/**
|
|
612
612
|
* `undefined` in case using direct treasury payment.
|
|
613
613
|
*/
|
|
614
|
-
treasuryOref: OutRef | undefined, govOref: OutRef, sysParams: SystemParams, lucid: LucidEvolution,
|
|
615
|
-
declare function freezeCdp(cdpOref: OutRef, iassetOref: OutRef, collateralAssetOref: OutRef, priceOracleOref: OutRef | undefined, interestOracleOref: OutRef, sysParams: SystemParams, lucid: LucidEvolution,
|
|
614
|
+
treasuryOref: OutRef | undefined, govOref: OutRef, sysParams: SystemParams, lucid: LucidEvolution, pythMessage?: string | undefined, _pythStateOref?: OutRef | undefined): Promise<TxBuilder>;
|
|
615
|
+
declare function freezeCdp(cdpOref: OutRef, iassetOref: OutRef, collateralAssetOref: OutRef, priceOracleOref: OutRef | undefined, interestOracleOref: OutRef, sysParams: SystemParams, lucid: LucidEvolution, pythMessage?: string | undefined, pythStateOref?: OutRef | undefined): Promise<TxBuilder>;
|
|
616
616
|
declare function liquidateCdp(cdpOref: OutRef, stabilityPoolOref: OutRef, interestCollectorOref: OutRef,
|
|
617
617
|
/**
|
|
618
618
|
* `undefined` in case using direct treasury payment.
|
|
@@ -822,7 +822,12 @@ declare function rationalToFloat(a: Rational): number;
|
|
|
822
822
|
* Amount of iasset equal in value to the given number of collateral amount.
|
|
823
823
|
*/
|
|
824
824
|
declare function iassetValueOfCollateral(collateralAmt: bigint, oraclePrice: Rational): bigint;
|
|
825
|
-
declare function cdpCollateralRatioPercentage(
|
|
825
|
+
declare function cdpCollateralRatioPercentage(
|
|
826
|
+
/**
|
|
827
|
+
* Should be ideally the result of the following: lucid.slotToUnixTime(lucid.currentSlot()).
|
|
828
|
+
* Otherwise, the unix timestamp should suffice, but might not be 100% precise as on-chain.
|
|
829
|
+
*/
|
|
830
|
+
now: bigint, iassetPrice: Rational, cdpUtxoAssets: Assets, cdpContent: CDPContent, interestOracleDatum: InterestOracleDatum): number;
|
|
826
831
|
/**
|
|
827
832
|
* The amount of iassets to redeem to reach the RMR.
|
|
828
833
|
*/
|
|
@@ -2354,7 +2359,7 @@ declare function serialisePollDatum(d: PollDatum): string;
|
|
|
2354
2359
|
/**
|
|
2355
2360
|
* Returns the new PollId.
|
|
2356
2361
|
*/
|
|
2357
|
-
declare function createProposal(proposalContent: ProposalContent, treasuryWithdrawal: TreasuryWithdrawal | null, sysParams: SystemParams, lucid: LucidEvolution,
|
|
2362
|
+
declare function createProposal(proposalContent: ProposalContent, treasuryWithdrawal: TreasuryWithdrawal | null, sysParams: SystemParams, lucid: LucidEvolution, govOref: OutRef,
|
|
2358
2363
|
/**
|
|
2359
2364
|
* This has to be passed only in case of createAsset proposal
|
|
2360
2365
|
*/
|
|
@@ -2366,10 +2371,10 @@ declare function createShardsChunks(
|
|
|
2366
2371
|
/**
|
|
2367
2372
|
* This gets automatically capped to total shards count.
|
|
2368
2373
|
*/
|
|
2369
|
-
chunkSize: bigint, pollManagerOref: OutRef, sysParams: SystemParams,
|
|
2370
|
-
declare function vote(voteOption: VoteOption, pollShardOref: OutRef, stakingPositionOref: OutRef, sysParams: SystemParams, lucid: LucidEvolution
|
|
2371
|
-
declare function mergeShards(pollManagerOref: OutRef, shardsOutRefs: OutRef[], sysParams: SystemParams, lucid: LucidEvolution
|
|
2372
|
-
declare function endProposal(pollManagerOref: OutRef, govOref: OutRef, sysParams: SystemParams, lucid: LucidEvolution
|
|
2374
|
+
chunkSize: bigint, pollManagerOref: OutRef, sysParams: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
2375
|
+
declare function vote(voteOption: VoteOption, pollShardOref: OutRef, stakingPositionOref: OutRef, sysParams: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
2376
|
+
declare function mergeShards(pollManagerOref: OutRef, shardsOutRefs: OutRef[], sysParams: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
2377
|
+
declare function endProposal(pollManagerOref: OutRef, govOref: OutRef, sysParams: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
2373
2378
|
declare function executeProposal(executeOref: OutRef, govOref: OutRef, treasuryWithdrawalOref: OutRef | null, allIAssetOrefs: OutRef[] | null,
|
|
2374
2379
|
/**
|
|
2375
2380
|
* This for either Propose IAsset, Modify IAsset or Add Collateral asset proposals.
|
|
@@ -2379,7 +2384,7 @@ iAssetOref: OutRef | null,
|
|
|
2379
2384
|
* This is when adding new collateral asset. It should be all collateral assets of the given iAsset
|
|
2380
2385
|
* where it's adding the new collateral asset.
|
|
2381
2386
|
*/
|
|
2382
|
-
allCollateralAssetsOrefsOfIAsset: OutRef[] | null, collateralAssetOref: OutRef | null, stableswapPoolOrCdpCreatorOref: OutRef | null, sysParams: SystemParams, lucid: LucidEvolution
|
|
2387
|
+
allCollateralAssetsOrefsOfIAsset: OutRef[] | null, collateralAssetOref: OutRef | null, stableswapPoolOrCdpCreatorOref: OutRef | null, sysParams: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
2383
2388
|
|
|
2384
2389
|
declare const GovParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
2385
2390
|
govNFT: _lucid_evolution_lucid.TObject<{
|
|
@@ -2422,72 +2427,9 @@ declare function castGovParams(params: GovParams): Data;
|
|
|
2422
2427
|
declare const mkGovValidator: (params: GovParams) => SpendingValidator;
|
|
2423
2428
|
declare const mkGovValidatorFromSP: (params: GovParamsSP) => SpendingValidator;
|
|
2424
2429
|
|
|
2425
|
-
declare function requestSpAccountCreation(assetAscii: string, amount: bigint, sysParams: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
2426
|
-
declare function requestSpAccountAdjustment(amount: bigint, accountUtxo: UTxO, sysParams: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
2427
|
-
declare function requestSpAccountClosure(accountUtxo: UTxO, sysParams: SystemParams, lucid: LucidEvolution, maxTxFee?: bigint): Promise<TxBuilder>;
|
|
2428
|
-
declare function processSpRequest(stabilityPoolUtxo: UTxO, accountUtxo: UTxO, iAssetUtxo: UTxO,
|
|
2429
|
-
/**
|
|
2430
|
-
* For performance provide only the ones related to the pool's iAsset.
|
|
2431
|
-
*/
|
|
2432
|
-
allE2s2sSnapshotOrefs: OutRef[], sysParams: SystemParams, lucid: LucidEvolution, currentSlot: number): Promise<TxBuilder>;
|
|
2433
|
-
declare function createE2s2sSnapshots(stabilityPoolOref: OutRef, sysParams: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
2434
|
-
declare function annulRequest(accountUtxo: UTxO, params: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
2435
|
-
|
|
2436
|
-
/** SP Parameters */
|
|
2437
|
-
declare const StabilityPoolParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
2438
|
-
assetSymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2439
|
-
stabilityPoolToken: _lucid_evolution_lucid.TObject<{
|
|
2440
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2441
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2442
|
-
}>;
|
|
2443
|
-
snapshotEpochToScaleToSumToken: _lucid_evolution_lucid.TObject<{
|
|
2444
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2445
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2446
|
-
}>;
|
|
2447
|
-
accountToken: _lucid_evolution_lucid.TObject<{
|
|
2448
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2449
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2450
|
-
}>;
|
|
2451
|
-
cdpToken: _lucid_evolution_lucid.TObject<{
|
|
2452
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2453
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2454
|
-
}>;
|
|
2455
|
-
iAssetAuthToken: _lucid_evolution_lucid.TObject<{
|
|
2456
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2457
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2458
|
-
}>;
|
|
2459
|
-
versionRecordToken: _lucid_evolution_lucid.TObject<{
|
|
2460
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2461
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2462
|
-
}>;
|
|
2463
|
-
iassetValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2464
|
-
accountCreateFeeLovelaces: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2465
|
-
accountProcessingCooldownMs: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2466
|
-
accountProcessingBiasMs: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2467
|
-
stakeCredential: _lucid_evolution_lucid.TUnsafe<{
|
|
2468
|
-
Inline: [{
|
|
2469
|
-
PublicKeyCredential: [string];
|
|
2470
|
-
} | {
|
|
2471
|
-
ScriptCredential: [string];
|
|
2472
|
-
}];
|
|
2473
|
-
} | {
|
|
2474
|
-
Pointer: [{
|
|
2475
|
-
slotNumber: bigint;
|
|
2476
|
-
transactionIndex: bigint;
|
|
2477
|
-
certificateIndex: bigint;
|
|
2478
|
-
}];
|
|
2479
|
-
} | null>;
|
|
2480
|
-
}>;
|
|
2481
|
-
type StabilityPoolParams = Data.Static<typeof StabilityPoolParamsSchema>;
|
|
2482
|
-
declare const StabilityPoolParams: StabilityPoolParams;
|
|
2483
|
-
declare function castStabilityPoolParams(params: StabilityPoolParams): Data;
|
|
2484
|
-
|
|
2485
|
-
declare const mkStabilityPoolValidator: (params: StabilityPoolParams) => SpendingValidator;
|
|
2486
|
-
declare const mkStabilityPoolValidatorFromSP: (params: StabilityPoolParamsSP) => SpendingValidator;
|
|
2487
|
-
|
|
2488
2430
|
declare function openStakingPosition(amount: bigint, params: SystemParams, lucid: LucidEvolution, stakingManagerRef?: OutRef): Promise<TxBuilder>;
|
|
2489
|
-
declare function adjustStakingPosition(stakingPositionRef: OutRef, amount: bigint, params: SystemParams, lucid: LucidEvolution,
|
|
2490
|
-
declare function closeStakingPosition(stakingPositionRef: OutRef, params: SystemParams, lucid: LucidEvolution,
|
|
2431
|
+
declare function adjustStakingPosition(stakingPositionRef: OutRef, amount: bigint, params: SystemParams, lucid: LucidEvolution, stakingManagerRef?: OutRef): Promise<TxBuilder>;
|
|
2432
|
+
declare function closeStakingPosition(stakingPositionRef: OutRef, params: SystemParams, lucid: LucidEvolution, stakingManagerRef?: OutRef): Promise<TxBuilder>;
|
|
2491
2433
|
declare function distributeAda(stakingManagerRef: OutRef, collectorRefs: OutRef[], params: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
2492
2434
|
|
|
2493
2435
|
declare const StakingPosLockedAmtSchema: TSchema.Array<TSchema.Tuple<[TSchema.Integer, TSchema.Struct<{
|
|
@@ -2604,11 +2546,16 @@ type InterestOracleParams = Data.Static<typeof InterestOracleParamsSchema>;
|
|
|
2604
2546
|
declare function castInterestOracleParams(params: InterestOracleParams): Data;
|
|
2605
2547
|
|
|
2606
2548
|
declare function startInterestOracle(initialUnitaryInterest: bigint, initialInterestRate: bigint, initialLastInterestUpdate: bigint, oracleParams: InterestOracleParams, lucid: LucidEvolution, interestTokenName?: string, withScriptRef?: boolean, refOutRef?: OutRef): Promise<[TxBuilder, AssetClass]>;
|
|
2607
|
-
declare function feedInterestOracle(params: InterestOracleParams, newInterestRate: bigint, lucid: LucidEvolution,
|
|
2549
|
+
declare function feedInterestOracle(params: InterestOracleParams, newInterestRate: bigint, lucid: LucidEvolution, assetClass?: AssetClass, utxo?: UTxO, scriptRef?: UTxO): Promise<TxBuilder>;
|
|
2608
2550
|
|
|
2609
2551
|
declare function calculateUnitaryInterest(timePeriod: bigint, interestRate: bigint): bigint;
|
|
2610
2552
|
declare function calculateUnitaryInterestSinceOracleLastUpdated(now: bigint, oracleDatum: InterestOracleDatum): bigint;
|
|
2611
|
-
declare function calculateAccruedInterest(
|
|
2553
|
+
declare function calculateAccruedInterest(
|
|
2554
|
+
/**
|
|
2555
|
+
* Should be ideally the result of the following: lucid.slotToUnixTime(lucid.currentSlot()).
|
|
2556
|
+
* Otherwise, the unix timestamp should suffice, but might not be 100% precise as on-chain.
|
|
2557
|
+
*/
|
|
2558
|
+
now: bigint, unitaryInterestSnapshot: bigint, mintedAmount: bigint, interestLastSettled: bigint, interestOracleDatum: InterestOracleDatum): bigint;
|
|
2612
2559
|
|
|
2613
2560
|
declare const MultisigSchema: TSchema.Union<[TSchema.Struct<{
|
|
2614
2561
|
Signature: TSchema.Struct<{
|
|
@@ -2681,7 +2628,7 @@ declare function serialiseInterestCollectionDatum(datum: InterestCollectionDatum
|
|
|
2681
2628
|
declare function mkInterestCollectionValidator(params: InterestCollectionParams): SpendingValidator;
|
|
2682
2629
|
declare const mkInterestCollectionValidatorFromSP: (params: InterestCollectionParamsSP) => SpendingValidator;
|
|
2683
2630
|
|
|
2684
|
-
declare function batchCollectInterest(collateralAssetOref: OutRef, interestCollectorOutRef: OutRef, interestOracleOutRef: OutRef, cdpOutRefs: OutRef[], params: SystemParams, lucid: LucidEvolution
|
|
2631
|
+
declare function batchCollectInterest(collateralAssetOref: OutRef, interestCollectorOutRef: OutRef, interestOracleOutRef: OutRef, cdpOutRefs: OutRef[], params: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
2685
2632
|
declare function collectInterestTx(value: Assets, lucid: LucidEvolution, sysParams: SystemParams, tx: TxBuilder, interestCollectorOref: OutRef): Promise<UTxO>;
|
|
2686
2633
|
declare function distributeInterest(interestCollectorOutRefs: OutRef[], interestAdminOutRef: OutRef, params: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
2687
2634
|
declare function updatePermissions(interestAdminOutRef: OutRef, govOref: OutRef, newAdminPermissions: Multisig, expectedSigners: string[], params: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
@@ -2725,900 +2672,988 @@ declare function findRandomTreasuryUtxoWithOnlyAda(lucid: LucidEvolution, sysPar
|
|
|
2725
2672
|
declare function findRandomTreasuryUtxoWithAsset(lucid: LucidEvolution, sysParams: SystemParams, asset: AssetClass, max_number_of_assets?: bigint): Promise<UTxO>;
|
|
2726
2673
|
declare function findAllTreasuryUtxosWithNonAdaAsset(lucid: LucidEvolution, sysParams: SystemParams, includeDaoToken?: boolean): Promise<UTxO[]>;
|
|
2727
2674
|
|
|
2728
|
-
declare const
|
|
2729
|
-
|
|
2730
|
-
|
|
2731
|
-
|
|
2732
|
-
|
|
2733
|
-
|
|
2734
|
-
|
|
2735
|
-
|
|
2736
|
-
|
|
2737
|
-
|
|
2738
|
-
|
|
2739
|
-
ScriptCredential: TSchema.ByteArray;
|
|
2740
|
-
}>]>;
|
|
2741
|
-
stakeCredential: TSchema.NullOr<TSchema.Union<[TSchema.Struct<{
|
|
2742
|
-
Inline: TSchema.Union<[TSchema.Struct<{
|
|
2743
|
-
PublicKeyCredential: TSchema.ByteArray;
|
|
2744
|
-
}>, TSchema.Struct<{
|
|
2745
|
-
ScriptCredential: TSchema.ByteArray;
|
|
2746
|
-
}>]>;
|
|
2747
|
-
}>, TSchema.Struct<{
|
|
2748
|
-
Pointer: TSchema.Struct<{
|
|
2749
|
-
slotNumber: TSchema.Integer;
|
|
2750
|
-
transactionIndex: TSchema.Integer;
|
|
2751
|
-
certificateIndex: TSchema.Integer;
|
|
2752
|
-
}>;
|
|
2753
|
-
}>]>>;
|
|
2754
|
-
}>;
|
|
2755
|
-
}>;
|
|
2756
|
-
}>, TSchema.Struct<{
|
|
2757
|
-
Close: TSchema.Struct<{
|
|
2758
|
-
outputAddress: TSchema.Struct<{
|
|
2759
|
-
paymentCredential: TSchema.Union<[TSchema.Struct<{
|
|
2760
|
-
PublicKeyCredential: TSchema.ByteArray;
|
|
2761
|
-
}>, TSchema.Struct<{
|
|
2762
|
-
ScriptCredential: TSchema.ByteArray;
|
|
2763
|
-
}>]>;
|
|
2764
|
-
stakeCredential: TSchema.NullOr<TSchema.Union<[TSchema.Struct<{
|
|
2765
|
-
Inline: TSchema.Union<[TSchema.Struct<{
|
|
2766
|
-
PublicKeyCredential: TSchema.ByteArray;
|
|
2767
|
-
}>, TSchema.Struct<{
|
|
2768
|
-
ScriptCredential: TSchema.ByteArray;
|
|
2769
|
-
}>]>;
|
|
2770
|
-
}>, TSchema.Struct<{
|
|
2771
|
-
Pointer: TSchema.Struct<{
|
|
2772
|
-
slotNumber: TSchema.Integer;
|
|
2773
|
-
transactionIndex: TSchema.Integer;
|
|
2774
|
-
certificateIndex: TSchema.Integer;
|
|
2775
|
-
}>;
|
|
2776
|
-
}>]>>;
|
|
2777
|
-
}>;
|
|
2778
|
-
maxTxFee: TSchema.Integer;
|
|
2675
|
+
declare const ONE_SECOND: number;
|
|
2676
|
+
declare const ONE_HOUR: bigint;
|
|
2677
|
+
declare const ONE_DAY: bigint;
|
|
2678
|
+
declare const ONE_YEAR: bigint;
|
|
2679
|
+
|
|
2680
|
+
declare const mkCollectorValidatorFromSP: (params: CollectorParamsSP) => SpendingValidator;
|
|
2681
|
+
|
|
2682
|
+
declare const ExecuteParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
2683
|
+
govNFT: _lucid_evolution_lucid.TObject<{
|
|
2684
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2685
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2779
2686
|
}>;
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
sumVal: TSchema.Struct<{
|
|
2784
|
-
value: TSchema.Integer;
|
|
2687
|
+
upgradeToken: _lucid_evolution_lucid.TObject<{
|
|
2688
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2689
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2785
2690
|
}>;
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
type SumSnapshot = typeof SumSnapshotSchema.Type;
|
|
2790
|
-
declare const EpochToScaleKeySchema: TSchema.Struct<{
|
|
2791
|
-
epoch: TSchema.Integer;
|
|
2792
|
-
scale: TSchema.Integer;
|
|
2793
|
-
}>;
|
|
2794
|
-
type EpochToScaleKey = typeof EpochToScaleKeySchema.Type;
|
|
2795
|
-
declare const EpochToScaleToSumEntrySchema: TSchema.Tuple<[TSchema.Struct<{
|
|
2796
|
-
epoch: TSchema.Integer;
|
|
2797
|
-
scale: TSchema.Integer;
|
|
2798
|
-
}>, TSchema.Struct<{
|
|
2799
|
-
sumVal: TSchema.Struct<{
|
|
2800
|
-
value: TSchema.Integer;
|
|
2691
|
+
iAssetToken: _lucid_evolution_lucid.TObject<{
|
|
2692
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2693
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2801
2694
|
}>;
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
type EpochToScaleToSumEntry = typeof EpochToScaleToSumEntrySchema.Type;
|
|
2806
|
-
declare const StateSnapshotSchema: TSchema.Struct<{
|
|
2807
|
-
productVal: TSchema.Struct<{
|
|
2808
|
-
value: TSchema.Integer;
|
|
2695
|
+
collateralAssetToken: _lucid_evolution_lucid.TObject<{
|
|
2696
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2697
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2809
2698
|
}>;
|
|
2810
|
-
|
|
2811
|
-
|
|
2699
|
+
stabilityPoolToken: _lucid_evolution_lucid.TObject<{
|
|
2700
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2701
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2812
2702
|
}>;
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
type StateSnapshot = typeof StateSnapshotSchema.Type;
|
|
2817
|
-
declare const AssetSnapshotSchema: TSchema.Struct<{
|
|
2818
|
-
currentSumVal: TSchema.Struct<{
|
|
2819
|
-
value: TSchema.Integer;
|
|
2703
|
+
cdpCreatorToken: _lucid_evolution_lucid.TObject<{
|
|
2704
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2705
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2820
2706
|
}>;
|
|
2821
|
-
|
|
2822
|
-
|
|
2823
|
-
|
|
2824
|
-
}>, TSchema.Struct<{
|
|
2825
|
-
sumVal: TSchema.Struct<{
|
|
2826
|
-
value: TSchema.Integer;
|
|
2827
|
-
}>;
|
|
2828
|
-
isLastInEpoch: TSchema.Boolean;
|
|
2829
|
-
isFirstSnapshot: TSchema.Boolean;
|
|
2830
|
-
}>]>>;
|
|
2831
|
-
}>;
|
|
2832
|
-
type AssetSnapshot = typeof AssetSnapshotSchema.Type;
|
|
2833
|
-
declare const AssetStateSchema: TSchema.Tuple<[TSchema.Struct<{
|
|
2834
|
-
currencySymbol: TSchema.ByteArray;
|
|
2835
|
-
tokenName: TSchema.ByteArray;
|
|
2836
|
-
}>, TSchema.Struct<{
|
|
2837
|
-
currentSumVal: TSchema.Struct<{
|
|
2838
|
-
value: TSchema.Integer;
|
|
2707
|
+
cdpToken: _lucid_evolution_lucid.TObject<{
|
|
2708
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2709
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2839
2710
|
}>;
|
|
2840
|
-
|
|
2841
|
-
|
|
2842
|
-
|
|
2843
|
-
}>, TSchema.Struct<{
|
|
2844
|
-
sumVal: TSchema.Struct<{
|
|
2845
|
-
value: TSchema.Integer;
|
|
2846
|
-
}>;
|
|
2847
|
-
isLastInEpoch: TSchema.Boolean;
|
|
2848
|
-
isFirstSnapshot: TSchema.Boolean;
|
|
2849
|
-
}>]>>;
|
|
2850
|
-
}>]>;
|
|
2851
|
-
type AssetState = typeof AssetStateSchema.Type;
|
|
2852
|
-
declare const StabilityPoolContentSchema: TSchema.Struct<{
|
|
2853
|
-
iasset: TSchema.ByteArray;
|
|
2854
|
-
state: TSchema.Struct<{
|
|
2855
|
-
productVal: TSchema.Struct<{
|
|
2856
|
-
value: TSchema.Integer;
|
|
2857
|
-
}>;
|
|
2858
|
-
depositVal: TSchema.Struct<{
|
|
2859
|
-
value: TSchema.Integer;
|
|
2860
|
-
}>;
|
|
2861
|
-
epoch: TSchema.Integer;
|
|
2862
|
-
scale: TSchema.Integer;
|
|
2711
|
+
versionRecordToken: _lucid_evolution_lucid.TObject<{
|
|
2712
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2713
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2863
2714
|
}>;
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
|
|
2868
|
-
|
|
2869
|
-
value: TSchema.Integer;
|
|
2870
|
-
}>;
|
|
2871
|
-
epoch2scale2sum: TSchema.Array<TSchema.Tuple<[TSchema.Struct<{
|
|
2872
|
-
epoch: TSchema.Integer;
|
|
2873
|
-
scale: TSchema.Integer;
|
|
2874
|
-
}>, TSchema.Struct<{
|
|
2875
|
-
sumVal: TSchema.Struct<{
|
|
2876
|
-
value: TSchema.Integer;
|
|
2877
|
-
}>;
|
|
2878
|
-
isLastInEpoch: TSchema.Boolean;
|
|
2879
|
-
isFirstSnapshot: TSchema.Boolean;
|
|
2880
|
-
}>]>>;
|
|
2881
|
-
}>]>>;
|
|
2715
|
+
iassetValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2716
|
+
cdpValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2717
|
+
sPoolValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2718
|
+
versionRegistryValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2719
|
+
treasuryValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2882
2720
|
}>;
|
|
2883
|
-
type
|
|
2884
|
-
declare const
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2721
|
+
type ExecuteParams = Data.Static<typeof ExecuteParamsSchema>;
|
|
2722
|
+
declare const ExecuteParams: ExecuteParams;
|
|
2723
|
+
declare function castExecuteParams(params: ExecuteParams): Data;
|
|
2724
|
+
|
|
2725
|
+
declare const ExecuteDatumSchema: TSchema.Struct<{
|
|
2726
|
+
id: TSchema.Integer;
|
|
2727
|
+
content: TSchema.Union<[TSchema.Struct<{
|
|
2728
|
+
ProposeIAsset: TSchema.Struct<{
|
|
2729
|
+
asset: TSchema.ByteArray;
|
|
2730
|
+
debtMintingFeeRatio: TSchema.Struct<{
|
|
2731
|
+
numerator: TSchema.Integer;
|
|
2732
|
+
denominator: TSchema.Integer;
|
|
2733
|
+
}>;
|
|
2734
|
+
liquidationProcessingFeeRatio: TSchema.Struct<{
|
|
2735
|
+
numerator: TSchema.Integer;
|
|
2736
|
+
denominator: TSchema.Integer;
|
|
2737
|
+
}>;
|
|
2738
|
+
stabilityPoolWithdrawalFeeRatio: TSchema.Struct<{
|
|
2739
|
+
numerator: TSchema.Integer;
|
|
2740
|
+
denominator: TSchema.Integer;
|
|
2741
|
+
}>;
|
|
2742
|
+
redemptionReimbursementRatio: TSchema.Struct<{
|
|
2743
|
+
numerator: TSchema.Integer;
|
|
2744
|
+
denominator: TSchema.Integer;
|
|
2745
|
+
}>;
|
|
2746
|
+
redemptionProcessingFeeRatio: TSchema.Struct<{
|
|
2747
|
+
numerator: TSchema.Integer;
|
|
2748
|
+
denominator: TSchema.Integer;
|
|
2749
|
+
}>;
|
|
2893
2750
|
}>;
|
|
2894
|
-
epoch: TSchema.Integer;
|
|
2895
|
-
scale: TSchema.Integer;
|
|
2896
|
-
}>;
|
|
2897
|
-
assetSums: TSchema.Array<TSchema.Tuple<[TSchema.Struct<{
|
|
2898
|
-
currencySymbol: TSchema.ByteArray;
|
|
2899
|
-
tokenName: TSchema.ByteArray;
|
|
2900
2751
|
}>, TSchema.Struct<{
|
|
2901
|
-
|
|
2902
|
-
|
|
2903
|
-
|
|
2904
|
-
|
|
2905
|
-
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
|
|
2914
|
-
|
|
2915
|
-
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
|
|
2922
|
-
certificateIndex: TSchema.Integer;
|
|
2923
|
-
}>;
|
|
2924
|
-
}>]>>;
|
|
2752
|
+
ModifyIAsset: TSchema.Struct<{
|
|
2753
|
+
asset: TSchema.ByteArray;
|
|
2754
|
+
newDebtMintingFeeRatio: TSchema.Struct<{
|
|
2755
|
+
numerator: TSchema.Integer;
|
|
2756
|
+
denominator: TSchema.Integer;
|
|
2757
|
+
}>;
|
|
2758
|
+
newLiquidationProcessingFeeRatio: TSchema.Struct<{
|
|
2759
|
+
numerator: TSchema.Integer;
|
|
2760
|
+
denominator: TSchema.Integer;
|
|
2761
|
+
}>;
|
|
2762
|
+
newStabilityPoolWithdrawalFeeRatio: TSchema.Struct<{
|
|
2763
|
+
numerator: TSchema.Integer;
|
|
2764
|
+
denominator: TSchema.Integer;
|
|
2765
|
+
}>;
|
|
2766
|
+
newRedemptionReimbursementRatio: TSchema.Struct<{
|
|
2767
|
+
numerator: TSchema.Integer;
|
|
2768
|
+
denominator: TSchema.Integer;
|
|
2769
|
+
}>;
|
|
2770
|
+
newRedemptionProcessingFeeRatio: TSchema.Struct<{
|
|
2771
|
+
numerator: TSchema.Integer;
|
|
2772
|
+
denominator: TSchema.Integer;
|
|
2925
2773
|
}>;
|
|
2926
2774
|
}>;
|
|
2927
2775
|
}>, TSchema.Struct<{
|
|
2928
|
-
|
|
2929
|
-
|
|
2930
|
-
|
|
2931
|
-
|
|
2932
|
-
|
|
2933
|
-
|
|
2934
|
-
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
}>]>;
|
|
2941
|
-
}>, TSchema.Struct<{
|
|
2942
|
-
Pointer: TSchema.Struct<{
|
|
2943
|
-
slotNumber: TSchema.Integer;
|
|
2944
|
-
transactionIndex: TSchema.Integer;
|
|
2945
|
-
certificateIndex: TSchema.Integer;
|
|
2776
|
+
AddCollateralAsset: TSchema.Struct<{
|
|
2777
|
+
correspondingIAsset: TSchema.ByteArray;
|
|
2778
|
+
collateralAsset: TSchema.Struct<{
|
|
2779
|
+
currencySymbol: TSchema.ByteArray;
|
|
2780
|
+
tokenName: TSchema.ByteArray;
|
|
2781
|
+
}>;
|
|
2782
|
+
assetExtraDecimals: TSchema.Integer;
|
|
2783
|
+
assetPriceInfo: TSchema.Union<[TSchema.Struct<{
|
|
2784
|
+
Delisted: TSchema.Struct<{
|
|
2785
|
+
price: TSchema.Struct<{
|
|
2786
|
+
numerator: TSchema.Integer;
|
|
2787
|
+
denominator: TSchema.Integer;
|
|
2946
2788
|
}>;
|
|
2947
|
-
}
|
|
2789
|
+
}>;
|
|
2790
|
+
}>, TSchema.Struct<{
|
|
2791
|
+
OracleNft: TSchema.Struct<{
|
|
2792
|
+
currencySymbol: TSchema.ByteArray;
|
|
2793
|
+
tokenName: TSchema.ByteArray;
|
|
2794
|
+
}>;
|
|
2795
|
+
}>, TSchema.Struct<{
|
|
2796
|
+
DeferredValidation: TSchema.Struct<{
|
|
2797
|
+
feedValHash: TSchema.ByteArray;
|
|
2798
|
+
}>;
|
|
2799
|
+
}>]>;
|
|
2800
|
+
interestOracleNft: TSchema.Struct<{
|
|
2801
|
+
currencySymbol: TSchema.ByteArray;
|
|
2802
|
+
tokenName: TSchema.ByteArray;
|
|
2948
2803
|
}>;
|
|
2949
|
-
|
|
2950
|
-
|
|
2951
|
-
|
|
2952
|
-
lastRequestProcessingTime: TSchema.Integer;
|
|
2953
|
-
}>;
|
|
2954
|
-
type AccountContent = typeof AccountContentSchema.Type;
|
|
2955
|
-
declare const SnapshotEpochToScaleToSumContentSchema: TSchema.Struct<{
|
|
2956
|
-
snapshot: TSchema.Array<TSchema.Tuple<[TSchema.Struct<{
|
|
2957
|
-
epoch: TSchema.Integer;
|
|
2958
|
-
scale: TSchema.Integer;
|
|
2959
|
-
}>, TSchema.Struct<{
|
|
2960
|
-
sumVal: TSchema.Struct<{
|
|
2961
|
-
value: TSchema.Integer;
|
|
2962
|
-
}>;
|
|
2963
|
-
isLastInEpoch: TSchema.Boolean;
|
|
2964
|
-
isFirstSnapshot: TSchema.Boolean;
|
|
2965
|
-
}>]>>;
|
|
2966
|
-
iasset: TSchema.ByteArray;
|
|
2967
|
-
collateralAsset: TSchema.Struct<{
|
|
2968
|
-
currencySymbol: TSchema.ByteArray;
|
|
2969
|
-
tokenName: TSchema.ByteArray;
|
|
2970
|
-
}>;
|
|
2971
|
-
}>;
|
|
2972
|
-
type SnapshotEpochToScaleToSumContent = typeof SnapshotEpochToScaleToSumContentSchema.Type;
|
|
2973
|
-
declare const StabilityPoolDatumSchema: TSchema.Union<[TSchema.Struct<{
|
|
2974
|
-
StabilityPool: TSchema.Struct<{
|
|
2975
|
-
iasset: TSchema.ByteArray;
|
|
2976
|
-
state: TSchema.Struct<{
|
|
2977
|
-
productVal: TSchema.Struct<{
|
|
2978
|
-
value: TSchema.Integer;
|
|
2804
|
+
redemptionRatio: TSchema.Struct<{
|
|
2805
|
+
numerator: TSchema.Integer;
|
|
2806
|
+
denominator: TSchema.Integer;
|
|
2979
2807
|
}>;
|
|
2980
|
-
|
|
2981
|
-
|
|
2808
|
+
maintenanceRatio: TSchema.Struct<{
|
|
2809
|
+
numerator: TSchema.Integer;
|
|
2810
|
+
denominator: TSchema.Integer;
|
|
2982
2811
|
}>;
|
|
2983
|
-
|
|
2984
|
-
|
|
2812
|
+
liquidationRatio: TSchema.Struct<{
|
|
2813
|
+
numerator: TSchema.Integer;
|
|
2814
|
+
denominator: TSchema.Integer;
|
|
2815
|
+
}>;
|
|
2816
|
+
minCollateralAmt: TSchema.Integer;
|
|
2985
2817
|
}>;
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2818
|
+
}>, TSchema.Struct<{
|
|
2819
|
+
UpdateCollateralAsset: TSchema.Struct<{
|
|
2820
|
+
correspondingIAsset: TSchema.ByteArray;
|
|
2821
|
+
collateralAsset: TSchema.Struct<{
|
|
2822
|
+
currencySymbol: TSchema.ByteArray;
|
|
2823
|
+
tokenName: TSchema.ByteArray;
|
|
2992
2824
|
}>;
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2825
|
+
newAssetExtraDecimals: TSchema.Integer;
|
|
2826
|
+
newAssetPriceInfo: TSchema.Union<[TSchema.Struct<{
|
|
2827
|
+
Delisted: TSchema.Struct<{
|
|
2828
|
+
price: TSchema.Struct<{
|
|
2829
|
+
numerator: TSchema.Integer;
|
|
2830
|
+
denominator: TSchema.Integer;
|
|
2831
|
+
}>;
|
|
2832
|
+
}>;
|
|
2996
2833
|
}>, TSchema.Struct<{
|
|
2997
|
-
|
|
2998
|
-
|
|
2834
|
+
OracleNft: TSchema.Struct<{
|
|
2835
|
+
currencySymbol: TSchema.ByteArray;
|
|
2836
|
+
tokenName: TSchema.ByteArray;
|
|
2999
2837
|
}>;
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
iasset: TSchema.ByteArray;
|
|
3009
|
-
state: TSchema.Struct<{
|
|
3010
|
-
productVal: TSchema.Struct<{
|
|
3011
|
-
value: TSchema.Integer;
|
|
2838
|
+
}>, TSchema.Struct<{
|
|
2839
|
+
DeferredValidation: TSchema.Struct<{
|
|
2840
|
+
feedValHash: TSchema.ByteArray;
|
|
2841
|
+
}>;
|
|
2842
|
+
}>]>;
|
|
2843
|
+
newInterestOracleNft: TSchema.Struct<{
|
|
2844
|
+
currencySymbol: TSchema.ByteArray;
|
|
2845
|
+
tokenName: TSchema.ByteArray;
|
|
3012
2846
|
}>;
|
|
3013
|
-
|
|
3014
|
-
|
|
2847
|
+
newRedemptionRatio: TSchema.Struct<{
|
|
2848
|
+
numerator: TSchema.Integer;
|
|
2849
|
+
denominator: TSchema.Integer;
|
|
3015
2850
|
}>;
|
|
3016
|
-
|
|
3017
|
-
|
|
2851
|
+
newMaintenanceRatio: TSchema.Struct<{
|
|
2852
|
+
numerator: TSchema.Integer;
|
|
2853
|
+
denominator: TSchema.Integer;
|
|
2854
|
+
}>;
|
|
2855
|
+
newLiquidationRatio: TSchema.Struct<{
|
|
2856
|
+
numerator: TSchema.Integer;
|
|
2857
|
+
denominator: TSchema.Integer;
|
|
2858
|
+
}>;
|
|
2859
|
+
newMinCollateralAmt: TSchema.Integer;
|
|
3018
2860
|
}>;
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
request: TSchema.NullOr<TSchema.Union<[TSchema.Literal<["Create"]>, TSchema.Struct<{
|
|
3026
|
-
Adjust: TSchema.Struct<{
|
|
3027
|
-
amount: TSchema.Integer;
|
|
3028
|
-
outputAddress: TSchema.Struct<{
|
|
3029
|
-
paymentCredential: TSchema.Union<[TSchema.Struct<{
|
|
3030
|
-
PublicKeyCredential: TSchema.ByteArray;
|
|
3031
|
-
}>, TSchema.Struct<{
|
|
3032
|
-
ScriptCredential: TSchema.ByteArray;
|
|
3033
|
-
}>]>;
|
|
3034
|
-
stakeCredential: TSchema.NullOr<TSchema.Union<[TSchema.Struct<{
|
|
3035
|
-
Inline: TSchema.Union<[TSchema.Struct<{
|
|
3036
|
-
PublicKeyCredential: TSchema.ByteArray;
|
|
3037
|
-
}>, TSchema.Struct<{
|
|
3038
|
-
ScriptCredential: TSchema.ByteArray;
|
|
3039
|
-
}>]>;
|
|
3040
|
-
}>, TSchema.Struct<{
|
|
3041
|
-
Pointer: TSchema.Struct<{
|
|
3042
|
-
slotNumber: TSchema.Integer;
|
|
3043
|
-
transactionIndex: TSchema.Integer;
|
|
3044
|
-
certificateIndex: TSchema.Integer;
|
|
3045
|
-
}>;
|
|
3046
|
-
}>]>>;
|
|
3047
|
-
}>;
|
|
2861
|
+
}>, TSchema.Struct<{
|
|
2862
|
+
ProposeStableswapPool: TSchema.Struct<{
|
|
2863
|
+
iasset: TSchema.ByteArray;
|
|
2864
|
+
collateralAsset: TSchema.Struct<{
|
|
2865
|
+
currencySymbol: TSchema.ByteArray;
|
|
2866
|
+
tokenName: TSchema.ByteArray;
|
|
3048
2867
|
}>;
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
paymentCredential: TSchema.Union<[TSchema.Struct<{
|
|
3053
|
-
PublicKeyCredential: TSchema.ByteArray;
|
|
3054
|
-
}>, TSchema.Struct<{
|
|
3055
|
-
ScriptCredential: TSchema.ByteArray;
|
|
3056
|
-
}>]>;
|
|
3057
|
-
stakeCredential: TSchema.NullOr<TSchema.Union<[TSchema.Struct<{
|
|
3058
|
-
Inline: TSchema.Union<[TSchema.Struct<{
|
|
3059
|
-
PublicKeyCredential: TSchema.ByteArray;
|
|
3060
|
-
}>, TSchema.Struct<{
|
|
3061
|
-
ScriptCredential: TSchema.ByteArray;
|
|
3062
|
-
}>]>;
|
|
3063
|
-
}>, TSchema.Struct<{
|
|
3064
|
-
Pointer: TSchema.Struct<{
|
|
3065
|
-
slotNumber: TSchema.Integer;
|
|
3066
|
-
transactionIndex: TSchema.Integer;
|
|
3067
|
-
certificateIndex: TSchema.Integer;
|
|
3068
|
-
}>;
|
|
3069
|
-
}>]>>;
|
|
3070
|
-
}>;
|
|
3071
|
-
maxTxFee: TSchema.Integer;
|
|
2868
|
+
collateralToIassetRatio: TSchema.Struct<{
|
|
2869
|
+
numerator: TSchema.Integer;
|
|
2870
|
+
denominator: TSchema.Integer;
|
|
3072
2871
|
}>;
|
|
3073
|
-
|
|
3074
|
-
|
|
3075
|
-
|
|
3076
|
-
}>, TSchema.Struct<{
|
|
3077
|
-
SnapshotEpochToScaleToSum: TSchema.Struct<{
|
|
3078
|
-
snapshot: TSchema.Array<TSchema.Tuple<[TSchema.Struct<{
|
|
3079
|
-
epoch: TSchema.Integer;
|
|
3080
|
-
scale: TSchema.Integer;
|
|
3081
|
-
}>, TSchema.Struct<{
|
|
3082
|
-
sumVal: TSchema.Struct<{
|
|
3083
|
-
value: TSchema.Integer;
|
|
2872
|
+
mintingFeeRatio: TSchema.Struct<{
|
|
2873
|
+
numerator: TSchema.Integer;
|
|
2874
|
+
denominator: TSchema.Integer;
|
|
3084
2875
|
}>;
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
2876
|
+
redemptionFeeRatio: TSchema.Struct<{
|
|
2877
|
+
numerator: TSchema.Integer;
|
|
2878
|
+
denominator: TSchema.Integer;
|
|
2879
|
+
}>;
|
|
2880
|
+
feeManager: TSchema.NullOr<TSchema.ByteArray>;
|
|
2881
|
+
minMintingAmount: TSchema.Integer;
|
|
2882
|
+
minRedemptionAmount: TSchema.Integer;
|
|
2883
|
+
stableswapValHash: TSchema.ByteArray;
|
|
3092
2884
|
}>;
|
|
3093
|
-
}>;
|
|
3094
|
-
}>]>;
|
|
3095
|
-
declare const E2S2SIndexSchema: TSchema.Union<[TSchema.Struct<{
|
|
3096
|
-
StabilityPoolListIdx: TSchema.Integer;
|
|
3097
|
-
}>, TSchema.Struct<{
|
|
3098
|
-
RefInputIdx: TSchema.Struct<{
|
|
3099
|
-
refInputIdx: TSchema.Integer;
|
|
3100
|
-
snapshotListIdx: TSchema.Integer;
|
|
3101
|
-
}>;
|
|
3102
|
-
}>]>;
|
|
3103
|
-
type E2S2SIndex = typeof E2S2SIndexSchema.Type;
|
|
3104
|
-
declare const E2S2SIndicesPerAssetSchema: TSchema.Array<TSchema.Tuple<[TSchema.Union<[TSchema.Struct<{
|
|
3105
|
-
StabilityPoolListIdx: TSchema.Integer;
|
|
3106
|
-
}>, TSchema.Struct<{
|
|
3107
|
-
RefInputIdx: TSchema.Struct<{
|
|
3108
|
-
refInputIdx: TSchema.Integer;
|
|
3109
|
-
snapshotListIdx: TSchema.Integer;
|
|
3110
|
-
}>;
|
|
3111
|
-
}>]>, TSchema.NullOr<TSchema.Union<[TSchema.Struct<{
|
|
3112
|
-
StabilityPoolListIdx: TSchema.Integer;
|
|
3113
|
-
}>, TSchema.Struct<{
|
|
3114
|
-
RefInputIdx: TSchema.Struct<{
|
|
3115
|
-
refInputIdx: TSchema.Integer;
|
|
3116
|
-
snapshotListIdx: TSchema.Integer;
|
|
3117
|
-
}>;
|
|
3118
|
-
}>]>>]>>;
|
|
3119
|
-
type E2S2SIndicesPerAsset = typeof E2S2SIndicesPerAssetSchema.Type;
|
|
3120
|
-
declare const ProcessRequestAccountContentSchema: TSchema.Struct<{
|
|
3121
|
-
poolInputIdx: TSchema.Integer;
|
|
3122
|
-
accountInputIdx: TSchema.Integer;
|
|
3123
|
-
e2s2sIdxs: TSchema.Array<TSchema.Tuple<[TSchema.Union<[TSchema.Struct<{
|
|
3124
|
-
StabilityPoolListIdx: TSchema.Integer;
|
|
3125
2885
|
}>, TSchema.Struct<{
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
2886
|
+
ModifyStableswapPool: TSchema.Struct<{
|
|
2887
|
+
iasset: TSchema.ByteArray;
|
|
2888
|
+
collateralAsset: TSchema.Struct<{
|
|
2889
|
+
currencySymbol: TSchema.ByteArray;
|
|
2890
|
+
tokenName: TSchema.ByteArray;
|
|
2891
|
+
}>;
|
|
2892
|
+
newCollateralToIassetRatio: TSchema.Struct<{
|
|
2893
|
+
numerator: TSchema.Integer;
|
|
2894
|
+
denominator: TSchema.Integer;
|
|
2895
|
+
}>;
|
|
2896
|
+
newMintingFeeRatio: TSchema.Struct<{
|
|
2897
|
+
numerator: TSchema.Integer;
|
|
2898
|
+
denominator: TSchema.Integer;
|
|
2899
|
+
}>;
|
|
2900
|
+
newRedemptionFeeRatio: TSchema.Struct<{
|
|
2901
|
+
numerator: TSchema.Integer;
|
|
2902
|
+
denominator: TSchema.Integer;
|
|
2903
|
+
}>;
|
|
2904
|
+
newMintingEnabled: TSchema.Boolean;
|
|
2905
|
+
newRedemptionEnabled: TSchema.Boolean;
|
|
2906
|
+
newFeeManager: TSchema.NullOr<TSchema.ByteArray>;
|
|
2907
|
+
newMinMintingAmount: TSchema.Integer;
|
|
2908
|
+
newMinRedemptionAmount: TSchema.Integer;
|
|
2909
|
+
newStableswapValHash: TSchema.ByteArray;
|
|
3129
2910
|
}>;
|
|
3130
|
-
}>]>, TSchema.NullOr<TSchema.Union<[TSchema.Struct<{
|
|
3131
|
-
StabilityPoolListIdx: TSchema.Integer;
|
|
3132
2911
|
}>, TSchema.Struct<{
|
|
3133
|
-
|
|
3134
|
-
|
|
3135
|
-
|
|
3136
|
-
|
|
3137
|
-
|
|
3138
|
-
|
|
3139
|
-
|
|
3140
|
-
|
|
3141
|
-
|
|
3142
|
-
|
|
3143
|
-
|
|
3144
|
-
|
|
3145
|
-
|
|
3146
|
-
|
|
3147
|
-
|
|
3148
|
-
|
|
3149
|
-
|
|
3150
|
-
}>]>;
|
|
3151
|
-
stakeCredential: TSchema.NullOr<TSchema.Union<[TSchema.Struct<{
|
|
3152
|
-
Inline: TSchema.Union<[TSchema.Struct<{
|
|
3153
|
-
PublicKeyCredential: TSchema.ByteArray;
|
|
3154
|
-
}>, TSchema.Struct<{
|
|
3155
|
-
ScriptCredential: TSchema.ByteArray;
|
|
3156
|
-
}>]>;
|
|
2912
|
+
ModifyProtocolParams: TSchema.Struct<{
|
|
2913
|
+
newParams: TSchema.Struct<{
|
|
2914
|
+
proposalDeposit: TSchema.Integer;
|
|
2915
|
+
votingPeriod: TSchema.Integer;
|
|
2916
|
+
effectiveDelay: TSchema.Integer;
|
|
2917
|
+
expirationPeriod: TSchema.Integer;
|
|
2918
|
+
proposingPeriod: TSchema.Integer;
|
|
2919
|
+
totalShards: TSchema.Integer;
|
|
2920
|
+
minimumQuorum: TSchema.Integer;
|
|
2921
|
+
maxTreasuryLovelaceSpend: TSchema.Integer;
|
|
2922
|
+
maxTreasuryIndySpend: TSchema.Integer;
|
|
2923
|
+
cdpRedemptionRequiredSignature: TSchema.NullOr<TSchema.ByteArray>;
|
|
2924
|
+
electorate: TSchema.Integer;
|
|
2925
|
+
foundationMultisig: TSchema.Union<[TSchema.Struct<{
|
|
2926
|
+
Signature: TSchema.Struct<{
|
|
2927
|
+
keyHash: TSchema.ByteArray;
|
|
2928
|
+
}>;
|
|
3157
2929
|
}>, TSchema.Struct<{
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
certificateIndex: TSchema.Integer;
|
|
2930
|
+
AtLeast: TSchema.Struct<{
|
|
2931
|
+
required: TSchema.Integer;
|
|
2932
|
+
authSignatories: TSchema.Array<effect_Schema.SchemaClass<Data$1.Data, Data$1.Data, never>>;
|
|
3162
2933
|
}>;
|
|
2934
|
+
}>]>;
|
|
2935
|
+
}>;
|
|
2936
|
+
}>;
|
|
2937
|
+
}>, TSchema.Struct<{
|
|
2938
|
+
UpgradeProtocol: TSchema.Struct<{
|
|
2939
|
+
content: TSchema.Struct<{
|
|
2940
|
+
upgradeId: TSchema.Integer;
|
|
2941
|
+
upgradePaths: TSchema.Array<TSchema.Tuple<[TSchema.ByteArray, TSchema.Struct<{
|
|
2942
|
+
upgradeSymbol: TSchema.ByteArray;
|
|
3163
2943
|
}>]>>;
|
|
3164
2944
|
}>;
|
|
3165
2945
|
}>;
|
|
3166
2946
|
}>, TSchema.Struct<{
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
2947
|
+
TextProposal: TSchema.ByteArray;
|
|
2948
|
+
}>]>;
|
|
2949
|
+
passedTime: TSchema.Integer;
|
|
2950
|
+
votingEndTime: TSchema.Integer;
|
|
2951
|
+
protocolVersion: TSchema.Integer;
|
|
2952
|
+
treasuryWithdrawal: TSchema.NullOr<TSchema.Struct<{
|
|
2953
|
+
destination: TSchema.Struct<{
|
|
2954
|
+
paymentCredential: TSchema.Union<[TSchema.Struct<{
|
|
2955
|
+
PublicKeyCredential: TSchema.ByteArray;
|
|
2956
|
+
}>, TSchema.Struct<{
|
|
2957
|
+
ScriptCredential: TSchema.ByteArray;
|
|
2958
|
+
}>]>;
|
|
2959
|
+
stakeCredential: TSchema.NullOr<TSchema.Union<[TSchema.Struct<{
|
|
2960
|
+
Inline: TSchema.Union<[TSchema.Struct<{
|
|
3170
2961
|
PublicKeyCredential: TSchema.ByteArray;
|
|
3171
2962
|
}>, TSchema.Struct<{
|
|
3172
2963
|
ScriptCredential: TSchema.ByteArray;
|
|
3173
2964
|
}>]>;
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
Pointer: TSchema.Struct<{
|
|
3182
|
-
slotNumber: TSchema.Integer;
|
|
3183
|
-
transactionIndex: TSchema.Integer;
|
|
3184
|
-
certificateIndex: TSchema.Integer;
|
|
3185
|
-
}>;
|
|
3186
|
-
}>]>>;
|
|
3187
|
-
}>;
|
|
3188
|
-
maxTxFee: TSchema.Integer;
|
|
2965
|
+
}>, TSchema.Struct<{
|
|
2966
|
+
Pointer: TSchema.Struct<{
|
|
2967
|
+
slotNumber: TSchema.Integer;
|
|
2968
|
+
transactionIndex: TSchema.Integer;
|
|
2969
|
+
certificateIndex: TSchema.Integer;
|
|
2970
|
+
}>;
|
|
2971
|
+
}>]>>;
|
|
3189
2972
|
}>;
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
}
|
|
3196
|
-
}
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
StabilityPoolListIdx: TSchema.Integer;
|
|
3202
|
-
}>, TSchema.Struct<{
|
|
3203
|
-
RefInputIdx: TSchema.Struct<{
|
|
3204
|
-
refInputIdx: TSchema.Integer;
|
|
3205
|
-
snapshotListIdx: TSchema.Integer;
|
|
3206
|
-
}>;
|
|
3207
|
-
}>]>, TSchema.NullOr<TSchema.Union<[TSchema.Struct<{
|
|
3208
|
-
StabilityPoolListIdx: TSchema.Integer;
|
|
3209
|
-
}>, TSchema.Struct<{
|
|
3210
|
-
RefInputIdx: TSchema.Struct<{
|
|
3211
|
-
refInputIdx: TSchema.Integer;
|
|
3212
|
-
snapshotListIdx: TSchema.Integer;
|
|
3213
|
-
}>;
|
|
3214
|
-
}>]>>]>>;
|
|
3215
|
-
currentTime: TSchema.Integer;
|
|
3216
|
-
}>;
|
|
3217
|
-
}>, TSchema.Literal<["AnnulRequest"]>, TSchema.Struct<{
|
|
3218
|
-
LiquidateCDP: TSchema.Struct<{
|
|
3219
|
-
cdpIdx: TSchema.Integer;
|
|
3220
|
-
}>;
|
|
3221
|
-
}>, TSchema.Literal<["RecordEpochToScaleToSum"]>, TSchema.Literal<["UpgradeVersion"]>]>;
|
|
3222
|
-
type StabilityPoolRedeemer = typeof StabilityPoolRedeemerSchema.Type;
|
|
3223
|
-
declare const ActionReturnDatumSchema: TSchema.Union<[TSchema.Struct<{
|
|
3224
|
-
IndigoStabilityPoolAccountAdjustment: TSchema.Struct<{
|
|
3225
|
-
txHash: TSchema.ByteArray;
|
|
3226
|
-
outputIndex: TSchema.Integer;
|
|
3227
|
-
}>;
|
|
3228
|
-
}>, TSchema.Struct<{
|
|
3229
|
-
IndigoStabilityPoolAccountClosure: TSchema.Struct<{
|
|
3230
|
-
txHash: TSchema.ByteArray;
|
|
3231
|
-
outputIndex: TSchema.Integer;
|
|
3232
|
-
}>;
|
|
3233
|
-
}>]>;
|
|
3234
|
-
type ActionReturnDatum = typeof ActionReturnDatumSchema.Type;
|
|
3235
|
-
declare function serialiseActionReturnDatum(d: ActionReturnDatum): string;
|
|
3236
|
-
declare function serialiseStabilityPoolRedeemer(r: StabilityPoolRedeemer): string;
|
|
3237
|
-
declare function parseStabilityPoolRedeemer(datum: string): option.Option<StabilityPoolRedeemer>;
|
|
3238
|
-
declare function parseStabilityPoolRedeemerOrThrow(datum: string): StabilityPoolRedeemer;
|
|
3239
|
-
declare function serialiseStabilityPoolDatum(d: typeof StabilityPoolDatumSchema.Type,
|
|
3240
|
-
/**
|
|
3241
|
-
* This is necessary to change only in case of execute propose asset.
|
|
3242
|
-
*/
|
|
3243
|
-
useIndefiniteMaps?: boolean): string;
|
|
3244
|
-
declare function parseStabilityPoolDatum(datum: string): option.Option<StabilityPoolContent>;
|
|
3245
|
-
declare function parseStabilityPoolDatumOrThrow(datum: string): StabilityPoolContent;
|
|
3246
|
-
declare function parseAccountDatum(datum: string): option.Option<AccountContent>;
|
|
3247
|
-
declare function parseAccountDatumOrThrow(datum: string): AccountContent;
|
|
3248
|
-
declare function parseSnapshotEpochToScaleToSumDatum(datum: string): option.Option<SnapshotEpochToScaleToSumContent>;
|
|
3249
|
-
declare function parseSnapshotEpochToScaleToSumDatumOrThrow(datum: string): SnapshotEpochToScaleToSumContent;
|
|
3250
|
-
declare function mkSPInteger(value: bigint): SPInteger;
|
|
3251
|
-
declare function fromSPInteger(value: SPInteger): bigint;
|
|
3252
|
-
declare function spAdd(a: SPInteger, b: SPInteger): SPInteger;
|
|
3253
|
-
declare function spSub(a: SPInteger, b: SPInteger): SPInteger;
|
|
3254
|
-
declare function spMul(a: SPInteger, b: SPInteger): SPInteger;
|
|
3255
|
-
declare function spDiv(a: SPInteger, b: SPInteger): SPInteger;
|
|
3256
|
-
declare function spZeroNegatives(a: SPInteger): SPInteger;
|
|
3257
|
-
|
|
3258
|
-
declare const BASE_MAX_TX_FEE = 1250000n;
|
|
3259
|
-
declare const MAX_E2S2S_ENTRIES_COUNT = 5;
|
|
3260
|
-
declare const initSumVal: SPInteger;
|
|
3261
|
-
declare const initSpState: StateSnapshot;
|
|
3262
|
-
declare function mkStabilityPoolAddr(lucid: LucidEvolution, sysParams: SystemParams): Address;
|
|
3263
|
-
declare function isSameEpochToScaleKey(a: EpochToScaleKey, b: EpochToScaleKey): boolean;
|
|
3264
|
-
type StabilityPoolListIdx = {
|
|
3265
|
-
spListIdx: number;
|
|
3266
|
-
sumSnapshot: readonly [EpochToScaleKey, SumSnapshot];
|
|
3267
|
-
};
|
|
3268
|
-
type SnapshotIdx = {
|
|
3269
|
-
snapshotUtxo: UTxO;
|
|
3270
|
-
snapshotDatum: SnapshotEpochToScaleToSumContent;
|
|
3271
|
-
snapshotListIdx: number;
|
|
3272
|
-
sumSnapshot: readonly [EpochToScaleKey, SumSnapshot];
|
|
3273
|
-
};
|
|
3274
|
-
type FindE2S2SIdxResult = StabilityPoolListIdx | SnapshotIdx;
|
|
3275
|
-
declare function findRelevantE2s2sIdxs(lucid: LucidEvolution, stabilityPool: StabilityPoolContent, accountState: StateSnapshot, allSnapshotsOutRefs: OutRef[]): Promise<[FindE2S2SIdxResult, option.Option<FindE2S2SIdxResult>][]>;
|
|
3276
|
-
declare function createProcessRequestAccountRedeemer(e2s2sIdxs: [FindE2S2SIdxResult, option.Option<FindE2S2SIdxResult>][], otherRefInputs: UTxO[], currentTime: bigint): {
|
|
3277
|
-
e2s2sRefInputs: UTxO[];
|
|
3278
|
-
mkProcessRequestAccountRedeemerContent: (poolInputIdx: bigint, accountInputIdx: bigint) => ProcessRequestAccountContent;
|
|
3279
|
-
};
|
|
3280
|
-
/**
|
|
3281
|
-
* Sp account rewards per collateral asset.
|
|
3282
|
-
*/
|
|
3283
|
-
declare function rewardsPerAsset(poolAssetStates: readonly AssetState[], e2s2sIdxs: [FindE2S2SIdxResult, option.Option<FindE2S2SIdxResult>][], accountAssetSums: readonly (readonly [AssetClass, SPInteger])[], accountState: StateSnapshot): [AssetClass, bigint][];
|
|
3284
|
-
declare function getUpdatedAccountDeposit(poolState: StateSnapshot, accountState: StateSnapshot): SPInteger;
|
|
3285
|
-
declare function updateAccount(pool: StabilityPoolContent, account: AccountContent, e2s2sIdxs: [FindE2S2SIdxResult, option.Option<FindE2S2SIdxResult>][]): {
|
|
3286
|
-
updatedAccountContent: AccountContent;
|
|
3287
|
-
reward: Assets;
|
|
3288
|
-
};
|
|
3289
|
-
declare function liquidationHelper(poolContent: StabilityPoolContent, collateralAsset: AssetClass, iassetBurnAmt: bigint,
|
|
3290
|
-
/**
|
|
3291
|
-
* The collateral absorbed
|
|
3292
|
-
*/
|
|
3293
|
-
reward: bigint): StabilityPoolContent;
|
|
3294
|
-
declare function updatePoolStateWhenWithdrawalFee(withdrawalFeeAmt: bigint, updatedPoolState: StateSnapshot): StateSnapshot;
|
|
3295
|
-
declare function partitionEpochToScaleToSums(spContent: StabilityPoolContent): readonly [
|
|
3296
|
-
readonly SnapshotEpochToScaleToSumContent[],
|
|
3297
|
-
readonly AssetState[]
|
|
3298
|
-
];
|
|
2973
|
+
value: TSchema.Array<TSchema.Struct<{
|
|
2974
|
+
currencySymbol: TSchema.ByteArray;
|
|
2975
|
+
tokenName: TSchema.ByteArray;
|
|
2976
|
+
amount: TSchema.Integer;
|
|
2977
|
+
}>>;
|
|
2978
|
+
}>>;
|
|
2979
|
+
}>;
|
|
2980
|
+
type ExecuteDatum = typeof ExecuteDatumSchema.Type;
|
|
2981
|
+
declare function serialiseExecuteDatum(d: ExecuteDatum): string;
|
|
2982
|
+
declare function parseExecuteDatum(datum: string): option.Option<ExecuteDatum>;
|
|
2983
|
+
declare function parseExecuteDatumOrThrow(datum: string): ExecuteDatum;
|
|
3299
2984
|
|
|
3300
|
-
declare const
|
|
3301
|
-
declare const
|
|
3302
|
-
declare const ONE_DAY: bigint;
|
|
3303
|
-
declare const ONE_YEAR: bigint;
|
|
2985
|
+
declare const mkExecuteValidator: (params: ExecuteParams) => SpendingValidator;
|
|
2986
|
+
declare const mkExecuteValidatorFromSP: (params: ExecuteParamsSP) => SpendingValidator;
|
|
3304
2987
|
|
|
3305
|
-
declare const
|
|
2988
|
+
declare const PriceOracleParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
2989
|
+
owner: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2990
|
+
/** Milliseconds */
|
|
2991
|
+
biasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2992
|
+
/** Milliseconds */
|
|
2993
|
+
expirationPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2994
|
+
}>;
|
|
2995
|
+
type PriceOracleParams = Data.Static<typeof PriceOracleParamsSchema>;
|
|
2996
|
+
declare function castPriceOracleParams(params: PriceOracleParams): Data;
|
|
3306
2997
|
|
|
3307
|
-
declare const
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
2998
|
+
declare const SPIntegerSchema: TSchema.Struct<{
|
|
2999
|
+
value: TSchema.Integer;
|
|
3000
|
+
}>;
|
|
3001
|
+
type SPInteger = typeof SPIntegerSchema.Type;
|
|
3002
|
+
declare const AccountActionSchema: TSchema.Union<[TSchema.Literal<["Create"]>, TSchema.Struct<{
|
|
3003
|
+
Adjust: TSchema.Struct<{
|
|
3004
|
+
amount: TSchema.Integer;
|
|
3005
|
+
outputAddress: TSchema.Struct<{
|
|
3006
|
+
paymentCredential: TSchema.Union<[TSchema.Struct<{
|
|
3007
|
+
PublicKeyCredential: TSchema.ByteArray;
|
|
3008
|
+
}>, TSchema.Struct<{
|
|
3009
|
+
ScriptCredential: TSchema.ByteArray;
|
|
3010
|
+
}>]>;
|
|
3011
|
+
stakeCredential: TSchema.NullOr<TSchema.Union<[TSchema.Struct<{
|
|
3012
|
+
Inline: TSchema.Union<[TSchema.Struct<{
|
|
3013
|
+
PublicKeyCredential: TSchema.ByteArray;
|
|
3014
|
+
}>, TSchema.Struct<{
|
|
3015
|
+
ScriptCredential: TSchema.ByteArray;
|
|
3016
|
+
}>]>;
|
|
3017
|
+
}>, TSchema.Struct<{
|
|
3018
|
+
Pointer: TSchema.Struct<{
|
|
3019
|
+
slotNumber: TSchema.Integer;
|
|
3020
|
+
transactionIndex: TSchema.Integer;
|
|
3021
|
+
certificateIndex: TSchema.Integer;
|
|
3022
|
+
}>;
|
|
3023
|
+
}>]>>;
|
|
3024
|
+
}>;
|
|
3315
3025
|
}>;
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3026
|
+
}>, TSchema.Struct<{
|
|
3027
|
+
Close: TSchema.Struct<{
|
|
3028
|
+
outputAddress: TSchema.Struct<{
|
|
3029
|
+
paymentCredential: TSchema.Union<[TSchema.Struct<{
|
|
3030
|
+
PublicKeyCredential: TSchema.ByteArray;
|
|
3031
|
+
}>, TSchema.Struct<{
|
|
3032
|
+
ScriptCredential: TSchema.ByteArray;
|
|
3033
|
+
}>]>;
|
|
3034
|
+
stakeCredential: TSchema.NullOr<TSchema.Union<[TSchema.Struct<{
|
|
3035
|
+
Inline: TSchema.Union<[TSchema.Struct<{
|
|
3036
|
+
PublicKeyCredential: TSchema.ByteArray;
|
|
3037
|
+
}>, TSchema.Struct<{
|
|
3038
|
+
ScriptCredential: TSchema.ByteArray;
|
|
3039
|
+
}>]>;
|
|
3040
|
+
}>, TSchema.Struct<{
|
|
3041
|
+
Pointer: TSchema.Struct<{
|
|
3042
|
+
slotNumber: TSchema.Integer;
|
|
3043
|
+
transactionIndex: TSchema.Integer;
|
|
3044
|
+
certificateIndex: TSchema.Integer;
|
|
3045
|
+
}>;
|
|
3046
|
+
}>]>>;
|
|
3047
|
+
}>;
|
|
3048
|
+
maxTxFee: TSchema.Integer;
|
|
3319
3049
|
}>;
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3050
|
+
}>]>;
|
|
3051
|
+
type AccountAction = typeof AccountActionSchema.Type;
|
|
3052
|
+
declare const SumSnapshotSchema: TSchema.Struct<{
|
|
3053
|
+
sumVal: TSchema.Struct<{
|
|
3054
|
+
value: TSchema.Integer;
|
|
3323
3055
|
}>;
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3056
|
+
isLastInEpoch: TSchema.Boolean;
|
|
3057
|
+
isFirstSnapshot: TSchema.Boolean;
|
|
3058
|
+
}>;
|
|
3059
|
+
type SumSnapshot = typeof SumSnapshotSchema.Type;
|
|
3060
|
+
declare const EpochToScaleKeySchema: TSchema.Struct<{
|
|
3061
|
+
epoch: TSchema.Integer;
|
|
3062
|
+
scale: TSchema.Integer;
|
|
3063
|
+
}>;
|
|
3064
|
+
type EpochToScaleKey = typeof EpochToScaleKeySchema.Type;
|
|
3065
|
+
declare const EpochToScaleToSumEntrySchema: TSchema.Tuple<[TSchema.Struct<{
|
|
3066
|
+
epoch: TSchema.Integer;
|
|
3067
|
+
scale: TSchema.Integer;
|
|
3068
|
+
}>, TSchema.Struct<{
|
|
3069
|
+
sumVal: TSchema.Struct<{
|
|
3070
|
+
value: TSchema.Integer;
|
|
3327
3071
|
}>;
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3072
|
+
isLastInEpoch: TSchema.Boolean;
|
|
3073
|
+
isFirstSnapshot: TSchema.Boolean;
|
|
3074
|
+
}>]>;
|
|
3075
|
+
type EpochToScaleToSumEntry = typeof EpochToScaleToSumEntrySchema.Type;
|
|
3076
|
+
declare const StateSnapshotSchema: TSchema.Struct<{
|
|
3077
|
+
productVal: TSchema.Struct<{
|
|
3078
|
+
value: TSchema.Integer;
|
|
3331
3079
|
}>;
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
3080
|
+
depositVal: TSchema.Struct<{
|
|
3081
|
+
value: TSchema.Integer;
|
|
3335
3082
|
}>;
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3083
|
+
epoch: TSchema.Integer;
|
|
3084
|
+
scale: TSchema.Integer;
|
|
3085
|
+
}>;
|
|
3086
|
+
type StateSnapshot = typeof StateSnapshotSchema.Type;
|
|
3087
|
+
declare const AssetSnapshotSchema: TSchema.Struct<{
|
|
3088
|
+
currentSumVal: TSchema.Struct<{
|
|
3089
|
+
value: TSchema.Integer;
|
|
3339
3090
|
}>;
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3091
|
+
epoch2scale2sum: TSchema.Array<TSchema.Tuple<[TSchema.Struct<{
|
|
3092
|
+
epoch: TSchema.Integer;
|
|
3093
|
+
scale: TSchema.Integer;
|
|
3094
|
+
}>, TSchema.Struct<{
|
|
3095
|
+
sumVal: TSchema.Struct<{
|
|
3096
|
+
value: TSchema.Integer;
|
|
3097
|
+
}>;
|
|
3098
|
+
isLastInEpoch: TSchema.Boolean;
|
|
3099
|
+
isFirstSnapshot: TSchema.Boolean;
|
|
3100
|
+
}>]>>;
|
|
3345
3101
|
}>;
|
|
3346
|
-
type
|
|
3347
|
-
declare const
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3351
|
-
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
numerator: TSchema.Integer;
|
|
3361
|
-
denominator: TSchema.Integer;
|
|
3362
|
-
}>;
|
|
3363
|
-
stabilityPoolWithdrawalFeeRatio: TSchema.Struct<{
|
|
3364
|
-
numerator: TSchema.Integer;
|
|
3365
|
-
denominator: TSchema.Integer;
|
|
3366
|
-
}>;
|
|
3367
|
-
redemptionReimbursementRatio: TSchema.Struct<{
|
|
3368
|
-
numerator: TSchema.Integer;
|
|
3369
|
-
denominator: TSchema.Integer;
|
|
3370
|
-
}>;
|
|
3371
|
-
redemptionProcessingFeeRatio: TSchema.Struct<{
|
|
3372
|
-
numerator: TSchema.Integer;
|
|
3373
|
-
denominator: TSchema.Integer;
|
|
3374
|
-
}>;
|
|
3102
|
+
type AssetSnapshot = typeof AssetSnapshotSchema.Type;
|
|
3103
|
+
declare const AssetStateSchema: TSchema.Tuple<[TSchema.Struct<{
|
|
3104
|
+
currencySymbol: TSchema.ByteArray;
|
|
3105
|
+
tokenName: TSchema.ByteArray;
|
|
3106
|
+
}>, TSchema.Struct<{
|
|
3107
|
+
currentSumVal: TSchema.Struct<{
|
|
3108
|
+
value: TSchema.Integer;
|
|
3109
|
+
}>;
|
|
3110
|
+
epoch2scale2sum: TSchema.Array<TSchema.Tuple<[TSchema.Struct<{
|
|
3111
|
+
epoch: TSchema.Integer;
|
|
3112
|
+
scale: TSchema.Integer;
|
|
3113
|
+
}>, TSchema.Struct<{
|
|
3114
|
+
sumVal: TSchema.Struct<{
|
|
3115
|
+
value: TSchema.Integer;
|
|
3375
3116
|
}>;
|
|
3117
|
+
isLastInEpoch: TSchema.Boolean;
|
|
3118
|
+
isFirstSnapshot: TSchema.Boolean;
|
|
3119
|
+
}>]>>;
|
|
3120
|
+
}>]>;
|
|
3121
|
+
type AssetState = typeof AssetStateSchema.Type;
|
|
3122
|
+
declare const StabilityPoolContentSchema: TSchema.Struct<{
|
|
3123
|
+
iasset: TSchema.ByteArray;
|
|
3124
|
+
state: TSchema.Struct<{
|
|
3125
|
+
productVal: TSchema.Struct<{
|
|
3126
|
+
value: TSchema.Integer;
|
|
3127
|
+
}>;
|
|
3128
|
+
depositVal: TSchema.Struct<{
|
|
3129
|
+
value: TSchema.Integer;
|
|
3130
|
+
}>;
|
|
3131
|
+
epoch: TSchema.Integer;
|
|
3132
|
+
scale: TSchema.Integer;
|
|
3133
|
+
}>;
|
|
3134
|
+
assetStates: TSchema.Array<TSchema.Tuple<[TSchema.Struct<{
|
|
3135
|
+
currencySymbol: TSchema.ByteArray;
|
|
3136
|
+
tokenName: TSchema.ByteArray;
|
|
3376
3137
|
}>, TSchema.Struct<{
|
|
3377
|
-
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
}>;
|
|
3387
|
-
newStabilityPoolWithdrawalFeeRatio: TSchema.Struct<{
|
|
3388
|
-
numerator: TSchema.Integer;
|
|
3389
|
-
denominator: TSchema.Integer;
|
|
3390
|
-
}>;
|
|
3391
|
-
newRedemptionReimbursementRatio: TSchema.Struct<{
|
|
3392
|
-
numerator: TSchema.Integer;
|
|
3393
|
-
denominator: TSchema.Integer;
|
|
3394
|
-
}>;
|
|
3395
|
-
newRedemptionProcessingFeeRatio: TSchema.Struct<{
|
|
3396
|
-
numerator: TSchema.Integer;
|
|
3397
|
-
denominator: TSchema.Integer;
|
|
3138
|
+
currentSumVal: TSchema.Struct<{
|
|
3139
|
+
value: TSchema.Integer;
|
|
3140
|
+
}>;
|
|
3141
|
+
epoch2scale2sum: TSchema.Array<TSchema.Tuple<[TSchema.Struct<{
|
|
3142
|
+
epoch: TSchema.Integer;
|
|
3143
|
+
scale: TSchema.Integer;
|
|
3144
|
+
}>, TSchema.Struct<{
|
|
3145
|
+
sumVal: TSchema.Struct<{
|
|
3146
|
+
value: TSchema.Integer;
|
|
3398
3147
|
}>;
|
|
3148
|
+
isLastInEpoch: TSchema.Boolean;
|
|
3149
|
+
isFirstSnapshot: TSchema.Boolean;
|
|
3150
|
+
}>]>>;
|
|
3151
|
+
}>]>>;
|
|
3152
|
+
}>;
|
|
3153
|
+
type StabilityPoolContent = typeof StabilityPoolContentSchema.Type;
|
|
3154
|
+
declare const AccountContentSchema: TSchema.Struct<{
|
|
3155
|
+
owner: TSchema.ByteArray;
|
|
3156
|
+
iasset: TSchema.ByteArray;
|
|
3157
|
+
state: TSchema.Struct<{
|
|
3158
|
+
productVal: TSchema.Struct<{
|
|
3159
|
+
value: TSchema.Integer;
|
|
3399
3160
|
}>;
|
|
3161
|
+
depositVal: TSchema.Struct<{
|
|
3162
|
+
value: TSchema.Integer;
|
|
3163
|
+
}>;
|
|
3164
|
+
epoch: TSchema.Integer;
|
|
3165
|
+
scale: TSchema.Integer;
|
|
3166
|
+
}>;
|
|
3167
|
+
assetSums: TSchema.Array<TSchema.Tuple<[TSchema.Struct<{
|
|
3168
|
+
currencySymbol: TSchema.ByteArray;
|
|
3169
|
+
tokenName: TSchema.ByteArray;
|
|
3400
3170
|
}>, TSchema.Struct<{
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3171
|
+
value: TSchema.Integer;
|
|
3172
|
+
}>]>>;
|
|
3173
|
+
request: TSchema.NullOr<TSchema.Union<[TSchema.Literal<["Create"]>, TSchema.Struct<{
|
|
3174
|
+
Adjust: TSchema.Struct<{
|
|
3175
|
+
amount: TSchema.Integer;
|
|
3176
|
+
outputAddress: TSchema.Struct<{
|
|
3177
|
+
paymentCredential: TSchema.Union<[TSchema.Struct<{
|
|
3178
|
+
PublicKeyCredential: TSchema.ByteArray;
|
|
3179
|
+
}>, TSchema.Struct<{
|
|
3180
|
+
ScriptCredential: TSchema.ByteArray;
|
|
3181
|
+
}>]>;
|
|
3182
|
+
stakeCredential: TSchema.NullOr<TSchema.Union<[TSchema.Struct<{
|
|
3183
|
+
Inline: TSchema.Union<[TSchema.Struct<{
|
|
3184
|
+
PublicKeyCredential: TSchema.ByteArray;
|
|
3185
|
+
}>, TSchema.Struct<{
|
|
3186
|
+
ScriptCredential: TSchema.ByteArray;
|
|
3187
|
+
}>]>;
|
|
3188
|
+
}>, TSchema.Struct<{
|
|
3189
|
+
Pointer: TSchema.Struct<{
|
|
3190
|
+
slotNumber: TSchema.Integer;
|
|
3191
|
+
transactionIndex: TSchema.Integer;
|
|
3192
|
+
certificateIndex: TSchema.Integer;
|
|
3413
3193
|
}>;
|
|
3414
|
-
}
|
|
3415
|
-
}>, TSchema.Struct<{
|
|
3416
|
-
OracleNft: TSchema.Struct<{
|
|
3417
|
-
currencySymbol: TSchema.ByteArray;
|
|
3418
|
-
tokenName: TSchema.ByteArray;
|
|
3419
|
-
}>;
|
|
3420
|
-
}>, TSchema.Struct<{
|
|
3421
|
-
DeferredValidation: TSchema.Struct<{
|
|
3422
|
-
feedValHash: TSchema.ByteArray;
|
|
3423
|
-
}>;
|
|
3424
|
-
}>]>;
|
|
3425
|
-
interestOracleNft: TSchema.Struct<{
|
|
3426
|
-
currencySymbol: TSchema.ByteArray;
|
|
3427
|
-
tokenName: TSchema.ByteArray;
|
|
3428
|
-
}>;
|
|
3429
|
-
redemptionRatio: TSchema.Struct<{
|
|
3430
|
-
numerator: TSchema.Integer;
|
|
3431
|
-
denominator: TSchema.Integer;
|
|
3432
|
-
}>;
|
|
3433
|
-
maintenanceRatio: TSchema.Struct<{
|
|
3434
|
-
numerator: TSchema.Integer;
|
|
3435
|
-
denominator: TSchema.Integer;
|
|
3194
|
+
}>]>>;
|
|
3436
3195
|
}>;
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3196
|
+
}>;
|
|
3197
|
+
}>, TSchema.Struct<{
|
|
3198
|
+
Close: TSchema.Struct<{
|
|
3199
|
+
outputAddress: TSchema.Struct<{
|
|
3200
|
+
paymentCredential: TSchema.Union<[TSchema.Struct<{
|
|
3201
|
+
PublicKeyCredential: TSchema.ByteArray;
|
|
3202
|
+
}>, TSchema.Struct<{
|
|
3203
|
+
ScriptCredential: TSchema.ByteArray;
|
|
3204
|
+
}>]>;
|
|
3205
|
+
stakeCredential: TSchema.NullOr<TSchema.Union<[TSchema.Struct<{
|
|
3206
|
+
Inline: TSchema.Union<[TSchema.Struct<{
|
|
3207
|
+
PublicKeyCredential: TSchema.ByteArray;
|
|
3208
|
+
}>, TSchema.Struct<{
|
|
3209
|
+
ScriptCredential: TSchema.ByteArray;
|
|
3210
|
+
}>]>;
|
|
3211
|
+
}>, TSchema.Struct<{
|
|
3212
|
+
Pointer: TSchema.Struct<{
|
|
3213
|
+
slotNumber: TSchema.Integer;
|
|
3214
|
+
transactionIndex: TSchema.Integer;
|
|
3215
|
+
certificateIndex: TSchema.Integer;
|
|
3216
|
+
}>;
|
|
3217
|
+
}>]>>;
|
|
3440
3218
|
}>;
|
|
3441
|
-
|
|
3219
|
+
maxTxFee: TSchema.Integer;
|
|
3442
3220
|
}>;
|
|
3221
|
+
}>]>>;
|
|
3222
|
+
lastRequestProcessingTime: TSchema.Integer;
|
|
3223
|
+
}>;
|
|
3224
|
+
type AccountContent = typeof AccountContentSchema.Type;
|
|
3225
|
+
declare const SnapshotEpochToScaleToSumContentSchema: TSchema.Struct<{
|
|
3226
|
+
snapshot: TSchema.Array<TSchema.Tuple<[TSchema.Struct<{
|
|
3227
|
+
epoch: TSchema.Integer;
|
|
3228
|
+
scale: TSchema.Integer;
|
|
3443
3229
|
}>, TSchema.Struct<{
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3230
|
+
sumVal: TSchema.Struct<{
|
|
3231
|
+
value: TSchema.Integer;
|
|
3232
|
+
}>;
|
|
3233
|
+
isLastInEpoch: TSchema.Boolean;
|
|
3234
|
+
isFirstSnapshot: TSchema.Boolean;
|
|
3235
|
+
}>]>>;
|
|
3236
|
+
iasset: TSchema.ByteArray;
|
|
3237
|
+
collateralAsset: TSchema.Struct<{
|
|
3238
|
+
currencySymbol: TSchema.ByteArray;
|
|
3239
|
+
tokenName: TSchema.ByteArray;
|
|
3240
|
+
}>;
|
|
3241
|
+
}>;
|
|
3242
|
+
type SnapshotEpochToScaleToSumContent = typeof SnapshotEpochToScaleToSumContentSchema.Type;
|
|
3243
|
+
declare const StabilityPoolDatumSchema: TSchema.Union<[TSchema.Struct<{
|
|
3244
|
+
StabilityPool: TSchema.Struct<{
|
|
3245
|
+
iasset: TSchema.ByteArray;
|
|
3246
|
+
state: TSchema.Struct<{
|
|
3247
|
+
productVal: TSchema.Struct<{
|
|
3248
|
+
value: TSchema.Integer;
|
|
3449
3249
|
}>;
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
Delisted: TSchema.Struct<{
|
|
3453
|
-
price: TSchema.Struct<{
|
|
3454
|
-
numerator: TSchema.Integer;
|
|
3455
|
-
denominator: TSchema.Integer;
|
|
3456
|
-
}>;
|
|
3457
|
-
}>;
|
|
3458
|
-
}>, TSchema.Struct<{
|
|
3459
|
-
OracleNft: TSchema.Struct<{
|
|
3460
|
-
currencySymbol: TSchema.ByteArray;
|
|
3461
|
-
tokenName: TSchema.ByteArray;
|
|
3462
|
-
}>;
|
|
3463
|
-
}>, TSchema.Struct<{
|
|
3464
|
-
DeferredValidation: TSchema.Struct<{
|
|
3465
|
-
feedValHash: TSchema.ByteArray;
|
|
3466
|
-
}>;
|
|
3467
|
-
}>]>;
|
|
3468
|
-
newInterestOracleNft: TSchema.Struct<{
|
|
3469
|
-
currencySymbol: TSchema.ByteArray;
|
|
3470
|
-
tokenName: TSchema.ByteArray;
|
|
3250
|
+
depositVal: TSchema.Struct<{
|
|
3251
|
+
value: TSchema.Integer;
|
|
3471
3252
|
}>;
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3253
|
+
epoch: TSchema.Integer;
|
|
3254
|
+
scale: TSchema.Integer;
|
|
3255
|
+
}>;
|
|
3256
|
+
assetStates: TSchema.Array<TSchema.Tuple<[TSchema.Struct<{
|
|
3257
|
+
currencySymbol: TSchema.ByteArray;
|
|
3258
|
+
tokenName: TSchema.ByteArray;
|
|
3259
|
+
}>, TSchema.Struct<{
|
|
3260
|
+
currentSumVal: TSchema.Struct<{
|
|
3261
|
+
value: TSchema.Integer;
|
|
3475
3262
|
}>;
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3263
|
+
epoch2scale2sum: TSchema.Array<TSchema.Tuple<[TSchema.Struct<{
|
|
3264
|
+
epoch: TSchema.Integer;
|
|
3265
|
+
scale: TSchema.Integer;
|
|
3266
|
+
}>, TSchema.Struct<{
|
|
3267
|
+
sumVal: TSchema.Struct<{
|
|
3268
|
+
value: TSchema.Integer;
|
|
3269
|
+
}>;
|
|
3270
|
+
isLastInEpoch: TSchema.Boolean;
|
|
3271
|
+
isFirstSnapshot: TSchema.Boolean;
|
|
3272
|
+
}>]>>;
|
|
3273
|
+
}>]>>;
|
|
3274
|
+
}>;
|
|
3275
|
+
}>, TSchema.Struct<{
|
|
3276
|
+
Account: TSchema.Struct<{
|
|
3277
|
+
owner: TSchema.ByteArray;
|
|
3278
|
+
iasset: TSchema.ByteArray;
|
|
3279
|
+
state: TSchema.Struct<{
|
|
3280
|
+
productVal: TSchema.Struct<{
|
|
3281
|
+
value: TSchema.Integer;
|
|
3479
3282
|
}>;
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
denominator: TSchema.Integer;
|
|
3283
|
+
depositVal: TSchema.Struct<{
|
|
3284
|
+
value: TSchema.Integer;
|
|
3483
3285
|
}>;
|
|
3484
|
-
|
|
3286
|
+
epoch: TSchema.Integer;
|
|
3287
|
+
scale: TSchema.Integer;
|
|
3485
3288
|
}>;
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3289
|
+
assetSums: TSchema.Array<TSchema.Tuple<[TSchema.Struct<{
|
|
3290
|
+
currencySymbol: TSchema.ByteArray;
|
|
3291
|
+
tokenName: TSchema.ByteArray;
|
|
3292
|
+
}>, TSchema.Struct<{
|
|
3293
|
+
value: TSchema.Integer;
|
|
3294
|
+
}>]>>;
|
|
3295
|
+
request: TSchema.NullOr<TSchema.Union<[TSchema.Literal<["Create"]>, TSchema.Struct<{
|
|
3296
|
+
Adjust: TSchema.Struct<{
|
|
3297
|
+
amount: TSchema.Integer;
|
|
3298
|
+
outputAddress: TSchema.Struct<{
|
|
3299
|
+
paymentCredential: TSchema.Union<[TSchema.Struct<{
|
|
3300
|
+
PublicKeyCredential: TSchema.ByteArray;
|
|
3301
|
+
}>, TSchema.Struct<{
|
|
3302
|
+
ScriptCredential: TSchema.ByteArray;
|
|
3303
|
+
}>]>;
|
|
3304
|
+
stakeCredential: TSchema.NullOr<TSchema.Union<[TSchema.Struct<{
|
|
3305
|
+
Inline: TSchema.Union<[TSchema.Struct<{
|
|
3306
|
+
PublicKeyCredential: TSchema.ByteArray;
|
|
3307
|
+
}>, TSchema.Struct<{
|
|
3308
|
+
ScriptCredential: TSchema.ByteArray;
|
|
3309
|
+
}>]>;
|
|
3310
|
+
}>, TSchema.Struct<{
|
|
3311
|
+
Pointer: TSchema.Struct<{
|
|
3312
|
+
slotNumber: TSchema.Integer;
|
|
3313
|
+
transactionIndex: TSchema.Integer;
|
|
3314
|
+
certificateIndex: TSchema.Integer;
|
|
3315
|
+
}>;
|
|
3316
|
+
}>]>>;
|
|
3317
|
+
}>;
|
|
3496
3318
|
}>;
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3319
|
+
}>, TSchema.Struct<{
|
|
3320
|
+
Close: TSchema.Struct<{
|
|
3321
|
+
outputAddress: TSchema.Struct<{
|
|
3322
|
+
paymentCredential: TSchema.Union<[TSchema.Struct<{
|
|
3323
|
+
PublicKeyCredential: TSchema.ByteArray;
|
|
3324
|
+
}>, TSchema.Struct<{
|
|
3325
|
+
ScriptCredential: TSchema.ByteArray;
|
|
3326
|
+
}>]>;
|
|
3327
|
+
stakeCredential: TSchema.NullOr<TSchema.Union<[TSchema.Struct<{
|
|
3328
|
+
Inline: TSchema.Union<[TSchema.Struct<{
|
|
3329
|
+
PublicKeyCredential: TSchema.ByteArray;
|
|
3330
|
+
}>, TSchema.Struct<{
|
|
3331
|
+
ScriptCredential: TSchema.ByteArray;
|
|
3332
|
+
}>]>;
|
|
3333
|
+
}>, TSchema.Struct<{
|
|
3334
|
+
Pointer: TSchema.Struct<{
|
|
3335
|
+
slotNumber: TSchema.Integer;
|
|
3336
|
+
transactionIndex: TSchema.Integer;
|
|
3337
|
+
certificateIndex: TSchema.Integer;
|
|
3338
|
+
}>;
|
|
3339
|
+
}>]>>;
|
|
3340
|
+
}>;
|
|
3341
|
+
maxTxFee: TSchema.Integer;
|
|
3500
3342
|
}>;
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3343
|
+
}>]>>;
|
|
3344
|
+
lastRequestProcessingTime: TSchema.Integer;
|
|
3345
|
+
}>;
|
|
3346
|
+
}>, TSchema.Struct<{
|
|
3347
|
+
SnapshotEpochToScaleToSum: TSchema.Struct<{
|
|
3348
|
+
snapshot: TSchema.Array<TSchema.Tuple<[TSchema.Struct<{
|
|
3349
|
+
epoch: TSchema.Integer;
|
|
3350
|
+
scale: TSchema.Integer;
|
|
3351
|
+
}>, TSchema.Struct<{
|
|
3352
|
+
sumVal: TSchema.Struct<{
|
|
3353
|
+
value: TSchema.Integer;
|
|
3504
3354
|
}>;
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3355
|
+
isLastInEpoch: TSchema.Boolean;
|
|
3356
|
+
isFirstSnapshot: TSchema.Boolean;
|
|
3357
|
+
}>]>>;
|
|
3358
|
+
iasset: TSchema.ByteArray;
|
|
3359
|
+
collateralAsset: TSchema.Struct<{
|
|
3360
|
+
currencySymbol: TSchema.ByteArray;
|
|
3361
|
+
tokenName: TSchema.ByteArray;
|
|
3509
3362
|
}>;
|
|
3363
|
+
}>;
|
|
3364
|
+
}>]>;
|
|
3365
|
+
declare const E2S2SIndexSchema: TSchema.Union<[TSchema.Struct<{
|
|
3366
|
+
StabilityPoolListIdx: TSchema.Integer;
|
|
3367
|
+
}>, TSchema.Struct<{
|
|
3368
|
+
RefInputIdx: TSchema.Struct<{
|
|
3369
|
+
refInputIdx: TSchema.Integer;
|
|
3370
|
+
snapshotListIdx: TSchema.Integer;
|
|
3371
|
+
}>;
|
|
3372
|
+
}>]>;
|
|
3373
|
+
type E2S2SIndex = typeof E2S2SIndexSchema.Type;
|
|
3374
|
+
declare const E2S2SIndicesPerAssetSchema: TSchema.Array<TSchema.Tuple<[TSchema.Union<[TSchema.Struct<{
|
|
3375
|
+
StabilityPoolListIdx: TSchema.Integer;
|
|
3376
|
+
}>, TSchema.Struct<{
|
|
3377
|
+
RefInputIdx: TSchema.Struct<{
|
|
3378
|
+
refInputIdx: TSchema.Integer;
|
|
3379
|
+
snapshotListIdx: TSchema.Integer;
|
|
3380
|
+
}>;
|
|
3381
|
+
}>]>, TSchema.NullOr<TSchema.Union<[TSchema.Struct<{
|
|
3382
|
+
StabilityPoolListIdx: TSchema.Integer;
|
|
3383
|
+
}>, TSchema.Struct<{
|
|
3384
|
+
RefInputIdx: TSchema.Struct<{
|
|
3385
|
+
refInputIdx: TSchema.Integer;
|
|
3386
|
+
snapshotListIdx: TSchema.Integer;
|
|
3387
|
+
}>;
|
|
3388
|
+
}>]>>]>>;
|
|
3389
|
+
type E2S2SIndicesPerAsset = typeof E2S2SIndicesPerAssetSchema.Type;
|
|
3390
|
+
declare const ProcessRequestAccountContentSchema: TSchema.Struct<{
|
|
3391
|
+
poolInputIdx: TSchema.Integer;
|
|
3392
|
+
accountInputIdx: TSchema.Integer;
|
|
3393
|
+
e2s2sIdxs: TSchema.Array<TSchema.Tuple<[TSchema.Union<[TSchema.Struct<{
|
|
3394
|
+
StabilityPoolListIdx: TSchema.Integer;
|
|
3510
3395
|
}>, TSchema.Struct<{
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
currencySymbol: TSchema.ByteArray;
|
|
3515
|
-
tokenName: TSchema.ByteArray;
|
|
3516
|
-
}>;
|
|
3517
|
-
newCollateralToIassetRatio: TSchema.Struct<{
|
|
3518
|
-
numerator: TSchema.Integer;
|
|
3519
|
-
denominator: TSchema.Integer;
|
|
3520
|
-
}>;
|
|
3521
|
-
newMintingFeeRatio: TSchema.Struct<{
|
|
3522
|
-
numerator: TSchema.Integer;
|
|
3523
|
-
denominator: TSchema.Integer;
|
|
3524
|
-
}>;
|
|
3525
|
-
newRedemptionFeeRatio: TSchema.Struct<{
|
|
3526
|
-
numerator: TSchema.Integer;
|
|
3527
|
-
denominator: TSchema.Integer;
|
|
3528
|
-
}>;
|
|
3529
|
-
newMintingEnabled: TSchema.Boolean;
|
|
3530
|
-
newRedemptionEnabled: TSchema.Boolean;
|
|
3531
|
-
newFeeManager: TSchema.NullOr<TSchema.ByteArray>;
|
|
3532
|
-
newMinMintingAmount: TSchema.Integer;
|
|
3533
|
-
newMinRedemptionAmount: TSchema.Integer;
|
|
3534
|
-
newStableswapValHash: TSchema.ByteArray;
|
|
3396
|
+
RefInputIdx: TSchema.Struct<{
|
|
3397
|
+
refInputIdx: TSchema.Integer;
|
|
3398
|
+
snapshotListIdx: TSchema.Integer;
|
|
3535
3399
|
}>;
|
|
3400
|
+
}>]>, TSchema.NullOr<TSchema.Union<[TSchema.Struct<{
|
|
3401
|
+
StabilityPoolListIdx: TSchema.Integer;
|
|
3536
3402
|
}>, TSchema.Struct<{
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
keyHash: TSchema.ByteArray;
|
|
3553
|
-
}>;
|
|
3403
|
+
RefInputIdx: TSchema.Struct<{
|
|
3404
|
+
refInputIdx: TSchema.Integer;
|
|
3405
|
+
snapshotListIdx: TSchema.Integer;
|
|
3406
|
+
}>;
|
|
3407
|
+
}>]>>]>>;
|
|
3408
|
+
currentTime: TSchema.Integer;
|
|
3409
|
+
}>;
|
|
3410
|
+
type ProcessRequestAccountContent = typeof ProcessRequestAccountContentSchema.Type;
|
|
3411
|
+
declare const StabilityPoolRedeemerSchema: TSchema.Union<[TSchema.Struct<{
|
|
3412
|
+
RequestAction: TSchema.Union<[TSchema.Literal<["Create"]>, TSchema.Struct<{
|
|
3413
|
+
Adjust: TSchema.Struct<{
|
|
3414
|
+
amount: TSchema.Integer;
|
|
3415
|
+
outputAddress: TSchema.Struct<{
|
|
3416
|
+
paymentCredential: TSchema.Union<[TSchema.Struct<{
|
|
3417
|
+
PublicKeyCredential: TSchema.ByteArray;
|
|
3554
3418
|
}>, TSchema.Struct<{
|
|
3555
|
-
|
|
3556
|
-
required: TSchema.Integer;
|
|
3557
|
-
authSignatories: TSchema.Array<effect_Schema.SchemaClass<Data$1.Data, Data$1.Data, never>>;
|
|
3558
|
-
}>;
|
|
3419
|
+
ScriptCredential: TSchema.ByteArray;
|
|
3559
3420
|
}>]>;
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
|
|
3567
|
-
|
|
3421
|
+
stakeCredential: TSchema.NullOr<TSchema.Union<[TSchema.Struct<{
|
|
3422
|
+
Inline: TSchema.Union<[TSchema.Struct<{
|
|
3423
|
+
PublicKeyCredential: TSchema.ByteArray;
|
|
3424
|
+
}>, TSchema.Struct<{
|
|
3425
|
+
ScriptCredential: TSchema.ByteArray;
|
|
3426
|
+
}>]>;
|
|
3427
|
+
}>, TSchema.Struct<{
|
|
3428
|
+
Pointer: TSchema.Struct<{
|
|
3429
|
+
slotNumber: TSchema.Integer;
|
|
3430
|
+
transactionIndex: TSchema.Integer;
|
|
3431
|
+
certificateIndex: TSchema.Integer;
|
|
3432
|
+
}>;
|
|
3568
3433
|
}>]>>;
|
|
3569
3434
|
}>;
|
|
3570
3435
|
}>;
|
|
3571
3436
|
}>, TSchema.Struct<{
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
votingEndTime: TSchema.Integer;
|
|
3576
|
-
protocolVersion: TSchema.Integer;
|
|
3577
|
-
treasuryWithdrawal: TSchema.NullOr<TSchema.Struct<{
|
|
3578
|
-
destination: TSchema.Struct<{
|
|
3579
|
-
paymentCredential: TSchema.Union<[TSchema.Struct<{
|
|
3580
|
-
PublicKeyCredential: TSchema.ByteArray;
|
|
3581
|
-
}>, TSchema.Struct<{
|
|
3582
|
-
ScriptCredential: TSchema.ByteArray;
|
|
3583
|
-
}>]>;
|
|
3584
|
-
stakeCredential: TSchema.NullOr<TSchema.Union<[TSchema.Struct<{
|
|
3585
|
-
Inline: TSchema.Union<[TSchema.Struct<{
|
|
3437
|
+
Close: TSchema.Struct<{
|
|
3438
|
+
outputAddress: TSchema.Struct<{
|
|
3439
|
+
paymentCredential: TSchema.Union<[TSchema.Struct<{
|
|
3586
3440
|
PublicKeyCredential: TSchema.ByteArray;
|
|
3587
3441
|
}>, TSchema.Struct<{
|
|
3588
3442
|
ScriptCredential: TSchema.ByteArray;
|
|
3589
3443
|
}>]>;
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3444
|
+
stakeCredential: TSchema.NullOr<TSchema.Union<[TSchema.Struct<{
|
|
3445
|
+
Inline: TSchema.Union<[TSchema.Struct<{
|
|
3446
|
+
PublicKeyCredential: TSchema.ByteArray;
|
|
3447
|
+
}>, TSchema.Struct<{
|
|
3448
|
+
ScriptCredential: TSchema.ByteArray;
|
|
3449
|
+
}>]>;
|
|
3450
|
+
}>, TSchema.Struct<{
|
|
3451
|
+
Pointer: TSchema.Struct<{
|
|
3452
|
+
slotNumber: TSchema.Integer;
|
|
3453
|
+
transactionIndex: TSchema.Integer;
|
|
3454
|
+
certificateIndex: TSchema.Integer;
|
|
3455
|
+
}>;
|
|
3456
|
+
}>]>>;
|
|
3457
|
+
}>;
|
|
3458
|
+
maxTxFee: TSchema.Integer;
|
|
3597
3459
|
}>;
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
}
|
|
3604
|
-
}
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3460
|
+
}>]>;
|
|
3461
|
+
}>, TSchema.Struct<{
|
|
3462
|
+
ProcessRequestPool: TSchema.Struct<{
|
|
3463
|
+
poolInputIdx: TSchema.Integer;
|
|
3464
|
+
accountInputIdx: TSchema.Integer;
|
|
3465
|
+
}>;
|
|
3466
|
+
}>, TSchema.Struct<{
|
|
3467
|
+
ProcessRequestAccount: TSchema.Struct<{
|
|
3468
|
+
poolInputIdx: TSchema.Integer;
|
|
3469
|
+
accountInputIdx: TSchema.Integer;
|
|
3470
|
+
e2s2sIdxs: TSchema.Array<TSchema.Tuple<[TSchema.Union<[TSchema.Struct<{
|
|
3471
|
+
StabilityPoolListIdx: TSchema.Integer;
|
|
3472
|
+
}>, TSchema.Struct<{
|
|
3473
|
+
RefInputIdx: TSchema.Struct<{
|
|
3474
|
+
refInputIdx: TSchema.Integer;
|
|
3475
|
+
snapshotListIdx: TSchema.Integer;
|
|
3476
|
+
}>;
|
|
3477
|
+
}>]>, TSchema.NullOr<TSchema.Union<[TSchema.Struct<{
|
|
3478
|
+
StabilityPoolListIdx: TSchema.Integer;
|
|
3479
|
+
}>, TSchema.Struct<{
|
|
3480
|
+
RefInputIdx: TSchema.Struct<{
|
|
3481
|
+
refInputIdx: TSchema.Integer;
|
|
3482
|
+
snapshotListIdx: TSchema.Integer;
|
|
3483
|
+
}>;
|
|
3484
|
+
}>]>>]>>;
|
|
3485
|
+
currentTime: TSchema.Integer;
|
|
3486
|
+
}>;
|
|
3487
|
+
}>, TSchema.Literal<["AnnulRequest"]>, TSchema.Struct<{
|
|
3488
|
+
LiquidateCDP: TSchema.Struct<{
|
|
3489
|
+
cdpIdx: TSchema.Integer;
|
|
3490
|
+
}>;
|
|
3491
|
+
}>, TSchema.Literal<["RecordEpochToScaleToSum"]>, TSchema.Literal<["UpgradeVersion"]>]>;
|
|
3492
|
+
type StabilityPoolRedeemer = typeof StabilityPoolRedeemerSchema.Type;
|
|
3493
|
+
declare const ActionReturnDatumSchema: TSchema.Union<[TSchema.Struct<{
|
|
3494
|
+
IndigoStabilityPoolAccountAdjustment: TSchema.Struct<{
|
|
3495
|
+
txHash: TSchema.ByteArray;
|
|
3496
|
+
outputIndex: TSchema.Integer;
|
|
3497
|
+
}>;
|
|
3498
|
+
}>, TSchema.Struct<{
|
|
3499
|
+
IndigoStabilityPoolAccountClosure: TSchema.Struct<{
|
|
3500
|
+
txHash: TSchema.ByteArray;
|
|
3501
|
+
outputIndex: TSchema.Integer;
|
|
3502
|
+
}>;
|
|
3503
|
+
}>]>;
|
|
3504
|
+
type ActionReturnDatum = typeof ActionReturnDatumSchema.Type;
|
|
3505
|
+
declare function serialiseActionReturnDatum(d: ActionReturnDatum): string;
|
|
3506
|
+
declare function serialiseStabilityPoolRedeemer(r: StabilityPoolRedeemer): string;
|
|
3507
|
+
declare function parseStabilityPoolRedeemer(datum: string): option.Option<StabilityPoolRedeemer>;
|
|
3508
|
+
declare function parseStabilityPoolRedeemerOrThrow(datum: string): StabilityPoolRedeemer;
|
|
3509
|
+
declare function serialiseStabilityPoolDatum(d: typeof StabilityPoolDatumSchema.Type,
|
|
3510
|
+
/**
|
|
3511
|
+
* This is necessary to change only in case of execute propose asset.
|
|
3512
|
+
*/
|
|
3513
|
+
useIndefiniteMaps?: boolean): string;
|
|
3514
|
+
declare function parseStabilityPoolDatum(datum: string): option.Option<StabilityPoolContent>;
|
|
3515
|
+
declare function parseStabilityPoolDatumOrThrow(datum: string): StabilityPoolContent;
|
|
3516
|
+
declare function parseAccountDatum(datum: string): option.Option<AccountContent>;
|
|
3517
|
+
declare function parseAccountDatumOrThrow(datum: string): AccountContent;
|
|
3518
|
+
declare function parseSnapshotEpochToScaleToSumDatum(datum: string): option.Option<SnapshotEpochToScaleToSumContent>;
|
|
3519
|
+
declare function parseSnapshotEpochToScaleToSumDatumOrThrow(datum: string): SnapshotEpochToScaleToSumContent;
|
|
3520
|
+
declare function mkSPInteger(value: bigint): SPInteger;
|
|
3521
|
+
declare function fromSPInteger(value: SPInteger): bigint;
|
|
3522
|
+
declare function spAdd(a: SPInteger, b: SPInteger): SPInteger;
|
|
3523
|
+
declare function spSub(a: SPInteger, b: SPInteger): SPInteger;
|
|
3524
|
+
declare function spMul(a: SPInteger, b: SPInteger): SPInteger;
|
|
3525
|
+
declare function spDiv(a: SPInteger, b: SPInteger): SPInteger;
|
|
3526
|
+
declare function spZeroNegatives(a: SPInteger): SPInteger;
|
|
3609
3527
|
|
|
3610
|
-
declare const
|
|
3611
|
-
declare const
|
|
3528
|
+
declare const BASE_MAX_TX_FEE = 1250000n;
|
|
3529
|
+
declare const MAX_E2S2S_ENTRIES_COUNT = 5;
|
|
3530
|
+
declare const initSumVal: SPInteger;
|
|
3531
|
+
declare const initSpState: StateSnapshot;
|
|
3532
|
+
declare function mkStabilityPoolAddr(lucid: LucidEvolution, sysParams: SystemParams): Address;
|
|
3533
|
+
declare function isSameEpochToScaleKey(a: EpochToScaleKey, b: EpochToScaleKey): boolean;
|
|
3534
|
+
type StabilityPoolListIdx = {
|
|
3535
|
+
spListIdx: number;
|
|
3536
|
+
sumSnapshot: readonly [EpochToScaleKey, SumSnapshot];
|
|
3537
|
+
};
|
|
3538
|
+
type SnapshotIdx = {
|
|
3539
|
+
snapshotUtxo: UTxO;
|
|
3540
|
+
snapshotDatum: SnapshotEpochToScaleToSumContent;
|
|
3541
|
+
snapshotListIdx: number;
|
|
3542
|
+
sumSnapshot: readonly [EpochToScaleKey, SumSnapshot];
|
|
3543
|
+
};
|
|
3544
|
+
type FindE2S2SIdxResult = StabilityPoolListIdx | SnapshotIdx;
|
|
3545
|
+
declare function findRelevantE2s2sIdxs(lucid: LucidEvolution, stabilityPool: StabilityPoolContent, accountState: StateSnapshot, allSnapshotsOutRefs: OutRef[]): Promise<[FindE2S2SIdxResult, option.Option<FindE2S2SIdxResult>][]>;
|
|
3546
|
+
declare function createProcessRequestAccountRedeemer(e2s2sIdxs: [FindE2S2SIdxResult, option.Option<FindE2S2SIdxResult>][], otherRefInputs: UTxO[], currentTime: bigint): {
|
|
3547
|
+
e2s2sRefInputs: UTxO[];
|
|
3548
|
+
mkProcessRequestAccountRedeemerContent: (poolInputIdx: bigint, accountInputIdx: bigint) => ProcessRequestAccountContent;
|
|
3549
|
+
};
|
|
3550
|
+
/**
|
|
3551
|
+
* Sp account rewards per collateral asset.
|
|
3552
|
+
*/
|
|
3553
|
+
declare function rewardsPerAsset(poolAssetStates: readonly AssetState[], e2s2sIdxs: [FindE2S2SIdxResult, option.Option<FindE2S2SIdxResult>][], accountAssetSums: readonly (readonly [AssetClass, SPInteger])[], accountState: StateSnapshot): [AssetClass, bigint][];
|
|
3554
|
+
declare function getUpdatedAccountDeposit(poolState: StateSnapshot, accountState: StateSnapshot): SPInteger;
|
|
3555
|
+
declare function updateAccount(pool: StabilityPoolContent, account: AccountContent, e2s2sIdxs: [FindE2S2SIdxResult, option.Option<FindE2S2SIdxResult>][]): {
|
|
3556
|
+
updatedAccountContent: AccountContent;
|
|
3557
|
+
reward: Assets;
|
|
3558
|
+
};
|
|
3559
|
+
declare function liquidationHelper(poolContent: StabilityPoolContent, collateralAsset: AssetClass, iassetBurnAmt: bigint,
|
|
3560
|
+
/**
|
|
3561
|
+
* The collateral absorbed
|
|
3562
|
+
*/
|
|
3563
|
+
reward: bigint): StabilityPoolContent;
|
|
3564
|
+
declare function updatePoolStateWhenWithdrawalFee(withdrawalFeeAmt: bigint, updatedPoolState: StateSnapshot): StateSnapshot;
|
|
3565
|
+
declare function partitionEpochToScaleToSums(spContent: StabilityPoolContent): readonly [
|
|
3566
|
+
readonly SnapshotEpochToScaleToSumContent[],
|
|
3567
|
+
readonly AssetState[]
|
|
3568
|
+
];
|
|
3612
3569
|
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3570
|
+
/** SP Parameters */
|
|
3571
|
+
declare const StabilityPoolParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
3572
|
+
assetSymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
3573
|
+
stabilityPoolToken: _lucid_evolution_lucid.TObject<{
|
|
3574
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
3575
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
3576
|
+
}>;
|
|
3577
|
+
snapshotEpochToScaleToSumToken: _lucid_evolution_lucid.TObject<{
|
|
3578
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
3579
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
3580
|
+
}>;
|
|
3581
|
+
accountToken: _lucid_evolution_lucid.TObject<{
|
|
3582
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
3583
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
3584
|
+
}>;
|
|
3585
|
+
cdpToken: _lucid_evolution_lucid.TObject<{
|
|
3586
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
3587
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
3588
|
+
}>;
|
|
3589
|
+
iAssetAuthToken: _lucid_evolution_lucid.TObject<{
|
|
3590
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
3591
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
3592
|
+
}>;
|
|
3593
|
+
versionRecordToken: _lucid_evolution_lucid.TObject<{
|
|
3594
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
3595
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
3596
|
+
}>;
|
|
3597
|
+
iassetValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
3598
|
+
accountCreateFeeLovelaces: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
3599
|
+
accountProcessingCooldownMs: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
3600
|
+
accountProcessingBiasMs: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
3601
|
+
stakeCredential: _lucid_evolution_lucid.TUnsafe<{
|
|
3602
|
+
Inline: [{
|
|
3603
|
+
PublicKeyCredential: [string];
|
|
3604
|
+
} | {
|
|
3605
|
+
ScriptCredential: [string];
|
|
3606
|
+
}];
|
|
3607
|
+
} | {
|
|
3608
|
+
Pointer: [{
|
|
3609
|
+
slotNumber: bigint;
|
|
3610
|
+
transactionIndex: bigint;
|
|
3611
|
+
certificateIndex: bigint;
|
|
3612
|
+
}];
|
|
3613
|
+
} | null>;
|
|
3619
3614
|
}>;
|
|
3620
|
-
type
|
|
3621
|
-
declare
|
|
3615
|
+
type StabilityPoolParams = Data.Static<typeof StabilityPoolParamsSchema>;
|
|
3616
|
+
declare const StabilityPoolParams: StabilityPoolParams;
|
|
3617
|
+
declare function castStabilityPoolParams(params: StabilityPoolParams): Data;
|
|
3618
|
+
|
|
3619
|
+
declare function findStabilityPool(lucid: LucidEvolution, sysParams: SystemParams,
|
|
3620
|
+
/**
|
|
3621
|
+
* For conversion from hex use the `fromHex` function from lucid-evolution.
|
|
3622
|
+
*/
|
|
3623
|
+
iassetName: Uint8Array<ArrayBufferLike>): Promise<{
|
|
3624
|
+
utxo: UTxO;
|
|
3625
|
+
datum: StabilityPoolContent;
|
|
3626
|
+
}>;
|
|
3627
|
+
declare function findStabilityPoolAccount(lucid: LucidEvolution, sysParams: SystemParams, owner: string,
|
|
3628
|
+
/**
|
|
3629
|
+
* For conversion from hex use the `fromHex` function from lucid-evolution.
|
|
3630
|
+
*/
|
|
3631
|
+
iassetName: Uint8Array<ArrayBufferLike>): Promise<{
|
|
3632
|
+
utxo: UTxO;
|
|
3633
|
+
datum: AccountContent;
|
|
3634
|
+
}>;
|
|
3635
|
+
declare function findE2s2sSnapshots(lucid: LucidEvolution, sysParams: SystemParams,
|
|
3636
|
+
/**
|
|
3637
|
+
* For conversion from hex use the `fromHex` function from lucid-evolution.
|
|
3638
|
+
*/
|
|
3639
|
+
iassetName: Uint8Array<ArrayBufferLike>): Promise<{
|
|
3640
|
+
utxo: UTxO;
|
|
3641
|
+
datum: SnapshotEpochToScaleToSumContent;
|
|
3642
|
+
}[]>;
|
|
3643
|
+
|
|
3644
|
+
declare function requestSpAccountCreation(assetAscii: string, amount: bigint, sysParams: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
3645
|
+
declare function requestSpAccountAdjustment(amount: bigint, accountUtxo: UTxO, sysParams: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
3646
|
+
declare function requestSpAccountClosure(accountUtxo: UTxO, sysParams: SystemParams, lucid: LucidEvolution, maxTxFee?: bigint): Promise<TxBuilder>;
|
|
3647
|
+
declare function processSpRequest(stabilityPoolUtxo: UTxO, accountUtxo: UTxO, iAssetUtxo: UTxO,
|
|
3648
|
+
/**
|
|
3649
|
+
* For performance provide only the ones related to the pool's iAsset.
|
|
3650
|
+
*/
|
|
3651
|
+
allE2s2sSnapshotOrefs: OutRef[], sysParams: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
3652
|
+
declare function createE2s2sSnapshots(stabilityPoolOref: OutRef, sysParams: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
3653
|
+
declare function annulRequest(accountUtxo: UTxO, params: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
3654
|
+
|
|
3655
|
+
declare const mkStabilityPoolValidator: (params: StabilityPoolParams) => SpendingValidator;
|
|
3656
|
+
declare const mkStabilityPoolValidatorFromSP: (params: StabilityPoolParamsSP) => SpendingValidator;
|
|
3622
3657
|
|
|
3623
3658
|
declare const RobOrderTypeSchema: TSchema.Union<[TSchema.Struct<{
|
|
3624
3659
|
BuyIAssetOrder: TSchema.Struct<{
|
|
@@ -3882,7 +3917,7 @@ declare function redeemRob(
|
|
|
3882
3917
|
* The tuple represents the ROB UTXO and the amount to payout for a redemption. In case of buy order,
|
|
3883
3918
|
* it's denominated in iAssets, in case of sell order, it's denominated in collateral asset.
|
|
3884
3919
|
*/
|
|
3885
|
-
redemptionRobsData: [OutRef, bigint][], priceOracleOutRef: OutRef | undefined, iassetOutRef: OutRef, collateralAssetOutRef: OutRef, lucid: LucidEvolution, sysParams: SystemParams,
|
|
3920
|
+
redemptionRobsData: [OutRef, bigint][], priceOracleOutRef: OutRef | undefined, iassetOutRef: OutRef, collateralAssetOutRef: OutRef, lucid: LucidEvolution, sysParams: SystemParams, pythMessage?: string | undefined, pythStateOutRef?: OutRef | undefined): Promise<TxBuilder>;
|
|
3886
3921
|
/**
|
|
3887
3922
|
* Create Tx adjusting the ROB and claiming the received iAssets
|
|
3888
3923
|
*/
|
|
@@ -3924,7 +3959,7 @@ declare function mkOneShotPolicy(params: OneShotParams): MintingPolicy;
|
|
|
3924
3959
|
declare function oneShotMintTx(lucid: LucidEvolution, params: OneShotParams): Promise<[TxBuilder, PolicyId]>;
|
|
3925
3960
|
declare function runOneShotMintTx(lucid: LucidEvolution, params: OneShotParams): Promise<PolicyId>;
|
|
3926
3961
|
|
|
3927
|
-
declare function leverageCdpWithRob(leverage: number, baseCollateral: bigint, priceOracleOutRef: OutRef | undefined, iassetOutRef: OutRef, collateralAssetOutRef: OutRef, cdpCreatorOref: OutRef, interestOracleOref: OutRef, treasuryOref: OutRef, sysParams: SystemParams, lucid: LucidEvolution, allRobs: [UTxO, RobDatum][],
|
|
3962
|
+
declare function leverageCdpWithRob(leverage: number, baseCollateral: bigint, priceOracleOutRef: OutRef | undefined, iassetOutRef: OutRef, collateralAssetOutRef: OutRef, cdpCreatorOref: OutRef, interestOracleOref: OutRef, treasuryOref: OutRef, sysParams: SystemParams, lucid: LucidEvolution, allRobs: [UTxO, RobDatum][], pythMessage?: string | undefined, pythStateOref?: OutRef | undefined): Promise<TxBuilder>;
|
|
3928
3963
|
|
|
3929
3964
|
declare const OnChainDecimalSchema: TSchema.Struct<{
|
|
3930
3965
|
getOnChainInt: TSchema.Integer;
|
|
@@ -4034,8 +4069,8 @@ declare function calculateCollateralRatioFromLeverage(iasset: Uint8Array<ArrayBu
|
|
|
4034
4069
|
*/
|
|
4035
4070
|
declare function calculateLeverageFromCollateralRatio(iasset: Uint8Array<ArrayBufferLike>, collateralAsset: AssetClass, collateralRatio: Rational, baseCollateral: bigint, iassetPrice: Rational, debtMintingFeeRatio: Rational, redemptionReimbursementRatio: Rational, allLrps: [UTxO, RobDatum][]): number | undefined;
|
|
4036
4071
|
|
|
4037
|
-
declare function startPriceOracleTx(lucid: LucidEvolution, assetName: string, startPrice: Rational, oracleParams: PriceOracleParams,
|
|
4038
|
-
declare function feedPriceOracleTx(lucid: LucidEvolution, oracleOref: OutRef, newPrice: Rational, oracleParams: PriceOracleParams,
|
|
4072
|
+
declare function startPriceOracleTx(lucid: LucidEvolution, assetName: string, startPrice: Rational, oracleParams: PriceOracleParams, refOutRef?: OutRef, auxiliaryData?: Core.Data.Data): Promise<[TxBuilder, AssetClass]>;
|
|
4073
|
+
declare function feedPriceOracleTx(lucid: LucidEvolution, oracleOref: OutRef, newPrice: Rational, oracleParams: PriceOracleParams, auxiliaryData?: Core.Data.Data): Promise<TxBuilder>;
|
|
4039
4074
|
|
|
4040
4075
|
declare function mkPriceOracleValidator(params: PriceOracleParams): SpendingValidator;
|
|
4041
4076
|
|
|
@@ -4409,11 +4444,11 @@ declare function initInterestCollector(lucid: LucidEvolution, interestCollection
|
|
|
4409
4444
|
declare function initCDPCreator(lucid: LucidEvolution, cdpCreatorParams: CDPCreatorParamsSP, numCdpCreators: bigint): Promise<void>;
|
|
4410
4445
|
declare function initTreasury(lucid: LucidEvolution, treasuryParams: TreasuryParamsSP, daoAsset: AssetClass, indyAsset: AssetClass, treasuryIndyAmount: bigint, numTreasuryCollectors: bigint): Promise<void>;
|
|
4411
4446
|
declare function initStakingManager(lucid: LucidEvolution, stakingParams: StakingParamsSP): Promise<void>;
|
|
4412
|
-
declare function handleOracleForCollateralAsset(lucid: LucidEvolution, iasset: InitialAssetParam, collateralAsset: InitialCollateralAssetParam, pythConfig: PythConfig
|
|
4447
|
+
declare function handleOracleForCollateralAsset(lucid: LucidEvolution, iasset: InitialAssetParam, collateralAsset: InitialCollateralAssetParam, pythConfig: PythConfig): Promise<{
|
|
4413
4448
|
info: IAssetPriceInfo;
|
|
4414
4449
|
params: PriceOracleParams | undefined;
|
|
4415
4450
|
}>;
|
|
4416
|
-
declare function initializeAsset(lucid: LucidEvolution, iassetParams: IAssetParamsSP, iassetToken: AssetClass, collateralAssetAuthToken: AssetClass, cdpAuthToken: AssetClass, cdpParams: CdpParamsSP, stableswapValidatorHash: string, stabilityPoolParams: StabilityPoolParamsSP, stabilityPoolToken: AssetClass, asset: InitialAssetParam, pythConfig: PythConfig
|
|
4451
|
+
declare function initializeAsset(lucid: LucidEvolution, iassetParams: IAssetParamsSP, iassetToken: AssetClass, collateralAssetAuthToken: AssetClass, cdpAuthToken: AssetClass, cdpParams: CdpParamsSP, stableswapValidatorHash: string, stabilityPoolParams: StabilityPoolParamsSP, stabilityPoolToken: AssetClass, asset: InitialAssetParam, pythConfig: PythConfig): Promise<AssetInfo>;
|
|
4417
4452
|
declare function initGovernance(lucid: LucidEvolution, governanceParams: GovParamsSP, govToken: AssetClass, initialAssets: InitialAssetParam[], protocolParams: ProtocolParams): Promise<void>;
|
|
4418
4453
|
declare function mintAuthTokenDirect(lucid: LucidEvolution, asset: AssetClass, tokenName: string, amount: bigint): Promise<void>;
|
|
4419
4454
|
|
|
@@ -4422,7 +4457,7 @@ declare function mintAuthTokenDirect(lucid: LucidEvolution, asset: AssetClass, t
|
|
|
4422
4457
|
* Caller is responsible for creating the Pyth state asset before calling this.
|
|
4423
4458
|
*/
|
|
4424
4459
|
declare function initPythConfig(lucid: LucidEvolution, initialAssets: InitialAssetParam[], pythStateAsset: AssetClass): Promise<PythConfig>;
|
|
4425
|
-
declare function init(lucid: LucidEvolution, defaultInitialAssets: InitialAssetParam[],
|
|
4460
|
+
declare function init(lucid: LucidEvolution, defaultInitialAssets: InitialAssetParam[], mkPythBasedAssets: ((pythStateNft: AssetClass) => InitialAssetParam[]) | undefined, protocolParams: ProtocolParams, initOptions: InitializeOptions, spStakingCred?: ScriptCredential | undefined, treasuryStakingCred?: ScriptCredential | undefined): Promise<[SystemParams, AssetInfo[]]>;
|
|
4426
4461
|
|
|
4427
4462
|
/**
|
|
4428
4463
|
* Types mirroring the Aiken Pyth parser (lib/pyth).
|
|
@@ -4529,7 +4564,7 @@ type Interval = {
|
|
|
4529
4564
|
validFrom: number;
|
|
4530
4565
|
validTo: number;
|
|
4531
4566
|
};
|
|
4532
|
-
declare function attachOracle(iasset: Uint8Array<ArrayBufferLike>, collateralAsset: AssetClass, priceInfo: IAssetPriceInfo, priceOracleOref: OutRef | undefined, pythStateOref: OutRef | undefined, pythMessage: string | undefined, pythConfig: PythConfig, biasTime: bigint,
|
|
4567
|
+
declare function attachOracle(iasset: Uint8Array<ArrayBufferLike>, collateralAsset: AssetClass, priceInfo: IAssetPriceInfo, priceOracleOref: OutRef | undefined, pythStateOref: OutRef | undefined, pythMessage: string | undefined, pythConfig: PythConfig, biasTime: bigint, lucid: LucidEvolution, tx: TxBuilder): Promise<{
|
|
4533
4568
|
interval: Interval;
|
|
4534
4569
|
referenceInputs: UTxO[];
|
|
4535
4570
|
}>;
|
|
@@ -4545,14 +4580,6 @@ declare function findCollateralAsset(lucid: LucidEvolution, sysParams: SystemPar
|
|
|
4545
4580
|
*/
|
|
4546
4581
|
iassetName: Uint8Array<ArrayBufferLike>, collateralAsset: AssetClass): Promise<CollateralAssetOutput>;
|
|
4547
4582
|
|
|
4548
|
-
declare const BASE_MAX_EXECUTION_FEE = 1620000n;
|
|
4549
|
-
declare function createDestinationDatum(datum: Data$1.Data | null, outRef: OutRef): string;
|
|
4550
|
-
|
|
4551
|
-
declare function createStableswapOrder(iasset: string, collateralAsset: AssetClass, amount: bigint, minting: boolean, poolDatum: StableswapPoolContent, params: SystemParams, lucid: LucidEvolution, destinationAddress?: Address, destinationInlineDatum?: Core.Data.Data, maxExecutionFee?: bigint, additionalLovelaces?: bigint, maxFeeRatio?: Rational): Promise<TxBuilder>;
|
|
4552
|
-
declare function cancelStableswapOrder(stableswapOrderOref: OutRef, sysParams: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
4553
|
-
declare function batchProcessStableswapOrders(stableswapOrderOrefs: OutRef[], stableswapPoolOref: OutRef, treasuryOref: OutRef, sysParams: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
4554
|
-
declare function updateStableswapPoolFees(stableswapPoolOutRef: OutRef, stableswapFeeOutRef: OutRef, newMintingFeeRatio: Rational | null, newRedemptionFeeRatio: Rational | null, sysParams: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
4555
|
-
|
|
4556
4583
|
declare const StableswapOrderDatumSchema: TSchema.Struct<{
|
|
4557
4584
|
iasset: TSchema.ByteArray;
|
|
4558
4585
|
collateralAsset: TSchema.Struct<{
|
|
@@ -4611,6 +4638,66 @@ declare function serialiseStableswapOrderRedeemer(r: StableswapOrderRedeemer): s
|
|
|
4611
4638
|
declare function parseStableswapOrderRedeemer(redeemerCborHex: string): option.Option<StableswapOrderRedeemer>;
|
|
4612
4639
|
declare function parseStableswapOrderRedeemerOrThrow(redeemerCborHex: string): StableswapOrderRedeemer;
|
|
4613
4640
|
|
|
4641
|
+
declare const BASE_MAX_EXECUTION_FEE = 1620000n;
|
|
4642
|
+
type OrderProcessConfig = {
|
|
4643
|
+
/**
|
|
4644
|
+
* Whether to ignore that an order has max execution fee set lower
|
|
4645
|
+
* than the threshold (i.e. the processor might be paying the remaining cardano tx fee).
|
|
4646
|
+
*
|
|
4647
|
+
* The default should be `false`. In case, owner wants to process
|
|
4648
|
+
* such order himself, he can ignore the constraint.
|
|
4649
|
+
*/
|
|
4650
|
+
ignoreMaxExecutionFeeConstraint: boolean;
|
|
4651
|
+
};
|
|
4652
|
+
declare const defaultOrderProcessingConfig: OrderProcessConfig;
|
|
4653
|
+
declare function createDestinationDatum(datum: Data$1.Data | null, outRef: OutRef): string;
|
|
4654
|
+
type StableswapInfo = {
|
|
4655
|
+
suppliedIasset: bigint;
|
|
4656
|
+
suppliedCollateralAsset: bigint;
|
|
4657
|
+
owedIasset: bigint;
|
|
4658
|
+
owedCollateralAsset: bigint;
|
|
4659
|
+
redemptionFee: bigint;
|
|
4660
|
+
mintingFee: bigint;
|
|
4661
|
+
};
|
|
4662
|
+
type StableswapOrderInfo = {
|
|
4663
|
+
order: ParsedOutput<StableswapOrderDatum>;
|
|
4664
|
+
orderType: 'MINTING' | 'REDEEMING';
|
|
4665
|
+
swapInfo: StableswapInfo;
|
|
4666
|
+
};
|
|
4667
|
+
/**
|
|
4668
|
+
* Determine the PSM order type.
|
|
4669
|
+
*/
|
|
4670
|
+
declare function psmOrderType(order: ParsedOutput<StableswapOrderDatum>, sysParams: SystemParams): {
|
|
4671
|
+
type: 'MINTING';
|
|
4672
|
+
suppliedCollateral: bigint;
|
|
4673
|
+
} | {
|
|
4674
|
+
type: 'REDEEMING';
|
|
4675
|
+
suppliedIassets: bigint;
|
|
4676
|
+
} | {
|
|
4677
|
+
type: 'ERROR';
|
|
4678
|
+
reason: string;
|
|
4679
|
+
};
|
|
4680
|
+
type SummaryResult = {
|
|
4681
|
+
_tag: 'SUCCESS';
|
|
4682
|
+
result: StableswapOrderInfo;
|
|
4683
|
+
} | {
|
|
4684
|
+
_tag: 'ERROR';
|
|
4685
|
+
reason: string;
|
|
4686
|
+
};
|
|
4687
|
+
/**
|
|
4688
|
+
* Summarise the order in detail
|
|
4689
|
+
*/
|
|
4690
|
+
declare function summariseOrder(order: ParsedOutput<StableswapOrderDatum>, psmPool: ParsedOutput<StableswapPoolContent>, sysParams: SystemParams, orderProcessingConfig: OrderProcessConfig): SummaryResult;
|
|
4691
|
+
/**
|
|
4692
|
+
* Pick only orders that are valid and can be processed based on available liquidity.
|
|
4693
|
+
*/
|
|
4694
|
+
declare function pickValidSatisfiableOrders(orders: ParsedOutput<StableswapOrderDatum>[], pool: ParsedOutput<StableswapPoolContent>, sysParams: SystemParams, orderProcessingConfig: OrderProcessConfig): ParsedOutput<StableswapOrderDatum>[];
|
|
4695
|
+
|
|
4696
|
+
declare function createStableswapOrder(iasset: string, collateralAsset: AssetClass, amount: bigint, minting: boolean, poolDatum: StableswapPoolContent, params: SystemParams, lucid: LucidEvolution, destinationAddress?: Address, destinationInlineDatum?: Core.Data.Data, maxExecutionFee?: bigint, additionalLovelaces?: bigint, maxFeeRatio?: Rational): Promise<TxBuilder>;
|
|
4697
|
+
declare function cancelStableswapOrder(stableswapOrderOref: OutRef, sysParams: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
4698
|
+
declare function batchProcessStableswapOrders(stableswapOrderOrefs: OutRef[], stableswapPoolOref: OutRef, treasuryOref: OutRef, sysParams: SystemParams, lucid: LucidEvolution, orderProcessingConfig?: OrderProcessConfig): Promise<TxBuilder>;
|
|
4699
|
+
declare function updateStableswapPoolFees(stableswapPoolOutRef: OutRef, stableswapFeeOutRef: OutRef, newMintingFeeRatio: Rational | null, newRedemptionFeeRatio: Rational | null, sysParams: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
4700
|
+
|
|
4614
4701
|
declare const StableswapParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
4615
4702
|
iassetSymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
4616
4703
|
cdpToken: _lucid_evolution_lucid.TObject<{
|
|
@@ -4636,4 +4723,4 @@ declare function mkAuthTokenPolicy(ac: AssetClass, tn: string): MintingPolicy;
|
|
|
4636
4723
|
|
|
4637
4724
|
declare const alwaysFailValidator: SpendingValidator;
|
|
4638
4725
|
|
|
4639
|
-
export { type AccountAction, type AccountContent, AccountContentSchema, type ActionReturnDatum, type AddCollateralAsssetContent, type AddressCredential, type AddressCredentialOrDatum, type AddressSP, AikenIntervalIntervalBound, AikenIntervalIntervalBoundType, type Amount, type AssetClassD, type AssetClassSP, AssetClassSchema, type AssetInfo, type AssetSnapshot, type AssetState, type AuthTokenPolicies, BASE_MAX_EXECUTION_FEE, BASE_MAX_TX_FEE, BigIntOrd, type CDPContent, CDPCreatorParams, type CDPCreatorParamsSP, type CDPDatum, CardanoTransactionValidityRange, type CdpParams, type CdpParamsSP, type CdpRedeemParams, type CdpRedeemParamsSP, type CdpRedeemer, type CollateralAssetContent, type CollateralAssetInfo, type CollateralAssetOutput, type CollectorParamsSP, type CollectorRedeemer, CollectorRedeemerSchema, CredentialD, CredentialSchema, type CurrencySymbolSP, DEFAULT_INIT_OPTIONS, type DerivedPythPrice, type DerivedPythPriceSP, DerivedPythPriceSchema, type E2S2SIndex, type E2S2SIndicesPerAsset, type EpochToScaleKey, type EpochToScaleToSumEntry, type ExecuteDatum, ExecuteParams, type ExecuteParamsSP, type Feed, type FindE2S2SIdxResult, type GovDatum, GovParams, type GovParamsSP, type GovRedeemer, type IAssetContent, type IAssetDatum, type IAssetOutput, type IAssetParamsSP, type IAssetPriceInfo, IAssetPriceInfoSchema, type IAssetRedeemer, IAssetScriptParams, INIT_TOKEN_NAMES, type IndigoOracleNftParam, type InitialAssetParam, type InitialCollateralAssetParam, type InitialStablepoolParam, type InitializeOptions, type Input, type InterestCollectionDatum, type InterestCollectionParams, type InterestCollectionParamsSP, InterestCollectionParamsSchema, type InterestCollectionRedeemer, type InterestOracleDatum, InterestOracleDatumSchema, type InterestOracleParams, InterestOracleParamsSchema, type InterestOracleRedeemer, MAX_BUY_ROB_REDEMPTIONS_COUNT, MAX_COLLATERAL_ASSETS_COUNT_PER_IASSET, MAX_E2S2S_ENTRIES_COUNT, MAX_REDEMPTIONS_WITH_CDP_OPEN, MAX_SELL_ROB_REDEMPTIONS_COUNT, MIN_ROB_COLLATERAL_AMT, type MarketSession, type ModifyStableswapPoolContent, ONE_DAY, ONE_HOUR, ONE_SECOND, ONE_YEAR, type OneShotParams, OneShotParamsSchema, type OracleIdx, OracleIdxSchema, type Output, PRICE_UPDATE_MAGIC, type ParsedOutput, type PollDatum, type PollManagerContent, PollManagerParams, type PollManagerParamsSP, type PollManagerRedeemer, type PollShardContent, PollShardParams, type PollShardParamsSP, type PollShardRedeemer, type PollStatus, 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, type VoteOption, addrDetails, adjustCdp, adjustPriceToDecimals, adjustRob, adjustStakingPosition, alwaysFailValidator, annulRequest, approximateLeverageRedemptions, attachOracle, balance, batchCollectInterest, batchProcessStableswapOrders, bigintMax, bigintMin, buildRedemptionsTx, burnCdp, calculateAccruedInterest, calculateAdaReward, calculateCollateralRatioFromLeverage, calculateIAssetRedemptionAmt, calculateLeverageFromCollateralRatio, calculateMinCollateralCappedIAssetRedemptionAmt, calculatePurchaseAmtWhenRobBuyOrder, calculatePurchaseAmtWhenRobSellOrder, calculateSpendAmtWhenRobBuyOrder, calculateSpendAmtWhenRobSellOrder, calculateTotalCollateralForRedemption, calculateUnitaryInterest, calculateUnitaryInterestSinceOracleLastUpdated, cancelRob, cancelStableswapOrder, castCDPCreatorParams, castCdpParams, castCdpRedeemParams, castExecuteParams, castGovParams, castInterestCollectionParams, castInterestOracleParams, castOneShotParams, castPollManagerParams, castPollShardParams, castPriceOracleParams, castRobParams, castStabilityPoolParams, castStakingParams, castVersionRecordTokenParams, cdpCollateralRatioPercentage, claimRob, closeCdp, closeStakingPosition, collectInterestTx, collectPriceFeedIds, collectorFeeTx, createDestinationDatum, createE2s2sSnapshots, createProcessRequestAccountRedeemer, createProposal, createScriptAddress, createShardsChunks, createStableswapOrder, decodePriceUpdate, decodePythMessage, depositCdp, deriveAuthToken, derivePythPrice, distributeAda, distributeInterest, distributeReward, divideOnChainCompatible, encodePriceUpdate, encodePythMessage, encodeSignedPythMessage, endProposal, estimateUtxoMinLovelace, executeProposal, feedInterestOracle, feedPriceOracleTx, findAdminInterestCollectors, findAllInterestCollectors, findAllTreasuryUtxos, findAllTreasuryUtxosWithNonAdaAsset, findCollateralAsset, findIAsset, findRandomCdpCreator, findRandomNonAdminInterestCollector, findRandomTreasuryUtxo, findRandomTreasuryUtxoWithAsset, findRandomTreasuryUtxoWithOnlyAda, findRelevantE2s2sIdxs, findStakingManager, findStakingManagerByOutRef, findStakingPositionByOutRef, freezeCdp, fromDataDerivedPythPrice, fromDecimal, fromSPInteger, fromSysParamsCredential, fromSysParamsDerivedPythPrice, fromSysParamsPythFeedParams, fromSysParamsStakeCredential, fromSystemParamsAsset, fromSystemParamsAssetLucid, fromSystemParamsScriptRef, getAssetClassComparisonStr, getInlineDatumOrThrow, getPythFeedConfig, getUpdatedAccountDeposit, handleOracleForCollateralAsset, iassetValueOfCollateral, init, initCDPCreator, initCollector, initGovernance, initInterestCollector, initPythConfig, initScriptRef, initSpState, initStakingManager, initSumVal, initTreasury, initializeAsset, insertSorted, isBuyOrderFullyRedeemed, isFullyRedeemed, isSameEpochToScaleKey, leverageCdpWithRob, liquidateCdp, liquidationHelper, loadSystemParamsFromFile, loadSystemParamsFromUrl, matchSingle, mergeCdps, mergeShards, mintAuthTokenDirect, mintCdp, mintOneTimeAsset, mintOneTimeToken, mkAuthTokenPolicy, mkCDPCreatorValidator, mkCDPCreatorValidatorFromSP, mkCdpRedeemValidatorFromSP, mkCdpValidatorFromSP, mkCollectorValidatorFromSP, mkExecuteValidator, mkExecuteValidatorFromSP, mkGovValidator, mkGovValidatorFromSP, mkIAssetTokenPolicy, mkIAssetValidatorFromSP, mkInterestCollectionValidator, mkInterestCollectionValidatorFromSP, mkInterestOracleValidator, mkOneShotPolicy, mkPollManagerValidator, mkPollManagerValidatorFromSP, mkPollShardValidator, mkPollShardValidatorFromSP, mkPriceOracleValidator, mkPythFeedValidator, mkRobValidator, mkRobValidatorFromSP, mkSPInteger, mkStabilityPoolAddr, mkStabilityPoolValidator, mkStabilityPoolValidatorFromSP, mkStableswapValidator, mkStableswapValidatorFromSP, mkStakingValidatorFromSP, mkTreasuryAddr, mkTreasuryValidatorFromSP, mkVersionRecordTokenPolicy, mkVersionRegistryValidator, oneShotMintTx, openCdp, openRob, openStakingPosition, parseAccountDatum, parseAccountDatumOrThrow, parseCdpDatum, parseCdpDatumOrThrow, parseCdpRedeemer, parseCdpRedeemerOrThrow, parseCollateralAssetDatum, parseCollateralAssetDatumOrThrow, parseExecuteDatum, parseExecuteDatumOrThrow, parseGovDatum, parseGovDatumOrThrow, parseIAssetDatum, parseIAssetDatumOrThrow, parseInterestCollectionDatum, parseInterestOracleDatum, parsePollManager, parsePollManagerOrThrow, parsePollShard, parsePollShardOrThrow, parsePollShardRedeemer, parsePollShardRedeemerOrThrow, parsePriceOracleDatum, parsePythStateDatum, parseRobDatum, parseRobDatumOrThrow, parseRobRedeemer, parseRobRedeemerOrThrow, parseSnapshotEpochToScaleToSumDatum, parseSnapshotEpochToScaleToSumDatumOrThrow, parseStabilityPoolDatum, parseStabilityPoolDatumOrThrow, parseStabilityPoolRedeemer, parseStabilityPoolRedeemerOrThrow, parseStableswapOrderDatum, parseStableswapOrderDatumOrThrow, parseStableswapOrderRedeemer, parseStableswapOrderRedeemerOrThrow, parseStableswapPoolDatum, parseStableswapPoolDatumOrThrow, parseStakingManagerDatum, parseStakingPosition, parseStakingPositionOrThrow, parseStakingRedeemer, parseStakingRedeemerOrThrow, partitionEpochToScaleToSums, processSpRequest, randomRobsSubsetSatisfyingTargetCollateral, rationalAdd, rationalCeil, rationalDiv, rationalFloor, rationalFromInt, rationalMul, rationalNegate, rationalSub, rationalToFloat, rationalZero, redeemCdp, redeemRob, repsertReadonlyArr, repsertWithReadonlyArr, requestSpAccountAdjustment, requestSpAccountClosure, requestSpAccountCreation, rewardSnapshotPrecision, rewardsPerAsset, robAmtToSpend, robBuyOrderFilledAssets, robBuyOrderSummary, robCollateralAmtToSpend, robIAssetAmtToSpend, robSellOrderFilledAssets, runCreateScriptRefTx, runOneShotMintTx, scriptRef, serialiseActionReturnDatum, serialiseCdpDatum, serialiseCdpRedeemer, serialiseCollectorRedeemer, serialiseExecuteDatum, serialiseFeedInterestOracleRedeemer, serialiseGovDatum, serialiseGovRedeemer, serialiseIAssetDatum, serialiseIAssetRedeemer, serialiseInterestCollectionDatum, serialiseInterestCollectionRedeemer, serialiseInterestOracleDatum, serialisePollDatum, serialisePollManagerRedeemer, serialisePollShardRedeemer, 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, summarizeActualLeverageRedemptions, toAssetClassFromLucid, toDataDerivedPythPrice, toSystemParamsAsset, treasuryCollect, treasuryFeeTx, treasuryMerge, treasuryPrepareWithdrawal, treasurySplit, updateAccount, updatePermissions, updatePoolStateWhenWithdrawalFee, updateStableswapPoolFees, updateStakingLockedAmount, vote, withdrawCdp, zeroNegatives };
|
|
4726
|
+
export { type AccountAction, type AccountContent, AccountContentSchema, type ActionReturnDatum, type AddCollateralAsssetContent, type AddressCredential, type AddressCredentialOrDatum, type AddressSP, AikenIntervalIntervalBound, AikenIntervalIntervalBoundType, type Amount, type AssetClassD, type AssetClassSP, AssetClassSchema, type AssetInfo, type AssetSnapshot, type AssetState, type AuthTokenPolicies, BASE_MAX_EXECUTION_FEE, BASE_MAX_TX_FEE, BigIntOrd, type CDPContent, CDPCreatorParams, type CDPCreatorParamsSP, type CDPDatum, CardanoTransactionValidityRange, type CdpParams, type CdpParamsSP, type CdpRedeemParams, type CdpRedeemParamsSP, type CdpRedeemer, type CollateralAssetContent, type CollateralAssetInfo, type CollateralAssetOutput, type CollectorParamsSP, type CollectorRedeemer, CollectorRedeemerSchema, CredentialD, CredentialSchema, type CurrencySymbolSP, DEFAULT_INIT_OPTIONS, type DerivedPythPrice, type DerivedPythPriceSP, DerivedPythPriceSchema, type E2S2SIndex, type E2S2SIndicesPerAsset, type EpochToScaleKey, type EpochToScaleToSumEntry, type ExecuteDatum, ExecuteParams, type ExecuteParamsSP, type Feed, type FindE2S2SIdxResult, type GovDatum, GovParams, type GovParamsSP, type GovRedeemer, type IAssetContent, type IAssetDatum, type IAssetOutput, type IAssetParamsSP, type IAssetPriceInfo, IAssetPriceInfoSchema, type IAssetRedeemer, IAssetScriptParams, INIT_TOKEN_NAMES, type IndigoOracleNftParam, type InitialAssetParam, type InitialCollateralAssetParam, type InitialStablepoolParam, type InitializeOptions, type Input, type InterestCollectionDatum, type InterestCollectionParams, type InterestCollectionParamsSP, InterestCollectionParamsSchema, type InterestCollectionRedeemer, type InterestOracleDatum, InterestOracleDatumSchema, type InterestOracleParams, InterestOracleParamsSchema, type InterestOracleRedeemer, MAX_BUY_ROB_REDEMPTIONS_COUNT, MAX_COLLATERAL_ASSETS_COUNT_PER_IASSET, MAX_E2S2S_ENTRIES_COUNT, MAX_REDEMPTIONS_WITH_CDP_OPEN, MAX_SELL_ROB_REDEMPTIONS_COUNT, MIN_ROB_COLLATERAL_AMT, type MarketSession, type ModifyStableswapPoolContent, ONE_DAY, ONE_HOUR, ONE_SECOND, ONE_YEAR, type OneShotParams, OneShotParamsSchema, type OracleIdx, OracleIdxSchema, type OrderProcessConfig, type Output, PRICE_UPDATE_MAGIC, type ParsedOutput, type PollDatum, type PollManagerContent, PollManagerParams, type PollManagerParamsSP, type PollManagerRedeemer, type PollShardContent, PollShardParams, type PollShardParamsSP, type PollShardRedeemer, type PollStatus, 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 StableswapInfo, type StableswapOrderDatum, StableswapOrderDatumSchema, type StableswapOrderInfo, 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, type VoteOption, addrDetails, adjustCdp, adjustPriceToDecimals, adjustRob, adjustStakingPosition, alwaysFailValidator, annulRequest, approximateLeverageRedemptions, attachOracle, balance, batchCollectInterest, batchProcessStableswapOrders, bigintMax, bigintMin, buildRedemptionsTx, burnCdp, calculateAccruedInterest, calculateAdaReward, calculateCollateralRatioFromLeverage, calculateIAssetRedemptionAmt, calculateLeverageFromCollateralRatio, calculateMinCollateralCappedIAssetRedemptionAmt, calculatePurchaseAmtWhenRobBuyOrder, calculatePurchaseAmtWhenRobSellOrder, calculateSpendAmtWhenRobBuyOrder, calculateSpendAmtWhenRobSellOrder, calculateTotalCollateralForRedemption, calculateUnitaryInterest, calculateUnitaryInterestSinceOracleLastUpdated, cancelRob, cancelStableswapOrder, castCDPCreatorParams, castCdpParams, castCdpRedeemParams, castExecuteParams, castGovParams, castInterestCollectionParams, castInterestOracleParams, castOneShotParams, castPollManagerParams, castPollShardParams, castPriceOracleParams, castRobParams, castStabilityPoolParams, castStakingParams, castVersionRecordTokenParams, cdpCollateralRatioPercentage, claimRob, closeCdp, closeStakingPosition, collectInterestTx, collectPriceFeedIds, collectorFeeTx, createDestinationDatum, createE2s2sSnapshots, createProcessRequestAccountRedeemer, createProposal, createScriptAddress, createShardsChunks, createStableswapOrder, decodePriceUpdate, decodePythMessage, defaultOrderProcessingConfig, depositCdp, deriveAuthToken, derivePythPrice, distributeAda, distributeInterest, distributeReward, divideOnChainCompatible, encodePriceUpdate, encodePythMessage, encodeSignedPythMessage, endProposal, estimateUtxoMinLovelace, executeProposal, feedInterestOracle, feedPriceOracleTx, findAdminInterestCollectors, findAllInterestCollectors, findAllTreasuryUtxos, findAllTreasuryUtxosWithNonAdaAsset, findCollateralAsset, findE2s2sSnapshots, findIAsset, findRandomCdpCreator, findRandomNonAdminInterestCollector, findRandomTreasuryUtxo, findRandomTreasuryUtxoWithAsset, findRandomTreasuryUtxoWithOnlyAda, findRelevantE2s2sIdxs, findStabilityPool, findStabilityPoolAccount, findStakingManager, findStakingManagerByOutRef, findStakingPositionByOutRef, freezeCdp, fromDataDerivedPythPrice, fromDecimal, fromSPInteger, fromSysParamsCredential, fromSysParamsDerivedPythPrice, fromSysParamsPythFeedParams, fromSysParamsStakeCredential, fromSystemParamsAsset, fromSystemParamsAssetLucid, fromSystemParamsScriptRef, getAssetClassComparisonStr, getInlineDatumOrThrow, getPythFeedConfig, getUpdatedAccountDeposit, handleOracleForCollateralAsset, iassetValueOfCollateral, init, initCDPCreator, initCollector, initGovernance, initInterestCollector, initPythConfig, initScriptRef, initSpState, initStakingManager, initSumVal, initTreasury, initializeAsset, insertSorted, isBuyOrderFullyRedeemed, isFullyRedeemed, isSameEpochToScaleKey, leverageCdpWithRob, liquidateCdp, liquidationHelper, loadSystemParamsFromFile, loadSystemParamsFromUrl, matchSingle, mergeCdps, mergeShards, mintAuthTokenDirect, mintCdp, mintOneTimeAsset, mintOneTimeToken, mkAuthTokenPolicy, mkCDPCreatorValidator, mkCDPCreatorValidatorFromSP, mkCdpRedeemValidatorFromSP, mkCdpValidatorFromSP, mkCollectorValidatorFromSP, mkExecuteValidator, mkExecuteValidatorFromSP, mkGovValidator, mkGovValidatorFromSP, mkIAssetTokenPolicy, mkIAssetValidatorFromSP, mkInterestCollectionValidator, mkInterestCollectionValidatorFromSP, mkInterestOracleValidator, mkOneShotPolicy, mkPollManagerValidator, mkPollManagerValidatorFromSP, mkPollShardValidator, mkPollShardValidatorFromSP, mkPriceOracleValidator, mkPythFeedValidator, mkRobValidator, mkRobValidatorFromSP, mkSPInteger, mkStabilityPoolAddr, mkStabilityPoolValidator, mkStabilityPoolValidatorFromSP, mkStableswapValidator, mkStableswapValidatorFromSP, mkStakingValidatorFromSP, mkTreasuryAddr, mkTreasuryValidatorFromSP, mkVersionRecordTokenPolicy, mkVersionRegistryValidator, oneShotMintTx, openCdp, openRob, openStakingPosition, parseAccountDatum, parseAccountDatumOrThrow, parseCdpDatum, parseCdpDatumOrThrow, parseCdpRedeemer, parseCdpRedeemerOrThrow, parseCollateralAssetDatum, parseCollateralAssetDatumOrThrow, parseExecuteDatum, parseExecuteDatumOrThrow, parseGovDatum, parseGovDatumOrThrow, parseIAssetDatum, parseIAssetDatumOrThrow, parseInterestCollectionDatum, parseInterestOracleDatum, parsePollManager, parsePollManagerOrThrow, parsePollShard, parsePollShardOrThrow, parsePollShardRedeemer, parsePollShardRedeemerOrThrow, parsePriceOracleDatum, parsePythStateDatum, parseRobDatum, parseRobDatumOrThrow, parseRobRedeemer, parseRobRedeemerOrThrow, parseSnapshotEpochToScaleToSumDatum, parseSnapshotEpochToScaleToSumDatumOrThrow, parseStabilityPoolDatum, parseStabilityPoolDatumOrThrow, parseStabilityPoolRedeemer, parseStabilityPoolRedeemerOrThrow, parseStableswapOrderDatum, parseStableswapOrderDatumOrThrow, parseStableswapOrderRedeemer, parseStableswapOrderRedeemerOrThrow, parseStableswapPoolDatum, parseStableswapPoolDatumOrThrow, parseStakingManagerDatum, parseStakingPosition, parseStakingPositionOrThrow, parseStakingRedeemer, parseStakingRedeemerOrThrow, partitionEpochToScaleToSums, pickValidSatisfiableOrders, processSpRequest, psmOrderType, randomRobsSubsetSatisfyingTargetCollateral, rationalAdd, rationalCeil, rationalDiv, rationalFloor, rationalFromInt, rationalMul, rationalNegate, rationalSub, rationalToFloat, rationalZero, redeemCdp, redeemRob, repsertReadonlyArr, repsertWithReadonlyArr, requestSpAccountAdjustment, requestSpAccountClosure, requestSpAccountCreation, rewardSnapshotPrecision, rewardsPerAsset, robAmtToSpend, robBuyOrderFilledAssets, robBuyOrderSummary, robCollateralAmtToSpend, robIAssetAmtToSpend, robSellOrderFilledAssets, runCreateScriptRefTx, runOneShotMintTx, scriptRef, serialiseActionReturnDatum, serialiseCdpDatum, serialiseCdpRedeemer, serialiseCollectorRedeemer, serialiseExecuteDatum, serialiseFeedInterestOracleRedeemer, serialiseGovDatum, serialiseGovRedeemer, serialiseIAssetDatum, serialiseIAssetRedeemer, serialiseInterestCollectionDatum, serialiseInterestCollectionRedeemer, serialiseInterestOracleDatum, serialisePollDatum, serialisePollManagerRedeemer, serialisePollShardRedeemer, 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, summariseOrder, summarizeActualLeverageRedemptions, toAssetClassFromLucid, toDataDerivedPythPrice, toSystemParamsAsset, treasuryCollect, treasuryFeeTx, treasuryMerge, treasuryPrepareWithdrawal, treasurySplit, updateAccount, updatePermissions, updatePoolStateWhenWithdrawalFee, updateStableswapPoolFees, updateStakingLockedAmount, vote, withdrawCdp, zeroNegatives };
|