@indigo-labs/indigo-sdk 0.1.12 → 0.1.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +242 -234
- package/dist/index.d.ts +242 -234
- package/dist/index.js +16 -2
- package/dist/index.mjs +8 -1
- package/package.json +1 -1
- package/src/index.ts +1 -0
package/dist/index.d.mts
CHANGED
|
@@ -561,239 +561,6 @@ declare function createScriptAddress(network: Network, scriptHash: ScriptHash, s
|
|
|
561
561
|
declare function scriptRef(ref: ScriptReference, lucid: LucidEvolution): Promise<UTxO>;
|
|
562
562
|
declare function balance(utxos: UTxO[]): Assets;
|
|
563
563
|
|
|
564
|
-
declare const ONE_SECOND: number;
|
|
565
|
-
declare const oneHour: bigint;
|
|
566
|
-
declare const oneDay: bigint;
|
|
567
|
-
declare const oneYear: bigint;
|
|
568
|
-
|
|
569
|
-
declare const CDPCreatorParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
570
|
-
cdpCreatorNft: _lucid_evolution_lucid.TObject<{
|
|
571
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
572
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
573
|
-
}>;
|
|
574
|
-
cdpAssetCs: _lucid_evolution_lucid.TUnsafe<string>;
|
|
575
|
-
cdpAuthTk: _lucid_evolution_lucid.TObject<{
|
|
576
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
577
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
578
|
-
}>;
|
|
579
|
-
iAssetAuthTk: _lucid_evolution_lucid.TObject<{
|
|
580
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
581
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
582
|
-
}>;
|
|
583
|
-
versionRecordToken: _lucid_evolution_lucid.TObject<{
|
|
584
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
585
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
586
|
-
}>;
|
|
587
|
-
cdpScriptHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
588
|
-
collectorValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
589
|
-
minCollateralInLovelace: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
590
|
-
biasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
591
|
-
}>;
|
|
592
|
-
type CDPCreatorParams = Data.Static<typeof CDPCreatorParamsSchema>;
|
|
593
|
-
declare const CDPCreatorParams: CDPCreatorParams;
|
|
594
|
-
|
|
595
|
-
declare const cdpCreatorValidator: {
|
|
596
|
-
type: ScriptType;
|
|
597
|
-
description: string;
|
|
598
|
-
cborHex: string;
|
|
599
|
-
};
|
|
600
|
-
declare const mkCDPCreatorValidator: (params: CDPCreatorParams) => SpendingValidator;
|
|
601
|
-
declare const mkCDPCreatorValidatorFromSP: (params: CDPCreatorParamsSP) => SpendingValidator;
|
|
602
|
-
|
|
603
|
-
declare const _cdpValidator: {
|
|
604
|
-
type: ScriptType;
|
|
605
|
-
description: string;
|
|
606
|
-
cborHex: string;
|
|
607
|
-
};
|
|
608
|
-
|
|
609
|
-
declare const _collectorValidator: {
|
|
610
|
-
type: ScriptType;
|
|
611
|
-
description: string;
|
|
612
|
-
cborHex: string;
|
|
613
|
-
};
|
|
614
|
-
|
|
615
|
-
declare function mkInterestOracleValidator(params: InterestOracleParams): SpendingValidator;
|
|
616
|
-
|
|
617
|
-
declare const PollShardParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
618
|
-
pollToken: _lucid_evolution_lucid.TObject<{
|
|
619
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
620
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
621
|
-
}>;
|
|
622
|
-
stakingToken: _lucid_evolution_lucid.TObject<{
|
|
623
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
624
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
625
|
-
}>;
|
|
626
|
-
indyAsset: _lucid_evolution_lucid.TObject<{
|
|
627
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
628
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
629
|
-
}>;
|
|
630
|
-
stakingValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
631
|
-
}>;
|
|
632
|
-
type PollShardParams = Data.Static<typeof PollShardParamsSchema>;
|
|
633
|
-
declare const PollShardParams: PollShardParams;
|
|
634
|
-
declare function castPollShardParams(params: PollShardParams): Data;
|
|
635
|
-
|
|
636
|
-
declare const mkPollShardValidator: (params: PollShardParams) => SpendingValidator;
|
|
637
|
-
declare const mkPollShardValidatorFromSP: (params: PollShardParamsSP) => SpendingValidator;
|
|
638
|
-
|
|
639
|
-
declare const PollManagerParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
640
|
-
govNFT: _lucid_evolution_lucid.TObject<{
|
|
641
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
642
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
643
|
-
}>;
|
|
644
|
-
pollToken: _lucid_evolution_lucid.TObject<{
|
|
645
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
646
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
647
|
-
}>;
|
|
648
|
-
upgradeToken: _lucid_evolution_lucid.TObject<{
|
|
649
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
650
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
651
|
-
}>;
|
|
652
|
-
indyAsset: _lucid_evolution_lucid.TObject<{
|
|
653
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
654
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
655
|
-
}>;
|
|
656
|
-
govExecuteValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
657
|
-
pBiasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
658
|
-
shardValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
659
|
-
treasuryValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
660
|
-
initialIndyDistribution: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
661
|
-
}>;
|
|
662
|
-
type PollManagerParams = Data.Static<typeof PollManagerParamsSchema>;
|
|
663
|
-
declare const PollManagerParams: PollManagerParams;
|
|
664
|
-
declare function castPollManagerParams(params: PollManagerParams): Data;
|
|
665
|
-
|
|
666
|
-
declare const mkPollManagerValidator: (params: PollManagerParams) => SpendingValidator;
|
|
667
|
-
declare const mkPollManagerValidatorFromSP: (params: PollManagerParamsSP) => SpendingValidator;
|
|
668
|
-
|
|
669
|
-
declare const _treasuryValidator: {
|
|
670
|
-
type: ScriptType;
|
|
671
|
-
description: string;
|
|
672
|
-
cborHex: string;
|
|
673
|
-
};
|
|
674
|
-
|
|
675
|
-
declare const ExecuteParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
676
|
-
govNFT: _lucid_evolution_lucid.TObject<{
|
|
677
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
678
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
679
|
-
}>;
|
|
680
|
-
upgradeToken: _lucid_evolution_lucid.TObject<{
|
|
681
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
682
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
683
|
-
}>;
|
|
684
|
-
iAssetToken: _lucid_evolution_lucid.TObject<{
|
|
685
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
686
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
687
|
-
}>;
|
|
688
|
-
stabilityPoolToken: _lucid_evolution_lucid.TObject<{
|
|
689
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
690
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
691
|
-
}>;
|
|
692
|
-
versionRecordToken: _lucid_evolution_lucid.TObject<{
|
|
693
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
694
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
695
|
-
}>;
|
|
696
|
-
cdpValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
697
|
-
sPoolValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
698
|
-
versionRegistryValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
699
|
-
treasuryValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
700
|
-
indyAsset: _lucid_evolution_lucid.TObject<{
|
|
701
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
702
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
703
|
-
}>;
|
|
704
|
-
}>;
|
|
705
|
-
type ExecuteParams = Data.Static<typeof ExecuteParamsSchema>;
|
|
706
|
-
declare const ExecuteParams: ExecuteParams;
|
|
707
|
-
declare function castExecuteParams(params: ExecuteParams): Data;
|
|
708
|
-
|
|
709
|
-
declare const GovDatumSchema: _lucid_evolution_lucid.TObject<{
|
|
710
|
-
currentProposal: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
711
|
-
protocolParams: _lucid_evolution_lucid.TObject<{
|
|
712
|
-
proposalDeposit: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
713
|
-
votingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
714
|
-
effectiveDelay: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
715
|
-
expirationPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
716
|
-
collateralFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
717
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
718
|
-
}>;
|
|
719
|
-
proposingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
720
|
-
totalShards: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
721
|
-
minimumQuorum: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
722
|
-
maxTreasuryLovelaceSpend: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
723
|
-
maxTreasuryIndySpend: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
724
|
-
}>;
|
|
725
|
-
currentVersion: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
726
|
-
iassetsCount: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
727
|
-
activeProposals: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
728
|
-
treasuryIndyWithdrawnAmt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
729
|
-
}>;
|
|
730
|
-
type GovDatum = Data.Static<typeof GovDatumSchema>;
|
|
731
|
-
declare function parseGovDatum(datum: Datum): GovDatum;
|
|
732
|
-
declare function serialiseGovDatum(d: GovDatum): Datum;
|
|
733
|
-
declare const GovParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
734
|
-
govNFT: _lucid_evolution_lucid.TObject<{
|
|
735
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
736
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
737
|
-
}>;
|
|
738
|
-
pollToken: _lucid_evolution_lucid.TObject<{
|
|
739
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
740
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
741
|
-
}>;
|
|
742
|
-
upgradeToken: _lucid_evolution_lucid.TObject<{
|
|
743
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
744
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
745
|
-
}>;
|
|
746
|
-
indyAsset: _lucid_evolution_lucid.TObject<{
|
|
747
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
748
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
749
|
-
}>;
|
|
750
|
-
versionRecordToken: _lucid_evolution_lucid.TObject<{
|
|
751
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
752
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
753
|
-
}>;
|
|
754
|
-
pollManagerValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
755
|
-
gBiasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
756
|
-
daoIdentityToken: _lucid_evolution_lucid.TObject<{
|
|
757
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
758
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
759
|
-
}>;
|
|
760
|
-
iAssetAuthToken: _lucid_evolution_lucid.TObject<{
|
|
761
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
762
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
763
|
-
}>;
|
|
764
|
-
}>;
|
|
765
|
-
type GovParams = Data.Static<typeof GovParamsSchema>;
|
|
766
|
-
declare const GovParams: GovParams;
|
|
767
|
-
declare function castGovParams(params: GovParams): Data;
|
|
768
|
-
|
|
769
|
-
declare const OracleAssetNftSchema: _lucid_evolution_lucid.TObject<{
|
|
770
|
-
oracleNft: _lucid_evolution_lucid.TObject<{
|
|
771
|
-
asset: _lucid_evolution_lucid.TObject<{
|
|
772
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
773
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
774
|
-
}>;
|
|
775
|
-
}>;
|
|
776
|
-
}>;
|
|
777
|
-
type OracleAssetNft = Data.Static<typeof OracleAssetNftSchema>;
|
|
778
|
-
declare const PriceOracleParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
779
|
-
owner: _lucid_evolution_lucid.TUnsafe<string>;
|
|
780
|
-
/** Milliseconds */
|
|
781
|
-
biasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
782
|
-
/** Milliseconds */
|
|
783
|
-
expiration: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
784
|
-
}>;
|
|
785
|
-
type PriceOracleParams = Data.Static<typeof PriceOracleParamsSchema>;
|
|
786
|
-
declare const PriceOracleDatumSchema: _lucid_evolution_lucid.TObject<{
|
|
787
|
-
price: _lucid_evolution_lucid.TObject<{
|
|
788
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
789
|
-
}>;
|
|
790
|
-
expiration: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
791
|
-
}>;
|
|
792
|
-
type PriceOracleDatum = Data.Static<typeof PriceOracleDatumSchema>;
|
|
793
|
-
declare function parsePriceOracleDatum(datum: Datum): PriceOracleDatum;
|
|
794
|
-
declare function serialisePriceOracleDatum(datum: PriceOracleDatum): Datum;
|
|
795
|
-
declare function castPriceOracleParams(params: PriceOracleParams): Data;
|
|
796
|
-
|
|
797
564
|
declare const SPIntegerSchema: _lucid_evolution_lucid.TObject<{
|
|
798
565
|
value: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
799
566
|
}>;
|
|
@@ -1225,6 +992,247 @@ declare function spSub(a: SPInteger, b: SPInteger): SPInteger;
|
|
|
1225
992
|
declare function spMul(a: SPInteger, b: SPInteger): SPInteger;
|
|
1226
993
|
declare function spDiv(a: SPInteger, b: SPInteger): SPInteger;
|
|
1227
994
|
|
|
995
|
+
declare function getSumFromEpochToScaleToSum(e2s2s: EpochToScaleToSum, epoch: bigint, scale: bigint): SPInteger | undefined;
|
|
996
|
+
declare function setSumInEpochToScaleToSum(e2s2s: EpochToScaleToSum, epoch: bigint, scale: bigint, sum: SPInteger): EpochToScaleToSum;
|
|
997
|
+
declare function getAccountReward(account: StabilityPoolSnapshot, e2s2s: EpochToScaleToSum): SPInteger;
|
|
998
|
+
declare function getAccountFund(pool: StabilityPoolSnapshot, account: StabilityPoolSnapshot): SPInteger;
|
|
999
|
+
declare function adjust(pool: StabilityPoolSnapshot, account: StabilityPoolSnapshot, e2s2s: EpochToScaleToSum): [StabilityPoolSnapshot, bigint];
|
|
1000
|
+
declare function adjustmentHelper(spESTSTokenRef1: UTxO, spESTSTokenRef2: UTxO | undefined, pool: StabilityPoolSnapshot, e2s2s: EpochToScaleToSum, account: StabilityPoolSnapshot): [StabilityPoolSnapshot, bigint, UTxO[]];
|
|
1001
|
+
declare function updatePoolSnapshotWithdrawalFee(withdrawalFeeAmount: SPInteger, newPoolDepositExcludingFee: SPInteger, pool: StabilityPoolSnapshot): [SPInteger, SPInteger];
|
|
1002
|
+
|
|
1003
|
+
declare const ONE_SECOND: number;
|
|
1004
|
+
declare const oneHour: bigint;
|
|
1005
|
+
declare const oneDay: bigint;
|
|
1006
|
+
declare const oneYear: bigint;
|
|
1007
|
+
|
|
1008
|
+
declare const CDPCreatorParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1009
|
+
cdpCreatorNft: _lucid_evolution_lucid.TObject<{
|
|
1010
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1011
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1012
|
+
}>;
|
|
1013
|
+
cdpAssetCs: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1014
|
+
cdpAuthTk: _lucid_evolution_lucid.TObject<{
|
|
1015
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1016
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1017
|
+
}>;
|
|
1018
|
+
iAssetAuthTk: _lucid_evolution_lucid.TObject<{
|
|
1019
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1020
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1021
|
+
}>;
|
|
1022
|
+
versionRecordToken: _lucid_evolution_lucid.TObject<{
|
|
1023
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1024
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1025
|
+
}>;
|
|
1026
|
+
cdpScriptHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1027
|
+
collectorValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1028
|
+
minCollateralInLovelace: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1029
|
+
biasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1030
|
+
}>;
|
|
1031
|
+
type CDPCreatorParams = Data.Static<typeof CDPCreatorParamsSchema>;
|
|
1032
|
+
declare const CDPCreatorParams: CDPCreatorParams;
|
|
1033
|
+
|
|
1034
|
+
declare const cdpCreatorValidator: {
|
|
1035
|
+
type: ScriptType;
|
|
1036
|
+
description: string;
|
|
1037
|
+
cborHex: string;
|
|
1038
|
+
};
|
|
1039
|
+
declare const mkCDPCreatorValidator: (params: CDPCreatorParams) => SpendingValidator;
|
|
1040
|
+
declare const mkCDPCreatorValidatorFromSP: (params: CDPCreatorParamsSP) => SpendingValidator;
|
|
1041
|
+
|
|
1042
|
+
declare const _cdpValidator: {
|
|
1043
|
+
type: ScriptType;
|
|
1044
|
+
description: string;
|
|
1045
|
+
cborHex: string;
|
|
1046
|
+
};
|
|
1047
|
+
|
|
1048
|
+
declare const _collectorValidator: {
|
|
1049
|
+
type: ScriptType;
|
|
1050
|
+
description: string;
|
|
1051
|
+
cborHex: string;
|
|
1052
|
+
};
|
|
1053
|
+
|
|
1054
|
+
declare function mkInterestOracleValidator(params: InterestOracleParams): SpendingValidator;
|
|
1055
|
+
|
|
1056
|
+
declare const PollShardParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1057
|
+
pollToken: _lucid_evolution_lucid.TObject<{
|
|
1058
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1059
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1060
|
+
}>;
|
|
1061
|
+
stakingToken: _lucid_evolution_lucid.TObject<{
|
|
1062
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1063
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1064
|
+
}>;
|
|
1065
|
+
indyAsset: _lucid_evolution_lucid.TObject<{
|
|
1066
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1067
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1068
|
+
}>;
|
|
1069
|
+
stakingValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1070
|
+
}>;
|
|
1071
|
+
type PollShardParams = Data.Static<typeof PollShardParamsSchema>;
|
|
1072
|
+
declare const PollShardParams: PollShardParams;
|
|
1073
|
+
declare function castPollShardParams(params: PollShardParams): Data;
|
|
1074
|
+
|
|
1075
|
+
declare const mkPollShardValidator: (params: PollShardParams) => SpendingValidator;
|
|
1076
|
+
declare const mkPollShardValidatorFromSP: (params: PollShardParamsSP) => SpendingValidator;
|
|
1077
|
+
|
|
1078
|
+
declare const PollManagerParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1079
|
+
govNFT: _lucid_evolution_lucid.TObject<{
|
|
1080
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1081
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1082
|
+
}>;
|
|
1083
|
+
pollToken: _lucid_evolution_lucid.TObject<{
|
|
1084
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1085
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1086
|
+
}>;
|
|
1087
|
+
upgradeToken: _lucid_evolution_lucid.TObject<{
|
|
1088
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1089
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1090
|
+
}>;
|
|
1091
|
+
indyAsset: _lucid_evolution_lucid.TObject<{
|
|
1092
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1093
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1094
|
+
}>;
|
|
1095
|
+
govExecuteValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1096
|
+
pBiasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1097
|
+
shardValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1098
|
+
treasuryValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1099
|
+
initialIndyDistribution: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1100
|
+
}>;
|
|
1101
|
+
type PollManagerParams = Data.Static<typeof PollManagerParamsSchema>;
|
|
1102
|
+
declare const PollManagerParams: PollManagerParams;
|
|
1103
|
+
declare function castPollManagerParams(params: PollManagerParams): Data;
|
|
1104
|
+
|
|
1105
|
+
declare const mkPollManagerValidator: (params: PollManagerParams) => SpendingValidator;
|
|
1106
|
+
declare const mkPollManagerValidatorFromSP: (params: PollManagerParamsSP) => SpendingValidator;
|
|
1107
|
+
|
|
1108
|
+
declare const _treasuryValidator: {
|
|
1109
|
+
type: ScriptType;
|
|
1110
|
+
description: string;
|
|
1111
|
+
cborHex: string;
|
|
1112
|
+
};
|
|
1113
|
+
|
|
1114
|
+
declare const ExecuteParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1115
|
+
govNFT: _lucid_evolution_lucid.TObject<{
|
|
1116
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1117
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1118
|
+
}>;
|
|
1119
|
+
upgradeToken: _lucid_evolution_lucid.TObject<{
|
|
1120
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1121
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1122
|
+
}>;
|
|
1123
|
+
iAssetToken: _lucid_evolution_lucid.TObject<{
|
|
1124
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1125
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1126
|
+
}>;
|
|
1127
|
+
stabilityPoolToken: _lucid_evolution_lucid.TObject<{
|
|
1128
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1129
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1130
|
+
}>;
|
|
1131
|
+
versionRecordToken: _lucid_evolution_lucid.TObject<{
|
|
1132
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1133
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1134
|
+
}>;
|
|
1135
|
+
cdpValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1136
|
+
sPoolValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1137
|
+
versionRegistryValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1138
|
+
treasuryValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1139
|
+
indyAsset: _lucid_evolution_lucid.TObject<{
|
|
1140
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1141
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1142
|
+
}>;
|
|
1143
|
+
}>;
|
|
1144
|
+
type ExecuteParams = Data.Static<typeof ExecuteParamsSchema>;
|
|
1145
|
+
declare const ExecuteParams: ExecuteParams;
|
|
1146
|
+
declare function castExecuteParams(params: ExecuteParams): Data;
|
|
1147
|
+
|
|
1148
|
+
declare const GovDatumSchema: _lucid_evolution_lucid.TObject<{
|
|
1149
|
+
currentProposal: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1150
|
+
protocolParams: _lucid_evolution_lucid.TObject<{
|
|
1151
|
+
proposalDeposit: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1152
|
+
votingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1153
|
+
effectiveDelay: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1154
|
+
expirationPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1155
|
+
collateralFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
1156
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1157
|
+
}>;
|
|
1158
|
+
proposingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1159
|
+
totalShards: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1160
|
+
minimumQuorum: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1161
|
+
maxTreasuryLovelaceSpend: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1162
|
+
maxTreasuryIndySpend: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1163
|
+
}>;
|
|
1164
|
+
currentVersion: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1165
|
+
iassetsCount: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1166
|
+
activeProposals: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1167
|
+
treasuryIndyWithdrawnAmt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1168
|
+
}>;
|
|
1169
|
+
type GovDatum = Data.Static<typeof GovDatumSchema>;
|
|
1170
|
+
declare function parseGovDatum(datum: Datum): GovDatum;
|
|
1171
|
+
declare function serialiseGovDatum(d: GovDatum): Datum;
|
|
1172
|
+
declare const GovParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1173
|
+
govNFT: _lucid_evolution_lucid.TObject<{
|
|
1174
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1175
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1176
|
+
}>;
|
|
1177
|
+
pollToken: _lucid_evolution_lucid.TObject<{
|
|
1178
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1179
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1180
|
+
}>;
|
|
1181
|
+
upgradeToken: _lucid_evolution_lucid.TObject<{
|
|
1182
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1183
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1184
|
+
}>;
|
|
1185
|
+
indyAsset: _lucid_evolution_lucid.TObject<{
|
|
1186
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1187
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1188
|
+
}>;
|
|
1189
|
+
versionRecordToken: _lucid_evolution_lucid.TObject<{
|
|
1190
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1191
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1192
|
+
}>;
|
|
1193
|
+
pollManagerValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1194
|
+
gBiasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1195
|
+
daoIdentityToken: _lucid_evolution_lucid.TObject<{
|
|
1196
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1197
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1198
|
+
}>;
|
|
1199
|
+
iAssetAuthToken: _lucid_evolution_lucid.TObject<{
|
|
1200
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1201
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1202
|
+
}>;
|
|
1203
|
+
}>;
|
|
1204
|
+
type GovParams = Data.Static<typeof GovParamsSchema>;
|
|
1205
|
+
declare const GovParams: GovParams;
|
|
1206
|
+
declare function castGovParams(params: GovParams): Data;
|
|
1207
|
+
|
|
1208
|
+
declare const OracleAssetNftSchema: _lucid_evolution_lucid.TObject<{
|
|
1209
|
+
oracleNft: _lucid_evolution_lucid.TObject<{
|
|
1210
|
+
asset: _lucid_evolution_lucid.TObject<{
|
|
1211
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1212
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1213
|
+
}>;
|
|
1214
|
+
}>;
|
|
1215
|
+
}>;
|
|
1216
|
+
type OracleAssetNft = Data.Static<typeof OracleAssetNftSchema>;
|
|
1217
|
+
declare const PriceOracleParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1218
|
+
owner: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1219
|
+
/** Milliseconds */
|
|
1220
|
+
biasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1221
|
+
/** Milliseconds */
|
|
1222
|
+
expiration: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1223
|
+
}>;
|
|
1224
|
+
type PriceOracleParams = Data.Static<typeof PriceOracleParamsSchema>;
|
|
1225
|
+
declare const PriceOracleDatumSchema: _lucid_evolution_lucid.TObject<{
|
|
1226
|
+
price: _lucid_evolution_lucid.TObject<{
|
|
1227
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1228
|
+
}>;
|
|
1229
|
+
expiration: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1230
|
+
}>;
|
|
1231
|
+
type PriceOracleDatum = Data.Static<typeof PriceOracleDatumSchema>;
|
|
1232
|
+
declare function parsePriceOracleDatum(datum: Datum): PriceOracleDatum;
|
|
1233
|
+
declare function serialisePriceOracleDatum(datum: PriceOracleDatum): Datum;
|
|
1234
|
+
declare function castPriceOracleParams(params: PriceOracleParams): Data;
|
|
1235
|
+
|
|
1228
1236
|
declare const LRPParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1229
1237
|
versionRecordToken: _lucid_evolution_lucid.TObject<{
|
|
1230
1238
|
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
@@ -1327,4 +1335,4 @@ type OneShotParams = Data.Static<typeof OneShotParamsSchema>;
|
|
|
1327
1335
|
declare function oneShotMintTx(lucid: LucidEvolution, params: OneShotParams): Promise<[TxBuilder, PolicyId]>;
|
|
1328
1336
|
declare function runOneShotMintTx(lucid: LucidEvolution, params: OneShotParams): Promise<PolicyId>;
|
|
1329
1337
|
|
|
1330
|
-
export { AccountAction, AccountActionSchema, AccountContent, AccountContentSchema, ActionReturnDatum, ActionReturnDatumSchema, Address, type AddressCredential, type AddressCredentialOrDatum, type AddressSP, AddressSchema, type Amount, type AssetClass, type AssetClassSP, AssetClassSchema, type AuthTokenPolicies, type CDPContent, CDPContentSchema, CDPContract, type CDPCreatorParamsSP, type CDPDatum, CDPDatumSchema, type CDPFees, CDPFeesSchema, type CdpParams, CollectorContract, type CollectorParams, Credential, CredentialSchema, type CurrencySymbol, type DistributionParams, EpochToScaleToSum, EpochToScaleToSumSchema, ExecuteParams, type ExecuteParamsSP, type FeedInterestOracleRedeemer, FeedInterestOracleRedeemerSchema, GovContract, type GovDatum, GovParams, type GovParamsSP, type IAssetContent, IAssetContentSchema, IAssetHelpers, type IAssetOutput, type Input, InterestOracleContract, type InterestOracleDatum, InterestOracleDatumSchema, type InterestOracleParams, InterestOracleParamsSchema, type LRPDatum, LRPDatumSchema, type LRPParams, LRPParamsSchema, type LRPRedeemer, LRPRedeemerSchema, type LrpParamsSP, ONE_SECOND, type OracleAssetNft, OracleAssetNftSchema, type Output, type OutputReference, OutputReferenceSchema, PollManagerParams, type PollManagerParamsSP, PollShardParams, type PollShardParamsSP, type PriceOracleDatum, PriceOracleDatumSchema, type PriceOracleParams, PriceOracleParamsSchema, type PubKeyHash, SPInteger, SPIntegerSchema, type ScriptCredential, type ScriptOutput, type ScriptRef, type ScriptReference, type ScriptReferences, SnapshotEpochToScaleToSumContent, SnapshotEpochToScaleToSumContentSchema, StabilityPoolContent, StabilityPoolContentSchema, StabilityPoolContract, StabilityPoolDatum, StabilityPoolDatumSchema, StabilityPoolParams, type StabilityPoolParamsSP, StabilityPoolRedeemer, StabilityPoolRedeemerSchema, StabilityPoolSnapshot, StakingContract, type StakingParams, type StartTime, type SystemParams, type TokenName, TreasuryContract, type TreasuryParams, type ValidatorHashes, VerificationKeyHashSchema, type VersionRecordParams, _cdpValidator, _collectorValidator, _treasuryValidator, addrDetails, addressFromBech32, addressToBech32, adjustLrp, balance, calculateFeeFromPercentage, cancelLrp, castExecuteParams, castGovParams, castInterestOracleParams, castLrpParams, castPollManagerParams, castPollShardParams, castPriceOracleParams, castStabilityPoolParams, cdpCreatorValidator, claimLrp, createScriptAddress, fromSPInteger, fromSystemParamsAsset, getInlineDatumOrThrow, getRandomElement, loadSystemParamsFromFile, loadSystemParamsFromUrl, matchSingle, mkCDPCreatorValidator, mkCDPCreatorValidatorFromSP, mkInterestOracleValidator, mkLrpValidator, mkLrpValidatorFromSP, mkPollManagerValidator, mkPollManagerValidatorFromSP, mkPollShardValidator, mkPollShardValidatorFromSP, mkSPInteger, oneDay, oneHour, oneShotMintTx, oneYear, openLrp, parseAccountDatum, parseCDPDatum, parseGovDatum, parseIAssetDatum, parseInterestOracleDatum, parseLrpDatum, parsePriceOracleDatum, parseSnapshotEpochToScaleToSumDatum, parseStabilityPoolDatum, redeemLrp, runCreateScriptRefTx, runOneShotMintTx, scriptRef, serialiseCDPDatum, serialiseFeedInterestOracleRedeemer, serialiseGovDatum, serialiseIAssetDatum, serialiseInterestOracleDatum, serialiseLrpDatum, serialiseLrpRedeemer, serialisePriceOracleDatum, serialiseStabilityPoolDatum, serialiseStabilityPoolRedeemer, spAdd, spDiv, spMul, spSub, toSystemParamsAsset };
|
|
1338
|
+
export { AccountAction, AccountActionSchema, AccountContent, AccountContentSchema, ActionReturnDatum, ActionReturnDatumSchema, Address, type AddressCredential, type AddressCredentialOrDatum, type AddressSP, AddressSchema, type Amount, type AssetClass, type AssetClassSP, AssetClassSchema, type AuthTokenPolicies, type CDPContent, CDPContentSchema, CDPContract, type CDPCreatorParamsSP, type CDPDatum, CDPDatumSchema, type CDPFees, CDPFeesSchema, type CdpParams, CollectorContract, type CollectorParams, Credential, CredentialSchema, type CurrencySymbol, type DistributionParams, EpochToScaleToSum, EpochToScaleToSumSchema, ExecuteParams, type ExecuteParamsSP, type FeedInterestOracleRedeemer, FeedInterestOracleRedeemerSchema, GovContract, type GovDatum, GovParams, type GovParamsSP, type IAssetContent, IAssetContentSchema, IAssetHelpers, type IAssetOutput, type Input, InterestOracleContract, type InterestOracleDatum, InterestOracleDatumSchema, type InterestOracleParams, InterestOracleParamsSchema, type LRPDatum, LRPDatumSchema, type LRPParams, LRPParamsSchema, type LRPRedeemer, LRPRedeemerSchema, type LrpParamsSP, ONE_SECOND, type OracleAssetNft, OracleAssetNftSchema, type Output, type OutputReference, OutputReferenceSchema, PollManagerParams, type PollManagerParamsSP, PollShardParams, type PollShardParamsSP, type PriceOracleDatum, PriceOracleDatumSchema, type PriceOracleParams, PriceOracleParamsSchema, type PubKeyHash, SPInteger, SPIntegerSchema, type ScriptCredential, type ScriptOutput, type ScriptRef, type ScriptReference, type ScriptReferences, SnapshotEpochToScaleToSumContent, SnapshotEpochToScaleToSumContentSchema, StabilityPoolContent, StabilityPoolContentSchema, StabilityPoolContract, StabilityPoolDatum, StabilityPoolDatumSchema, StabilityPoolParams, type StabilityPoolParamsSP, StabilityPoolRedeemer, StabilityPoolRedeemerSchema, StabilityPoolSnapshot, StakingContract, type StakingParams, type StartTime, type SystemParams, type TokenName, TreasuryContract, type TreasuryParams, type ValidatorHashes, VerificationKeyHashSchema, type VersionRecordParams, _cdpValidator, _collectorValidator, _treasuryValidator, addrDetails, addressFromBech32, addressToBech32, adjust, adjustLrp, adjustmentHelper, balance, calculateFeeFromPercentage, cancelLrp, castExecuteParams, castGovParams, castInterestOracleParams, castLrpParams, castPollManagerParams, castPollShardParams, castPriceOracleParams, castStabilityPoolParams, cdpCreatorValidator, claimLrp, createScriptAddress, fromSPInteger, fromSystemParamsAsset, getAccountFund, getAccountReward, getInlineDatumOrThrow, getRandomElement, getSumFromEpochToScaleToSum, loadSystemParamsFromFile, loadSystemParamsFromUrl, matchSingle, mkCDPCreatorValidator, mkCDPCreatorValidatorFromSP, mkInterestOracleValidator, mkLrpValidator, mkLrpValidatorFromSP, mkPollManagerValidator, mkPollManagerValidatorFromSP, mkPollShardValidator, mkPollShardValidatorFromSP, mkSPInteger, oneDay, oneHour, oneShotMintTx, oneYear, openLrp, parseAccountDatum, parseCDPDatum, parseGovDatum, parseIAssetDatum, parseInterestOracleDatum, parseLrpDatum, parsePriceOracleDatum, parseSnapshotEpochToScaleToSumDatum, parseStabilityPoolDatum, redeemLrp, runCreateScriptRefTx, runOneShotMintTx, scriptRef, serialiseCDPDatum, serialiseFeedInterestOracleRedeemer, serialiseGovDatum, serialiseIAssetDatum, serialiseInterestOracleDatum, serialiseLrpDatum, serialiseLrpRedeemer, serialisePriceOracleDatum, serialiseStabilityPoolDatum, serialiseStabilityPoolRedeemer, setSumInEpochToScaleToSum, spAdd, spDiv, spMul, spSub, toSystemParamsAsset, updatePoolSnapshotWithdrawalFee };
|
package/dist/index.d.ts
CHANGED
|
@@ -561,239 +561,6 @@ declare function createScriptAddress(network: Network, scriptHash: ScriptHash, s
|
|
|
561
561
|
declare function scriptRef(ref: ScriptReference, lucid: LucidEvolution): Promise<UTxO>;
|
|
562
562
|
declare function balance(utxos: UTxO[]): Assets;
|
|
563
563
|
|
|
564
|
-
declare const ONE_SECOND: number;
|
|
565
|
-
declare const oneHour: bigint;
|
|
566
|
-
declare const oneDay: bigint;
|
|
567
|
-
declare const oneYear: bigint;
|
|
568
|
-
|
|
569
|
-
declare const CDPCreatorParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
570
|
-
cdpCreatorNft: _lucid_evolution_lucid.TObject<{
|
|
571
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
572
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
573
|
-
}>;
|
|
574
|
-
cdpAssetCs: _lucid_evolution_lucid.TUnsafe<string>;
|
|
575
|
-
cdpAuthTk: _lucid_evolution_lucid.TObject<{
|
|
576
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
577
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
578
|
-
}>;
|
|
579
|
-
iAssetAuthTk: _lucid_evolution_lucid.TObject<{
|
|
580
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
581
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
582
|
-
}>;
|
|
583
|
-
versionRecordToken: _lucid_evolution_lucid.TObject<{
|
|
584
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
585
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
586
|
-
}>;
|
|
587
|
-
cdpScriptHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
588
|
-
collectorValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
589
|
-
minCollateralInLovelace: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
590
|
-
biasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
591
|
-
}>;
|
|
592
|
-
type CDPCreatorParams = Data.Static<typeof CDPCreatorParamsSchema>;
|
|
593
|
-
declare const CDPCreatorParams: CDPCreatorParams;
|
|
594
|
-
|
|
595
|
-
declare const cdpCreatorValidator: {
|
|
596
|
-
type: ScriptType;
|
|
597
|
-
description: string;
|
|
598
|
-
cborHex: string;
|
|
599
|
-
};
|
|
600
|
-
declare const mkCDPCreatorValidator: (params: CDPCreatorParams) => SpendingValidator;
|
|
601
|
-
declare const mkCDPCreatorValidatorFromSP: (params: CDPCreatorParamsSP) => SpendingValidator;
|
|
602
|
-
|
|
603
|
-
declare const _cdpValidator: {
|
|
604
|
-
type: ScriptType;
|
|
605
|
-
description: string;
|
|
606
|
-
cborHex: string;
|
|
607
|
-
};
|
|
608
|
-
|
|
609
|
-
declare const _collectorValidator: {
|
|
610
|
-
type: ScriptType;
|
|
611
|
-
description: string;
|
|
612
|
-
cborHex: string;
|
|
613
|
-
};
|
|
614
|
-
|
|
615
|
-
declare function mkInterestOracleValidator(params: InterestOracleParams): SpendingValidator;
|
|
616
|
-
|
|
617
|
-
declare const PollShardParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
618
|
-
pollToken: _lucid_evolution_lucid.TObject<{
|
|
619
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
620
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
621
|
-
}>;
|
|
622
|
-
stakingToken: _lucid_evolution_lucid.TObject<{
|
|
623
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
624
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
625
|
-
}>;
|
|
626
|
-
indyAsset: _lucid_evolution_lucid.TObject<{
|
|
627
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
628
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
629
|
-
}>;
|
|
630
|
-
stakingValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
631
|
-
}>;
|
|
632
|
-
type PollShardParams = Data.Static<typeof PollShardParamsSchema>;
|
|
633
|
-
declare const PollShardParams: PollShardParams;
|
|
634
|
-
declare function castPollShardParams(params: PollShardParams): Data;
|
|
635
|
-
|
|
636
|
-
declare const mkPollShardValidator: (params: PollShardParams) => SpendingValidator;
|
|
637
|
-
declare const mkPollShardValidatorFromSP: (params: PollShardParamsSP) => SpendingValidator;
|
|
638
|
-
|
|
639
|
-
declare const PollManagerParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
640
|
-
govNFT: _lucid_evolution_lucid.TObject<{
|
|
641
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
642
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
643
|
-
}>;
|
|
644
|
-
pollToken: _lucid_evolution_lucid.TObject<{
|
|
645
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
646
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
647
|
-
}>;
|
|
648
|
-
upgradeToken: _lucid_evolution_lucid.TObject<{
|
|
649
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
650
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
651
|
-
}>;
|
|
652
|
-
indyAsset: _lucid_evolution_lucid.TObject<{
|
|
653
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
654
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
655
|
-
}>;
|
|
656
|
-
govExecuteValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
657
|
-
pBiasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
658
|
-
shardValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
659
|
-
treasuryValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
660
|
-
initialIndyDistribution: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
661
|
-
}>;
|
|
662
|
-
type PollManagerParams = Data.Static<typeof PollManagerParamsSchema>;
|
|
663
|
-
declare const PollManagerParams: PollManagerParams;
|
|
664
|
-
declare function castPollManagerParams(params: PollManagerParams): Data;
|
|
665
|
-
|
|
666
|
-
declare const mkPollManagerValidator: (params: PollManagerParams) => SpendingValidator;
|
|
667
|
-
declare const mkPollManagerValidatorFromSP: (params: PollManagerParamsSP) => SpendingValidator;
|
|
668
|
-
|
|
669
|
-
declare const _treasuryValidator: {
|
|
670
|
-
type: ScriptType;
|
|
671
|
-
description: string;
|
|
672
|
-
cborHex: string;
|
|
673
|
-
};
|
|
674
|
-
|
|
675
|
-
declare const ExecuteParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
676
|
-
govNFT: _lucid_evolution_lucid.TObject<{
|
|
677
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
678
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
679
|
-
}>;
|
|
680
|
-
upgradeToken: _lucid_evolution_lucid.TObject<{
|
|
681
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
682
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
683
|
-
}>;
|
|
684
|
-
iAssetToken: _lucid_evolution_lucid.TObject<{
|
|
685
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
686
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
687
|
-
}>;
|
|
688
|
-
stabilityPoolToken: _lucid_evolution_lucid.TObject<{
|
|
689
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
690
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
691
|
-
}>;
|
|
692
|
-
versionRecordToken: _lucid_evolution_lucid.TObject<{
|
|
693
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
694
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
695
|
-
}>;
|
|
696
|
-
cdpValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
697
|
-
sPoolValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
698
|
-
versionRegistryValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
699
|
-
treasuryValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
700
|
-
indyAsset: _lucid_evolution_lucid.TObject<{
|
|
701
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
702
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
703
|
-
}>;
|
|
704
|
-
}>;
|
|
705
|
-
type ExecuteParams = Data.Static<typeof ExecuteParamsSchema>;
|
|
706
|
-
declare const ExecuteParams: ExecuteParams;
|
|
707
|
-
declare function castExecuteParams(params: ExecuteParams): Data;
|
|
708
|
-
|
|
709
|
-
declare const GovDatumSchema: _lucid_evolution_lucid.TObject<{
|
|
710
|
-
currentProposal: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
711
|
-
protocolParams: _lucid_evolution_lucid.TObject<{
|
|
712
|
-
proposalDeposit: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
713
|
-
votingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
714
|
-
effectiveDelay: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
715
|
-
expirationPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
716
|
-
collateralFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
717
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
718
|
-
}>;
|
|
719
|
-
proposingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
720
|
-
totalShards: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
721
|
-
minimumQuorum: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
722
|
-
maxTreasuryLovelaceSpend: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
723
|
-
maxTreasuryIndySpend: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
724
|
-
}>;
|
|
725
|
-
currentVersion: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
726
|
-
iassetsCount: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
727
|
-
activeProposals: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
728
|
-
treasuryIndyWithdrawnAmt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
729
|
-
}>;
|
|
730
|
-
type GovDatum = Data.Static<typeof GovDatumSchema>;
|
|
731
|
-
declare function parseGovDatum(datum: Datum): GovDatum;
|
|
732
|
-
declare function serialiseGovDatum(d: GovDatum): Datum;
|
|
733
|
-
declare const GovParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
734
|
-
govNFT: _lucid_evolution_lucid.TObject<{
|
|
735
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
736
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
737
|
-
}>;
|
|
738
|
-
pollToken: _lucid_evolution_lucid.TObject<{
|
|
739
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
740
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
741
|
-
}>;
|
|
742
|
-
upgradeToken: _lucid_evolution_lucid.TObject<{
|
|
743
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
744
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
745
|
-
}>;
|
|
746
|
-
indyAsset: _lucid_evolution_lucid.TObject<{
|
|
747
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
748
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
749
|
-
}>;
|
|
750
|
-
versionRecordToken: _lucid_evolution_lucid.TObject<{
|
|
751
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
752
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
753
|
-
}>;
|
|
754
|
-
pollManagerValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
755
|
-
gBiasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
756
|
-
daoIdentityToken: _lucid_evolution_lucid.TObject<{
|
|
757
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
758
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
759
|
-
}>;
|
|
760
|
-
iAssetAuthToken: _lucid_evolution_lucid.TObject<{
|
|
761
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
762
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
763
|
-
}>;
|
|
764
|
-
}>;
|
|
765
|
-
type GovParams = Data.Static<typeof GovParamsSchema>;
|
|
766
|
-
declare const GovParams: GovParams;
|
|
767
|
-
declare function castGovParams(params: GovParams): Data;
|
|
768
|
-
|
|
769
|
-
declare const OracleAssetNftSchema: _lucid_evolution_lucid.TObject<{
|
|
770
|
-
oracleNft: _lucid_evolution_lucid.TObject<{
|
|
771
|
-
asset: _lucid_evolution_lucid.TObject<{
|
|
772
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
773
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
774
|
-
}>;
|
|
775
|
-
}>;
|
|
776
|
-
}>;
|
|
777
|
-
type OracleAssetNft = Data.Static<typeof OracleAssetNftSchema>;
|
|
778
|
-
declare const PriceOracleParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
779
|
-
owner: _lucid_evolution_lucid.TUnsafe<string>;
|
|
780
|
-
/** Milliseconds */
|
|
781
|
-
biasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
782
|
-
/** Milliseconds */
|
|
783
|
-
expiration: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
784
|
-
}>;
|
|
785
|
-
type PriceOracleParams = Data.Static<typeof PriceOracleParamsSchema>;
|
|
786
|
-
declare const PriceOracleDatumSchema: _lucid_evolution_lucid.TObject<{
|
|
787
|
-
price: _lucid_evolution_lucid.TObject<{
|
|
788
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
789
|
-
}>;
|
|
790
|
-
expiration: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
791
|
-
}>;
|
|
792
|
-
type PriceOracleDatum = Data.Static<typeof PriceOracleDatumSchema>;
|
|
793
|
-
declare function parsePriceOracleDatum(datum: Datum): PriceOracleDatum;
|
|
794
|
-
declare function serialisePriceOracleDatum(datum: PriceOracleDatum): Datum;
|
|
795
|
-
declare function castPriceOracleParams(params: PriceOracleParams): Data;
|
|
796
|
-
|
|
797
564
|
declare const SPIntegerSchema: _lucid_evolution_lucid.TObject<{
|
|
798
565
|
value: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
799
566
|
}>;
|
|
@@ -1225,6 +992,247 @@ declare function spSub(a: SPInteger, b: SPInteger): SPInteger;
|
|
|
1225
992
|
declare function spMul(a: SPInteger, b: SPInteger): SPInteger;
|
|
1226
993
|
declare function spDiv(a: SPInteger, b: SPInteger): SPInteger;
|
|
1227
994
|
|
|
995
|
+
declare function getSumFromEpochToScaleToSum(e2s2s: EpochToScaleToSum, epoch: bigint, scale: bigint): SPInteger | undefined;
|
|
996
|
+
declare function setSumInEpochToScaleToSum(e2s2s: EpochToScaleToSum, epoch: bigint, scale: bigint, sum: SPInteger): EpochToScaleToSum;
|
|
997
|
+
declare function getAccountReward(account: StabilityPoolSnapshot, e2s2s: EpochToScaleToSum): SPInteger;
|
|
998
|
+
declare function getAccountFund(pool: StabilityPoolSnapshot, account: StabilityPoolSnapshot): SPInteger;
|
|
999
|
+
declare function adjust(pool: StabilityPoolSnapshot, account: StabilityPoolSnapshot, e2s2s: EpochToScaleToSum): [StabilityPoolSnapshot, bigint];
|
|
1000
|
+
declare function adjustmentHelper(spESTSTokenRef1: UTxO, spESTSTokenRef2: UTxO | undefined, pool: StabilityPoolSnapshot, e2s2s: EpochToScaleToSum, account: StabilityPoolSnapshot): [StabilityPoolSnapshot, bigint, UTxO[]];
|
|
1001
|
+
declare function updatePoolSnapshotWithdrawalFee(withdrawalFeeAmount: SPInteger, newPoolDepositExcludingFee: SPInteger, pool: StabilityPoolSnapshot): [SPInteger, SPInteger];
|
|
1002
|
+
|
|
1003
|
+
declare const ONE_SECOND: number;
|
|
1004
|
+
declare const oneHour: bigint;
|
|
1005
|
+
declare const oneDay: bigint;
|
|
1006
|
+
declare const oneYear: bigint;
|
|
1007
|
+
|
|
1008
|
+
declare const CDPCreatorParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1009
|
+
cdpCreatorNft: _lucid_evolution_lucid.TObject<{
|
|
1010
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1011
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1012
|
+
}>;
|
|
1013
|
+
cdpAssetCs: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1014
|
+
cdpAuthTk: _lucid_evolution_lucid.TObject<{
|
|
1015
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1016
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1017
|
+
}>;
|
|
1018
|
+
iAssetAuthTk: _lucid_evolution_lucid.TObject<{
|
|
1019
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1020
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1021
|
+
}>;
|
|
1022
|
+
versionRecordToken: _lucid_evolution_lucid.TObject<{
|
|
1023
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1024
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1025
|
+
}>;
|
|
1026
|
+
cdpScriptHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1027
|
+
collectorValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1028
|
+
minCollateralInLovelace: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1029
|
+
biasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1030
|
+
}>;
|
|
1031
|
+
type CDPCreatorParams = Data.Static<typeof CDPCreatorParamsSchema>;
|
|
1032
|
+
declare const CDPCreatorParams: CDPCreatorParams;
|
|
1033
|
+
|
|
1034
|
+
declare const cdpCreatorValidator: {
|
|
1035
|
+
type: ScriptType;
|
|
1036
|
+
description: string;
|
|
1037
|
+
cborHex: string;
|
|
1038
|
+
};
|
|
1039
|
+
declare const mkCDPCreatorValidator: (params: CDPCreatorParams) => SpendingValidator;
|
|
1040
|
+
declare const mkCDPCreatorValidatorFromSP: (params: CDPCreatorParamsSP) => SpendingValidator;
|
|
1041
|
+
|
|
1042
|
+
declare const _cdpValidator: {
|
|
1043
|
+
type: ScriptType;
|
|
1044
|
+
description: string;
|
|
1045
|
+
cborHex: string;
|
|
1046
|
+
};
|
|
1047
|
+
|
|
1048
|
+
declare const _collectorValidator: {
|
|
1049
|
+
type: ScriptType;
|
|
1050
|
+
description: string;
|
|
1051
|
+
cborHex: string;
|
|
1052
|
+
};
|
|
1053
|
+
|
|
1054
|
+
declare function mkInterestOracleValidator(params: InterestOracleParams): SpendingValidator;
|
|
1055
|
+
|
|
1056
|
+
declare const PollShardParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1057
|
+
pollToken: _lucid_evolution_lucid.TObject<{
|
|
1058
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1059
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1060
|
+
}>;
|
|
1061
|
+
stakingToken: _lucid_evolution_lucid.TObject<{
|
|
1062
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1063
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1064
|
+
}>;
|
|
1065
|
+
indyAsset: _lucid_evolution_lucid.TObject<{
|
|
1066
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1067
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1068
|
+
}>;
|
|
1069
|
+
stakingValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1070
|
+
}>;
|
|
1071
|
+
type PollShardParams = Data.Static<typeof PollShardParamsSchema>;
|
|
1072
|
+
declare const PollShardParams: PollShardParams;
|
|
1073
|
+
declare function castPollShardParams(params: PollShardParams): Data;
|
|
1074
|
+
|
|
1075
|
+
declare const mkPollShardValidator: (params: PollShardParams) => SpendingValidator;
|
|
1076
|
+
declare const mkPollShardValidatorFromSP: (params: PollShardParamsSP) => SpendingValidator;
|
|
1077
|
+
|
|
1078
|
+
declare const PollManagerParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1079
|
+
govNFT: _lucid_evolution_lucid.TObject<{
|
|
1080
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1081
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1082
|
+
}>;
|
|
1083
|
+
pollToken: _lucid_evolution_lucid.TObject<{
|
|
1084
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1085
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1086
|
+
}>;
|
|
1087
|
+
upgradeToken: _lucid_evolution_lucid.TObject<{
|
|
1088
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1089
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1090
|
+
}>;
|
|
1091
|
+
indyAsset: _lucid_evolution_lucid.TObject<{
|
|
1092
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1093
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1094
|
+
}>;
|
|
1095
|
+
govExecuteValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1096
|
+
pBiasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1097
|
+
shardValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1098
|
+
treasuryValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1099
|
+
initialIndyDistribution: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1100
|
+
}>;
|
|
1101
|
+
type PollManagerParams = Data.Static<typeof PollManagerParamsSchema>;
|
|
1102
|
+
declare const PollManagerParams: PollManagerParams;
|
|
1103
|
+
declare function castPollManagerParams(params: PollManagerParams): Data;
|
|
1104
|
+
|
|
1105
|
+
declare const mkPollManagerValidator: (params: PollManagerParams) => SpendingValidator;
|
|
1106
|
+
declare const mkPollManagerValidatorFromSP: (params: PollManagerParamsSP) => SpendingValidator;
|
|
1107
|
+
|
|
1108
|
+
declare const _treasuryValidator: {
|
|
1109
|
+
type: ScriptType;
|
|
1110
|
+
description: string;
|
|
1111
|
+
cborHex: string;
|
|
1112
|
+
};
|
|
1113
|
+
|
|
1114
|
+
declare const ExecuteParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1115
|
+
govNFT: _lucid_evolution_lucid.TObject<{
|
|
1116
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1117
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1118
|
+
}>;
|
|
1119
|
+
upgradeToken: _lucid_evolution_lucid.TObject<{
|
|
1120
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1121
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1122
|
+
}>;
|
|
1123
|
+
iAssetToken: _lucid_evolution_lucid.TObject<{
|
|
1124
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1125
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1126
|
+
}>;
|
|
1127
|
+
stabilityPoolToken: _lucid_evolution_lucid.TObject<{
|
|
1128
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1129
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1130
|
+
}>;
|
|
1131
|
+
versionRecordToken: _lucid_evolution_lucid.TObject<{
|
|
1132
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1133
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1134
|
+
}>;
|
|
1135
|
+
cdpValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1136
|
+
sPoolValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1137
|
+
versionRegistryValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1138
|
+
treasuryValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1139
|
+
indyAsset: _lucid_evolution_lucid.TObject<{
|
|
1140
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1141
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1142
|
+
}>;
|
|
1143
|
+
}>;
|
|
1144
|
+
type ExecuteParams = Data.Static<typeof ExecuteParamsSchema>;
|
|
1145
|
+
declare const ExecuteParams: ExecuteParams;
|
|
1146
|
+
declare function castExecuteParams(params: ExecuteParams): Data;
|
|
1147
|
+
|
|
1148
|
+
declare const GovDatumSchema: _lucid_evolution_lucid.TObject<{
|
|
1149
|
+
currentProposal: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1150
|
+
protocolParams: _lucid_evolution_lucid.TObject<{
|
|
1151
|
+
proposalDeposit: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1152
|
+
votingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1153
|
+
effectiveDelay: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1154
|
+
expirationPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1155
|
+
collateralFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
1156
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1157
|
+
}>;
|
|
1158
|
+
proposingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1159
|
+
totalShards: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1160
|
+
minimumQuorum: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1161
|
+
maxTreasuryLovelaceSpend: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1162
|
+
maxTreasuryIndySpend: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1163
|
+
}>;
|
|
1164
|
+
currentVersion: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1165
|
+
iassetsCount: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1166
|
+
activeProposals: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1167
|
+
treasuryIndyWithdrawnAmt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1168
|
+
}>;
|
|
1169
|
+
type GovDatum = Data.Static<typeof GovDatumSchema>;
|
|
1170
|
+
declare function parseGovDatum(datum: Datum): GovDatum;
|
|
1171
|
+
declare function serialiseGovDatum(d: GovDatum): Datum;
|
|
1172
|
+
declare const GovParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1173
|
+
govNFT: _lucid_evolution_lucid.TObject<{
|
|
1174
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1175
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1176
|
+
}>;
|
|
1177
|
+
pollToken: _lucid_evolution_lucid.TObject<{
|
|
1178
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1179
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1180
|
+
}>;
|
|
1181
|
+
upgradeToken: _lucid_evolution_lucid.TObject<{
|
|
1182
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1183
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1184
|
+
}>;
|
|
1185
|
+
indyAsset: _lucid_evolution_lucid.TObject<{
|
|
1186
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1187
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1188
|
+
}>;
|
|
1189
|
+
versionRecordToken: _lucid_evolution_lucid.TObject<{
|
|
1190
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1191
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1192
|
+
}>;
|
|
1193
|
+
pollManagerValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1194
|
+
gBiasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1195
|
+
daoIdentityToken: _lucid_evolution_lucid.TObject<{
|
|
1196
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1197
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1198
|
+
}>;
|
|
1199
|
+
iAssetAuthToken: _lucid_evolution_lucid.TObject<{
|
|
1200
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1201
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1202
|
+
}>;
|
|
1203
|
+
}>;
|
|
1204
|
+
type GovParams = Data.Static<typeof GovParamsSchema>;
|
|
1205
|
+
declare const GovParams: GovParams;
|
|
1206
|
+
declare function castGovParams(params: GovParams): Data;
|
|
1207
|
+
|
|
1208
|
+
declare const OracleAssetNftSchema: _lucid_evolution_lucid.TObject<{
|
|
1209
|
+
oracleNft: _lucid_evolution_lucid.TObject<{
|
|
1210
|
+
asset: _lucid_evolution_lucid.TObject<{
|
|
1211
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1212
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1213
|
+
}>;
|
|
1214
|
+
}>;
|
|
1215
|
+
}>;
|
|
1216
|
+
type OracleAssetNft = Data.Static<typeof OracleAssetNftSchema>;
|
|
1217
|
+
declare const PriceOracleParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1218
|
+
owner: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1219
|
+
/** Milliseconds */
|
|
1220
|
+
biasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1221
|
+
/** Milliseconds */
|
|
1222
|
+
expiration: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1223
|
+
}>;
|
|
1224
|
+
type PriceOracleParams = Data.Static<typeof PriceOracleParamsSchema>;
|
|
1225
|
+
declare const PriceOracleDatumSchema: _lucid_evolution_lucid.TObject<{
|
|
1226
|
+
price: _lucid_evolution_lucid.TObject<{
|
|
1227
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1228
|
+
}>;
|
|
1229
|
+
expiration: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1230
|
+
}>;
|
|
1231
|
+
type PriceOracleDatum = Data.Static<typeof PriceOracleDatumSchema>;
|
|
1232
|
+
declare function parsePriceOracleDatum(datum: Datum): PriceOracleDatum;
|
|
1233
|
+
declare function serialisePriceOracleDatum(datum: PriceOracleDatum): Datum;
|
|
1234
|
+
declare function castPriceOracleParams(params: PriceOracleParams): Data;
|
|
1235
|
+
|
|
1228
1236
|
declare const LRPParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1229
1237
|
versionRecordToken: _lucid_evolution_lucid.TObject<{
|
|
1230
1238
|
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
@@ -1327,4 +1335,4 @@ type OneShotParams = Data.Static<typeof OneShotParamsSchema>;
|
|
|
1327
1335
|
declare function oneShotMintTx(lucid: LucidEvolution, params: OneShotParams): Promise<[TxBuilder, PolicyId]>;
|
|
1328
1336
|
declare function runOneShotMintTx(lucid: LucidEvolution, params: OneShotParams): Promise<PolicyId>;
|
|
1329
1337
|
|
|
1330
|
-
export { AccountAction, AccountActionSchema, AccountContent, AccountContentSchema, ActionReturnDatum, ActionReturnDatumSchema, Address, type AddressCredential, type AddressCredentialOrDatum, type AddressSP, AddressSchema, type Amount, type AssetClass, type AssetClassSP, AssetClassSchema, type AuthTokenPolicies, type CDPContent, CDPContentSchema, CDPContract, type CDPCreatorParamsSP, type CDPDatum, CDPDatumSchema, type CDPFees, CDPFeesSchema, type CdpParams, CollectorContract, type CollectorParams, Credential, CredentialSchema, type CurrencySymbol, type DistributionParams, EpochToScaleToSum, EpochToScaleToSumSchema, ExecuteParams, type ExecuteParamsSP, type FeedInterestOracleRedeemer, FeedInterestOracleRedeemerSchema, GovContract, type GovDatum, GovParams, type GovParamsSP, type IAssetContent, IAssetContentSchema, IAssetHelpers, type IAssetOutput, type Input, InterestOracleContract, type InterestOracleDatum, InterestOracleDatumSchema, type InterestOracleParams, InterestOracleParamsSchema, type LRPDatum, LRPDatumSchema, type LRPParams, LRPParamsSchema, type LRPRedeemer, LRPRedeemerSchema, type LrpParamsSP, ONE_SECOND, type OracleAssetNft, OracleAssetNftSchema, type Output, type OutputReference, OutputReferenceSchema, PollManagerParams, type PollManagerParamsSP, PollShardParams, type PollShardParamsSP, type PriceOracleDatum, PriceOracleDatumSchema, type PriceOracleParams, PriceOracleParamsSchema, type PubKeyHash, SPInteger, SPIntegerSchema, type ScriptCredential, type ScriptOutput, type ScriptRef, type ScriptReference, type ScriptReferences, SnapshotEpochToScaleToSumContent, SnapshotEpochToScaleToSumContentSchema, StabilityPoolContent, StabilityPoolContentSchema, StabilityPoolContract, StabilityPoolDatum, StabilityPoolDatumSchema, StabilityPoolParams, type StabilityPoolParamsSP, StabilityPoolRedeemer, StabilityPoolRedeemerSchema, StabilityPoolSnapshot, StakingContract, type StakingParams, type StartTime, type SystemParams, type TokenName, TreasuryContract, type TreasuryParams, type ValidatorHashes, VerificationKeyHashSchema, type VersionRecordParams, _cdpValidator, _collectorValidator, _treasuryValidator, addrDetails, addressFromBech32, addressToBech32, adjustLrp, balance, calculateFeeFromPercentage, cancelLrp, castExecuteParams, castGovParams, castInterestOracleParams, castLrpParams, castPollManagerParams, castPollShardParams, castPriceOracleParams, castStabilityPoolParams, cdpCreatorValidator, claimLrp, createScriptAddress, fromSPInteger, fromSystemParamsAsset, getInlineDatumOrThrow, getRandomElement, loadSystemParamsFromFile, loadSystemParamsFromUrl, matchSingle, mkCDPCreatorValidator, mkCDPCreatorValidatorFromSP, mkInterestOracleValidator, mkLrpValidator, mkLrpValidatorFromSP, mkPollManagerValidator, mkPollManagerValidatorFromSP, mkPollShardValidator, mkPollShardValidatorFromSP, mkSPInteger, oneDay, oneHour, oneShotMintTx, oneYear, openLrp, parseAccountDatum, parseCDPDatum, parseGovDatum, parseIAssetDatum, parseInterestOracleDatum, parseLrpDatum, parsePriceOracleDatum, parseSnapshotEpochToScaleToSumDatum, parseStabilityPoolDatum, redeemLrp, runCreateScriptRefTx, runOneShotMintTx, scriptRef, serialiseCDPDatum, serialiseFeedInterestOracleRedeemer, serialiseGovDatum, serialiseIAssetDatum, serialiseInterestOracleDatum, serialiseLrpDatum, serialiseLrpRedeemer, serialisePriceOracleDatum, serialiseStabilityPoolDatum, serialiseStabilityPoolRedeemer, spAdd, spDiv, spMul, spSub, toSystemParamsAsset };
|
|
1338
|
+
export { AccountAction, AccountActionSchema, AccountContent, AccountContentSchema, ActionReturnDatum, ActionReturnDatumSchema, Address, type AddressCredential, type AddressCredentialOrDatum, type AddressSP, AddressSchema, type Amount, type AssetClass, type AssetClassSP, AssetClassSchema, type AuthTokenPolicies, type CDPContent, CDPContentSchema, CDPContract, type CDPCreatorParamsSP, type CDPDatum, CDPDatumSchema, type CDPFees, CDPFeesSchema, type CdpParams, CollectorContract, type CollectorParams, Credential, CredentialSchema, type CurrencySymbol, type DistributionParams, EpochToScaleToSum, EpochToScaleToSumSchema, ExecuteParams, type ExecuteParamsSP, type FeedInterestOracleRedeemer, FeedInterestOracleRedeemerSchema, GovContract, type GovDatum, GovParams, type GovParamsSP, type IAssetContent, IAssetContentSchema, IAssetHelpers, type IAssetOutput, type Input, InterestOracleContract, type InterestOracleDatum, InterestOracleDatumSchema, type InterestOracleParams, InterestOracleParamsSchema, type LRPDatum, LRPDatumSchema, type LRPParams, LRPParamsSchema, type LRPRedeemer, LRPRedeemerSchema, type LrpParamsSP, ONE_SECOND, type OracleAssetNft, OracleAssetNftSchema, type Output, type OutputReference, OutputReferenceSchema, PollManagerParams, type PollManagerParamsSP, PollShardParams, type PollShardParamsSP, type PriceOracleDatum, PriceOracleDatumSchema, type PriceOracleParams, PriceOracleParamsSchema, type PubKeyHash, SPInteger, SPIntegerSchema, type ScriptCredential, type ScriptOutput, type ScriptRef, type ScriptReference, type ScriptReferences, SnapshotEpochToScaleToSumContent, SnapshotEpochToScaleToSumContentSchema, StabilityPoolContent, StabilityPoolContentSchema, StabilityPoolContract, StabilityPoolDatum, StabilityPoolDatumSchema, StabilityPoolParams, type StabilityPoolParamsSP, StabilityPoolRedeemer, StabilityPoolRedeemerSchema, StabilityPoolSnapshot, StakingContract, type StakingParams, type StartTime, type SystemParams, type TokenName, TreasuryContract, type TreasuryParams, type ValidatorHashes, VerificationKeyHashSchema, type VersionRecordParams, _cdpValidator, _collectorValidator, _treasuryValidator, addrDetails, addressFromBech32, addressToBech32, adjust, adjustLrp, adjustmentHelper, balance, calculateFeeFromPercentage, cancelLrp, castExecuteParams, castGovParams, castInterestOracleParams, castLrpParams, castPollManagerParams, castPollShardParams, castPriceOracleParams, castStabilityPoolParams, cdpCreatorValidator, claimLrp, createScriptAddress, fromSPInteger, fromSystemParamsAsset, getAccountFund, getAccountReward, getInlineDatumOrThrow, getRandomElement, getSumFromEpochToScaleToSum, loadSystemParamsFromFile, loadSystemParamsFromUrl, matchSingle, mkCDPCreatorValidator, mkCDPCreatorValidatorFromSP, mkInterestOracleValidator, mkLrpValidator, mkLrpValidatorFromSP, mkPollManagerValidator, mkPollManagerValidatorFromSP, mkPollShardValidator, mkPollShardValidatorFromSP, mkSPInteger, oneDay, oneHour, oneShotMintTx, oneYear, openLrp, parseAccountDatum, parseCDPDatum, parseGovDatum, parseIAssetDatum, parseInterestOracleDatum, parseLrpDatum, parsePriceOracleDatum, parseSnapshotEpochToScaleToSumDatum, parseStabilityPoolDatum, redeemLrp, runCreateScriptRefTx, runOneShotMintTx, scriptRef, serialiseCDPDatum, serialiseFeedInterestOracleRedeemer, serialiseGovDatum, serialiseIAssetDatum, serialiseInterestOracleDatum, serialiseLrpDatum, serialiseLrpRedeemer, serialisePriceOracleDatum, serialiseStabilityPoolDatum, serialiseStabilityPoolRedeemer, setSumInEpochToScaleToSum, spAdd, spDiv, spMul, spSub, toSystemParamsAsset, updatePoolSnapshotWithdrawalFee };
|
package/dist/index.js
CHANGED
|
@@ -88,7 +88,9 @@ __export(index_exports, {
|
|
|
88
88
|
addrDetails: () => addrDetails,
|
|
89
89
|
addressFromBech32: () => addressFromBech32,
|
|
90
90
|
addressToBech32: () => addressToBech32,
|
|
91
|
+
adjust: () => adjust,
|
|
91
92
|
adjustLrp: () => adjustLrp,
|
|
93
|
+
adjustmentHelper: () => adjustmentHelper,
|
|
92
94
|
balance: () => balance,
|
|
93
95
|
calculateFeeFromPercentage: () => calculateFeeFromPercentage,
|
|
94
96
|
cancelLrp: () => cancelLrp,
|
|
@@ -105,8 +107,11 @@ __export(index_exports, {
|
|
|
105
107
|
createScriptAddress: () => createScriptAddress,
|
|
106
108
|
fromSPInteger: () => fromSPInteger,
|
|
107
109
|
fromSystemParamsAsset: () => fromSystemParamsAsset,
|
|
110
|
+
getAccountFund: () => getAccountFund,
|
|
111
|
+
getAccountReward: () => getAccountReward,
|
|
108
112
|
getInlineDatumOrThrow: () => getInlineDatumOrThrow,
|
|
109
113
|
getRandomElement: () => getRandomElement,
|
|
114
|
+
getSumFromEpochToScaleToSum: () => getSumFromEpochToScaleToSum,
|
|
110
115
|
loadSystemParamsFromFile: () => loadSystemParamsFromFile,
|
|
111
116
|
loadSystemParamsFromUrl: () => loadSystemParamsFromUrl,
|
|
112
117
|
matchSingle: () => matchSingle,
|
|
@@ -148,11 +153,13 @@ __export(index_exports, {
|
|
|
148
153
|
serialisePriceOracleDatum: () => serialisePriceOracleDatum,
|
|
149
154
|
serialiseStabilityPoolDatum: () => serialiseStabilityPoolDatum,
|
|
150
155
|
serialiseStabilityPoolRedeemer: () => serialiseStabilityPoolRedeemer,
|
|
156
|
+
setSumInEpochToScaleToSum: () => setSumInEpochToScaleToSum,
|
|
151
157
|
spAdd: () => spAdd,
|
|
152
158
|
spDiv: () => spDiv,
|
|
153
159
|
spMul: () => spMul,
|
|
154
160
|
spSub: () => spSub,
|
|
155
|
-
toSystemParamsAsset: () => toSystemParamsAsset
|
|
161
|
+
toSystemParamsAsset: () => toSystemParamsAsset,
|
|
162
|
+
updatePoolSnapshotWithdrawalFee: () => updatePoolSnapshotWithdrawalFee
|
|
156
163
|
});
|
|
157
164
|
module.exports = __toCommonJS(index_exports);
|
|
158
165
|
|
|
@@ -3089,7 +3096,9 @@ async function runCreateScriptRefTx(lucid, scriptRefValidator, network) {
|
|
|
3089
3096
|
addrDetails,
|
|
3090
3097
|
addressFromBech32,
|
|
3091
3098
|
addressToBech32,
|
|
3099
|
+
adjust,
|
|
3092
3100
|
adjustLrp,
|
|
3101
|
+
adjustmentHelper,
|
|
3093
3102
|
balance,
|
|
3094
3103
|
calculateFeeFromPercentage,
|
|
3095
3104
|
cancelLrp,
|
|
@@ -3106,8 +3115,11 @@ async function runCreateScriptRefTx(lucid, scriptRefValidator, network) {
|
|
|
3106
3115
|
createScriptAddress,
|
|
3107
3116
|
fromSPInteger,
|
|
3108
3117
|
fromSystemParamsAsset,
|
|
3118
|
+
getAccountFund,
|
|
3119
|
+
getAccountReward,
|
|
3109
3120
|
getInlineDatumOrThrow,
|
|
3110
3121
|
getRandomElement,
|
|
3122
|
+
getSumFromEpochToScaleToSum,
|
|
3111
3123
|
loadSystemParamsFromFile,
|
|
3112
3124
|
loadSystemParamsFromUrl,
|
|
3113
3125
|
matchSingle,
|
|
@@ -3149,9 +3161,11 @@ async function runCreateScriptRefTx(lucid, scriptRefValidator, network) {
|
|
|
3149
3161
|
serialisePriceOracleDatum,
|
|
3150
3162
|
serialiseStabilityPoolDatum,
|
|
3151
3163
|
serialiseStabilityPoolRedeemer,
|
|
3164
|
+
setSumInEpochToScaleToSum,
|
|
3152
3165
|
spAdd,
|
|
3153
3166
|
spDiv,
|
|
3154
3167
|
spMul,
|
|
3155
3168
|
spSub,
|
|
3156
|
-
toSystemParamsAsset
|
|
3169
|
+
toSystemParamsAsset,
|
|
3170
|
+
updatePoolSnapshotWithdrawalFee
|
|
3157
3171
|
});
|
package/dist/index.mjs
CHANGED
|
@@ -3007,7 +3007,9 @@ export {
|
|
|
3007
3007
|
addrDetails,
|
|
3008
3008
|
addressFromBech32,
|
|
3009
3009
|
addressToBech32,
|
|
3010
|
+
adjust,
|
|
3010
3011
|
adjustLrp,
|
|
3012
|
+
adjustmentHelper,
|
|
3011
3013
|
balance,
|
|
3012
3014
|
calculateFeeFromPercentage,
|
|
3013
3015
|
cancelLrp,
|
|
@@ -3024,8 +3026,11 @@ export {
|
|
|
3024
3026
|
createScriptAddress,
|
|
3025
3027
|
fromSPInteger,
|
|
3026
3028
|
fromSystemParamsAsset,
|
|
3029
|
+
getAccountFund,
|
|
3030
|
+
getAccountReward,
|
|
3027
3031
|
getInlineDatumOrThrow,
|
|
3028
3032
|
getRandomElement,
|
|
3033
|
+
getSumFromEpochToScaleToSum,
|
|
3029
3034
|
loadSystemParamsFromFile,
|
|
3030
3035
|
loadSystemParamsFromUrl,
|
|
3031
3036
|
matchSingle,
|
|
@@ -3067,9 +3072,11 @@ export {
|
|
|
3067
3072
|
serialisePriceOracleDatum,
|
|
3068
3073
|
serialiseStabilityPoolDatum,
|
|
3069
3074
|
serialiseStabilityPoolRedeemer,
|
|
3075
|
+
setSumInEpochToScaleToSum,
|
|
3070
3076
|
spAdd,
|
|
3071
3077
|
spDiv,
|
|
3072
3078
|
spMul,
|
|
3073
3079
|
spSub,
|
|
3074
|
-
toSystemParamsAsset
|
|
3080
|
+
toSystemParamsAsset,
|
|
3081
|
+
updatePoolSnapshotWithdrawalFee
|
|
3075
3082
|
};
|
package/package.json
CHANGED
package/src/index.ts
CHANGED
|
@@ -8,6 +8,7 @@ export * from './contracts/treasury';
|
|
|
8
8
|
export * from './helpers/asset-helpers';
|
|
9
9
|
export * from './helpers/helpers';
|
|
10
10
|
export * from './helpers/lucid-utils';
|
|
11
|
+
export * from './helpers/stability-pool-helpers';
|
|
11
12
|
export * from './helpers/time-helpers';
|
|
12
13
|
export * from './scripts/cdp-creator-validator';
|
|
13
14
|
export * from './scripts/cdp-validator';
|