@indigo-labs/indigo-sdk 0.2.36 → 0.2.37
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +575 -2
- package/dist/index.d.ts +575 -2
- package/dist/index.js +915 -0
- package/dist/index.mjs +896 -0
- package/package.json +6 -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 +7 -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.
|
|
@@ -1694,6 +1765,45 @@ declare const mkCollectorValidatorFromSP: (params: CollectorParamsSP) => Spendin
|
|
|
1694
1765
|
|
|
1695
1766
|
declare const mkTreasuryValidatorFromSP: (params: TreasuryParamsSP) => SpendingValidator;
|
|
1696
1767
|
|
|
1768
|
+
declare const TreasuryParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1769
|
+
upgradeToken: _lucid_evolution_lucid.TObject<{
|
|
1770
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1771
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1772
|
+
}>;
|
|
1773
|
+
versionRecordToken: _lucid_evolution_lucid.TObject<{
|
|
1774
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1775
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1776
|
+
}>;
|
|
1777
|
+
treasuryUtxosStakeCredential: _lucid_evolution_lucid.TUnsafe<{
|
|
1778
|
+
Inline: [{
|
|
1779
|
+
PublicKeyCredential: [string];
|
|
1780
|
+
} | {
|
|
1781
|
+
ScriptCredential: [string];
|
|
1782
|
+
}];
|
|
1783
|
+
} | {
|
|
1784
|
+
Pointer: [{
|
|
1785
|
+
slotNumber: bigint;
|
|
1786
|
+
transactionIndex: bigint;
|
|
1787
|
+
certificateIndex: bigint;
|
|
1788
|
+
}];
|
|
1789
|
+
} | null>;
|
|
1790
|
+
}>;
|
|
1791
|
+
type TreasuryParams = Data.Static<typeof TreasuryParamsSchema>;
|
|
1792
|
+
declare const TreasuryParams: TreasuryParams;
|
|
1793
|
+
declare const TreasuryRedeemerSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TLiteral<"UpgradeVersion"> | _lucid_evolution_lucid.TLiteral<"Withdraw"> | _lucid_evolution_lucid.TLiteral<"PrepareWithdraw"> | _lucid_evolution_lucid.TLiteral<"Split"> | _lucid_evolution_lucid.TLiteral<"Merge"> | _lucid_evolution_lucid.TLiteral<"CollectAda">)[]>;
|
|
1794
|
+
type TreasuryRedeemer = Data.Static<typeof TreasuryRedeemerSchema>;
|
|
1795
|
+
declare const WithdrawalOutputDatumSchema: _lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TUnsafe<string>, _lucid_evolution_lucid.TObject<{
|
|
1796
|
+
txHash: _lucid_evolution_lucid.TObject<{
|
|
1797
|
+
hash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1798
|
+
}>;
|
|
1799
|
+
outputIndex: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1800
|
+
}>]>;
|
|
1801
|
+
type WithdrawalOutputDatum = Data.Static<typeof WithdrawalOutputDatumSchema>;
|
|
1802
|
+
declare function serialiseWithdrawalOutputDatum(d: WithdrawalOutputDatum): Datum;
|
|
1803
|
+
declare function serialiseTreasuryRedeemer(redeemer: TreasuryRedeemer): Redeemer;
|
|
1804
|
+
declare function serialiseTreasuryDatum(): Datum;
|
|
1805
|
+
declare function castTreasuryParams(params: TreasuryParams): Data;
|
|
1806
|
+
|
|
1697
1807
|
declare const ExecuteParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1698
1808
|
govNFT: _lucid_evolution_lucid.TObject<{
|
|
1699
1809
|
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
@@ -1978,6 +2088,398 @@ type StabilityPoolParams = Data.Static<typeof StabilityPoolParamsSchema>;
|
|
|
1978
2088
|
declare const StabilityPoolParams: StabilityPoolParams;
|
|
1979
2089
|
declare function castStabilityPoolParams(params: StabilityPoolParams): Data;
|
|
1980
2090
|
|
|
2091
|
+
declare const PollStatusSchema: _lucid_evolution_lucid.TObject<{
|
|
2092
|
+
yesVotes: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2093
|
+
noVotes: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2094
|
+
}>;
|
|
2095
|
+
type PollStatus = Data.Static<typeof PollStatusSchema>;
|
|
2096
|
+
declare const PollManagerContentSchema: _lucid_evolution_lucid.TObject<{
|
|
2097
|
+
pollId: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2098
|
+
pollOwner: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2099
|
+
content: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
|
|
2100
|
+
ProposeAsset: _lucid_evolution_lucid.TObject<{
|
|
2101
|
+
asset: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2102
|
+
priceOracleNft: _lucid_evolution_lucid.TObject<{
|
|
2103
|
+
oracleNft: _lucid_evolution_lucid.TObject<{
|
|
2104
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2105
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2106
|
+
}>;
|
|
2107
|
+
}>;
|
|
2108
|
+
interestOracleNft: _lucid_evolution_lucid.TObject<{
|
|
2109
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2110
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2111
|
+
}>;
|
|
2112
|
+
redemptionRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2113
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2114
|
+
}>;
|
|
2115
|
+
maintenanceRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2116
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2117
|
+
}>;
|
|
2118
|
+
liquidationRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2119
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2120
|
+
}>;
|
|
2121
|
+
debtMintingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2122
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2123
|
+
}>;
|
|
2124
|
+
liquidationProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2125
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2126
|
+
}>;
|
|
2127
|
+
stabilityPoolWithdrawalFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2128
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2129
|
+
}>;
|
|
2130
|
+
redemptionReimbursementPercentage: _lucid_evolution_lucid.TObject<{
|
|
2131
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2132
|
+
}>;
|
|
2133
|
+
redemptionProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2134
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2135
|
+
}>;
|
|
2136
|
+
interestCollectorPortionPercentage: _lucid_evolution_lucid.TObject<{
|
|
2137
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2138
|
+
}>;
|
|
2139
|
+
}>;
|
|
2140
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2141
|
+
ModifyAsset: _lucid_evolution_lucid.TObject<{
|
|
2142
|
+
asset: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2143
|
+
newAssetPriceInfo: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
|
|
2144
|
+
Delisted: _lucid_evolution_lucid.TObject<{
|
|
2145
|
+
content: _lucid_evolution_lucid.TObject<{
|
|
2146
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2147
|
+
}>;
|
|
2148
|
+
}>;
|
|
2149
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2150
|
+
Oracle: _lucid_evolution_lucid.TObject<{
|
|
2151
|
+
content: _lucid_evolution_lucid.TObject<{
|
|
2152
|
+
oracleNft: _lucid_evolution_lucid.TObject<{
|
|
2153
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2154
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2155
|
+
}>;
|
|
2156
|
+
}>;
|
|
2157
|
+
}>;
|
|
2158
|
+
}>)[]>;
|
|
2159
|
+
newInterestOracleNft: _lucid_evolution_lucid.TObject<{
|
|
2160
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2161
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2162
|
+
}>;
|
|
2163
|
+
newRedemptionRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2164
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2165
|
+
}>;
|
|
2166
|
+
newMaintenanceRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2167
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2168
|
+
}>;
|
|
2169
|
+
newLiquidationRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2170
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2171
|
+
}>;
|
|
2172
|
+
newDebtMintingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2173
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2174
|
+
}>;
|
|
2175
|
+
newLiquidationProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2176
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2177
|
+
}>;
|
|
2178
|
+
newStabilityPoolWithdrawalFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2179
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2180
|
+
}>;
|
|
2181
|
+
newRedemptionReimbursementPercentage: _lucid_evolution_lucid.TObject<{
|
|
2182
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2183
|
+
}>;
|
|
2184
|
+
newRedemptionProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2185
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2186
|
+
}>;
|
|
2187
|
+
newInterestCollectorPortionPercentage: _lucid_evolution_lucid.TObject<{
|
|
2188
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2189
|
+
}>;
|
|
2190
|
+
}>;
|
|
2191
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2192
|
+
ModifyProtocolParams: _lucid_evolution_lucid.TObject<{
|
|
2193
|
+
newParams: _lucid_evolution_lucid.TObject<{
|
|
2194
|
+
proposalDeposit: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2195
|
+
votingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2196
|
+
effectiveDelay: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2197
|
+
expirationPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2198
|
+
collateralFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2199
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2200
|
+
}>;
|
|
2201
|
+
proposingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2202
|
+
totalShards: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2203
|
+
minimumQuorum: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2204
|
+
maxTreasuryLovelaceSpend: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2205
|
+
maxTreasuryIndySpend: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2206
|
+
}>;
|
|
2207
|
+
}>;
|
|
2208
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2209
|
+
UpgradeProtocol: _lucid_evolution_lucid.TObject<{
|
|
2210
|
+
content: _lucid_evolution_lucid.TUnsafe<Data>;
|
|
2211
|
+
}>;
|
|
2212
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2213
|
+
TextProposal: _lucid_evolution_lucid.TObject<{
|
|
2214
|
+
bytes: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2215
|
+
}>;
|
|
2216
|
+
}>)[]>;
|
|
2217
|
+
treasuryWithdrawal: _lucid_evolution_lucid.TUnsafe<{
|
|
2218
|
+
value: [string, string, bigint][];
|
|
2219
|
+
destination: {
|
|
2220
|
+
paymentCredential: {
|
|
2221
|
+
PublicKeyCredential: [string];
|
|
2222
|
+
} | {
|
|
2223
|
+
ScriptCredential: [string];
|
|
2224
|
+
};
|
|
2225
|
+
stakeCredential: {
|
|
2226
|
+
Inline: [{
|
|
2227
|
+
PublicKeyCredential: [string];
|
|
2228
|
+
} | {
|
|
2229
|
+
ScriptCredential: [string];
|
|
2230
|
+
}];
|
|
2231
|
+
} | {
|
|
2232
|
+
Pointer: [{
|
|
2233
|
+
slotNumber: bigint;
|
|
2234
|
+
transactionIndex: bigint;
|
|
2235
|
+
certificateIndex: bigint;
|
|
2236
|
+
}];
|
|
2237
|
+
} | null;
|
|
2238
|
+
};
|
|
2239
|
+
} | null>;
|
|
2240
|
+
status: _lucid_evolution_lucid.TObject<{
|
|
2241
|
+
yesVotes: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2242
|
+
noVotes: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2243
|
+
}>;
|
|
2244
|
+
votingEndTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2245
|
+
createdShardsCount: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2246
|
+
talliedShardsCount: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2247
|
+
totalShardsCount: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2248
|
+
proposingEndTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2249
|
+
expirationTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2250
|
+
protocolVersion: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2251
|
+
minimumQuorum: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2252
|
+
}>;
|
|
2253
|
+
type PollManagerContent = Data.Static<typeof PollManagerContentSchema>;
|
|
2254
|
+
declare const PollShardContentSchema: _lucid_evolution_lucid.TObject<{
|
|
2255
|
+
pollId: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2256
|
+
status: _lucid_evolution_lucid.TObject<{
|
|
2257
|
+
yesVotes: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2258
|
+
noVotes: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2259
|
+
}>;
|
|
2260
|
+
votingEndTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2261
|
+
managerAddress: _lucid_evolution_lucid.TObject<{
|
|
2262
|
+
paymentCredential: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
|
|
2263
|
+
PublicKeyCredential: _lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TUnsafe<string>]>;
|
|
2264
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2265
|
+
ScriptCredential: _lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TUnsafe<string>]>;
|
|
2266
|
+
}>)[]>;
|
|
2267
|
+
stakeCredential: _lucid_evolution_lucid.TUnsafe<{
|
|
2268
|
+
Inline: [{
|
|
2269
|
+
PublicKeyCredential: [string];
|
|
2270
|
+
} | {
|
|
2271
|
+
ScriptCredential: [string];
|
|
2272
|
+
}];
|
|
2273
|
+
} | {
|
|
2274
|
+
Pointer: [{
|
|
2275
|
+
slotNumber: bigint;
|
|
2276
|
+
transactionIndex: bigint;
|
|
2277
|
+
certificateIndex: bigint;
|
|
2278
|
+
}];
|
|
2279
|
+
} | null>;
|
|
2280
|
+
}>;
|
|
2281
|
+
}>;
|
|
2282
|
+
type PollShardContent = Data.Static<typeof PollShardContentSchema>;
|
|
2283
|
+
declare const PollDatumSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
|
|
2284
|
+
PollManager: _lucid_evolution_lucid.TObject<{
|
|
2285
|
+
content: _lucid_evolution_lucid.TObject<{
|
|
2286
|
+
pollId: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2287
|
+
pollOwner: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2288
|
+
content: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
|
|
2289
|
+
ProposeAsset: _lucid_evolution_lucid.TObject<{
|
|
2290
|
+
asset: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2291
|
+
priceOracleNft: _lucid_evolution_lucid.TObject<{
|
|
2292
|
+
oracleNft: _lucid_evolution_lucid.TObject<{
|
|
2293
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2294
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2295
|
+
}>;
|
|
2296
|
+
}>;
|
|
2297
|
+
interestOracleNft: _lucid_evolution_lucid.TObject<{
|
|
2298
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2299
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2300
|
+
}>;
|
|
2301
|
+
redemptionRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2302
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2303
|
+
}>;
|
|
2304
|
+
maintenanceRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2305
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2306
|
+
}>;
|
|
2307
|
+
liquidationRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2308
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2309
|
+
}>;
|
|
2310
|
+
debtMintingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2311
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2312
|
+
}>;
|
|
2313
|
+
liquidationProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2314
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2315
|
+
}>;
|
|
2316
|
+
stabilityPoolWithdrawalFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2317
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2318
|
+
}>;
|
|
2319
|
+
redemptionReimbursementPercentage: _lucid_evolution_lucid.TObject<{
|
|
2320
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2321
|
+
}>;
|
|
2322
|
+
redemptionProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2323
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2324
|
+
}>;
|
|
2325
|
+
interestCollectorPortionPercentage: _lucid_evolution_lucid.TObject<{
|
|
2326
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2327
|
+
}>;
|
|
2328
|
+
}>;
|
|
2329
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2330
|
+
ModifyAsset: _lucid_evolution_lucid.TObject<{
|
|
2331
|
+
asset: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2332
|
+
newAssetPriceInfo: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
|
|
2333
|
+
Delisted: _lucid_evolution_lucid.TObject<{
|
|
2334
|
+
content: _lucid_evolution_lucid.TObject<{
|
|
2335
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2336
|
+
}>;
|
|
2337
|
+
}>;
|
|
2338
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2339
|
+
Oracle: _lucid_evolution_lucid.TObject<{
|
|
2340
|
+
content: _lucid_evolution_lucid.TObject<{
|
|
2341
|
+
oracleNft: _lucid_evolution_lucid.TObject<{
|
|
2342
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2343
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2344
|
+
}>;
|
|
2345
|
+
}>;
|
|
2346
|
+
}>;
|
|
2347
|
+
}>)[]>;
|
|
2348
|
+
newInterestOracleNft: _lucid_evolution_lucid.TObject<{
|
|
2349
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2350
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2351
|
+
}>;
|
|
2352
|
+
newRedemptionRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2353
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2354
|
+
}>;
|
|
2355
|
+
newMaintenanceRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2356
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2357
|
+
}>;
|
|
2358
|
+
newLiquidationRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
2359
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2360
|
+
}>;
|
|
2361
|
+
newDebtMintingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2362
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2363
|
+
}>;
|
|
2364
|
+
newLiquidationProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2365
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2366
|
+
}>;
|
|
2367
|
+
newStabilityPoolWithdrawalFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2368
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2369
|
+
}>;
|
|
2370
|
+
newRedemptionReimbursementPercentage: _lucid_evolution_lucid.TObject<{
|
|
2371
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2372
|
+
}>;
|
|
2373
|
+
newRedemptionProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2374
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2375
|
+
}>;
|
|
2376
|
+
newInterestCollectorPortionPercentage: _lucid_evolution_lucid.TObject<{
|
|
2377
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2378
|
+
}>;
|
|
2379
|
+
}>;
|
|
2380
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2381
|
+
ModifyProtocolParams: _lucid_evolution_lucid.TObject<{
|
|
2382
|
+
newParams: _lucid_evolution_lucid.TObject<{
|
|
2383
|
+
proposalDeposit: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2384
|
+
votingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2385
|
+
effectiveDelay: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2386
|
+
expirationPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2387
|
+
collateralFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
2388
|
+
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2389
|
+
}>;
|
|
2390
|
+
proposingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2391
|
+
totalShards: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2392
|
+
minimumQuorum: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2393
|
+
maxTreasuryLovelaceSpend: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2394
|
+
maxTreasuryIndySpend: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2395
|
+
}>;
|
|
2396
|
+
}>;
|
|
2397
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2398
|
+
UpgradeProtocol: _lucid_evolution_lucid.TObject<{
|
|
2399
|
+
content: _lucid_evolution_lucid.TUnsafe<Data>;
|
|
2400
|
+
}>;
|
|
2401
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2402
|
+
TextProposal: _lucid_evolution_lucid.TObject<{
|
|
2403
|
+
bytes: _lucid_evolution_lucid.TUnsafe<string>;
|
|
2404
|
+
}>;
|
|
2405
|
+
}>)[]>;
|
|
2406
|
+
treasuryWithdrawal: _lucid_evolution_lucid.TUnsafe<{
|
|
2407
|
+
value: [string, string, bigint][];
|
|
2408
|
+
destination: {
|
|
2409
|
+
paymentCredential: {
|
|
2410
|
+
PublicKeyCredential: [string];
|
|
2411
|
+
} | {
|
|
2412
|
+
ScriptCredential: [string];
|
|
2413
|
+
};
|
|
2414
|
+
stakeCredential: {
|
|
2415
|
+
Inline: [{
|
|
2416
|
+
PublicKeyCredential: [string];
|
|
2417
|
+
} | {
|
|
2418
|
+
ScriptCredential: [string];
|
|
2419
|
+
}];
|
|
2420
|
+
} | {
|
|
2421
|
+
Pointer: [{
|
|
2422
|
+
slotNumber: bigint;
|
|
2423
|
+
transactionIndex: bigint;
|
|
2424
|
+
certificateIndex: bigint;
|
|
2425
|
+
}];
|
|
2426
|
+
} | null;
|
|
2427
|
+
};
|
|
2428
|
+
} | null>;
|
|
2429
|
+
status: _lucid_evolution_lucid.TObject<{
|
|
2430
|
+
yesVotes: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2431
|
+
noVotes: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2432
|
+
}>;
|
|
2433
|
+
votingEndTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2434
|
+
createdShardsCount: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2435
|
+
talliedShardsCount: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2436
|
+
totalShardsCount: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2437
|
+
proposingEndTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2438
|
+
expirationTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2439
|
+
protocolVersion: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2440
|
+
minimumQuorum: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2441
|
+
}>;
|
|
2442
|
+
}>;
|
|
2443
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2444
|
+
PollShard: _lucid_evolution_lucid.TObject<{
|
|
2445
|
+
content: _lucid_evolution_lucid.TObject<{
|
|
2446
|
+
pollId: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2447
|
+
status: _lucid_evolution_lucid.TObject<{
|
|
2448
|
+
yesVotes: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2449
|
+
noVotes: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2450
|
+
}>;
|
|
2451
|
+
votingEndTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
2452
|
+
managerAddress: _lucid_evolution_lucid.TObject<{
|
|
2453
|
+
paymentCredential: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
|
|
2454
|
+
PublicKeyCredential: _lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TUnsafe<string>]>;
|
|
2455
|
+
}> | _lucid_evolution_lucid.TObject<{
|
|
2456
|
+
ScriptCredential: _lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TUnsafe<string>]>;
|
|
2457
|
+
}>)[]>;
|
|
2458
|
+
stakeCredential: _lucid_evolution_lucid.TUnsafe<{
|
|
2459
|
+
Inline: [{
|
|
2460
|
+
PublicKeyCredential: [string];
|
|
2461
|
+
} | {
|
|
2462
|
+
ScriptCredential: [string];
|
|
2463
|
+
}];
|
|
2464
|
+
} | {
|
|
2465
|
+
Pointer: [{
|
|
2466
|
+
slotNumber: bigint;
|
|
2467
|
+
transactionIndex: bigint;
|
|
2468
|
+
certificateIndex: bigint;
|
|
2469
|
+
}];
|
|
2470
|
+
} | null>;
|
|
2471
|
+
}>;
|
|
2472
|
+
}>;
|
|
2473
|
+
}>;
|
|
2474
|
+
}>)[]>;
|
|
2475
|
+
type PollDatum = Data.Static<typeof PollDatumSchema>;
|
|
2476
|
+
declare const PollDatum: PollDatum;
|
|
2477
|
+
declare function parsePollManager(datum: Datum): option.Option<PollManagerContent>;
|
|
2478
|
+
declare function parsePollManagerOrThrow(datum: Datum): PollManagerContent;
|
|
2479
|
+
declare function parsePollShard(datum: Datum): option.Option<PollShardContent>;
|
|
2480
|
+
declare function parsePollShardOrThrow(datum: Datum): PollShardContent;
|
|
2481
|
+
declare function serialisePollDatum(datum: PollDatum): Datum;
|
|
2482
|
+
|
|
1981
2483
|
declare const LRPParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1982
2484
|
versionRecordToken: _lucid_evolution_lucid.TObject<{
|
|
1983
2485
|
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
@@ -2244,4 +2746,75 @@ declare function calculateCollateralRatioFromLeverage(iasset: string, leverage:
|
|
|
2244
2746
|
*/
|
|
2245
2747
|
declare function calculateLeverageFromCollateralRatio(iasset: string, collateralRatioPercentage: OnChainDecimal, baseCollateral: bigint, iassetPrice: OnChainDecimal, debtMintingFeePercentage: OnChainDecimal, redemptionReimbursementPercentage: OnChainDecimal, lrpParams: LrpParamsSP, allLrps: [UTxO, LRPDatum][]): number | undefined;
|
|
2246
2748
|
|
|
2247
|
-
|
|
2749
|
+
/**
|
|
2750
|
+
* Configuration for an asset to be initialized on the Indigo Protocol.
|
|
2751
|
+
*/
|
|
2752
|
+
type InitialAsset = {
|
|
2753
|
+
name: string;
|
|
2754
|
+
priceOracle: {
|
|
2755
|
+
tokenName: string;
|
|
2756
|
+
startPrice: bigint;
|
|
2757
|
+
params: {
|
|
2758
|
+
biasTime: bigint;
|
|
2759
|
+
expirationTime: bigint;
|
|
2760
|
+
};
|
|
2761
|
+
};
|
|
2762
|
+
interestOracle: {
|
|
2763
|
+
tokenName: string;
|
|
2764
|
+
initialInterestRate: bigint;
|
|
2765
|
+
params: {
|
|
2766
|
+
biasTime: bigint;
|
|
2767
|
+
};
|
|
2768
|
+
};
|
|
2769
|
+
redemptionRatioPercentage: bigint;
|
|
2770
|
+
maintenanceRatioPercentage: bigint;
|
|
2771
|
+
liquidationRatioPercentage: bigint;
|
|
2772
|
+
debtMintingFeePercentage: bigint;
|
|
2773
|
+
liquidationProcessingFeePercentage: bigint;
|
|
2774
|
+
stabilityPoolWithdrawalFeePercentage: bigint;
|
|
2775
|
+
redemptionReimbursementPercentage: bigint;
|
|
2776
|
+
redemptionProcessingFeePercentage: bigint;
|
|
2777
|
+
interestCollectorPortionPercentage: bigint;
|
|
2778
|
+
firstAsset: boolean;
|
|
2779
|
+
nextAsset?: string;
|
|
2780
|
+
};
|
|
2781
|
+
/**
|
|
2782
|
+
* Result of initializing a single asset (iAsset + stability pool + oracles).
|
|
2783
|
+
*/
|
|
2784
|
+
type AssetInfo = {
|
|
2785
|
+
iassetTokenNameAscii: string;
|
|
2786
|
+
oracleParams: PriceOracleParams;
|
|
2787
|
+
};
|
|
2788
|
+
|
|
2789
|
+
/** Token names used during protocol initialization. */
|
|
2790
|
+
declare const INDY_TOKEN_NAME = "INDY";
|
|
2791
|
+
declare const DAO_TOKEN_NAME = "DAO";
|
|
2792
|
+
declare const GOV_NFT_TOKEN_NAME = "GOV_NFT";
|
|
2793
|
+
declare const POLL_MANAGER_TOKEN_NAME = "POLL_MANAGER";
|
|
2794
|
+
declare const UPGRADE_TOKEN_NAME = "UPGRADE";
|
|
2795
|
+
declare const IASSET_TOKEN_NAME = "IASSET";
|
|
2796
|
+
declare const STABILITY_POOL_TOKEN_NAME = "STABILITY_POOL";
|
|
2797
|
+
declare const VERSION_RECORD_TOKEN_NAME = "VERSION_RECORD";
|
|
2798
|
+
declare const CDP_CREATOR_TOKEN_NAME = "CDP_CREATOR";
|
|
2799
|
+
declare const CDP_TOKEN_NAME = "CDP";
|
|
2800
|
+
declare const STAKING_MANAGER_TOKEN_NAME = "STAKING_MANAGER";
|
|
2801
|
+
declare const STAKING_TOKEN_NAME = "STAKING_POSITION";
|
|
2802
|
+
declare const SNAPSHOT_EPOCH_TO_SCALE_TO_SUM_TOKEN_NAME = "SNAPSHOT_EPOCH_TO_SCALE_TO_SUM";
|
|
2803
|
+
declare const ACCOUNT_TOKEN_NAME = "SP_ACCOUNT";
|
|
2804
|
+
declare const TOTAL_INDY_SUPPLY = 35000000000000n;
|
|
2805
|
+
declare const TREASURY_INDY_AMOUNT = 100000n;
|
|
2806
|
+
declare const NUM_CDP_CREATORS = 2n;
|
|
2807
|
+
declare const NUM_COLLECTORS = 2n;
|
|
2808
|
+
/**
|
|
2809
|
+
* Script hash of a validator that always fails; used to create script reference UTxOs.
|
|
2810
|
+
*/
|
|
2811
|
+
declare const ALWAYS_FAIL_VALIDATOR_HASH = "ea84d625650d066e1645e3e81d9c70a73f9ed837bd96dc49850ae744";
|
|
2812
|
+
/**
|
|
2813
|
+
* Complete, sign, submit a TxBuilder and wait for confirmation.
|
|
2814
|
+
* Used by initialize transactions so the contract does not depend on test helpers.
|
|
2815
|
+
*/
|
|
2816
|
+
declare function submitAndAwaitTx(lucid: LucidEvolution, tx: TxBuilder): Promise<string>;
|
|
2817
|
+
|
|
2818
|
+
declare function init(lucid: LucidEvolution, initialAssets: InitialAsset[], now?: number): Promise<[SystemParams, AssetInfo[]]>;
|
|
2819
|
+
|
|
2820
|
+
export { ACCOUNT_TOKEN_NAME, ALWAYS_FAIL_VALIDATOR_HASH, type AccountAction, type AccountContent, AccountContentSchema, ActionReturnDatum, ActionReturnDatumSchema, type AddressCredential, type AddressCredentialOrDatum, AddressD, type AddressSP, AddressSchema, type Amount, type AssetClass, type AssetClassSP, AssetClassSchema, type AssetInfo, type AuthTokenPolicies, type CDPContent, CDPContentSchema, CDPCreatorParams, type CDPCreatorParamsSP, CDPCreatorRedeemer, type CDPDatum, CDPDatumSchema, type CDPFees, CDPFeesSchema, type CDPRedeemer, CDP_CREATOR_TOKEN_NAME, CDP_TOKEN_NAME, type CdpParams, type CdpParamsSP, type CollectorParamsSP, type CollectorRedeemer, CredentialD, CredentialSchema, type CurrencySymbol, DAO_TOKEN_NAME, type DistributionParams, type EpochToScaleToSum, EpochToScaleToSumSchema, ExecuteDatum, ExecuteParams, type ExecuteParamsSP, type FeedInterestOracleRedeemer, FeedInterestOracleRedeemerSchema, GOV_NFT_TOKEN_NAME, type GovDatum, GovParams, type GovParamsSP, GovRedeemer, IASSET_TOKEN_NAME, type IAssetContent, IAssetContentSchema, type IAssetOutput, IAssetPriceInfoSchema, INDY_TOKEN_NAME, type InitialAsset, type Input, type InterestOracleDatum, InterestOracleDatumSchema, type InterestOracleParams, InterestOracleParamsSchema, type LRPDatum, LRPDatumSchema, type LRPParams, LRPParamsSchema, type LRPRedeemer, LRPRedeemerSchema, type LrpOutput, type LrpParamsSP, MAX_REDEMPTIONS_WITH_CDP_OPEN, MIN_LRP_COLLATERAL_AMT, NUM_CDP_CREATORS, NUM_COLLECTORS, ONE_DAY, ONE_HOUR, ONE_SECOND, ONE_YEAR, type OracleAssetNft, OracleAssetNftSchema, type Output, type OutputReference, OutputReferenceSchema, POLL_MANAGER_TOKEN_NAME, PollDatum, type PollManagerContent, PollManagerParams, type PollManagerParamsSP, PollManagerRedeemer, type PollShardContent, PollShardParams, type PollShardParamsSP, PollShardRedeemer, type PollStatus, type PriceOracleDatum, PriceOracleDatumSchema, type PriceOracleParams, PriceOracleParamsSchema, type PriceOracleRedeemer, ProposalContent, ProposalContentSchema, type ProposeAssetContent, ProtocolParams, ProtocolParamsSchema, type PubKeyHash, SNAPSHOT_EPOCH_TO_SCALE_TO_SUM_TOKEN_NAME, type SPInteger, SPIntegerSchema, STABILITY_POOL_TOKEN_NAME, STAKING_MANAGER_TOKEN_NAME, STAKING_TOKEN_NAME, type ScriptCredential, type ScriptOutput, type ScriptRef, type ScriptReference, type ScriptReferences, type SnapshotEpochToScaleToSumContent, SnapshotEpochToScaleToSumContentSchema, type StabilityPoolContent, StabilityPoolContentSchema, StabilityPoolDatumSchema, StabilityPoolParams, type StabilityPoolParamsSP, type StabilityPoolRedeemer, StabilityPoolRedeemerSchema, type StabilityPoolSnapshot, StakeCredentialSchema, type StakingManager, type StakingManagerOutput, type StakingParamsSP, type StakingPosLockedAmt, type StakingPosition, type StakingPositionOutput, type StakingRedeemer, type StartTime, type SystemParams, TOTAL_INDY_SUPPLY, TREASURY_INDY_AMOUNT, type TokenName, TreasuryParams, type TreasuryParamsSP, TreasuryParamsSchema, type TreasuryRedeemer, type TreasuryWithdrawal, type TreasuryWithdrawalItem, TreasuryWithdrawalSchema, UPGRADE_TOKEN_NAME, type UpgradePaths, type UtxoOrOutRef, VERSION_RECORD_TOKEN_NAME, type ValidatorHashes, VerificationKeyHashSchema, type VersionRecordParams, VersionRecordTokenParams, type VoteOption, type WithdrawalOutputDatum, addrDetails, addressFromBech32, addressToBech32, adjust, adjustLrp, adjustSpAccount, adjustStakingPosition, adjustmentHelper, annulRequest, approximateLeverageRedemptions, assetClassToUnit, assetClassValueOf, balance, buildRedemptionsTx, burnCdp, calculateAccruedInterest, calculateAdaReward, calculateCollateralRatioFromLeverage, calculateIAssetRedemptionAmt, calculateLeverageFromCollateralRatio, calculateMinCollateralCappedIAssetRedemptionAmt, calculateTotalAdaForRedemption, calculateUnitaryInterest, calculateUnitaryInterestSinceOracleLastUpdated, cancelLrp, castCDPCreatorParams, castCdpParams, castExecuteParams, castGovParams, castInterestOracleParams, castLrpParams, castPollManagerParams, castPollShardParams, castPriceOracleParams, castStabilityPoolParams, castStakingParams, castTreasuryParams, castVersionRecordTokenParams, cdpCollateralRatioPercentage, claimLrp, closeCdp, closeSpAccount, closeStakingPosition, collectorFeeTx, computeInterestLovelacesFor100PercentCR, createProposal, createScriptAddress, createShardsChunks, createSpAccount, depositCdp, distributeAda, distributeReward, endProposal, executeProposal, feedInterestOracle, findStakingManager, findStakingManagerByOutRef, findStakingPositionByOutRef, freezeCdp, fromSPInteger, fromSysParamsScriptCredential, fromSystemParamsAsset, fromSystemParamsScriptRef, getAccountFund, getAccountReward, getInlineDatumOrThrow, getRandomElement, getSumFromEpochToScaleToSum, init, initEpochToScaleToSumMap, initSpSnapshot, insertSorted, isAssetsZero, leverageCdpWithLrp, liquidateCdp, liquidationHelper, loadSystemParamsFromFile, loadSystemParamsFromUrl, lovelacesAmt, lrpRedeemableLovelacesInclReimb, matchSingle, mergeCdps, mergeShards, mintCdp, mkAssetsOf, mkCDPCreatorValidator, mkCDPCreatorValidatorFromSP, mkCdpValidatorFromSP, mkCollectorValidatorFromSP, mkExecuteValidator, mkExecuteValidatorFromSP, mkInterestOracleValidator, mkLovelacesOf, mkLrpValidator, mkLrpValidatorFromSP, mkPollManagerValidator, mkPollManagerValidatorFromSP, mkPollShardValidator, mkPollShardValidatorFromSP, mkSPInteger, mkTreasuryValidatorFromSP, mkVersionRecordTokenPolicy, mkVersionRegistryValidator, negateAssets, oneShotMintTx, openCdp, openLrp, openStakingPosition, parseAccountDatum, parseCdpDatum, parseCdpDatumOrThrow, parseExecuteDatum, parseExecuteDatumOrThrow, parseGovDatum, parseGovDatumOrThrow, parseIAssetDatum, parseIAssetDatumOrThrow, parseInterestOracleDatum, parseLrpDatum, parseLrpDatumOrThrow, parsePollManager, parsePollManagerOrThrow, parsePollShard, parsePollShardOrThrow, parsePriceOracleDatum, parseSnapshotEpochToScaleToSumDatum, parseStabilityPoolDatum, parseStakingManagerDatum, parseStakingPosition, parseStakingPositionOrThrow, parseUpgradePaths, processSpRequest, randomLrpsSubsetSatisfyingTargetLovelaces, redeemCdp, redeemLrp, resolveUtxo, rewardSnapshotPrecision, runCreateScriptRefTx, runOneShotMintTx, scriptRef, serialiseCDPCreatorDatum, serialiseCDPCreatorRedeemer, serialiseCdpDatum, serialiseCdpRedeemer, serialiseCollectorRedeemer, serialiseExecuteDatum, serialiseFeedInterestOracleRedeemer, serialiseGovDatum, serialiseGovRedeemer, serialiseIAssetDatum, serialiseInterestOracleDatum, serialiseLrpDatum, serialiseLrpRedeemer, serialisePollDatum, serialisePollManagerRedeemer, serialisePollShardRedeemer, serialisePriceOracleDatum, serialisePriceOracleRedeemer, serialiseStabilityPoolDatum, serialiseStabilityPoolRedeemer, serialiseStakingDatum, serialiseStakingRedeemer, serialiseTreasuryDatum, serialiseTreasuryRedeemer, serialiseUpgradePaths, serialiseWithdrawalOutputDatum, setSumInEpochToScaleToSum, shuffle, spAdd, spDiv, spMul, spSub, startInterestOracle, submitAndAwaitTx, summarizeActualLeverageRedemptions, toSystemParamsAsset, treasuryFeeTx, updatePoolSnapshotWithdrawalFee, updateSlotConfigNetwork, updateStakingLockedAmount, vote, withdrawCdp };
|