@indigo-labs/indigo-sdk 0.4.3 → 0.4.4
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 +892 -867
- package/dist/index.d.ts +892 -867
- package/dist/index.js +1804 -1712
- package/dist/index.mjs +1596 -1504
- package/package.json +12 -20
- package/scripts/bench.sh +0 -0
- package/src/contracts/gov/transactions.ts +3 -1
- package/{tests/queries/stability-pool-queries.ts → src/contracts/stability-pool/queries.ts} +22 -14
- package/src/index.ts +4 -3
- package/tests/cdp/cdp-queries.ts +7 -2
- package/tests/pyth/pyth-feeds.test.ts +943 -0
- package/tests/stability-pool/actions.ts +27 -14
- package/tests/stability-pool.test.ts +62 -64
package/dist/index.d.ts
CHANGED
|
@@ -2422,69 +2422,6 @@ declare function castGovParams(params: GovParams): Data;
|
|
|
2422
2422
|
declare const mkGovValidator: (params: GovParams) => SpendingValidator;
|
|
2423
2423
|
declare const mkGovValidatorFromSP: (params: GovParamsSP) => SpendingValidator;
|
|
2424
2424
|
|
|
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
2425
|
declare function openStakingPosition(amount: bigint, params: SystemParams, lucid: LucidEvolution, stakingManagerRef?: OutRef): Promise<TxBuilder>;
|
|
2489
2426
|
declare function adjustStakingPosition(stakingPositionRef: OutRef, amount: bigint, params: SystemParams, lucid: LucidEvolution, currentSlot: number, stakingManagerRef?: OutRef): Promise<TxBuilder>;
|
|
2490
2427
|
declare function closeStakingPosition(stakingPositionRef: OutRef, params: SystemParams, lucid: LucidEvolution, currentSlot: number, stakingManagerRef?: OutRef): Promise<TxBuilder>;
|
|
@@ -2725,900 +2662,988 @@ declare function findRandomTreasuryUtxoWithOnlyAda(lucid: LucidEvolution, sysPar
|
|
|
2725
2662
|
declare function findRandomTreasuryUtxoWithAsset(lucid: LucidEvolution, sysParams: SystemParams, asset: AssetClass, max_number_of_assets?: bigint): Promise<UTxO>;
|
|
2726
2663
|
declare function findAllTreasuryUtxosWithNonAdaAsset(lucid: LucidEvolution, sysParams: SystemParams, includeDaoToken?: boolean): Promise<UTxO[]>;
|
|
2727
2664
|
|
|
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;
|
|
2665
|
+
declare const ONE_SECOND: number;
|
|
2666
|
+
declare const ONE_HOUR: bigint;
|
|
2667
|
+
declare const ONE_DAY: bigint;
|
|
2668
|
+
declare const ONE_YEAR: bigint;
|
|
2669
|
+
|
|
2670
|
+
declare const mkCollectorValidatorFromSP: (params: CollectorParamsSP) => SpendingValidator;
|
|
2671
|
+
|
|
2672
|
+
declare const ExecuteParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
2673
|
+
govNFT: _lucid_evolution_lucid.TObject<{
|
|
2674
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2675
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2779
2676
|
}>;
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
2783
|
-
sumVal: TSchema.Struct<{
|
|
2784
|
-
value: TSchema.Integer;
|
|
2677
|
+
upgradeToken: _lucid_evolution_lucid.TObject<{
|
|
2678
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2679
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2785
2680
|
}>;
|
|
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;
|
|
2681
|
+
iAssetToken: _lucid_evolution_lucid.TObject<{
|
|
2682
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2683
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2801
2684
|
}>;
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
type EpochToScaleToSumEntry = typeof EpochToScaleToSumEntrySchema.Type;
|
|
2806
|
-
declare const StateSnapshotSchema: TSchema.Struct<{
|
|
2807
|
-
productVal: TSchema.Struct<{
|
|
2808
|
-
value: TSchema.Integer;
|
|
2685
|
+
collateralAssetToken: _lucid_evolution_lucid.TObject<{
|
|
2686
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2687
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2809
2688
|
}>;
|
|
2810
|
-
|
|
2811
|
-
|
|
2689
|
+
stabilityPoolToken: _lucid_evolution_lucid.TObject<{
|
|
2690
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2691
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2812
2692
|
}>;
|
|
2813
|
-
|
|
2814
|
-
|
|
2815
|
-
|
|
2816
|
-
type StateSnapshot = typeof StateSnapshotSchema.Type;
|
|
2817
|
-
declare const AssetSnapshotSchema: TSchema.Struct<{
|
|
2818
|
-
currentSumVal: TSchema.Struct<{
|
|
2819
|
-
value: TSchema.Integer;
|
|
2693
|
+
cdpCreatorToken: _lucid_evolution_lucid.TObject<{
|
|
2694
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2695
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2820
2696
|
}>;
|
|
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;
|
|
2697
|
+
cdpToken: _lucid_evolution_lucid.TObject<{
|
|
2698
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2699
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2839
2700
|
}>;
|
|
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;
|
|
2701
|
+
versionRecordToken: _lucid_evolution_lucid.TObject<{
|
|
2702
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2703
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2863
2704
|
}>;
|
|
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
|
-
}>]>>;
|
|
2705
|
+
iassetValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2706
|
+
cdpValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2707
|
+
sPoolValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2708
|
+
versionRegistryValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2709
|
+
treasuryValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2882
2710
|
}>;
|
|
2883
|
-
type
|
|
2884
|
-
declare const
|
|
2885
|
-
|
|
2886
|
-
|
|
2887
|
-
|
|
2888
|
-
|
|
2889
|
-
|
|
2890
|
-
|
|
2891
|
-
|
|
2892
|
-
|
|
2711
|
+
type ExecuteParams = Data.Static<typeof ExecuteParamsSchema>;
|
|
2712
|
+
declare const ExecuteParams: ExecuteParams;
|
|
2713
|
+
declare function castExecuteParams(params: ExecuteParams): Data;
|
|
2714
|
+
|
|
2715
|
+
declare const ExecuteDatumSchema: TSchema.Struct<{
|
|
2716
|
+
id: TSchema.Integer;
|
|
2717
|
+
content: TSchema.Union<[TSchema.Struct<{
|
|
2718
|
+
ProposeIAsset: TSchema.Struct<{
|
|
2719
|
+
asset: TSchema.ByteArray;
|
|
2720
|
+
debtMintingFeeRatio: TSchema.Struct<{
|
|
2721
|
+
numerator: TSchema.Integer;
|
|
2722
|
+
denominator: TSchema.Integer;
|
|
2723
|
+
}>;
|
|
2724
|
+
liquidationProcessingFeeRatio: TSchema.Struct<{
|
|
2725
|
+
numerator: TSchema.Integer;
|
|
2726
|
+
denominator: TSchema.Integer;
|
|
2727
|
+
}>;
|
|
2728
|
+
stabilityPoolWithdrawalFeeRatio: TSchema.Struct<{
|
|
2729
|
+
numerator: TSchema.Integer;
|
|
2730
|
+
denominator: TSchema.Integer;
|
|
2731
|
+
}>;
|
|
2732
|
+
redemptionReimbursementRatio: TSchema.Struct<{
|
|
2733
|
+
numerator: TSchema.Integer;
|
|
2734
|
+
denominator: TSchema.Integer;
|
|
2735
|
+
}>;
|
|
2736
|
+
redemptionProcessingFeeRatio: TSchema.Struct<{
|
|
2737
|
+
numerator: TSchema.Integer;
|
|
2738
|
+
denominator: TSchema.Integer;
|
|
2739
|
+
}>;
|
|
2893
2740
|
}>;
|
|
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
2741
|
}>, 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
|
-
}>]>>;
|
|
2742
|
+
ModifyIAsset: TSchema.Struct<{
|
|
2743
|
+
asset: TSchema.ByteArray;
|
|
2744
|
+
newDebtMintingFeeRatio: TSchema.Struct<{
|
|
2745
|
+
numerator: TSchema.Integer;
|
|
2746
|
+
denominator: TSchema.Integer;
|
|
2747
|
+
}>;
|
|
2748
|
+
newLiquidationProcessingFeeRatio: TSchema.Struct<{
|
|
2749
|
+
numerator: TSchema.Integer;
|
|
2750
|
+
denominator: TSchema.Integer;
|
|
2751
|
+
}>;
|
|
2752
|
+
newStabilityPoolWithdrawalFeeRatio: TSchema.Struct<{
|
|
2753
|
+
numerator: TSchema.Integer;
|
|
2754
|
+
denominator: TSchema.Integer;
|
|
2755
|
+
}>;
|
|
2756
|
+
newRedemptionReimbursementRatio: TSchema.Struct<{
|
|
2757
|
+
numerator: TSchema.Integer;
|
|
2758
|
+
denominator: TSchema.Integer;
|
|
2759
|
+
}>;
|
|
2760
|
+
newRedemptionProcessingFeeRatio: TSchema.Struct<{
|
|
2761
|
+
numerator: TSchema.Integer;
|
|
2762
|
+
denominator: TSchema.Integer;
|
|
2925
2763
|
}>;
|
|
2926
2764
|
}>;
|
|
2927
2765
|
}>, 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;
|
|
2766
|
+
AddCollateralAsset: TSchema.Struct<{
|
|
2767
|
+
correspondingIAsset: TSchema.ByteArray;
|
|
2768
|
+
collateralAsset: TSchema.Struct<{
|
|
2769
|
+
currencySymbol: TSchema.ByteArray;
|
|
2770
|
+
tokenName: TSchema.ByteArray;
|
|
2771
|
+
}>;
|
|
2772
|
+
assetExtraDecimals: TSchema.Integer;
|
|
2773
|
+
assetPriceInfo: TSchema.Union<[TSchema.Struct<{
|
|
2774
|
+
Delisted: TSchema.Struct<{
|
|
2775
|
+
price: TSchema.Struct<{
|
|
2776
|
+
numerator: TSchema.Integer;
|
|
2777
|
+
denominator: TSchema.Integer;
|
|
2946
2778
|
}>;
|
|
2947
|
-
}
|
|
2779
|
+
}>;
|
|
2780
|
+
}>, TSchema.Struct<{
|
|
2781
|
+
OracleNft: TSchema.Struct<{
|
|
2782
|
+
currencySymbol: TSchema.ByteArray;
|
|
2783
|
+
tokenName: TSchema.ByteArray;
|
|
2784
|
+
}>;
|
|
2785
|
+
}>, TSchema.Struct<{
|
|
2786
|
+
DeferredValidation: TSchema.Struct<{
|
|
2787
|
+
feedValHash: TSchema.ByteArray;
|
|
2788
|
+
}>;
|
|
2789
|
+
}>]>;
|
|
2790
|
+
interestOracleNft: TSchema.Struct<{
|
|
2791
|
+
currencySymbol: TSchema.ByteArray;
|
|
2792
|
+
tokenName: TSchema.ByteArray;
|
|
2948
2793
|
}>;
|
|
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;
|
|
2794
|
+
redemptionRatio: TSchema.Struct<{
|
|
2795
|
+
numerator: TSchema.Integer;
|
|
2796
|
+
denominator: TSchema.Integer;
|
|
2979
2797
|
}>;
|
|
2980
|
-
|
|
2981
|
-
|
|
2798
|
+
maintenanceRatio: TSchema.Struct<{
|
|
2799
|
+
numerator: TSchema.Integer;
|
|
2800
|
+
denominator: TSchema.Integer;
|
|
2982
2801
|
}>;
|
|
2983
|
-
|
|
2984
|
-
|
|
2802
|
+
liquidationRatio: TSchema.Struct<{
|
|
2803
|
+
numerator: TSchema.Integer;
|
|
2804
|
+
denominator: TSchema.Integer;
|
|
2805
|
+
}>;
|
|
2806
|
+
minCollateralAmt: TSchema.Integer;
|
|
2985
2807
|
}>;
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2808
|
+
}>, TSchema.Struct<{
|
|
2809
|
+
UpdateCollateralAsset: TSchema.Struct<{
|
|
2810
|
+
correspondingIAsset: TSchema.ByteArray;
|
|
2811
|
+
collateralAsset: TSchema.Struct<{
|
|
2812
|
+
currencySymbol: TSchema.ByteArray;
|
|
2813
|
+
tokenName: TSchema.ByteArray;
|
|
2992
2814
|
}>;
|
|
2993
|
-
|
|
2994
|
-
|
|
2995
|
-
|
|
2815
|
+
newAssetExtraDecimals: TSchema.Integer;
|
|
2816
|
+
newAssetPriceInfo: TSchema.Union<[TSchema.Struct<{
|
|
2817
|
+
Delisted: TSchema.Struct<{
|
|
2818
|
+
price: TSchema.Struct<{
|
|
2819
|
+
numerator: TSchema.Integer;
|
|
2820
|
+
denominator: TSchema.Integer;
|
|
2821
|
+
}>;
|
|
2822
|
+
}>;
|
|
2996
2823
|
}>, TSchema.Struct<{
|
|
2997
|
-
|
|
2998
|
-
|
|
2824
|
+
OracleNft: TSchema.Struct<{
|
|
2825
|
+
currencySymbol: TSchema.ByteArray;
|
|
2826
|
+
tokenName: TSchema.ByteArray;
|
|
2999
2827
|
}>;
|
|
3000
|
-
|
|
3001
|
-
|
|
3002
|
-
|
|
3003
|
-
|
|
3004
|
-
|
|
3005
|
-
|
|
3006
|
-
|
|
3007
|
-
|
|
3008
|
-
iasset: TSchema.ByteArray;
|
|
3009
|
-
state: TSchema.Struct<{
|
|
3010
|
-
productVal: TSchema.Struct<{
|
|
3011
|
-
value: TSchema.Integer;
|
|
2828
|
+
}>, TSchema.Struct<{
|
|
2829
|
+
DeferredValidation: TSchema.Struct<{
|
|
2830
|
+
feedValHash: TSchema.ByteArray;
|
|
2831
|
+
}>;
|
|
2832
|
+
}>]>;
|
|
2833
|
+
newInterestOracleNft: TSchema.Struct<{
|
|
2834
|
+
currencySymbol: TSchema.ByteArray;
|
|
2835
|
+
tokenName: TSchema.ByteArray;
|
|
3012
2836
|
}>;
|
|
3013
|
-
|
|
3014
|
-
|
|
2837
|
+
newRedemptionRatio: TSchema.Struct<{
|
|
2838
|
+
numerator: TSchema.Integer;
|
|
2839
|
+
denominator: TSchema.Integer;
|
|
3015
2840
|
}>;
|
|
3016
|
-
|
|
3017
|
-
|
|
2841
|
+
newMaintenanceRatio: TSchema.Struct<{
|
|
2842
|
+
numerator: TSchema.Integer;
|
|
2843
|
+
denominator: TSchema.Integer;
|
|
2844
|
+
}>;
|
|
2845
|
+
newLiquidationRatio: TSchema.Struct<{
|
|
2846
|
+
numerator: TSchema.Integer;
|
|
2847
|
+
denominator: TSchema.Integer;
|
|
2848
|
+
}>;
|
|
2849
|
+
newMinCollateralAmt: TSchema.Integer;
|
|
3018
2850
|
}>;
|
|
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
|
-
}>;
|
|
2851
|
+
}>, TSchema.Struct<{
|
|
2852
|
+
ProposeStableswapPool: TSchema.Struct<{
|
|
2853
|
+
iasset: TSchema.ByteArray;
|
|
2854
|
+
collateralAsset: TSchema.Struct<{
|
|
2855
|
+
currencySymbol: TSchema.ByteArray;
|
|
2856
|
+
tokenName: TSchema.ByteArray;
|
|
3048
2857
|
}>;
|
|
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;
|
|
2858
|
+
collateralToIassetRatio: TSchema.Struct<{
|
|
2859
|
+
numerator: TSchema.Integer;
|
|
2860
|
+
denominator: TSchema.Integer;
|
|
3072
2861
|
}>;
|
|
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;
|
|
2862
|
+
mintingFeeRatio: TSchema.Struct<{
|
|
2863
|
+
numerator: TSchema.Integer;
|
|
2864
|
+
denominator: TSchema.Integer;
|
|
3084
2865
|
}>;
|
|
3085
|
-
|
|
3086
|
-
|
|
3087
|
-
|
|
3088
|
-
|
|
3089
|
-
|
|
3090
|
-
|
|
3091
|
-
|
|
2866
|
+
redemptionFeeRatio: TSchema.Struct<{
|
|
2867
|
+
numerator: TSchema.Integer;
|
|
2868
|
+
denominator: TSchema.Integer;
|
|
2869
|
+
}>;
|
|
2870
|
+
feeManager: TSchema.NullOr<TSchema.ByteArray>;
|
|
2871
|
+
minMintingAmount: TSchema.Integer;
|
|
2872
|
+
minRedemptionAmount: TSchema.Integer;
|
|
2873
|
+
stableswapValHash: TSchema.ByteArray;
|
|
3092
2874
|
}>;
|
|
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
2875
|
}>, TSchema.Struct<{
|
|
3126
|
-
|
|
3127
|
-
|
|
3128
|
-
|
|
2876
|
+
ModifyStableswapPool: TSchema.Struct<{
|
|
2877
|
+
iasset: TSchema.ByteArray;
|
|
2878
|
+
collateralAsset: TSchema.Struct<{
|
|
2879
|
+
currencySymbol: TSchema.ByteArray;
|
|
2880
|
+
tokenName: TSchema.ByteArray;
|
|
2881
|
+
}>;
|
|
2882
|
+
newCollateralToIassetRatio: TSchema.Struct<{
|
|
2883
|
+
numerator: TSchema.Integer;
|
|
2884
|
+
denominator: TSchema.Integer;
|
|
2885
|
+
}>;
|
|
2886
|
+
newMintingFeeRatio: TSchema.Struct<{
|
|
2887
|
+
numerator: TSchema.Integer;
|
|
2888
|
+
denominator: TSchema.Integer;
|
|
2889
|
+
}>;
|
|
2890
|
+
newRedemptionFeeRatio: TSchema.Struct<{
|
|
2891
|
+
numerator: TSchema.Integer;
|
|
2892
|
+
denominator: TSchema.Integer;
|
|
2893
|
+
}>;
|
|
2894
|
+
newMintingEnabled: TSchema.Boolean;
|
|
2895
|
+
newRedemptionEnabled: TSchema.Boolean;
|
|
2896
|
+
newFeeManager: TSchema.NullOr<TSchema.ByteArray>;
|
|
2897
|
+
newMinMintingAmount: TSchema.Integer;
|
|
2898
|
+
newMinRedemptionAmount: TSchema.Integer;
|
|
2899
|
+
newStableswapValHash: TSchema.ByteArray;
|
|
3129
2900
|
}>;
|
|
3130
|
-
}>]>, TSchema.NullOr<TSchema.Union<[TSchema.Struct<{
|
|
3131
|
-
StabilityPoolListIdx: TSchema.Integer;
|
|
3132
2901
|
}>, 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
|
-
}>]>;
|
|
2902
|
+
ModifyProtocolParams: TSchema.Struct<{
|
|
2903
|
+
newParams: TSchema.Struct<{
|
|
2904
|
+
proposalDeposit: TSchema.Integer;
|
|
2905
|
+
votingPeriod: TSchema.Integer;
|
|
2906
|
+
effectiveDelay: TSchema.Integer;
|
|
2907
|
+
expirationPeriod: TSchema.Integer;
|
|
2908
|
+
proposingPeriod: TSchema.Integer;
|
|
2909
|
+
totalShards: TSchema.Integer;
|
|
2910
|
+
minimumQuorum: TSchema.Integer;
|
|
2911
|
+
maxTreasuryLovelaceSpend: TSchema.Integer;
|
|
2912
|
+
maxTreasuryIndySpend: TSchema.Integer;
|
|
2913
|
+
cdpRedemptionRequiredSignature: TSchema.NullOr<TSchema.ByteArray>;
|
|
2914
|
+
electorate: TSchema.Integer;
|
|
2915
|
+
foundationMultisig: TSchema.Union<[TSchema.Struct<{
|
|
2916
|
+
Signature: TSchema.Struct<{
|
|
2917
|
+
keyHash: TSchema.ByteArray;
|
|
2918
|
+
}>;
|
|
3157
2919
|
}>, TSchema.Struct<{
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
certificateIndex: TSchema.Integer;
|
|
2920
|
+
AtLeast: TSchema.Struct<{
|
|
2921
|
+
required: TSchema.Integer;
|
|
2922
|
+
authSignatories: TSchema.Array<effect_Schema.SchemaClass<Data$1.Data, Data$1.Data, never>>;
|
|
3162
2923
|
}>;
|
|
2924
|
+
}>]>;
|
|
2925
|
+
}>;
|
|
2926
|
+
}>;
|
|
2927
|
+
}>, TSchema.Struct<{
|
|
2928
|
+
UpgradeProtocol: TSchema.Struct<{
|
|
2929
|
+
content: TSchema.Struct<{
|
|
2930
|
+
upgradeId: TSchema.Integer;
|
|
2931
|
+
upgradePaths: TSchema.Array<TSchema.Tuple<[TSchema.ByteArray, TSchema.Struct<{
|
|
2932
|
+
upgradeSymbol: TSchema.ByteArray;
|
|
3163
2933
|
}>]>>;
|
|
3164
2934
|
}>;
|
|
3165
2935
|
}>;
|
|
3166
2936
|
}>, TSchema.Struct<{
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
2937
|
+
TextProposal: TSchema.ByteArray;
|
|
2938
|
+
}>]>;
|
|
2939
|
+
passedTime: TSchema.Integer;
|
|
2940
|
+
votingEndTime: TSchema.Integer;
|
|
2941
|
+
protocolVersion: TSchema.Integer;
|
|
2942
|
+
treasuryWithdrawal: TSchema.NullOr<TSchema.Struct<{
|
|
2943
|
+
destination: TSchema.Struct<{
|
|
2944
|
+
paymentCredential: TSchema.Union<[TSchema.Struct<{
|
|
2945
|
+
PublicKeyCredential: TSchema.ByteArray;
|
|
2946
|
+
}>, TSchema.Struct<{
|
|
2947
|
+
ScriptCredential: TSchema.ByteArray;
|
|
2948
|
+
}>]>;
|
|
2949
|
+
stakeCredential: TSchema.NullOr<TSchema.Union<[TSchema.Struct<{
|
|
2950
|
+
Inline: TSchema.Union<[TSchema.Struct<{
|
|
3170
2951
|
PublicKeyCredential: TSchema.ByteArray;
|
|
3171
2952
|
}>, TSchema.Struct<{
|
|
3172
2953
|
ScriptCredential: TSchema.ByteArray;
|
|
3173
2954
|
}>]>;
|
|
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;
|
|
2955
|
+
}>, TSchema.Struct<{
|
|
2956
|
+
Pointer: TSchema.Struct<{
|
|
2957
|
+
slotNumber: TSchema.Integer;
|
|
2958
|
+
transactionIndex: TSchema.Integer;
|
|
2959
|
+
certificateIndex: TSchema.Integer;
|
|
2960
|
+
}>;
|
|
2961
|
+
}>]>>;
|
|
3189
2962
|
}>;
|
|
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
|
-
];
|
|
2963
|
+
value: TSchema.Array<TSchema.Struct<{
|
|
2964
|
+
currencySymbol: TSchema.ByteArray;
|
|
2965
|
+
tokenName: TSchema.ByteArray;
|
|
2966
|
+
amount: TSchema.Integer;
|
|
2967
|
+
}>>;
|
|
2968
|
+
}>>;
|
|
2969
|
+
}>;
|
|
2970
|
+
type ExecuteDatum = typeof ExecuteDatumSchema.Type;
|
|
2971
|
+
declare function serialiseExecuteDatum(d: ExecuteDatum): string;
|
|
2972
|
+
declare function parseExecuteDatum(datum: string): option.Option<ExecuteDatum>;
|
|
2973
|
+
declare function parseExecuteDatumOrThrow(datum: string): ExecuteDatum;
|
|
3299
2974
|
|
|
3300
|
-
declare const
|
|
3301
|
-
declare const
|
|
3302
|
-
declare const ONE_DAY: bigint;
|
|
3303
|
-
declare const ONE_YEAR: bigint;
|
|
2975
|
+
declare const mkExecuteValidator: (params: ExecuteParams) => SpendingValidator;
|
|
2976
|
+
declare const mkExecuteValidatorFromSP: (params: ExecuteParamsSP) => SpendingValidator;
|
|
3304
2977
|
|
|
3305
|
-
declare const
|
|
2978
|
+
declare const PriceOracleParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
2979
|
+
owner: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2980
|
+
/** Milliseconds */
|
|
2981
|
+
biasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2982
|
+
/** Milliseconds */
|
|
2983
|
+
expirationPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2984
|
+
}>;
|
|
2985
|
+
type PriceOracleParams = Data.Static<typeof PriceOracleParamsSchema>;
|
|
2986
|
+
declare function castPriceOracleParams(params: PriceOracleParams): Data;
|
|
3306
2987
|
|
|
3307
|
-
declare const
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
2988
|
+
declare const SPIntegerSchema: TSchema.Struct<{
|
|
2989
|
+
value: TSchema.Integer;
|
|
2990
|
+
}>;
|
|
2991
|
+
type SPInteger = typeof SPIntegerSchema.Type;
|
|
2992
|
+
declare const AccountActionSchema: TSchema.Union<[TSchema.Literal<["Create"]>, TSchema.Struct<{
|
|
2993
|
+
Adjust: TSchema.Struct<{
|
|
2994
|
+
amount: TSchema.Integer;
|
|
2995
|
+
outputAddress: TSchema.Struct<{
|
|
2996
|
+
paymentCredential: TSchema.Union<[TSchema.Struct<{
|
|
2997
|
+
PublicKeyCredential: TSchema.ByteArray;
|
|
2998
|
+
}>, TSchema.Struct<{
|
|
2999
|
+
ScriptCredential: TSchema.ByteArray;
|
|
3000
|
+
}>]>;
|
|
3001
|
+
stakeCredential: TSchema.NullOr<TSchema.Union<[TSchema.Struct<{
|
|
3002
|
+
Inline: TSchema.Union<[TSchema.Struct<{
|
|
3003
|
+
PublicKeyCredential: TSchema.ByteArray;
|
|
3004
|
+
}>, TSchema.Struct<{
|
|
3005
|
+
ScriptCredential: TSchema.ByteArray;
|
|
3006
|
+
}>]>;
|
|
3007
|
+
}>, TSchema.Struct<{
|
|
3008
|
+
Pointer: TSchema.Struct<{
|
|
3009
|
+
slotNumber: TSchema.Integer;
|
|
3010
|
+
transactionIndex: TSchema.Integer;
|
|
3011
|
+
certificateIndex: TSchema.Integer;
|
|
3012
|
+
}>;
|
|
3013
|
+
}>]>>;
|
|
3014
|
+
}>;
|
|
3315
3015
|
}>;
|
|
3316
|
-
|
|
3317
|
-
|
|
3318
|
-
|
|
3016
|
+
}>, TSchema.Struct<{
|
|
3017
|
+
Close: TSchema.Struct<{
|
|
3018
|
+
outputAddress: TSchema.Struct<{
|
|
3019
|
+
paymentCredential: TSchema.Union<[TSchema.Struct<{
|
|
3020
|
+
PublicKeyCredential: TSchema.ByteArray;
|
|
3021
|
+
}>, TSchema.Struct<{
|
|
3022
|
+
ScriptCredential: TSchema.ByteArray;
|
|
3023
|
+
}>]>;
|
|
3024
|
+
stakeCredential: TSchema.NullOr<TSchema.Union<[TSchema.Struct<{
|
|
3025
|
+
Inline: TSchema.Union<[TSchema.Struct<{
|
|
3026
|
+
PublicKeyCredential: TSchema.ByteArray;
|
|
3027
|
+
}>, TSchema.Struct<{
|
|
3028
|
+
ScriptCredential: TSchema.ByteArray;
|
|
3029
|
+
}>]>;
|
|
3030
|
+
}>, TSchema.Struct<{
|
|
3031
|
+
Pointer: TSchema.Struct<{
|
|
3032
|
+
slotNumber: TSchema.Integer;
|
|
3033
|
+
transactionIndex: TSchema.Integer;
|
|
3034
|
+
certificateIndex: TSchema.Integer;
|
|
3035
|
+
}>;
|
|
3036
|
+
}>]>>;
|
|
3037
|
+
}>;
|
|
3038
|
+
maxTxFee: TSchema.Integer;
|
|
3319
3039
|
}>;
|
|
3320
|
-
|
|
3321
|
-
|
|
3322
|
-
|
|
3040
|
+
}>]>;
|
|
3041
|
+
type AccountAction = typeof AccountActionSchema.Type;
|
|
3042
|
+
declare const SumSnapshotSchema: TSchema.Struct<{
|
|
3043
|
+
sumVal: TSchema.Struct<{
|
|
3044
|
+
value: TSchema.Integer;
|
|
3323
3045
|
}>;
|
|
3324
|
-
|
|
3325
|
-
|
|
3326
|
-
|
|
3046
|
+
isLastInEpoch: TSchema.Boolean;
|
|
3047
|
+
isFirstSnapshot: TSchema.Boolean;
|
|
3048
|
+
}>;
|
|
3049
|
+
type SumSnapshot = typeof SumSnapshotSchema.Type;
|
|
3050
|
+
declare const EpochToScaleKeySchema: TSchema.Struct<{
|
|
3051
|
+
epoch: TSchema.Integer;
|
|
3052
|
+
scale: TSchema.Integer;
|
|
3053
|
+
}>;
|
|
3054
|
+
type EpochToScaleKey = typeof EpochToScaleKeySchema.Type;
|
|
3055
|
+
declare const EpochToScaleToSumEntrySchema: TSchema.Tuple<[TSchema.Struct<{
|
|
3056
|
+
epoch: TSchema.Integer;
|
|
3057
|
+
scale: TSchema.Integer;
|
|
3058
|
+
}>, TSchema.Struct<{
|
|
3059
|
+
sumVal: TSchema.Struct<{
|
|
3060
|
+
value: TSchema.Integer;
|
|
3327
3061
|
}>;
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3062
|
+
isLastInEpoch: TSchema.Boolean;
|
|
3063
|
+
isFirstSnapshot: TSchema.Boolean;
|
|
3064
|
+
}>]>;
|
|
3065
|
+
type EpochToScaleToSumEntry = typeof EpochToScaleToSumEntrySchema.Type;
|
|
3066
|
+
declare const StateSnapshotSchema: TSchema.Struct<{
|
|
3067
|
+
productVal: TSchema.Struct<{
|
|
3068
|
+
value: TSchema.Integer;
|
|
3331
3069
|
}>;
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
3070
|
+
depositVal: TSchema.Struct<{
|
|
3071
|
+
value: TSchema.Integer;
|
|
3335
3072
|
}>;
|
|
3336
|
-
|
|
3337
|
-
|
|
3338
|
-
|
|
3073
|
+
epoch: TSchema.Integer;
|
|
3074
|
+
scale: TSchema.Integer;
|
|
3075
|
+
}>;
|
|
3076
|
+
type StateSnapshot = typeof StateSnapshotSchema.Type;
|
|
3077
|
+
declare const AssetSnapshotSchema: TSchema.Struct<{
|
|
3078
|
+
currentSumVal: TSchema.Struct<{
|
|
3079
|
+
value: TSchema.Integer;
|
|
3339
3080
|
}>;
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3081
|
+
epoch2scale2sum: TSchema.Array<TSchema.Tuple<[TSchema.Struct<{
|
|
3082
|
+
epoch: TSchema.Integer;
|
|
3083
|
+
scale: TSchema.Integer;
|
|
3084
|
+
}>, TSchema.Struct<{
|
|
3085
|
+
sumVal: TSchema.Struct<{
|
|
3086
|
+
value: TSchema.Integer;
|
|
3087
|
+
}>;
|
|
3088
|
+
isLastInEpoch: TSchema.Boolean;
|
|
3089
|
+
isFirstSnapshot: TSchema.Boolean;
|
|
3090
|
+
}>]>>;
|
|
3345
3091
|
}>;
|
|
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
|
-
}>;
|
|
3092
|
+
type AssetSnapshot = typeof AssetSnapshotSchema.Type;
|
|
3093
|
+
declare const AssetStateSchema: TSchema.Tuple<[TSchema.Struct<{
|
|
3094
|
+
currencySymbol: TSchema.ByteArray;
|
|
3095
|
+
tokenName: TSchema.ByteArray;
|
|
3096
|
+
}>, TSchema.Struct<{
|
|
3097
|
+
currentSumVal: TSchema.Struct<{
|
|
3098
|
+
value: TSchema.Integer;
|
|
3099
|
+
}>;
|
|
3100
|
+
epoch2scale2sum: TSchema.Array<TSchema.Tuple<[TSchema.Struct<{
|
|
3101
|
+
epoch: TSchema.Integer;
|
|
3102
|
+
scale: TSchema.Integer;
|
|
3103
|
+
}>, TSchema.Struct<{
|
|
3104
|
+
sumVal: TSchema.Struct<{
|
|
3105
|
+
value: TSchema.Integer;
|
|
3375
3106
|
}>;
|
|
3107
|
+
isLastInEpoch: TSchema.Boolean;
|
|
3108
|
+
isFirstSnapshot: TSchema.Boolean;
|
|
3109
|
+
}>]>>;
|
|
3110
|
+
}>]>;
|
|
3111
|
+
type AssetState = typeof AssetStateSchema.Type;
|
|
3112
|
+
declare const StabilityPoolContentSchema: TSchema.Struct<{
|
|
3113
|
+
iasset: TSchema.ByteArray;
|
|
3114
|
+
state: TSchema.Struct<{
|
|
3115
|
+
productVal: TSchema.Struct<{
|
|
3116
|
+
value: TSchema.Integer;
|
|
3117
|
+
}>;
|
|
3118
|
+
depositVal: TSchema.Struct<{
|
|
3119
|
+
value: TSchema.Integer;
|
|
3120
|
+
}>;
|
|
3121
|
+
epoch: TSchema.Integer;
|
|
3122
|
+
scale: TSchema.Integer;
|
|
3123
|
+
}>;
|
|
3124
|
+
assetStates: TSchema.Array<TSchema.Tuple<[TSchema.Struct<{
|
|
3125
|
+
currencySymbol: TSchema.ByteArray;
|
|
3126
|
+
tokenName: TSchema.ByteArray;
|
|
3376
3127
|
}>, 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;
|
|
3128
|
+
currentSumVal: TSchema.Struct<{
|
|
3129
|
+
value: TSchema.Integer;
|
|
3130
|
+
}>;
|
|
3131
|
+
epoch2scale2sum: TSchema.Array<TSchema.Tuple<[TSchema.Struct<{
|
|
3132
|
+
epoch: TSchema.Integer;
|
|
3133
|
+
scale: TSchema.Integer;
|
|
3134
|
+
}>, TSchema.Struct<{
|
|
3135
|
+
sumVal: TSchema.Struct<{
|
|
3136
|
+
value: TSchema.Integer;
|
|
3398
3137
|
}>;
|
|
3138
|
+
isLastInEpoch: TSchema.Boolean;
|
|
3139
|
+
isFirstSnapshot: TSchema.Boolean;
|
|
3140
|
+
}>]>>;
|
|
3141
|
+
}>]>>;
|
|
3142
|
+
}>;
|
|
3143
|
+
type StabilityPoolContent = typeof StabilityPoolContentSchema.Type;
|
|
3144
|
+
declare const AccountContentSchema: TSchema.Struct<{
|
|
3145
|
+
owner: TSchema.ByteArray;
|
|
3146
|
+
iasset: TSchema.ByteArray;
|
|
3147
|
+
state: TSchema.Struct<{
|
|
3148
|
+
productVal: TSchema.Struct<{
|
|
3149
|
+
value: TSchema.Integer;
|
|
3399
3150
|
}>;
|
|
3151
|
+
depositVal: TSchema.Struct<{
|
|
3152
|
+
value: TSchema.Integer;
|
|
3153
|
+
}>;
|
|
3154
|
+
epoch: TSchema.Integer;
|
|
3155
|
+
scale: TSchema.Integer;
|
|
3156
|
+
}>;
|
|
3157
|
+
assetSums: TSchema.Array<TSchema.Tuple<[TSchema.Struct<{
|
|
3158
|
+
currencySymbol: TSchema.ByteArray;
|
|
3159
|
+
tokenName: TSchema.ByteArray;
|
|
3400
3160
|
}>, TSchema.Struct<{
|
|
3401
|
-
|
|
3402
|
-
|
|
3403
|
-
|
|
3404
|
-
|
|
3405
|
-
|
|
3406
|
-
|
|
3407
|
-
|
|
3408
|
-
|
|
3409
|
-
|
|
3410
|
-
|
|
3411
|
-
|
|
3412
|
-
|
|
3161
|
+
value: TSchema.Integer;
|
|
3162
|
+
}>]>>;
|
|
3163
|
+
request: TSchema.NullOr<TSchema.Union<[TSchema.Literal<["Create"]>, TSchema.Struct<{
|
|
3164
|
+
Adjust: TSchema.Struct<{
|
|
3165
|
+
amount: TSchema.Integer;
|
|
3166
|
+
outputAddress: TSchema.Struct<{
|
|
3167
|
+
paymentCredential: TSchema.Union<[TSchema.Struct<{
|
|
3168
|
+
PublicKeyCredential: TSchema.ByteArray;
|
|
3169
|
+
}>, TSchema.Struct<{
|
|
3170
|
+
ScriptCredential: TSchema.ByteArray;
|
|
3171
|
+
}>]>;
|
|
3172
|
+
stakeCredential: TSchema.NullOr<TSchema.Union<[TSchema.Struct<{
|
|
3173
|
+
Inline: TSchema.Union<[TSchema.Struct<{
|
|
3174
|
+
PublicKeyCredential: TSchema.ByteArray;
|
|
3175
|
+
}>, TSchema.Struct<{
|
|
3176
|
+
ScriptCredential: TSchema.ByteArray;
|
|
3177
|
+
}>]>;
|
|
3178
|
+
}>, TSchema.Struct<{
|
|
3179
|
+
Pointer: TSchema.Struct<{
|
|
3180
|
+
slotNumber: TSchema.Integer;
|
|
3181
|
+
transactionIndex: TSchema.Integer;
|
|
3182
|
+
certificateIndex: TSchema.Integer;
|
|
3413
3183
|
}>;
|
|
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;
|
|
3184
|
+
}>]>>;
|
|
3436
3185
|
}>;
|
|
3437
|
-
|
|
3438
|
-
|
|
3439
|
-
|
|
3186
|
+
}>;
|
|
3187
|
+
}>, TSchema.Struct<{
|
|
3188
|
+
Close: TSchema.Struct<{
|
|
3189
|
+
outputAddress: TSchema.Struct<{
|
|
3190
|
+
paymentCredential: TSchema.Union<[TSchema.Struct<{
|
|
3191
|
+
PublicKeyCredential: TSchema.ByteArray;
|
|
3192
|
+
}>, TSchema.Struct<{
|
|
3193
|
+
ScriptCredential: TSchema.ByteArray;
|
|
3194
|
+
}>]>;
|
|
3195
|
+
stakeCredential: TSchema.NullOr<TSchema.Union<[TSchema.Struct<{
|
|
3196
|
+
Inline: TSchema.Union<[TSchema.Struct<{
|
|
3197
|
+
PublicKeyCredential: TSchema.ByteArray;
|
|
3198
|
+
}>, TSchema.Struct<{
|
|
3199
|
+
ScriptCredential: TSchema.ByteArray;
|
|
3200
|
+
}>]>;
|
|
3201
|
+
}>, TSchema.Struct<{
|
|
3202
|
+
Pointer: TSchema.Struct<{
|
|
3203
|
+
slotNumber: TSchema.Integer;
|
|
3204
|
+
transactionIndex: TSchema.Integer;
|
|
3205
|
+
certificateIndex: TSchema.Integer;
|
|
3206
|
+
}>;
|
|
3207
|
+
}>]>>;
|
|
3440
3208
|
}>;
|
|
3441
|
-
|
|
3209
|
+
maxTxFee: TSchema.Integer;
|
|
3442
3210
|
}>;
|
|
3211
|
+
}>]>>;
|
|
3212
|
+
lastRequestProcessingTime: TSchema.Integer;
|
|
3213
|
+
}>;
|
|
3214
|
+
type AccountContent = typeof AccountContentSchema.Type;
|
|
3215
|
+
declare const SnapshotEpochToScaleToSumContentSchema: TSchema.Struct<{
|
|
3216
|
+
snapshot: TSchema.Array<TSchema.Tuple<[TSchema.Struct<{
|
|
3217
|
+
epoch: TSchema.Integer;
|
|
3218
|
+
scale: TSchema.Integer;
|
|
3443
3219
|
}>, TSchema.Struct<{
|
|
3444
|
-
|
|
3445
|
-
|
|
3446
|
-
|
|
3447
|
-
|
|
3448
|
-
|
|
3220
|
+
sumVal: TSchema.Struct<{
|
|
3221
|
+
value: TSchema.Integer;
|
|
3222
|
+
}>;
|
|
3223
|
+
isLastInEpoch: TSchema.Boolean;
|
|
3224
|
+
isFirstSnapshot: TSchema.Boolean;
|
|
3225
|
+
}>]>>;
|
|
3226
|
+
iasset: TSchema.ByteArray;
|
|
3227
|
+
collateralAsset: TSchema.Struct<{
|
|
3228
|
+
currencySymbol: TSchema.ByteArray;
|
|
3229
|
+
tokenName: TSchema.ByteArray;
|
|
3230
|
+
}>;
|
|
3231
|
+
}>;
|
|
3232
|
+
type SnapshotEpochToScaleToSumContent = typeof SnapshotEpochToScaleToSumContentSchema.Type;
|
|
3233
|
+
declare const StabilityPoolDatumSchema: TSchema.Union<[TSchema.Struct<{
|
|
3234
|
+
StabilityPool: TSchema.Struct<{
|
|
3235
|
+
iasset: TSchema.ByteArray;
|
|
3236
|
+
state: TSchema.Struct<{
|
|
3237
|
+
productVal: TSchema.Struct<{
|
|
3238
|
+
value: TSchema.Integer;
|
|
3239
|
+
}>;
|
|
3240
|
+
depositVal: TSchema.Struct<{
|
|
3241
|
+
value: TSchema.Integer;
|
|
3242
|
+
}>;
|
|
3243
|
+
epoch: TSchema.Integer;
|
|
3244
|
+
scale: TSchema.Integer;
|
|
3245
|
+
}>;
|
|
3246
|
+
assetStates: TSchema.Array<TSchema.Tuple<[TSchema.Struct<{
|
|
3247
|
+
currencySymbol: TSchema.ByteArray;
|
|
3248
|
+
tokenName: TSchema.ByteArray;
|
|
3249
|
+
}>, TSchema.Struct<{
|
|
3250
|
+
currentSumVal: TSchema.Struct<{
|
|
3251
|
+
value: TSchema.Integer;
|
|
3449
3252
|
}>;
|
|
3450
|
-
|
|
3451
|
-
|
|
3452
|
-
|
|
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
|
-
}>;
|
|
3253
|
+
epoch2scale2sum: TSchema.Array<TSchema.Tuple<[TSchema.Struct<{
|
|
3254
|
+
epoch: TSchema.Integer;
|
|
3255
|
+
scale: TSchema.Integer;
|
|
3463
3256
|
}>, TSchema.Struct<{
|
|
3464
|
-
|
|
3465
|
-
|
|
3257
|
+
sumVal: TSchema.Struct<{
|
|
3258
|
+
value: TSchema.Integer;
|
|
3466
3259
|
}>;
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3260
|
+
isLastInEpoch: TSchema.Boolean;
|
|
3261
|
+
isFirstSnapshot: TSchema.Boolean;
|
|
3262
|
+
}>]>>;
|
|
3263
|
+
}>]>>;
|
|
3264
|
+
}>;
|
|
3265
|
+
}>, TSchema.Struct<{
|
|
3266
|
+
Account: TSchema.Struct<{
|
|
3267
|
+
owner: TSchema.ByteArray;
|
|
3268
|
+
iasset: TSchema.ByteArray;
|
|
3269
|
+
state: TSchema.Struct<{
|
|
3270
|
+
productVal: TSchema.Struct<{
|
|
3271
|
+
value: TSchema.Integer;
|
|
3479
3272
|
}>;
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
denominator: TSchema.Integer;
|
|
3273
|
+
depositVal: TSchema.Struct<{
|
|
3274
|
+
value: TSchema.Integer;
|
|
3483
3275
|
}>;
|
|
3484
|
-
|
|
3276
|
+
epoch: TSchema.Integer;
|
|
3277
|
+
scale: TSchema.Integer;
|
|
3485
3278
|
}>;
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3491
|
-
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3279
|
+
assetSums: TSchema.Array<TSchema.Tuple<[TSchema.Struct<{
|
|
3280
|
+
currencySymbol: TSchema.ByteArray;
|
|
3281
|
+
tokenName: TSchema.ByteArray;
|
|
3282
|
+
}>, TSchema.Struct<{
|
|
3283
|
+
value: TSchema.Integer;
|
|
3284
|
+
}>]>>;
|
|
3285
|
+
request: TSchema.NullOr<TSchema.Union<[TSchema.Literal<["Create"]>, TSchema.Struct<{
|
|
3286
|
+
Adjust: TSchema.Struct<{
|
|
3287
|
+
amount: TSchema.Integer;
|
|
3288
|
+
outputAddress: TSchema.Struct<{
|
|
3289
|
+
paymentCredential: TSchema.Union<[TSchema.Struct<{
|
|
3290
|
+
PublicKeyCredential: TSchema.ByteArray;
|
|
3291
|
+
}>, TSchema.Struct<{
|
|
3292
|
+
ScriptCredential: TSchema.ByteArray;
|
|
3293
|
+
}>]>;
|
|
3294
|
+
stakeCredential: TSchema.NullOr<TSchema.Union<[TSchema.Struct<{
|
|
3295
|
+
Inline: TSchema.Union<[TSchema.Struct<{
|
|
3296
|
+
PublicKeyCredential: TSchema.ByteArray;
|
|
3297
|
+
}>, TSchema.Struct<{
|
|
3298
|
+
ScriptCredential: TSchema.ByteArray;
|
|
3299
|
+
}>]>;
|
|
3300
|
+
}>, TSchema.Struct<{
|
|
3301
|
+
Pointer: TSchema.Struct<{
|
|
3302
|
+
slotNumber: TSchema.Integer;
|
|
3303
|
+
transactionIndex: TSchema.Integer;
|
|
3304
|
+
certificateIndex: TSchema.Integer;
|
|
3305
|
+
}>;
|
|
3306
|
+
}>]>>;
|
|
3307
|
+
}>;
|
|
3496
3308
|
}>;
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3309
|
+
}>, TSchema.Struct<{
|
|
3310
|
+
Close: TSchema.Struct<{
|
|
3311
|
+
outputAddress: TSchema.Struct<{
|
|
3312
|
+
paymentCredential: TSchema.Union<[TSchema.Struct<{
|
|
3313
|
+
PublicKeyCredential: TSchema.ByteArray;
|
|
3314
|
+
}>, TSchema.Struct<{
|
|
3315
|
+
ScriptCredential: TSchema.ByteArray;
|
|
3316
|
+
}>]>;
|
|
3317
|
+
stakeCredential: TSchema.NullOr<TSchema.Union<[TSchema.Struct<{
|
|
3318
|
+
Inline: TSchema.Union<[TSchema.Struct<{
|
|
3319
|
+
PublicKeyCredential: TSchema.ByteArray;
|
|
3320
|
+
}>, TSchema.Struct<{
|
|
3321
|
+
ScriptCredential: TSchema.ByteArray;
|
|
3322
|
+
}>]>;
|
|
3323
|
+
}>, TSchema.Struct<{
|
|
3324
|
+
Pointer: TSchema.Struct<{
|
|
3325
|
+
slotNumber: TSchema.Integer;
|
|
3326
|
+
transactionIndex: TSchema.Integer;
|
|
3327
|
+
certificateIndex: TSchema.Integer;
|
|
3328
|
+
}>;
|
|
3329
|
+
}>]>>;
|
|
3330
|
+
}>;
|
|
3331
|
+
maxTxFee: TSchema.Integer;
|
|
3500
3332
|
}>;
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3333
|
+
}>]>>;
|
|
3334
|
+
lastRequestProcessingTime: TSchema.Integer;
|
|
3335
|
+
}>;
|
|
3336
|
+
}>, TSchema.Struct<{
|
|
3337
|
+
SnapshotEpochToScaleToSum: TSchema.Struct<{
|
|
3338
|
+
snapshot: TSchema.Array<TSchema.Tuple<[TSchema.Struct<{
|
|
3339
|
+
epoch: TSchema.Integer;
|
|
3340
|
+
scale: TSchema.Integer;
|
|
3341
|
+
}>, TSchema.Struct<{
|
|
3342
|
+
sumVal: TSchema.Struct<{
|
|
3343
|
+
value: TSchema.Integer;
|
|
3504
3344
|
}>;
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3345
|
+
isLastInEpoch: TSchema.Boolean;
|
|
3346
|
+
isFirstSnapshot: TSchema.Boolean;
|
|
3347
|
+
}>]>>;
|
|
3348
|
+
iasset: TSchema.ByteArray;
|
|
3349
|
+
collateralAsset: TSchema.Struct<{
|
|
3350
|
+
currencySymbol: TSchema.ByteArray;
|
|
3351
|
+
tokenName: TSchema.ByteArray;
|
|
3509
3352
|
}>;
|
|
3353
|
+
}>;
|
|
3354
|
+
}>]>;
|
|
3355
|
+
declare const E2S2SIndexSchema: TSchema.Union<[TSchema.Struct<{
|
|
3356
|
+
StabilityPoolListIdx: TSchema.Integer;
|
|
3357
|
+
}>, TSchema.Struct<{
|
|
3358
|
+
RefInputIdx: TSchema.Struct<{
|
|
3359
|
+
refInputIdx: TSchema.Integer;
|
|
3360
|
+
snapshotListIdx: TSchema.Integer;
|
|
3361
|
+
}>;
|
|
3362
|
+
}>]>;
|
|
3363
|
+
type E2S2SIndex = typeof E2S2SIndexSchema.Type;
|
|
3364
|
+
declare const E2S2SIndicesPerAssetSchema: TSchema.Array<TSchema.Tuple<[TSchema.Union<[TSchema.Struct<{
|
|
3365
|
+
StabilityPoolListIdx: TSchema.Integer;
|
|
3366
|
+
}>, TSchema.Struct<{
|
|
3367
|
+
RefInputIdx: TSchema.Struct<{
|
|
3368
|
+
refInputIdx: TSchema.Integer;
|
|
3369
|
+
snapshotListIdx: TSchema.Integer;
|
|
3370
|
+
}>;
|
|
3371
|
+
}>]>, TSchema.NullOr<TSchema.Union<[TSchema.Struct<{
|
|
3372
|
+
StabilityPoolListIdx: TSchema.Integer;
|
|
3373
|
+
}>, TSchema.Struct<{
|
|
3374
|
+
RefInputIdx: TSchema.Struct<{
|
|
3375
|
+
refInputIdx: TSchema.Integer;
|
|
3376
|
+
snapshotListIdx: TSchema.Integer;
|
|
3377
|
+
}>;
|
|
3378
|
+
}>]>>]>>;
|
|
3379
|
+
type E2S2SIndicesPerAsset = typeof E2S2SIndicesPerAssetSchema.Type;
|
|
3380
|
+
declare const ProcessRequestAccountContentSchema: TSchema.Struct<{
|
|
3381
|
+
poolInputIdx: TSchema.Integer;
|
|
3382
|
+
accountInputIdx: TSchema.Integer;
|
|
3383
|
+
e2s2sIdxs: TSchema.Array<TSchema.Tuple<[TSchema.Union<[TSchema.Struct<{
|
|
3384
|
+
StabilityPoolListIdx: TSchema.Integer;
|
|
3510
3385
|
}>, 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;
|
|
3386
|
+
RefInputIdx: TSchema.Struct<{
|
|
3387
|
+
refInputIdx: TSchema.Integer;
|
|
3388
|
+
snapshotListIdx: TSchema.Integer;
|
|
3535
3389
|
}>;
|
|
3390
|
+
}>]>, TSchema.NullOr<TSchema.Union<[TSchema.Struct<{
|
|
3391
|
+
StabilityPoolListIdx: TSchema.Integer;
|
|
3536
3392
|
}>, TSchema.Struct<{
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3543
|
-
|
|
3544
|
-
|
|
3545
|
-
|
|
3546
|
-
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
keyHash: TSchema.ByteArray;
|
|
3553
|
-
}>;
|
|
3393
|
+
RefInputIdx: TSchema.Struct<{
|
|
3394
|
+
refInputIdx: TSchema.Integer;
|
|
3395
|
+
snapshotListIdx: TSchema.Integer;
|
|
3396
|
+
}>;
|
|
3397
|
+
}>]>>]>>;
|
|
3398
|
+
currentTime: TSchema.Integer;
|
|
3399
|
+
}>;
|
|
3400
|
+
type ProcessRequestAccountContent = typeof ProcessRequestAccountContentSchema.Type;
|
|
3401
|
+
declare const StabilityPoolRedeemerSchema: TSchema.Union<[TSchema.Struct<{
|
|
3402
|
+
RequestAction: TSchema.Union<[TSchema.Literal<["Create"]>, TSchema.Struct<{
|
|
3403
|
+
Adjust: TSchema.Struct<{
|
|
3404
|
+
amount: TSchema.Integer;
|
|
3405
|
+
outputAddress: TSchema.Struct<{
|
|
3406
|
+
paymentCredential: TSchema.Union<[TSchema.Struct<{
|
|
3407
|
+
PublicKeyCredential: TSchema.ByteArray;
|
|
3554
3408
|
}>, TSchema.Struct<{
|
|
3555
|
-
|
|
3556
|
-
|
|
3557
|
-
|
|
3409
|
+
ScriptCredential: TSchema.ByteArray;
|
|
3410
|
+
}>]>;
|
|
3411
|
+
stakeCredential: TSchema.NullOr<TSchema.Union<[TSchema.Struct<{
|
|
3412
|
+
Inline: TSchema.Union<[TSchema.Struct<{
|
|
3413
|
+
PublicKeyCredential: TSchema.ByteArray;
|
|
3414
|
+
}>, TSchema.Struct<{
|
|
3415
|
+
ScriptCredential: TSchema.ByteArray;
|
|
3416
|
+
}>]>;
|
|
3417
|
+
}>, TSchema.Struct<{
|
|
3418
|
+
Pointer: TSchema.Struct<{
|
|
3419
|
+
slotNumber: TSchema.Integer;
|
|
3420
|
+
transactionIndex: TSchema.Integer;
|
|
3421
|
+
certificateIndex: TSchema.Integer;
|
|
3558
3422
|
}>;
|
|
3559
|
-
}>]>;
|
|
3560
|
-
}>;
|
|
3561
|
-
}>;
|
|
3562
|
-
}>, TSchema.Struct<{
|
|
3563
|
-
UpgradeProtocol: TSchema.Struct<{
|
|
3564
|
-
content: TSchema.Struct<{
|
|
3565
|
-
upgradeId: TSchema.Integer;
|
|
3566
|
-
upgradePaths: TSchema.Array<TSchema.Tuple<[TSchema.ByteArray, TSchema.Struct<{
|
|
3567
|
-
upgradeSymbol: TSchema.ByteArray;
|
|
3568
3423
|
}>]>>;
|
|
3569
3424
|
}>;
|
|
3570
3425
|
}>;
|
|
3571
3426
|
}>, 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<{
|
|
3427
|
+
Close: TSchema.Struct<{
|
|
3428
|
+
outputAddress: TSchema.Struct<{
|
|
3429
|
+
paymentCredential: TSchema.Union<[TSchema.Struct<{
|
|
3586
3430
|
PublicKeyCredential: TSchema.ByteArray;
|
|
3587
3431
|
}>, TSchema.Struct<{
|
|
3588
3432
|
ScriptCredential: TSchema.ByteArray;
|
|
3589
3433
|
}>]>;
|
|
3590
|
-
|
|
3591
|
-
|
|
3592
|
-
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3434
|
+
stakeCredential: TSchema.NullOr<TSchema.Union<[TSchema.Struct<{
|
|
3435
|
+
Inline: TSchema.Union<[TSchema.Struct<{
|
|
3436
|
+
PublicKeyCredential: TSchema.ByteArray;
|
|
3437
|
+
}>, TSchema.Struct<{
|
|
3438
|
+
ScriptCredential: TSchema.ByteArray;
|
|
3439
|
+
}>]>;
|
|
3440
|
+
}>, TSchema.Struct<{
|
|
3441
|
+
Pointer: TSchema.Struct<{
|
|
3442
|
+
slotNumber: TSchema.Integer;
|
|
3443
|
+
transactionIndex: TSchema.Integer;
|
|
3444
|
+
certificateIndex: TSchema.Integer;
|
|
3445
|
+
}>;
|
|
3446
|
+
}>]>>;
|
|
3447
|
+
}>;
|
|
3448
|
+
maxTxFee: TSchema.Integer;
|
|
3597
3449
|
}>;
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
}
|
|
3604
|
-
}
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3450
|
+
}>]>;
|
|
3451
|
+
}>, TSchema.Struct<{
|
|
3452
|
+
ProcessRequestPool: TSchema.Struct<{
|
|
3453
|
+
poolInputIdx: TSchema.Integer;
|
|
3454
|
+
accountInputIdx: TSchema.Integer;
|
|
3455
|
+
}>;
|
|
3456
|
+
}>, TSchema.Struct<{
|
|
3457
|
+
ProcessRequestAccount: TSchema.Struct<{
|
|
3458
|
+
poolInputIdx: TSchema.Integer;
|
|
3459
|
+
accountInputIdx: TSchema.Integer;
|
|
3460
|
+
e2s2sIdxs: TSchema.Array<TSchema.Tuple<[TSchema.Union<[TSchema.Struct<{
|
|
3461
|
+
StabilityPoolListIdx: TSchema.Integer;
|
|
3462
|
+
}>, TSchema.Struct<{
|
|
3463
|
+
RefInputIdx: TSchema.Struct<{
|
|
3464
|
+
refInputIdx: TSchema.Integer;
|
|
3465
|
+
snapshotListIdx: TSchema.Integer;
|
|
3466
|
+
}>;
|
|
3467
|
+
}>]>, TSchema.NullOr<TSchema.Union<[TSchema.Struct<{
|
|
3468
|
+
StabilityPoolListIdx: TSchema.Integer;
|
|
3469
|
+
}>, TSchema.Struct<{
|
|
3470
|
+
RefInputIdx: TSchema.Struct<{
|
|
3471
|
+
refInputIdx: TSchema.Integer;
|
|
3472
|
+
snapshotListIdx: TSchema.Integer;
|
|
3473
|
+
}>;
|
|
3474
|
+
}>]>>]>>;
|
|
3475
|
+
currentTime: TSchema.Integer;
|
|
3476
|
+
}>;
|
|
3477
|
+
}>, TSchema.Literal<["AnnulRequest"]>, TSchema.Struct<{
|
|
3478
|
+
LiquidateCDP: TSchema.Struct<{
|
|
3479
|
+
cdpIdx: TSchema.Integer;
|
|
3480
|
+
}>;
|
|
3481
|
+
}>, TSchema.Literal<["RecordEpochToScaleToSum"]>, TSchema.Literal<["UpgradeVersion"]>]>;
|
|
3482
|
+
type StabilityPoolRedeemer = typeof StabilityPoolRedeemerSchema.Type;
|
|
3483
|
+
declare const ActionReturnDatumSchema: TSchema.Union<[TSchema.Struct<{
|
|
3484
|
+
IndigoStabilityPoolAccountAdjustment: TSchema.Struct<{
|
|
3485
|
+
txHash: TSchema.ByteArray;
|
|
3486
|
+
outputIndex: TSchema.Integer;
|
|
3487
|
+
}>;
|
|
3488
|
+
}>, TSchema.Struct<{
|
|
3489
|
+
IndigoStabilityPoolAccountClosure: TSchema.Struct<{
|
|
3490
|
+
txHash: TSchema.ByteArray;
|
|
3491
|
+
outputIndex: TSchema.Integer;
|
|
3492
|
+
}>;
|
|
3493
|
+
}>]>;
|
|
3494
|
+
type ActionReturnDatum = typeof ActionReturnDatumSchema.Type;
|
|
3495
|
+
declare function serialiseActionReturnDatum(d: ActionReturnDatum): string;
|
|
3496
|
+
declare function serialiseStabilityPoolRedeemer(r: StabilityPoolRedeemer): string;
|
|
3497
|
+
declare function parseStabilityPoolRedeemer(datum: string): option.Option<StabilityPoolRedeemer>;
|
|
3498
|
+
declare function parseStabilityPoolRedeemerOrThrow(datum: string): StabilityPoolRedeemer;
|
|
3499
|
+
declare function serialiseStabilityPoolDatum(d: typeof StabilityPoolDatumSchema.Type,
|
|
3500
|
+
/**
|
|
3501
|
+
* This is necessary to change only in case of execute propose asset.
|
|
3502
|
+
*/
|
|
3503
|
+
useIndefiniteMaps?: boolean): string;
|
|
3504
|
+
declare function parseStabilityPoolDatum(datum: string): option.Option<StabilityPoolContent>;
|
|
3505
|
+
declare function parseStabilityPoolDatumOrThrow(datum: string): StabilityPoolContent;
|
|
3506
|
+
declare function parseAccountDatum(datum: string): option.Option<AccountContent>;
|
|
3507
|
+
declare function parseAccountDatumOrThrow(datum: string): AccountContent;
|
|
3508
|
+
declare function parseSnapshotEpochToScaleToSumDatum(datum: string): option.Option<SnapshotEpochToScaleToSumContent>;
|
|
3509
|
+
declare function parseSnapshotEpochToScaleToSumDatumOrThrow(datum: string): SnapshotEpochToScaleToSumContent;
|
|
3510
|
+
declare function mkSPInteger(value: bigint): SPInteger;
|
|
3511
|
+
declare function fromSPInteger(value: SPInteger): bigint;
|
|
3512
|
+
declare function spAdd(a: SPInteger, b: SPInteger): SPInteger;
|
|
3513
|
+
declare function spSub(a: SPInteger, b: SPInteger): SPInteger;
|
|
3514
|
+
declare function spMul(a: SPInteger, b: SPInteger): SPInteger;
|
|
3515
|
+
declare function spDiv(a: SPInteger, b: SPInteger): SPInteger;
|
|
3516
|
+
declare function spZeroNegatives(a: SPInteger): SPInteger;
|
|
3609
3517
|
|
|
3610
|
-
declare const
|
|
3611
|
-
declare const
|
|
3518
|
+
declare const BASE_MAX_TX_FEE = 1250000n;
|
|
3519
|
+
declare const MAX_E2S2S_ENTRIES_COUNT = 5;
|
|
3520
|
+
declare const initSumVal: SPInteger;
|
|
3521
|
+
declare const initSpState: StateSnapshot;
|
|
3522
|
+
declare function mkStabilityPoolAddr(lucid: LucidEvolution, sysParams: SystemParams): Address;
|
|
3523
|
+
declare function isSameEpochToScaleKey(a: EpochToScaleKey, b: EpochToScaleKey): boolean;
|
|
3524
|
+
type StabilityPoolListIdx = {
|
|
3525
|
+
spListIdx: number;
|
|
3526
|
+
sumSnapshot: readonly [EpochToScaleKey, SumSnapshot];
|
|
3527
|
+
};
|
|
3528
|
+
type SnapshotIdx = {
|
|
3529
|
+
snapshotUtxo: UTxO;
|
|
3530
|
+
snapshotDatum: SnapshotEpochToScaleToSumContent;
|
|
3531
|
+
snapshotListIdx: number;
|
|
3532
|
+
sumSnapshot: readonly [EpochToScaleKey, SumSnapshot];
|
|
3533
|
+
};
|
|
3534
|
+
type FindE2S2SIdxResult = StabilityPoolListIdx | SnapshotIdx;
|
|
3535
|
+
declare function findRelevantE2s2sIdxs(lucid: LucidEvolution, stabilityPool: StabilityPoolContent, accountState: StateSnapshot, allSnapshotsOutRefs: OutRef[]): Promise<[FindE2S2SIdxResult, option.Option<FindE2S2SIdxResult>][]>;
|
|
3536
|
+
declare function createProcessRequestAccountRedeemer(e2s2sIdxs: [FindE2S2SIdxResult, option.Option<FindE2S2SIdxResult>][], otherRefInputs: UTxO[], currentTime: bigint): {
|
|
3537
|
+
e2s2sRefInputs: UTxO[];
|
|
3538
|
+
mkProcessRequestAccountRedeemerContent: (poolInputIdx: bigint, accountInputIdx: bigint) => ProcessRequestAccountContent;
|
|
3539
|
+
};
|
|
3540
|
+
/**
|
|
3541
|
+
* Sp account rewards per collateral asset.
|
|
3542
|
+
*/
|
|
3543
|
+
declare function rewardsPerAsset(poolAssetStates: readonly AssetState[], e2s2sIdxs: [FindE2S2SIdxResult, option.Option<FindE2S2SIdxResult>][], accountAssetSums: readonly (readonly [AssetClass, SPInteger])[], accountState: StateSnapshot): [AssetClass, bigint][];
|
|
3544
|
+
declare function getUpdatedAccountDeposit(poolState: StateSnapshot, accountState: StateSnapshot): SPInteger;
|
|
3545
|
+
declare function updateAccount(pool: StabilityPoolContent, account: AccountContent, e2s2sIdxs: [FindE2S2SIdxResult, option.Option<FindE2S2SIdxResult>][]): {
|
|
3546
|
+
updatedAccountContent: AccountContent;
|
|
3547
|
+
reward: Assets;
|
|
3548
|
+
};
|
|
3549
|
+
declare function liquidationHelper(poolContent: StabilityPoolContent, collateralAsset: AssetClass, iassetBurnAmt: bigint,
|
|
3550
|
+
/**
|
|
3551
|
+
* The collateral absorbed
|
|
3552
|
+
*/
|
|
3553
|
+
reward: bigint): StabilityPoolContent;
|
|
3554
|
+
declare function updatePoolStateWhenWithdrawalFee(withdrawalFeeAmt: bigint, updatedPoolState: StateSnapshot): StateSnapshot;
|
|
3555
|
+
declare function partitionEpochToScaleToSums(spContent: StabilityPoolContent): readonly [
|
|
3556
|
+
readonly SnapshotEpochToScaleToSumContent[],
|
|
3557
|
+
readonly AssetState[]
|
|
3558
|
+
];
|
|
3612
3559
|
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
|
|
3560
|
+
/** SP Parameters */
|
|
3561
|
+
declare const StabilityPoolParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
3562
|
+
assetSymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
3563
|
+
stabilityPoolToken: _lucid_evolution_lucid.TObject<{
|
|
3564
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
3565
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
3566
|
+
}>;
|
|
3567
|
+
snapshotEpochToScaleToSumToken: _lucid_evolution_lucid.TObject<{
|
|
3568
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
3569
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
3570
|
+
}>;
|
|
3571
|
+
accountToken: _lucid_evolution_lucid.TObject<{
|
|
3572
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
3573
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
3574
|
+
}>;
|
|
3575
|
+
cdpToken: _lucid_evolution_lucid.TObject<{
|
|
3576
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
3577
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
3578
|
+
}>;
|
|
3579
|
+
iAssetAuthToken: _lucid_evolution_lucid.TObject<{
|
|
3580
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
3581
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
3582
|
+
}>;
|
|
3583
|
+
versionRecordToken: _lucid_evolution_lucid.TObject<{
|
|
3584
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
3585
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
3586
|
+
}>;
|
|
3587
|
+
iassetValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
3588
|
+
accountCreateFeeLovelaces: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
3589
|
+
accountProcessingCooldownMs: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
3590
|
+
accountProcessingBiasMs: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
3591
|
+
stakeCredential: _lucid_evolution_lucid.TUnsafe<{
|
|
3592
|
+
Inline: [{
|
|
3593
|
+
PublicKeyCredential: [string];
|
|
3594
|
+
} | {
|
|
3595
|
+
ScriptCredential: [string];
|
|
3596
|
+
}];
|
|
3597
|
+
} | {
|
|
3598
|
+
Pointer: [{
|
|
3599
|
+
slotNumber: bigint;
|
|
3600
|
+
transactionIndex: bigint;
|
|
3601
|
+
certificateIndex: bigint;
|
|
3602
|
+
}];
|
|
3603
|
+
} | null>;
|
|
3619
3604
|
}>;
|
|
3620
|
-
type
|
|
3621
|
-
declare
|
|
3605
|
+
type StabilityPoolParams = Data.Static<typeof StabilityPoolParamsSchema>;
|
|
3606
|
+
declare const StabilityPoolParams: StabilityPoolParams;
|
|
3607
|
+
declare function castStabilityPoolParams(params: StabilityPoolParams): Data;
|
|
3608
|
+
|
|
3609
|
+
declare function findStabilityPool(lucid: LucidEvolution, sysParams: SystemParams,
|
|
3610
|
+
/**
|
|
3611
|
+
* For conversion from hex use the `fromHex` function from lucid-evolution.
|
|
3612
|
+
*/
|
|
3613
|
+
iassetName: Uint8Array<ArrayBufferLike>): Promise<{
|
|
3614
|
+
utxo: UTxO;
|
|
3615
|
+
datum: StabilityPoolContent;
|
|
3616
|
+
}>;
|
|
3617
|
+
declare function findStabilityPoolAccount(lucid: LucidEvolution, sysParams: SystemParams, owner: string,
|
|
3618
|
+
/**
|
|
3619
|
+
* For conversion from hex use the `fromHex` function from lucid-evolution.
|
|
3620
|
+
*/
|
|
3621
|
+
iassetName: Uint8Array<ArrayBufferLike>): Promise<{
|
|
3622
|
+
utxo: UTxO;
|
|
3623
|
+
datum: AccountContent;
|
|
3624
|
+
}>;
|
|
3625
|
+
declare function findE2s2sSnapshots(lucid: LucidEvolution, sysParams: SystemParams,
|
|
3626
|
+
/**
|
|
3627
|
+
* For conversion from hex use the `fromHex` function from lucid-evolution.
|
|
3628
|
+
*/
|
|
3629
|
+
iassetName: Uint8Array<ArrayBufferLike>): Promise<{
|
|
3630
|
+
utxo: UTxO;
|
|
3631
|
+
datum: SnapshotEpochToScaleToSumContent;
|
|
3632
|
+
}[]>;
|
|
3633
|
+
|
|
3634
|
+
declare function requestSpAccountCreation(assetAscii: string, amount: bigint, sysParams: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
3635
|
+
declare function requestSpAccountAdjustment(amount: bigint, accountUtxo: UTxO, sysParams: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
3636
|
+
declare function requestSpAccountClosure(accountUtxo: UTxO, sysParams: SystemParams, lucid: LucidEvolution, maxTxFee?: bigint): Promise<TxBuilder>;
|
|
3637
|
+
declare function processSpRequest(stabilityPoolUtxo: UTxO, accountUtxo: UTxO, iAssetUtxo: UTxO,
|
|
3638
|
+
/**
|
|
3639
|
+
* For performance provide only the ones related to the pool's iAsset.
|
|
3640
|
+
*/
|
|
3641
|
+
allE2s2sSnapshotOrefs: OutRef[], sysParams: SystemParams, lucid: LucidEvolution, currentSlot: number): Promise<TxBuilder>;
|
|
3642
|
+
declare function createE2s2sSnapshots(stabilityPoolOref: OutRef, sysParams: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
3643
|
+
declare function annulRequest(accountUtxo: UTxO, params: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
3644
|
+
|
|
3645
|
+
declare const mkStabilityPoolValidator: (params: StabilityPoolParams) => SpendingValidator;
|
|
3646
|
+
declare const mkStabilityPoolValidatorFromSP: (params: StabilityPoolParamsSP) => SpendingValidator;
|
|
3622
3647
|
|
|
3623
3648
|
declare const RobOrderTypeSchema: TSchema.Union<[TSchema.Struct<{
|
|
3624
3649
|
BuyIAssetOrder: TSchema.Struct<{
|
|
@@ -4636,4 +4661,4 @@ declare function mkAuthTokenPolicy(ac: AssetClass, tn: string): MintingPolicy;
|
|
|
4636
4661
|
|
|
4637
4662
|
declare const alwaysFailValidator: SpendingValidator;
|
|
4638
4663
|
|
|
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 };
|
|
4664
|
+
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, 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, 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 };
|