@indigo-labs/indigo-sdk 0.2.36 → 0.2.38
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 +621 -36
- package/dist/index.d.ts +621 -36
- package/dist/index.js +115793 -1146
- package/dist/index.mjs +115564 -1013
- package/package.json +3 -3
- package/src/contracts/initialize/helpers.ts +45 -0
- package/{tests/endpoints/initialize.ts → src/contracts/initialize/transactions.ts} +240 -264
- package/src/contracts/initialize/types.ts +42 -0
- package/src/contracts/vesting/helpers.ts +2 -2
- package/src/index.ts +10 -0
- package/src/utils/lucid-utils.ts +9 -0
- package/tests/cdp.test.ts +1 -1
- package/tests/gov.test.ts +1 -1
- package/tests/initialize.test.ts +1 -1
- package/tests/lrp-leverage.test.ts +1 -1
- package/tests/lrp.test.ts +1 -1
- package/tests/mock/assets-mock.ts +2 -29
- package/tests/stability-pool.test.ts +1 -1
- package/tests/staking.test.ts +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _lucid_evolution_lucid from '@lucid-evolution/lucid';
|
|
2
|
-
import { Data, Network, OutRef, Credential, UTxO, LucidEvolution, Datum, ScriptHash, Address, Assets, TxBuilder, Redeemer, SpendingValidator, MintingPolicy, PolicyId, Unit } from '@lucid-evolution/lucid';
|
|
2
|
+
import { Data, Network, OutRef, Credential, UTxO, LucidEvolution, Datum, ScriptHash, Address, Assets, SLOT_CONFIG_NETWORK, TxBuilder, Redeemer, SpendingValidator, MintingPolicy, PolicyId, Unit } from '@lucid-evolution/lucid';
|
|
3
3
|
import { option, ord } from 'fp-ts';
|
|
4
4
|
import { Core } from '@evolution-sdk/evolution';
|
|
5
5
|
|
|
@@ -329,6 +329,7 @@ declare function addrDetails(lucid: LucidEvolution): Promise<[Credential, Creden
|
|
|
329
329
|
declare function createScriptAddress(network: Network, scriptHash: ScriptHash, stakeCredential?: Credential): Address;
|
|
330
330
|
declare function scriptRef(ref: ScriptReference, lucid: LucidEvolution): Promise<UTxO>;
|
|
331
331
|
declare function balance(utxos: UTxO[]): Assets;
|
|
332
|
+
declare function updateSlotConfigNetwork(slotConfigNetwork: typeof SLOT_CONFIG_NETWORK): void;
|
|
332
333
|
|
|
333
334
|
declare function openCdp(collateralAmount: bigint, mintedAmount: bigint, sysParams: SystemParams, cdpCreator: UtxoOrOutRef, iasset: UtxoOrOutRef, priceOracle: UtxoOrOutRef, interestOracle: UtxoOrOutRef, collector: UtxoOrOutRef, lucid: LucidEvolution, currentSlot: number): Promise<TxBuilder>;
|
|
334
335
|
declare function depositCdp(amount: bigint, cdp: UtxoOrOutRef, iasset: UtxoOrOutRef, priceOracle: UtxoOrOutRef, interestOracle: UtxoOrOutRef, collector: UtxoOrOutRef, gov: UtxoOrOutRef, treasury: UtxoOrOutRef, params: SystemParams, lucid: LucidEvolution, currentSlot: number): Promise<TxBuilder>;
|
|
@@ -795,6 +796,10 @@ declare const mkPollShardValidatorFromSP: (params: PollShardParamsSP) => Spendin
|
|
|
795
796
|
|
|
796
797
|
declare function collectorFeeTx(fee: bigint, lucid: LucidEvolution, params: SystemParams, tx: TxBuilder, collector: UtxoOrOutRef): Promise<void>;
|
|
797
798
|
|
|
799
|
+
declare const CollectorRedeemerSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TLiteral<"UpgradeVersion"> | _lucid_evolution_lucid.TLiteral<"Collect"> | _lucid_evolution_lucid.TLiteral<"DistributeToStakers">)[]>;
|
|
800
|
+
type CollectorRedeemer = Data.Static<typeof CollectorRedeemerSchema>;
|
|
801
|
+
declare function serialiseCollectorRedeemer(redeemer: CollectorRedeemer): Redeemer;
|
|
802
|
+
|
|
798
803
|
declare const GovDatumSchema: _lucid_evolution_lucid.TObject<{
|
|
799
804
|
currentProposal: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
800
805
|
protocolParams: _lucid_evolution_lucid.TObject<{
|
|
@@ -1036,6 +1041,63 @@ declare function serialiseGovDatum(d: GovDatum): Datum;
|
|
|
1036
1041
|
declare function serialiseGovRedeemer(redeemer: GovRedeemer): Redeemer;
|
|
1037
1042
|
declare function castGovParams(params: GovParams): Data;
|
|
1038
1043
|
|
|
1044
|
+
declare const ProtocolParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1045
|
+
proposalDeposit: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1046
|
+
votingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1047
|
+
effectiveDelay: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1048
|
+
expirationPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1049
|
+
collateralFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
1050
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1051
|
+
}>;
|
|
1052
|
+
proposingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1053
|
+
totalShards: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1054
|
+
minimumQuorum: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1055
|
+
maxTreasuryLovelaceSpend: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1056
|
+
maxTreasuryIndySpend: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1057
|
+
}>;
|
|
1058
|
+
type ProtocolParams = Data.Static<typeof ProtocolParamsSchema>;
|
|
1059
|
+
declare const ProtocolParams: ProtocolParams;
|
|
1060
|
+
declare const ProposeAssetContentSchema: _lucid_evolution_lucid.TObject<{
|
|
1061
|
+
asset: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1062
|
+
priceOracleNft: _lucid_evolution_lucid.TObject<{
|
|
1063
|
+
oracleNft: _lucid_evolution_lucid.TObject<{
|
|
1064
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1065
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1066
|
+
}>;
|
|
1067
|
+
}>;
|
|
1068
|
+
interestOracleNft: _lucid_evolution_lucid.TObject<{
|
|
1069
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1070
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1071
|
+
}>;
|
|
1072
|
+
redemptionRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
1073
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1074
|
+
}>;
|
|
1075
|
+
maintenanceRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
1076
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1077
|
+
}>;
|
|
1078
|
+
liquidationRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
1079
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1080
|
+
}>;
|
|
1081
|
+
debtMintingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
1082
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1083
|
+
}>;
|
|
1084
|
+
liquidationProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
1085
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1086
|
+
}>;
|
|
1087
|
+
stabilityPoolWithdrawalFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
1088
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1089
|
+
}>;
|
|
1090
|
+
redemptionReimbursementPercentage: _lucid_evolution_lucid.TObject<{
|
|
1091
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1092
|
+
}>;
|
|
1093
|
+
redemptionProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
1094
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1095
|
+
}>;
|
|
1096
|
+
interestCollectorPortionPercentage: _lucid_evolution_lucid.TObject<{
|
|
1097
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1098
|
+
}>;
|
|
1099
|
+
}>;
|
|
1100
|
+
type ProposeAssetContent = Data.Static<typeof ProposeAssetContentSchema>;
|
|
1039
1101
|
declare const ProposalContentSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
|
|
1040
1102
|
ProposeAsset: _lucid_evolution_lucid.TObject<{
|
|
1041
1103
|
asset: _lucid_evolution_lucid.TUnsafe<string>;
|
|
@@ -1156,6 +1218,15 @@ declare const ProposalContentSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolu
|
|
|
1156
1218
|
}>)[]>;
|
|
1157
1219
|
type ProposalContent = Data.Static<typeof ProposalContentSchema>;
|
|
1158
1220
|
declare const ProposalContent: ProposalContent;
|
|
1221
|
+
declare const UpgradePathsSchema: Core.TSchema.Struct<{
|
|
1222
|
+
upgradeId: Core.TSchema.Integer;
|
|
1223
|
+
upgradePaths: Core.TSchema.Map<Core.TSchema.ByteArray, Core.TSchema.Struct<{
|
|
1224
|
+
upgradeSymbol: Core.TSchema.ByteArray;
|
|
1225
|
+
}>>;
|
|
1226
|
+
}>;
|
|
1227
|
+
type UpgradePaths = typeof UpgradePathsSchema.Type;
|
|
1228
|
+
declare function serialiseUpgradePaths(d: UpgradePaths): Data;
|
|
1229
|
+
declare function parseUpgradePaths(d: Data): UpgradePaths;
|
|
1159
1230
|
|
|
1160
1231
|
/**
|
|
1161
1232
|
* Returns the new PollId.
|
|
@@ -1665,6 +1736,52 @@ declare const mkVersionRegistryValidator: () => SpendingValidator;
|
|
|
1665
1736
|
|
|
1666
1737
|
declare function treasuryFeeTx(fee: bigint, lucid: LucidEvolution, sysParams: SystemParams, tx: TxBuilder, treasury: UtxoOrOutRef): Promise<void>;
|
|
1667
1738
|
|
|
1739
|
+
declare const OracleAssetNftSchema: _lucid_evolution_lucid.TObject<{
|
|
1740
|
+
oracleNft: _lucid_evolution_lucid.TObject<{
|
|
1741
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1742
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1743
|
+
}>;
|
|
1744
|
+
}>;
|
|
1745
|
+
type OracleAssetNft = Data.Static<typeof OracleAssetNftSchema>;
|
|
1746
|
+
declare const PriceOracleParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1747
|
+
owner: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1748
|
+
/** Milliseconds */
|
|
1749
|
+
biasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1750
|
+
/** Milliseconds */
|
|
1751
|
+
expiration: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1752
|
+
}>;
|
|
1753
|
+
type PriceOracleParams = Data.Static<typeof PriceOracleParamsSchema>;
|
|
1754
|
+
declare const PriceOracleDatumSchema: _lucid_evolution_lucid.TObject<{
|
|
1755
|
+
price: _lucid_evolution_lucid.TObject<{
|
|
1756
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1757
|
+
}>;
|
|
1758
|
+
expiration: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1759
|
+
}>;
|
|
1760
|
+
type PriceOracleDatum = Data.Static<typeof PriceOracleDatumSchema>;
|
|
1761
|
+
declare const PriceOracleRedeemerSchema: _lucid_evolution_lucid.TObject<{
|
|
1762
|
+
currentTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1763
|
+
newPrice: _lucid_evolution_lucid.TObject<{
|
|
1764
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1765
|
+
}>;
|
|
1766
|
+
}>;
|
|
1767
|
+
type PriceOracleRedeemer = Data.Static<typeof PriceOracleRedeemerSchema>;
|
|
1768
|
+
declare function serialisePriceOracleRedeemer(r: PriceOracleRedeemer): Redeemer;
|
|
1769
|
+
declare function parsePriceOracleDatum(datum: Datum): PriceOracleDatum;
|
|
1770
|
+
declare function serialisePriceOracleDatum(datum: PriceOracleDatum): Datum;
|
|
1771
|
+
declare function castPriceOracleParams(params: PriceOracleParams): Data;
|
|
1772
|
+
|
|
1773
|
+
declare function startPriceOracleTx(lucid: LucidEvolution, assetName: string, startPrice: OnChainDecimal, oracleParams: PriceOracleParams, now?: number, refOutRef?: OutRef): Promise<[TxBuilder, OracleAssetNft]>;
|
|
1774
|
+
declare function feedPriceOracleTx(lucid: LucidEvolution, oracle: UtxoOrOutRef, newPrice: OnChainDecimal, oracleParams: PriceOracleParams, currentSlot: number): Promise<TxBuilder>;
|
|
1775
|
+
|
|
1776
|
+
/**
|
|
1777
|
+
* Calculates the validity range based on the oracle expiration,
|
|
1778
|
+
* and caps the upper bound when necessary.
|
|
1779
|
+
*/
|
|
1780
|
+
declare function oracleExpirationAwareValidity(currentSlot: number, biasTime: number, oracleExpiration: number, network: Network): {
|
|
1781
|
+
validFrom: number;
|
|
1782
|
+
validTo: number;
|
|
1783
|
+
};
|
|
1784
|
+
|
|
1668
1785
|
declare const initSpSnapshot: StabilityPoolSnapshot;
|
|
1669
1786
|
declare const initEpochToScaleToSumMap: () => EpochToScaleToSum;
|
|
1670
1787
|
declare function getSumFromEpochToScaleToSum(e2s2s: EpochToScaleToSum, epoch: bigint, scale: bigint): SPInteger | undefined;
|
|
@@ -1694,6 +1811,45 @@ declare const mkCollectorValidatorFromSP: (params: CollectorParamsSP) => Spendin
|
|
|
1694
1811
|
|
|
1695
1812
|
declare const mkTreasuryValidatorFromSP: (params: TreasuryParamsSP) => SpendingValidator;
|
|
1696
1813
|
|
|
1814
|
+
declare const TreasuryParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1815
|
+
upgradeToken: _lucid_evolution_lucid.TObject<{
|
|
1816
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1817
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1818
|
+
}>;
|
|
1819
|
+
versionRecordToken: _lucid_evolution_lucid.TObject<{
|
|
1820
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1821
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1822
|
+
}>;
|
|
1823
|
+
treasuryUtxosStakeCredential: _lucid_evolution_lucid.TUnsafe<{
|
|
1824
|
+
Inline: [{
|
|
1825
|
+
PublicKeyCredential: [string];
|
|
1826
|
+
} | {
|
|
1827
|
+
ScriptCredential: [string];
|
|
1828
|
+
}];
|
|
1829
|
+
} | {
|
|
1830
|
+
Pointer: [{
|
|
1831
|
+
slotNumber: bigint;
|
|
1832
|
+
transactionIndex: bigint;
|
|
1833
|
+
certificateIndex: bigint;
|
|
1834
|
+
}];
|
|
1835
|
+
} | null>;
|
|
1836
|
+
}>;
|
|
1837
|
+
type TreasuryParams = Data.Static<typeof TreasuryParamsSchema>;
|
|
1838
|
+
declare const TreasuryParams: TreasuryParams;
|
|
1839
|
+
declare const TreasuryRedeemerSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TLiteral<"UpgradeVersion"> | _lucid_evolution_lucid.TLiteral<"Withdraw"> | _lucid_evolution_lucid.TLiteral<"PrepareWithdraw"> | _lucid_evolution_lucid.TLiteral<"Split"> | _lucid_evolution_lucid.TLiteral<"Merge"> | _lucid_evolution_lucid.TLiteral<"CollectAda">)[]>;
|
|
1840
|
+
type TreasuryRedeemer = Data.Static<typeof TreasuryRedeemerSchema>;
|
|
1841
|
+
declare const WithdrawalOutputDatumSchema: _lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TUnsafe<string>, _lucid_evolution_lucid.TObject<{
|
|
1842
|
+
txHash: _lucid_evolution_lucid.TObject<{
|
|
1843
|
+
hash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1844
|
+
}>;
|
|
1845
|
+
outputIndex: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1846
|
+
}>]>;
|
|
1847
|
+
type WithdrawalOutputDatum = Data.Static<typeof WithdrawalOutputDatumSchema>;
|
|
1848
|
+
declare function serialiseWithdrawalOutputDatum(d: WithdrawalOutputDatum): Datum;
|
|
1849
|
+
declare function serialiseTreasuryRedeemer(redeemer: TreasuryRedeemer): Redeemer;
|
|
1850
|
+
declare function serialiseTreasuryDatum(): Datum;
|
|
1851
|
+
declare function castTreasuryParams(params: TreasuryParams): Data;
|
|
1852
|
+
|
|
1697
1853
|
declare const ExecuteParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1698
1854
|
govNFT: _lucid_evolution_lucid.TObject<{
|
|
1699
1855
|
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
@@ -1883,40 +2039,6 @@ declare function castExecuteParams(params: ExecuteParams): Data;
|
|
|
1883
2039
|
declare const mkExecuteValidator: (params: ExecuteParams) => SpendingValidator;
|
|
1884
2040
|
declare const mkExecuteValidatorFromSP: (params: ExecuteParamsSP) => SpendingValidator;
|
|
1885
2041
|
|
|
1886
|
-
declare const OracleAssetNftSchema: _lucid_evolution_lucid.TObject<{
|
|
1887
|
-
oracleNft: _lucid_evolution_lucid.TObject<{
|
|
1888
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1889
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1890
|
-
}>;
|
|
1891
|
-
}>;
|
|
1892
|
-
type OracleAssetNft = Data.Static<typeof OracleAssetNftSchema>;
|
|
1893
|
-
declare const PriceOracleParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1894
|
-
owner: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1895
|
-
/** Milliseconds */
|
|
1896
|
-
biasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1897
|
-
/** Milliseconds */
|
|
1898
|
-
expiration: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1899
|
-
}>;
|
|
1900
|
-
type PriceOracleParams = Data.Static<typeof PriceOracleParamsSchema>;
|
|
1901
|
-
declare const PriceOracleDatumSchema: _lucid_evolution_lucid.TObject<{
|
|
1902
|
-
price: _lucid_evolution_lucid.TObject<{
|
|
1903
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1904
|
-
}>;
|
|
1905
|
-
expiration: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1906
|
-
}>;
|
|
1907
|
-
type PriceOracleDatum = Data.Static<typeof PriceOracleDatumSchema>;
|
|
1908
|
-
declare const PriceOracleRedeemerSchema: _lucid_evolution_lucid.TObject<{
|
|
1909
|
-
currentTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1910
|
-
newPrice: _lucid_evolution_lucid.TObject<{
|
|
1911
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1912
|
-
}>;
|
|
1913
|
-
}>;
|
|
1914
|
-
type PriceOracleRedeemer = Data.Static<typeof PriceOracleRedeemerSchema>;
|
|
1915
|
-
declare function serialisePriceOracleRedeemer(r: PriceOracleRedeemer): Redeemer;
|
|
1916
|
-
declare function parsePriceOracleDatum(datum: Datum): PriceOracleDatum;
|
|
1917
|
-
declare function serialisePriceOracleDatum(datum: PriceOracleDatum): Datum;
|
|
1918
|
-
declare function castPriceOracleParams(params: PriceOracleParams): Data;
|
|
1919
|
-
|
|
1920
2042
|
declare const ActionReturnDatumSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
|
|
1921
2043
|
IndigoStabilityPoolAccountAdjustment: _lucid_evolution_lucid.TObject<{
|
|
1922
2044
|
spent_account: _lucid_evolution_lucid.TObject<{
|
|
@@ -1978,6 +2100,398 @@ type StabilityPoolParams = Data.Static<typeof StabilityPoolParamsSchema>;
|
|
|
1978
2100
|
declare const StabilityPoolParams: StabilityPoolParams;
|
|
1979
2101
|
declare function castStabilityPoolParams(params: StabilityPoolParams): Data;
|
|
1980
2102
|
|
|
2103
|
+
declare const PollStatusSchema: _lucid_evolution_lucid.TObject<{
|
|
2104
|
+
yesVotes: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2105
|
+
noVotes: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2106
|
+
}>;
|
|
2107
|
+
type PollStatus = Data.Static<typeof PollStatusSchema>;
|
|
2108
|
+
declare const PollManagerContentSchema: _lucid_evolution_lucid.TObject<{
|
|
2109
|
+
pollId: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2110
|
+
pollOwner: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2111
|
+
content: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
|
|
2112
|
+
ProposeAsset: _lucid_evolution_lucid.TObject<{
|
|
2113
|
+
asset: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2114
|
+
priceOracleNft: _lucid_evolution_lucid.TObject<{
|
|
2115
|
+
oracleNft: _lucid_evolution_lucid.TObject<{
|
|
2116
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2117
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2118
|
+
}>;
|
|
2119
|
+
}>;
|
|
2120
|
+
interestOracleNft: _lucid_evolution_lucid.TObject<{
|
|
2121
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2122
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2123
|
+
}>;
|
|
2124
|
+
redemptionRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2125
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2126
|
+
}>;
|
|
2127
|
+
maintenanceRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2128
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2129
|
+
}>;
|
|
2130
|
+
liquidationRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2131
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2132
|
+
}>;
|
|
2133
|
+
debtMintingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2134
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2135
|
+
}>;
|
|
2136
|
+
liquidationProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2137
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2138
|
+
}>;
|
|
2139
|
+
stabilityPoolWithdrawalFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2140
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2141
|
+
}>;
|
|
2142
|
+
redemptionReimbursementPercentage: _lucid_evolution_lucid.TObject<{
|
|
2143
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2144
|
+
}>;
|
|
2145
|
+
redemptionProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2146
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2147
|
+
}>;
|
|
2148
|
+
interestCollectorPortionPercentage: _lucid_evolution_lucid.TObject<{
|
|
2149
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2150
|
+
}>;
|
|
2151
|
+
}>;
|
|
2152
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2153
|
+
ModifyAsset: _lucid_evolution_lucid.TObject<{
|
|
2154
|
+
asset: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2155
|
+
newAssetPriceInfo: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
|
|
2156
|
+
Delisted: _lucid_evolution_lucid.TObject<{
|
|
2157
|
+
content: _lucid_evolution_lucid.TObject<{
|
|
2158
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2159
|
+
}>;
|
|
2160
|
+
}>;
|
|
2161
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2162
|
+
Oracle: _lucid_evolution_lucid.TObject<{
|
|
2163
|
+
content: _lucid_evolution_lucid.TObject<{
|
|
2164
|
+
oracleNft: _lucid_evolution_lucid.TObject<{
|
|
2165
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2166
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2167
|
+
}>;
|
|
2168
|
+
}>;
|
|
2169
|
+
}>;
|
|
2170
|
+
}>)[]>;
|
|
2171
|
+
newInterestOracleNft: _lucid_evolution_lucid.TObject<{
|
|
2172
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2173
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2174
|
+
}>;
|
|
2175
|
+
newRedemptionRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2176
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2177
|
+
}>;
|
|
2178
|
+
newMaintenanceRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2179
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2180
|
+
}>;
|
|
2181
|
+
newLiquidationRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2182
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2183
|
+
}>;
|
|
2184
|
+
newDebtMintingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2185
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2186
|
+
}>;
|
|
2187
|
+
newLiquidationProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2188
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2189
|
+
}>;
|
|
2190
|
+
newStabilityPoolWithdrawalFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2191
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2192
|
+
}>;
|
|
2193
|
+
newRedemptionReimbursementPercentage: _lucid_evolution_lucid.TObject<{
|
|
2194
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2195
|
+
}>;
|
|
2196
|
+
newRedemptionProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2197
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2198
|
+
}>;
|
|
2199
|
+
newInterestCollectorPortionPercentage: _lucid_evolution_lucid.TObject<{
|
|
2200
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2201
|
+
}>;
|
|
2202
|
+
}>;
|
|
2203
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2204
|
+
ModifyProtocolParams: _lucid_evolution_lucid.TObject<{
|
|
2205
|
+
newParams: _lucid_evolution_lucid.TObject<{
|
|
2206
|
+
proposalDeposit: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2207
|
+
votingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2208
|
+
effectiveDelay: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2209
|
+
expirationPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2210
|
+
collateralFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2211
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2212
|
+
}>;
|
|
2213
|
+
proposingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2214
|
+
totalShards: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2215
|
+
minimumQuorum: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2216
|
+
maxTreasuryLovelaceSpend: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2217
|
+
maxTreasuryIndySpend: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2218
|
+
}>;
|
|
2219
|
+
}>;
|
|
2220
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2221
|
+
UpgradeProtocol: _lucid_evolution_lucid.TObject<{
|
|
2222
|
+
content: _lucid_evolution_lucid.TUnsafe<Data>;
|
|
2223
|
+
}>;
|
|
2224
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2225
|
+
TextProposal: _lucid_evolution_lucid.TObject<{
|
|
2226
|
+
bytes: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2227
|
+
}>;
|
|
2228
|
+
}>)[]>;
|
|
2229
|
+
treasuryWithdrawal: _lucid_evolution_lucid.TUnsafe<{
|
|
2230
|
+
value: [string, string, bigint][];
|
|
2231
|
+
destination: {
|
|
2232
|
+
paymentCredential: {
|
|
2233
|
+
PublicKeyCredential: [string];
|
|
2234
|
+
} | {
|
|
2235
|
+
ScriptCredential: [string];
|
|
2236
|
+
};
|
|
2237
|
+
stakeCredential: {
|
|
2238
|
+
Inline: [{
|
|
2239
|
+
PublicKeyCredential: [string];
|
|
2240
|
+
} | {
|
|
2241
|
+
ScriptCredential: [string];
|
|
2242
|
+
}];
|
|
2243
|
+
} | {
|
|
2244
|
+
Pointer: [{
|
|
2245
|
+
slotNumber: bigint;
|
|
2246
|
+
transactionIndex: bigint;
|
|
2247
|
+
certificateIndex: bigint;
|
|
2248
|
+
}];
|
|
2249
|
+
} | null;
|
|
2250
|
+
};
|
|
2251
|
+
} | null>;
|
|
2252
|
+
status: _lucid_evolution_lucid.TObject<{
|
|
2253
|
+
yesVotes: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2254
|
+
noVotes: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2255
|
+
}>;
|
|
2256
|
+
votingEndTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2257
|
+
createdShardsCount: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2258
|
+
talliedShardsCount: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2259
|
+
totalShardsCount: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2260
|
+
proposingEndTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2261
|
+
expirationTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2262
|
+
protocolVersion: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2263
|
+
minimumQuorum: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2264
|
+
}>;
|
|
2265
|
+
type PollManagerContent = Data.Static<typeof PollManagerContentSchema>;
|
|
2266
|
+
declare const PollShardContentSchema: _lucid_evolution_lucid.TObject<{
|
|
2267
|
+
pollId: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2268
|
+
status: _lucid_evolution_lucid.TObject<{
|
|
2269
|
+
yesVotes: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2270
|
+
noVotes: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2271
|
+
}>;
|
|
2272
|
+
votingEndTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2273
|
+
managerAddress: _lucid_evolution_lucid.TObject<{
|
|
2274
|
+
paymentCredential: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
|
|
2275
|
+
PublicKeyCredential: _lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TUnsafe<string>]>;
|
|
2276
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2277
|
+
ScriptCredential: _lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TUnsafe<string>]>;
|
|
2278
|
+
}>)[]>;
|
|
2279
|
+
stakeCredential: _lucid_evolution_lucid.TUnsafe<{
|
|
2280
|
+
Inline: [{
|
|
2281
|
+
PublicKeyCredential: [string];
|
|
2282
|
+
} | {
|
|
2283
|
+
ScriptCredential: [string];
|
|
2284
|
+
}];
|
|
2285
|
+
} | {
|
|
2286
|
+
Pointer: [{
|
|
2287
|
+
slotNumber: bigint;
|
|
2288
|
+
transactionIndex: bigint;
|
|
2289
|
+
certificateIndex: bigint;
|
|
2290
|
+
}];
|
|
2291
|
+
} | null>;
|
|
2292
|
+
}>;
|
|
2293
|
+
}>;
|
|
2294
|
+
type PollShardContent = Data.Static<typeof PollShardContentSchema>;
|
|
2295
|
+
declare const PollDatumSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
|
|
2296
|
+
PollManager: _lucid_evolution_lucid.TObject<{
|
|
2297
|
+
content: _lucid_evolution_lucid.TObject<{
|
|
2298
|
+
pollId: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2299
|
+
pollOwner: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2300
|
+
content: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
|
|
2301
|
+
ProposeAsset: _lucid_evolution_lucid.TObject<{
|
|
2302
|
+
asset: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2303
|
+
priceOracleNft: _lucid_evolution_lucid.TObject<{
|
|
2304
|
+
oracleNft: _lucid_evolution_lucid.TObject<{
|
|
2305
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2306
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2307
|
+
}>;
|
|
2308
|
+
}>;
|
|
2309
|
+
interestOracleNft: _lucid_evolution_lucid.TObject<{
|
|
2310
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2311
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2312
|
+
}>;
|
|
2313
|
+
redemptionRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2314
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2315
|
+
}>;
|
|
2316
|
+
maintenanceRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2317
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2318
|
+
}>;
|
|
2319
|
+
liquidationRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2320
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2321
|
+
}>;
|
|
2322
|
+
debtMintingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2323
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2324
|
+
}>;
|
|
2325
|
+
liquidationProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2326
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2327
|
+
}>;
|
|
2328
|
+
stabilityPoolWithdrawalFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2329
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2330
|
+
}>;
|
|
2331
|
+
redemptionReimbursementPercentage: _lucid_evolution_lucid.TObject<{
|
|
2332
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2333
|
+
}>;
|
|
2334
|
+
redemptionProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2335
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2336
|
+
}>;
|
|
2337
|
+
interestCollectorPortionPercentage: _lucid_evolution_lucid.TObject<{
|
|
2338
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2339
|
+
}>;
|
|
2340
|
+
}>;
|
|
2341
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2342
|
+
ModifyAsset: _lucid_evolution_lucid.TObject<{
|
|
2343
|
+
asset: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2344
|
+
newAssetPriceInfo: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
|
|
2345
|
+
Delisted: _lucid_evolution_lucid.TObject<{
|
|
2346
|
+
content: _lucid_evolution_lucid.TObject<{
|
|
2347
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2348
|
+
}>;
|
|
2349
|
+
}>;
|
|
2350
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2351
|
+
Oracle: _lucid_evolution_lucid.TObject<{
|
|
2352
|
+
content: _lucid_evolution_lucid.TObject<{
|
|
2353
|
+
oracleNft: _lucid_evolution_lucid.TObject<{
|
|
2354
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2355
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2356
|
+
}>;
|
|
2357
|
+
}>;
|
|
2358
|
+
}>;
|
|
2359
|
+
}>)[]>;
|
|
2360
|
+
newInterestOracleNft: _lucid_evolution_lucid.TObject<{
|
|
2361
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2362
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2363
|
+
}>;
|
|
2364
|
+
newRedemptionRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2365
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2366
|
+
}>;
|
|
2367
|
+
newMaintenanceRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2368
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2369
|
+
}>;
|
|
2370
|
+
newLiquidationRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2371
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2372
|
+
}>;
|
|
2373
|
+
newDebtMintingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2374
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2375
|
+
}>;
|
|
2376
|
+
newLiquidationProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2377
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2378
|
+
}>;
|
|
2379
|
+
newStabilityPoolWithdrawalFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2380
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2381
|
+
}>;
|
|
2382
|
+
newRedemptionReimbursementPercentage: _lucid_evolution_lucid.TObject<{
|
|
2383
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2384
|
+
}>;
|
|
2385
|
+
newRedemptionProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2386
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2387
|
+
}>;
|
|
2388
|
+
newInterestCollectorPortionPercentage: _lucid_evolution_lucid.TObject<{
|
|
2389
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2390
|
+
}>;
|
|
2391
|
+
}>;
|
|
2392
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2393
|
+
ModifyProtocolParams: _lucid_evolution_lucid.TObject<{
|
|
2394
|
+
newParams: _lucid_evolution_lucid.TObject<{
|
|
2395
|
+
proposalDeposit: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2396
|
+
votingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2397
|
+
effectiveDelay: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2398
|
+
expirationPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2399
|
+
collateralFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2400
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2401
|
+
}>;
|
|
2402
|
+
proposingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2403
|
+
totalShards: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2404
|
+
minimumQuorum: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2405
|
+
maxTreasuryLovelaceSpend: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2406
|
+
maxTreasuryIndySpend: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2407
|
+
}>;
|
|
2408
|
+
}>;
|
|
2409
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2410
|
+
UpgradeProtocol: _lucid_evolution_lucid.TObject<{
|
|
2411
|
+
content: _lucid_evolution_lucid.TUnsafe<Data>;
|
|
2412
|
+
}>;
|
|
2413
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2414
|
+
TextProposal: _lucid_evolution_lucid.TObject<{
|
|
2415
|
+
bytes: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2416
|
+
}>;
|
|
2417
|
+
}>)[]>;
|
|
2418
|
+
treasuryWithdrawal: _lucid_evolution_lucid.TUnsafe<{
|
|
2419
|
+
value: [string, string, bigint][];
|
|
2420
|
+
destination: {
|
|
2421
|
+
paymentCredential: {
|
|
2422
|
+
PublicKeyCredential: [string];
|
|
2423
|
+
} | {
|
|
2424
|
+
ScriptCredential: [string];
|
|
2425
|
+
};
|
|
2426
|
+
stakeCredential: {
|
|
2427
|
+
Inline: [{
|
|
2428
|
+
PublicKeyCredential: [string];
|
|
2429
|
+
} | {
|
|
2430
|
+
ScriptCredential: [string];
|
|
2431
|
+
}];
|
|
2432
|
+
} | {
|
|
2433
|
+
Pointer: [{
|
|
2434
|
+
slotNumber: bigint;
|
|
2435
|
+
transactionIndex: bigint;
|
|
2436
|
+
certificateIndex: bigint;
|
|
2437
|
+
}];
|
|
2438
|
+
} | null;
|
|
2439
|
+
};
|
|
2440
|
+
} | null>;
|
|
2441
|
+
status: _lucid_evolution_lucid.TObject<{
|
|
2442
|
+
yesVotes: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2443
|
+
noVotes: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2444
|
+
}>;
|
|
2445
|
+
votingEndTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2446
|
+
createdShardsCount: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2447
|
+
talliedShardsCount: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2448
|
+
totalShardsCount: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2449
|
+
proposingEndTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2450
|
+
expirationTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2451
|
+
protocolVersion: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2452
|
+
minimumQuorum: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2453
|
+
}>;
|
|
2454
|
+
}>;
|
|
2455
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2456
|
+
PollShard: _lucid_evolution_lucid.TObject<{
|
|
2457
|
+
content: _lucid_evolution_lucid.TObject<{
|
|
2458
|
+
pollId: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2459
|
+
status: _lucid_evolution_lucid.TObject<{
|
|
2460
|
+
yesVotes: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2461
|
+
noVotes: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2462
|
+
}>;
|
|
2463
|
+
votingEndTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2464
|
+
managerAddress: _lucid_evolution_lucid.TObject<{
|
|
2465
|
+
paymentCredential: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
|
|
2466
|
+
PublicKeyCredential: _lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TUnsafe<string>]>;
|
|
2467
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2468
|
+
ScriptCredential: _lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TUnsafe<string>]>;
|
|
2469
|
+
}>)[]>;
|
|
2470
|
+
stakeCredential: _lucid_evolution_lucid.TUnsafe<{
|
|
2471
|
+
Inline: [{
|
|
2472
|
+
PublicKeyCredential: [string];
|
|
2473
|
+
} | {
|
|
2474
|
+
ScriptCredential: [string];
|
|
2475
|
+
}];
|
|
2476
|
+
} | {
|
|
2477
|
+
Pointer: [{
|
|
2478
|
+
slotNumber: bigint;
|
|
2479
|
+
transactionIndex: bigint;
|
|
2480
|
+
certificateIndex: bigint;
|
|
2481
|
+
}];
|
|
2482
|
+
} | null>;
|
|
2483
|
+
}>;
|
|
2484
|
+
}>;
|
|
2485
|
+
}>;
|
|
2486
|
+
}>)[]>;
|
|
2487
|
+
type PollDatum = Data.Static<typeof PollDatumSchema>;
|
|
2488
|
+
declare const PollDatum: PollDatum;
|
|
2489
|
+
declare function parsePollManager(datum: Datum): option.Option<PollManagerContent>;
|
|
2490
|
+
declare function parsePollManagerOrThrow(datum: Datum): PollManagerContent;
|
|
2491
|
+
declare function parsePollShard(datum: Datum): option.Option<PollShardContent>;
|
|
2492
|
+
declare function parsePollShardOrThrow(datum: Datum): PollShardContent;
|
|
2493
|
+
declare function serialisePollDatum(datum: PollDatum): Datum;
|
|
2494
|
+
|
|
1981
2495
|
declare const LRPParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1982
2496
|
versionRecordToken: _lucid_evolution_lucid.TObject<{
|
|
1983
2497
|
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
@@ -2244,4 +2758,75 @@ declare function calculateCollateralRatioFromLeverage(iasset: string, leverage:
|
|
|
2244
2758
|
*/
|
|
2245
2759
|
declare function calculateLeverageFromCollateralRatio(iasset: string, collateralRatioPercentage: OnChainDecimal, baseCollateral: bigint, iassetPrice: OnChainDecimal, debtMintingFeePercentage: OnChainDecimal, redemptionReimbursementPercentage: OnChainDecimal, lrpParams: LrpParamsSP, allLrps: [UTxO, LRPDatum][]): number | undefined;
|
|
2246
2760
|
|
|
2247
|
-
|
|
2761
|
+
/**
|
|
2762
|
+
* Configuration for an asset to be initialized on the Indigo Protocol.
|
|
2763
|
+
*/
|
|
2764
|
+
type InitialAsset = {
|
|
2765
|
+
name: string;
|
|
2766
|
+
priceOracle: {
|
|
2767
|
+
tokenName: string;
|
|
2768
|
+
startPrice: bigint;
|
|
2769
|
+
params: {
|
|
2770
|
+
biasTime: bigint;
|
|
2771
|
+
expirationTime: bigint;
|
|
2772
|
+
};
|
|
2773
|
+
};
|
|
2774
|
+
interestOracle: {
|
|
2775
|
+
tokenName: string;
|
|
2776
|
+
initialInterestRate: bigint;
|
|
2777
|
+
params: {
|
|
2778
|
+
biasTime: bigint;
|
|
2779
|
+
};
|
|
2780
|
+
};
|
|
2781
|
+
redemptionRatioPercentage: bigint;
|
|
2782
|
+
maintenanceRatioPercentage: bigint;
|
|
2783
|
+
liquidationRatioPercentage: bigint;
|
|
2784
|
+
debtMintingFeePercentage: bigint;
|
|
2785
|
+
liquidationProcessingFeePercentage: bigint;
|
|
2786
|
+
stabilityPoolWithdrawalFeePercentage: bigint;
|
|
2787
|
+
redemptionReimbursementPercentage: bigint;
|
|
2788
|
+
redemptionProcessingFeePercentage: bigint;
|
|
2789
|
+
interestCollectorPortionPercentage: bigint;
|
|
2790
|
+
firstAsset: boolean;
|
|
2791
|
+
nextAsset?: string;
|
|
2792
|
+
};
|
|
2793
|
+
/**
|
|
2794
|
+
* Result of initializing a single asset (iAsset + stability pool + oracles).
|
|
2795
|
+
*/
|
|
2796
|
+
type AssetInfo = {
|
|
2797
|
+
iassetTokenNameAscii: string;
|
|
2798
|
+
oracleParams: PriceOracleParams;
|
|
2799
|
+
};
|
|
2800
|
+
|
|
2801
|
+
/** Token names used during protocol initialization. */
|
|
2802
|
+
declare const INDY_TOKEN_NAME = "INDY";
|
|
2803
|
+
declare const DAO_TOKEN_NAME = "DAO";
|
|
2804
|
+
declare const GOV_NFT_TOKEN_NAME = "GOV_NFT";
|
|
2805
|
+
declare const POLL_MANAGER_TOKEN_NAME = "POLL_MANAGER";
|
|
2806
|
+
declare const UPGRADE_TOKEN_NAME = "UPGRADE";
|
|
2807
|
+
declare const IASSET_TOKEN_NAME = "IASSET";
|
|
2808
|
+
declare const STABILITY_POOL_TOKEN_NAME = "STABILITY_POOL";
|
|
2809
|
+
declare const VERSION_RECORD_TOKEN_NAME = "VERSION_RECORD";
|
|
2810
|
+
declare const CDP_CREATOR_TOKEN_NAME = "CDP_CREATOR";
|
|
2811
|
+
declare const CDP_TOKEN_NAME = "CDP";
|
|
2812
|
+
declare const STAKING_MANAGER_TOKEN_NAME = "STAKING_MANAGER";
|
|
2813
|
+
declare const STAKING_TOKEN_NAME = "STAKING_POSITION";
|
|
2814
|
+
declare const SNAPSHOT_EPOCH_TO_SCALE_TO_SUM_TOKEN_NAME = "SNAPSHOT_EPOCH_TO_SCALE_TO_SUM";
|
|
2815
|
+
declare const ACCOUNT_TOKEN_NAME = "SP_ACCOUNT";
|
|
2816
|
+
declare const TOTAL_INDY_SUPPLY = 35000000000000n;
|
|
2817
|
+
declare const TREASURY_INDY_AMOUNT = 100000n;
|
|
2818
|
+
declare const NUM_CDP_CREATORS = 2n;
|
|
2819
|
+
declare const NUM_COLLECTORS = 2n;
|
|
2820
|
+
/**
|
|
2821
|
+
* Script hash of a validator that always fails; used to create script reference UTxOs.
|
|
2822
|
+
*/
|
|
2823
|
+
declare const ALWAYS_FAIL_VALIDATOR_HASH = "ea84d625650d066e1645e3e81d9c70a73f9ed837bd96dc49850ae744";
|
|
2824
|
+
/**
|
|
2825
|
+
* Complete, sign, submit a TxBuilder and wait for confirmation.
|
|
2826
|
+
* Used by initialize transactions so the contract does not depend on test helpers.
|
|
2827
|
+
*/
|
|
2828
|
+
declare function submitAndAwaitTx(lucid: LucidEvolution, tx: TxBuilder): Promise<string>;
|
|
2829
|
+
|
|
2830
|
+
declare function init(lucid: LucidEvolution, initialAssets: InitialAsset[], now?: number): Promise<[SystemParams, AssetInfo[]]>;
|
|
2831
|
+
|
|
2832
|
+
export { ACCOUNT_TOKEN_NAME, ALWAYS_FAIL_VALIDATOR_HASH, type AccountAction, type AccountContent, AccountContentSchema, ActionReturnDatum, ActionReturnDatumSchema, type AddressCredential, type AddressCredentialOrDatum, AddressD, type AddressSP, AddressSchema, type Amount, type AssetClass, type AssetClassSP, AssetClassSchema, type AssetInfo, type AuthTokenPolicies, type CDPContent, CDPContentSchema, CDPCreatorParams, type CDPCreatorParamsSP, CDPCreatorRedeemer, type CDPDatum, CDPDatumSchema, type CDPFees, CDPFeesSchema, type CDPRedeemer, CDP_CREATOR_TOKEN_NAME, CDP_TOKEN_NAME, type CdpParams, type CdpParamsSP, type CollectorParamsSP, type CollectorRedeemer, CredentialD, CredentialSchema, type CurrencySymbol, DAO_TOKEN_NAME, type DistributionParams, type EpochToScaleToSum, EpochToScaleToSumSchema, ExecuteDatum, ExecuteParams, type ExecuteParamsSP, type FeedInterestOracleRedeemer, FeedInterestOracleRedeemerSchema, GOV_NFT_TOKEN_NAME, type GovDatum, GovParams, type GovParamsSP, GovRedeemer, IASSET_TOKEN_NAME, type IAssetContent, IAssetContentSchema, type IAssetOutput, IAssetPriceInfoSchema, INDY_TOKEN_NAME, type InitialAsset, type Input, type InterestOracleDatum, InterestOracleDatumSchema, type InterestOracleParams, InterestOracleParamsSchema, type LRPDatum, LRPDatumSchema, type LRPParams, LRPParamsSchema, type LRPRedeemer, LRPRedeemerSchema, type LrpOutput, type LrpParamsSP, MAX_REDEMPTIONS_WITH_CDP_OPEN, MIN_LRP_COLLATERAL_AMT, NUM_CDP_CREATORS, NUM_COLLECTORS, ONE_DAY, ONE_HOUR, ONE_SECOND, ONE_YEAR, type OracleAssetNft, OracleAssetNftSchema, type Output, type OutputReference, OutputReferenceSchema, POLL_MANAGER_TOKEN_NAME, PollDatum, type PollManagerContent, PollManagerParams, type PollManagerParamsSP, PollManagerRedeemer, type PollShardContent, PollShardParams, type PollShardParamsSP, PollShardRedeemer, type PollStatus, type PriceOracleDatum, PriceOracleDatumSchema, type PriceOracleParams, PriceOracleParamsSchema, type PriceOracleRedeemer, ProposalContent, ProposalContentSchema, type ProposeAssetContent, ProtocolParams, ProtocolParamsSchema, type PubKeyHash, SNAPSHOT_EPOCH_TO_SCALE_TO_SUM_TOKEN_NAME, type SPInteger, SPIntegerSchema, STABILITY_POOL_TOKEN_NAME, STAKING_MANAGER_TOKEN_NAME, STAKING_TOKEN_NAME, type ScriptCredential, type ScriptOutput, type ScriptRef, type ScriptReference, type ScriptReferences, type SnapshotEpochToScaleToSumContent, SnapshotEpochToScaleToSumContentSchema, type StabilityPoolContent, StabilityPoolContentSchema, StabilityPoolDatumSchema, StabilityPoolParams, type StabilityPoolParamsSP, type StabilityPoolRedeemer, StabilityPoolRedeemerSchema, type StabilityPoolSnapshot, StakeCredentialSchema, type StakingManager, type StakingManagerOutput, type StakingParamsSP, type StakingPosLockedAmt, type StakingPosition, type StakingPositionOutput, type StakingRedeemer, type StartTime, type SystemParams, TOTAL_INDY_SUPPLY, TREASURY_INDY_AMOUNT, type TokenName, TreasuryParams, type TreasuryParamsSP, TreasuryParamsSchema, type TreasuryRedeemer, type TreasuryWithdrawal, type TreasuryWithdrawalItem, TreasuryWithdrawalSchema, UPGRADE_TOKEN_NAME, type UpgradePaths, type UtxoOrOutRef, VERSION_RECORD_TOKEN_NAME, type ValidatorHashes, VerificationKeyHashSchema, type VersionRecordParams, VersionRecordTokenParams, type VoteOption, type WithdrawalOutputDatum, addrDetails, addressFromBech32, addressToBech32, adjust, adjustLrp, adjustSpAccount, adjustStakingPosition, adjustmentHelper, annulRequest, approximateLeverageRedemptions, assetClassToUnit, assetClassValueOf, balance, buildRedemptionsTx, burnCdp, calculateAccruedInterest, calculateAdaReward, calculateCollateralRatioFromLeverage, calculateIAssetRedemptionAmt, calculateLeverageFromCollateralRatio, calculateMinCollateralCappedIAssetRedemptionAmt, calculateTotalAdaForRedemption, calculateUnitaryInterest, calculateUnitaryInterestSinceOracleLastUpdated, cancelLrp, castCDPCreatorParams, castCdpParams, castExecuteParams, castGovParams, castInterestOracleParams, castLrpParams, castPollManagerParams, castPollShardParams, castPriceOracleParams, castStabilityPoolParams, castStakingParams, castTreasuryParams, castVersionRecordTokenParams, cdpCollateralRatioPercentage, claimLrp, closeCdp, closeSpAccount, closeStakingPosition, collectorFeeTx, computeInterestLovelacesFor100PercentCR, createProposal, createScriptAddress, createShardsChunks, createSpAccount, depositCdp, distributeAda, distributeReward, endProposal, executeProposal, feedInterestOracle, feedPriceOracleTx, findStakingManager, findStakingManagerByOutRef, findStakingPositionByOutRef, freezeCdp, fromSPInteger, fromSysParamsScriptCredential, fromSystemParamsAsset, fromSystemParamsScriptRef, getAccountFund, getAccountReward, getInlineDatumOrThrow, getRandomElement, getSumFromEpochToScaleToSum, init, initEpochToScaleToSumMap, initSpSnapshot, insertSorted, isAssetsZero, leverageCdpWithLrp, liquidateCdp, liquidationHelper, loadSystemParamsFromFile, loadSystemParamsFromUrl, lovelacesAmt, lrpRedeemableLovelacesInclReimb, matchSingle, mergeCdps, mergeShards, mintCdp, mkAssetsOf, mkCDPCreatorValidator, mkCDPCreatorValidatorFromSP, mkCdpValidatorFromSP, mkCollectorValidatorFromSP, mkExecuteValidator, mkExecuteValidatorFromSP, mkInterestOracleValidator, mkLovelacesOf, mkLrpValidator, mkLrpValidatorFromSP, mkPollManagerValidator, mkPollManagerValidatorFromSP, mkPollShardValidator, mkPollShardValidatorFromSP, mkSPInteger, mkTreasuryValidatorFromSP, mkVersionRecordTokenPolicy, mkVersionRegistryValidator, negateAssets, oneShotMintTx, openCdp, openLrp, openStakingPosition, oracleExpirationAwareValidity, parseAccountDatum, parseCdpDatum, parseCdpDatumOrThrow, parseExecuteDatum, parseExecuteDatumOrThrow, parseGovDatum, parseGovDatumOrThrow, parseIAssetDatum, parseIAssetDatumOrThrow, parseInterestOracleDatum, parseLrpDatum, parseLrpDatumOrThrow, parsePollManager, parsePollManagerOrThrow, parsePollShard, parsePollShardOrThrow, parsePriceOracleDatum, parseSnapshotEpochToScaleToSumDatum, parseStabilityPoolDatum, parseStakingManagerDatum, parseStakingPosition, parseStakingPositionOrThrow, parseUpgradePaths, processSpRequest, randomLrpsSubsetSatisfyingTargetLovelaces, redeemCdp, redeemLrp, resolveUtxo, rewardSnapshotPrecision, runCreateScriptRefTx, runOneShotMintTx, scriptRef, serialiseCDPCreatorDatum, serialiseCDPCreatorRedeemer, serialiseCdpDatum, serialiseCdpRedeemer, serialiseCollectorRedeemer, serialiseExecuteDatum, serialiseFeedInterestOracleRedeemer, serialiseGovDatum, serialiseGovRedeemer, serialiseIAssetDatum, serialiseInterestOracleDatum, serialiseLrpDatum, serialiseLrpRedeemer, serialisePollDatum, serialisePollManagerRedeemer, serialisePollShardRedeemer, serialisePriceOracleDatum, serialisePriceOracleRedeemer, serialiseStabilityPoolDatum, serialiseStabilityPoolRedeemer, serialiseStakingDatum, serialiseStakingRedeemer, serialiseTreasuryDatum, serialiseTreasuryRedeemer, serialiseUpgradePaths, serialiseWithdrawalOutputDatum, setSumInEpochToScaleToSum, shuffle, spAdd, spDiv, spMul, spSub, startInterestOracle, startPriceOracleTx, submitAndAwaitTx, summarizeActualLeverageRedemptions, toSystemParamsAsset, treasuryFeeTx, updatePoolSnapshotWithdrawalFee, updateSlotConfigNetwork, updateStakingLockedAmount, vote, withdrawCdp };
|