@indigo-labs/indigo-sdk 0.1.20 → 0.1.22

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.
Files changed (135) hide show
  1. package/.github/workflows/ci.yml +3 -8
  2. package/.github/workflows/test.yml +44 -0
  3. package/dist/index.d.mts +678 -1001
  4. package/dist/index.d.ts +678 -1001
  5. package/dist/index.js +2272 -4670
  6. package/dist/index.mjs +2234 -4618
  7. package/eslint.config.mjs +1 -7
  8. package/package.json +4 -9
  9. package/src/contracts/cdp.ts +746 -0
  10. package/src/contracts/collector.ts +98 -0
  11. package/src/contracts/gov.ts +1 -0
  12. package/src/contracts/interest-oracle.ts +149 -0
  13. package/src/contracts/{lrp/transactions.ts → lrp.ts} +14 -14
  14. package/src/contracts/{one-shot/transactions.ts → one-shot.ts} +3 -3
  15. package/src/contracts/stability-pool.ts +690 -0
  16. package/src/contracts/staking.ts +348 -0
  17. package/src/contracts/treasury.ts +112 -0
  18. package/src/helpers/asset-helpers.ts +57 -0
  19. package/src/{utils → helpers}/helper-txs.ts +0 -1
  20. package/src/{utils/utils.ts → helpers/helpers.ts} +10 -0
  21. package/src/{contracts/interest-oracle/helpers.ts → helpers/interest-oracle.ts} +9 -37
  22. package/src/{contracts/stability-pool/helpers.ts → helpers/stability-pool-helpers.ts} +6 -110
  23. package/src/helpers/staking-helpers.ts +94 -0
  24. package/src/helpers/time-helpers.ts +4 -0
  25. package/src/{utils → helpers}/value-helpers.ts +0 -10
  26. package/src/index.ts +33 -37
  27. package/src/{validators → scripts}/cdp-creator-validator.ts +50 -4
  28. package/src/{validators → scripts}/cdp-validator.ts +5 -3
  29. package/src/{validators → scripts}/collector-validator.ts +3 -2
  30. package/src/scripts/execute-validator.ts +52 -0
  31. package/src/{validators/governance-validator.ts → scripts/gov-validator.ts} +40 -3
  32. package/src/{validators → scripts}/interest-oracle-validator.ts +20 -4
  33. package/src/scripts/lrp-validator.ts +40 -0
  34. package/src/{contracts/one-shot/scripts.ts → scripts/one-shot-policy.ts} +1 -1
  35. package/src/scripts/poll-manager-validator.ts +52 -0
  36. package/src/{validators → scripts}/poll-shard-validator.ts +43 -3
  37. package/src/{contracts/price-oracle/scripts.ts → scripts/price-oracle-validator.ts} +4 -1
  38. package/src/{validators → scripts}/stability-pool-validator.ts +57 -4
  39. package/src/{validators → scripts}/staking-validator.ts +3 -2
  40. package/src/{validators → scripts}/treasury-validator.ts +3 -2
  41. package/src/{validators → scripts}/version-record-policy.ts +23 -4
  42. package/src/{validators/execute-validator.ts → scripts/version-registry.ts} +11 -3
  43. package/src/types/generic.ts +60 -78
  44. package/src/{contracts/cdp-creator/types.ts → types/indigo/cdp-creator.ts} +4 -6
  45. package/src/types/indigo/cdp.ts +88 -0
  46. package/src/types/indigo/execute.ts +21 -0
  47. package/src/types/indigo/gov.ts +51 -0
  48. package/src/{contracts/interest-oracle/types.ts → types/indigo/interest-oracle.ts} +1 -1
  49. package/src/{contracts/lrp/types.ts → types/indigo/lrp.ts} +2 -2
  50. package/src/types/indigo/poll-manager.ts +21 -0
  51. package/src/types/indigo/poll-shard.ts +16 -0
  52. package/src/{contracts/price-oracle/types.ts → types/indigo/price-oracle.ts} +4 -16
  53. package/src/types/indigo/stability-pool.ts +233 -0
  54. package/src/types/indigo/staking.ts +99 -0
  55. package/src/{contracts/version-registry/types.ts → types/indigo/version-record.ts} +1 -1
  56. package/src/types/on-chain-decimal.ts +0 -22
  57. package/src/types/system-params.ts +11 -22
  58. package/tests/datums.test.ts +108 -125
  59. package/tests/endpoints/initialize.ts +338 -240
  60. package/tests/hash-checks.test.ts +21 -26
  61. package/tests/indigo-test-helpers.ts +55 -1
  62. package/tests/initialize.test.ts +5 -10
  63. package/tests/interest-calculations.test.ts +18 -18
  64. package/tests/interest-oracle.test.ts +18 -20
  65. package/tests/lrp.test.ts +65 -191
  66. package/tests/queries/governance-queries.ts +16 -19
  67. package/tests/queries/iasset-queries.ts +23 -46
  68. package/tests/queries/interest-oracle-queries.ts +6 -3
  69. package/tests/queries/lrp-queries.ts +2 -2
  70. package/tests/queries/price-oracle-queries.ts +22 -5
  71. package/tests/queries/stability-pool-queries.ts +8 -10
  72. package/tests/queries/staking-queries.ts +19 -28
  73. package/tests/stability-pool.test.ts +71 -186
  74. package/tests/staking.test.ts +23 -30
  75. package/tests/test-helpers.ts +2 -11
  76. package/tsconfig.json +1 -3
  77. package/vitest.config.ts +1 -1
  78. package/src/contracts/cdp/helpers.ts +0 -167
  79. package/src/contracts/cdp/scripts.ts +0 -33
  80. package/src/contracts/cdp/transactions.ts +0 -1310
  81. package/src/contracts/cdp/types.ts +0 -161
  82. package/src/contracts/cdp-creator/scripts.ts +0 -39
  83. package/src/contracts/collector/scripts.ts +0 -32
  84. package/src/contracts/collector/transactions.ts +0 -44
  85. package/src/contracts/execute/scripts.ts +0 -48
  86. package/src/contracts/execute/types.ts +0 -57
  87. package/src/contracts/gov/helpers.ts +0 -157
  88. package/src/contracts/gov/scripts.ts +0 -34
  89. package/src/contracts/gov/transactions.ts +0 -1224
  90. package/src/contracts/gov/types-new.ts +0 -115
  91. package/src/contracts/gov/types.ts +0 -89
  92. package/src/contracts/interest-oracle/scripts.ts +0 -18
  93. package/src/contracts/interest-oracle/transactions.ts +0 -149
  94. package/src/contracts/lrp/scripts.ts +0 -27
  95. package/src/contracts/poll/helpers.ts +0 -55
  96. package/src/contracts/poll/scripts.ts +0 -72
  97. package/src/contracts/poll/types-poll-manager.ts +0 -38
  98. package/src/contracts/poll/types-poll-shard.ts +0 -38
  99. package/src/contracts/poll/types-poll.ts +0 -88
  100. package/src/contracts/price-oracle/transactions.ts +0 -112
  101. package/src/contracts/stability-pool/scripts.ts +0 -46
  102. package/src/contracts/stability-pool/transactions.ts +0 -660
  103. package/src/contracts/stability-pool/types-new.ts +0 -208
  104. package/src/contracts/stability-pool/types.ts +0 -42
  105. package/src/contracts/staking/helpers.ts +0 -116
  106. package/src/contracts/staking/scripts.ts +0 -41
  107. package/src/contracts/staking/transactions.ts +0 -268
  108. package/src/contracts/staking/types-new.ts +0 -81
  109. package/src/contracts/staking/types.ts +0 -41
  110. package/src/contracts/treasury/scripts.ts +0 -37
  111. package/src/contracts/treasury/transactions.ts +0 -44
  112. package/src/contracts/treasury/types.ts +0 -55
  113. package/src/contracts/version-registry/scripts.ts +0 -29
  114. package/src/contracts/version-registry/types-new.ts +0 -19
  115. package/src/contracts/vesting/helpers.ts +0 -267
  116. package/src/types/evolution-schema-options.ts +0 -16
  117. package/src/utils/bigint-utils.ts +0 -7
  118. package/src/utils/time-helpers.ts +0 -4
  119. package/src/validators/lrp-validator.ts +0 -7
  120. package/src/validators/poll-manager-validator.ts +0 -7
  121. package/src/validators/version-registry-validator.ts +0 -7
  122. package/tests/cdp.test.ts +0 -1565
  123. package/tests/gov.test.ts +0 -1874
  124. package/tests/mock/assets-mock.ts +0 -59
  125. package/tests/queries/cdp-queries.ts +0 -144
  126. package/tests/queries/collector-queries.ts +0 -26
  127. package/tests/queries/execute-queries.ts +0 -46
  128. package/tests/queries/poll-queries.ts +0 -97
  129. package/tests/queries/treasury-queries.ts +0 -19
  130. package/tests/utils/asserts.ts +0 -13
  131. package/tests/utils/index.ts +0 -50
  132. /package/src/{utils → helpers}/indigo-helpers.ts +0 -0
  133. /package/src/{utils → helpers}/lucid-utils.ts +0 -0
  134. /package/src/{contracts/price-oracle/helpers.ts → helpers/price-oracle-helpers.ts} +0 -0
  135. /package/src/{contracts/one-shot/types.ts → types/one-shot.ts} +0 -0
package/dist/index.d.ts CHANGED
@@ -1,7 +1,5 @@
1
1
  import * as _lucid_evolution_lucid from '@lucid-evolution/lucid';
2
- import { Data, Network, OutRef, Credential, LucidEvolution, TxBuilder, Redeemer, Datum, UTxO, SpendingValidator, MintingPolicy, ScriptHash, Address, Assets, PolicyId } from '@lucid-evolution/lucid';
3
- import { option } from 'fp-ts';
4
- import { Core } from '@evolution-sdk/evolution';
2
+ import { Data, LucidEvolution, OutRef, TxBuilder, SpendingValidator, Credential as Credential$1, UTxO, Address as Address$1, Datum, Network, ScriptHash, Assets, ScriptType, Redeemer, PolicyId } from '@lucid-evolution/lucid';
5
3
 
6
4
  declare const AssetClassSchema: _lucid_evolution_lucid.TObject<{
7
5
  currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
@@ -22,21 +20,8 @@ declare const CredentialSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution_
22
20
  }> | _lucid_evolution_lucid.TObject<{
23
21
  ScriptCredential: _lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TUnsafe<string>]>;
24
22
  }>)[]>;
25
- type CredentialD = Data.Static<typeof CredentialSchema>;
26
- declare const CredentialD: CredentialD;
27
- declare const StakeCredentialSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
28
- Inline: _lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
29
- PublicKeyCredential: _lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TUnsafe<string>]>;
30
- }> | _lucid_evolution_lucid.TObject<{
31
- ScriptCredential: _lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TUnsafe<string>]>;
32
- }>)[]>]>;
33
- }> | _lucid_evolution_lucid.TObject<{
34
- Pointer: _lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TObject<{
35
- slotNumber: _lucid_evolution_lucid.TUnsafe<bigint>;
36
- transactionIndex: _lucid_evolution_lucid.TUnsafe<bigint>;
37
- certificateIndex: _lucid_evolution_lucid.TUnsafe<bigint>;
38
- }>]>;
39
- }>)[]>;
23
+ type Credential = Data.Static<typeof CredentialSchema>;
24
+ declare const Credential: Credential;
40
25
  declare const AddressSchema: _lucid_evolution_lucid.TObject<{
41
26
  paymentCredential: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
42
27
  PublicKeyCredential: _lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TUnsafe<string>]>;
@@ -55,12 +40,12 @@ declare const AddressSchema: _lucid_evolution_lucid.TObject<{
55
40
  transactionIndex: bigint;
56
41
  certificateIndex: bigint;
57
42
  }];
58
- } | null>;
43
+ }>;
59
44
  }>;
60
- type AddressD = Data.Static<typeof AddressSchema>;
61
- declare const AddressD: AddressD;
62
- declare function addressToBech32(address: AddressD, network: Network): string;
63
- declare function addressFromBech32(address: string): AddressD;
45
+ type Address = Data.Static<typeof AddressSchema>;
46
+ declare const Address: Address;
47
+ declare function addressToBech32(lucid: LucidEvolution, address: Address): string;
48
+ declare function addressFromBech32(address: string): Address;
64
49
  interface CurrencySymbol {
65
50
  unCurrencySymbol: string;
66
51
  }
@@ -75,9 +60,9 @@ type AssetClassSP = [CurrencySymbol, TokenName];
75
60
  interface SystemParams {
76
61
  versionRecordParams: VersionRecordParams;
77
62
  validatorHashes: ValidatorHashes;
78
- treasuryParams: TreasuryParamsSP;
63
+ treasuryParams: TreasuryParams;
79
64
  startTime: StartTime;
80
- stakingParams: StakingParamsSP;
65
+ stakingParams: StakingParams;
81
66
  stabilityPoolParams: StabilityPoolParamsSP;
82
67
  scriptReferences: ScriptReferences;
83
68
  pollShardParams: PollShardParamsSP;
@@ -87,8 +72,8 @@ interface SystemParams {
87
72
  govParams: GovParamsSP;
88
73
  executeParams: ExecuteParamsSP;
89
74
  distributionParams: DistributionParams;
90
- collectorParams: CollectorParamsSP;
91
- cdpParams: CdpParamsSP;
75
+ collectorParams: CollectorParams;
76
+ cdpParams: CdpParams;
92
77
  cdpCreatorParams: CDPCreatorParamsSP;
93
78
  }
94
79
  type ValidatorHashes = {
@@ -122,7 +107,7 @@ interface PubKeyHash {
122
107
  interface VersionRecordParams {
123
108
  upgradeToken: AssetClassSP;
124
109
  }
125
- interface TreasuryParamsSP {
110
+ interface TreasuryParams {
126
111
  upgradeToken: AssetClassSP;
127
112
  versionRecordToken: AssetClassSP;
128
113
  treasuryUtxosStakeCredential?: ScriptCredential;
@@ -131,7 +116,7 @@ interface StartTime {
131
116
  slot: number;
132
117
  blockHeader: string;
133
118
  }
134
- interface StakingParamsSP {
119
+ interface StakingParams {
135
120
  versionRecordToken: AssetClassSP;
136
121
  stakingToken: AssetClassSP;
137
122
  stakingManagerNFT: AssetClassSP;
@@ -154,6 +139,7 @@ interface StabilityPoolParamsSP {
154
139
  accountAdjustmentFeeLovelaces: number;
155
140
  }
156
141
  interface ScriptReferences {
142
+ vestingValidatorRef: ScriptReference;
157
143
  versionRegistryValidatorRef: ScriptReference;
158
144
  versionRecordTokenPolicyRef: ScriptReference;
159
145
  treasuryValidatorRef: ScriptReference;
@@ -162,6 +148,7 @@ interface ScriptReferences {
162
148
  pollShardValidatorRef: ScriptReference;
163
149
  pollManagerValidatorRef: ScriptReference;
164
150
  lrpValidatorRef: ScriptReference;
151
+ liquidityValidatorRef: ScriptReference;
165
152
  iAssetTokenPolicyRef: ScriptReference;
166
153
  governanceValidatorRef: ScriptReference;
167
154
  executeValidatorRef: ScriptReference;
@@ -207,10 +194,8 @@ interface AuthTokenPolicies {
207
194
  upgradeTokenRef: ScriptReference;
208
195
  stakingTokenRef: ScriptReference;
209
196
  stabilityPoolTokenRef: ScriptReference;
210
- stabilityPoolAuthTokenRef: ScriptReference;
211
197
  snapshotEpochToScaleToSumTokenRef: ScriptReference;
212
198
  pollManagerTokenRef: ScriptReference;
213
- iAssetAuthTokenRef: ScriptReference;
214
199
  iAssetTokenRef: ScriptReference;
215
200
  cdpAuthTokenRef: ScriptReference;
216
201
  accountTokenRef: ScriptReference;
@@ -266,12 +251,12 @@ interface DistributionParams {
266
251
  totalINDYSupply: number;
267
252
  initialIndyDistribution: number;
268
253
  }
269
- interface CollectorParamsSP {
254
+ interface CollectorParams {
270
255
  versionRecordToken: AssetClassSP;
271
256
  stakingToken: AssetClassSP;
272
257
  stakingManagerNFT: AssetClassSP;
273
258
  }
274
- interface CdpParamsSP {
259
+ interface CdpParams {
275
260
  versionRecordToken: AssetClassSP;
276
261
  upgradeToken: AssetClassSP;
277
262
  treasuryValHash: string;
@@ -299,64 +284,92 @@ interface CDPCreatorParamsSP {
299
284
  }
300
285
  declare function toSystemParamsAsset(asset: AssetClass): AssetClassSP;
301
286
  declare function fromSystemParamsAsset(asset: AssetClassSP): AssetClass;
302
- declare function fromSystemParamsScriptRef(ref: ScriptReference): OutRef;
303
- declare function fromSysParamsScriptCredential(cred: ScriptCredential): Credential;
304
287
 
305
- declare function openCdp(collateralAmount: bigint, mintedAmount: bigint, sysParams: SystemParams, cdpCreatorOref: OutRef, iassetOref: OutRef, priceOracleOref: OutRef, interestOracleOref: OutRef, collectorOref: OutRef, lucid: LucidEvolution, currentSlot: number): Promise<TxBuilder>;
306
- declare function depositCdp(amount: bigint, cdpOref: OutRef, iassetOref: OutRef, priceOracleOref: OutRef, interestOracleOref: OutRef, collectorOref: OutRef, govOref: OutRef, treasuryOref: OutRef, params: SystemParams, lucid: LucidEvolution, currentSlot: number): Promise<TxBuilder>;
307
- declare function withdrawCdp(amount: bigint, cdpOref: OutRef, iassetOref: OutRef, priceOracleOref: OutRef, interestOracleOref: OutRef, collectorOref: OutRef, govOref: OutRef, treasuryOref: OutRef, params: SystemParams, lucid: LucidEvolution, currentSlot: number): Promise<TxBuilder>;
308
- declare function mintCdp(amount: bigint, cdpOref: OutRef, iassetOref: OutRef, priceOracleOref: OutRef, interestOracleOref: OutRef, collectorOref: OutRef, govOref: OutRef, treasuryOref: OutRef, params: SystemParams, lucid: LucidEvolution, currentSlot: number): Promise<TxBuilder>;
309
- declare function burnCdp(amount: bigint, cdpOref: OutRef, iassetOref: OutRef, priceOracleOref: OutRef, interestOracleOref: OutRef, collectorOref: OutRef, govOref: OutRef, treasuryOref: OutRef, params: SystemParams, lucid: LucidEvolution, currentSlot: number): Promise<TxBuilder>;
310
- declare function closeCdp(cdpOref: OutRef, iassetOref: OutRef, priceOracleOref: OutRef, interestOracleOref: OutRef, collectorOref: OutRef, govOref: OutRef, treasuryOref: OutRef, sysParams: SystemParams, lucid: LucidEvolution, currentSlot: number): Promise<TxBuilder>;
311
- declare function redeemCdp(
312
- /**
313
- * When the goal is to redeem the maximum possible, just pass in the total minted amount of the CDP.
314
- * The logic will automatically cap the amount to the max.
315
- */
316
- attemptedRedemptionIAssetAmt: bigint, cdpOref: OutRef, iassetOref: OutRef, priceOracleOref: OutRef, interestOracleOref: OutRef, collectorOref: OutRef, treasuryOref: OutRef, sysParams: SystemParams, lucid: LucidEvolution, currentSlot: number): Promise<TxBuilder>;
317
- declare function freezeCdp(cdpOref: OutRef, iassetOref: OutRef, priceOracleOref: OutRef, interestOracleOref: OutRef, sysParams: SystemParams, lucid: LucidEvolution, currentSlot: number): Promise<TxBuilder>;
318
- declare function liquidateCdp(cdpOref: OutRef, stabilityPoolOref: OutRef, collectorOref: OutRef, treasuryOref: OutRef, sysParams: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
319
- declare function mergeCdps(cdpsToMergeUtxos: OutRef[], sysParams: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
288
+ declare class CDPContract {
289
+ static openPosition(asset: string, collateralAmount: bigint, mintedAmount: bigint, params: SystemParams, lucid: LucidEvolution, currentSlot: number, assetRef?: OutRef, priceOracleRef?: OutRef, interestOracleRef?: OutRef, cdpCreatorRef?: OutRef, collectorRef?: OutRef): Promise<TxBuilder>;
290
+ static deposit(cdpRef: OutRef, amount: bigint, params: SystemParams, lucid: LucidEvolution, currentSlot: number, assetRef?: OutRef, priceOracleRef?: OutRef, interestOracleRef?: OutRef, collectorRef?: OutRef, govRef?: OutRef, treasuryRef?: OutRef): Promise<TxBuilder>;
291
+ static withdraw(cdpRef: OutRef, amount: bigint, params: SystemParams, lucid: LucidEvolution, currentSlot: number, assetRef?: OutRef, priceOracleRef?: OutRef, interestOracleRef?: OutRef, collectorRef?: OutRef, govRef?: OutRef, treasuryRef?: OutRef): Promise<TxBuilder>;
292
+ static mint(cdpRef: OutRef, amount: bigint, params: SystemParams, lucid: LucidEvolution, currentSlot: number, assetRef?: OutRef, priceOracleRef?: OutRef, interestOracleRef?: OutRef, collectorRef?: OutRef, govRef?: OutRef, treasuryRef?: OutRef): Promise<TxBuilder>;
293
+ static burn(cdpRef: OutRef, amount: bigint, params: SystemParams, lucid: LucidEvolution, currentSlot: number, assetRef?: OutRef, priceOracleRef?: OutRef, interestOracleRef?: OutRef, collectorRef?: OutRef, govRef?: OutRef, treasuryRef?: OutRef): Promise<TxBuilder>;
294
+ static adjust(cdpRef: OutRef, collateralAmount: bigint, mintAmount: bigint, params: SystemParams, lucid: LucidEvolution, currentSlot: number, assetRef?: OutRef, priceOracleRef?: OutRef, interestOracleRef?: OutRef, collectorRef?: OutRef, govRef?: OutRef, treasuryRef?: OutRef): Promise<TxBuilder>;
295
+ static close(cdpRef: OutRef, params: SystemParams, lucid: LucidEvolution, currentSlot: number, assetRef?: OutRef, priceOracleRef?: OutRef, interestOracleRef?: OutRef, collectorRef?: OutRef, govRef?: OutRef, treasuryRef?: OutRef): Promise<TxBuilder>;
296
+ static validator(params: CdpParams): SpendingValidator;
297
+ static validatorHash(params: CdpParams): string;
298
+ static address(cdpParams: CdpParams, lucid: LucidEvolution, skh?: Credential$1): string;
299
+ static scriptRef(params: ScriptReferences, lucid: LucidEvolution): Promise<UTxO>;
300
+ static cdpAuthTokenRef(params: ScriptReferences, lucid: LucidEvolution): Promise<UTxO>;
301
+ static assetTokenRef(params: ScriptReferences, lucid: LucidEvolution): Promise<UTxO>;
302
+ static assetAuthTokenRef(params: ScriptReferences, lucid: LucidEvolution): Promise<UTxO>;
303
+ }
320
304
 
321
- declare const OnChainDecimalSchema: _lucid_evolution_lucid.TObject<{
322
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
323
- }>;
324
- type OnChainDecimal = Data.Static<typeof OnChainDecimalSchema>;
305
+ declare class CollectorContract {
306
+ static feeTx(fee: bigint, lucid: LucidEvolution, params: SystemParams, tx: TxBuilder, collectorRef?: OutRef): Promise<void>;
307
+ static validator(params: CollectorParams): SpendingValidator;
308
+ static validatorHash(params: CollectorParams): string;
309
+ static address(params: CollectorParams, lucid: LucidEvolution): Address$1;
310
+ static scriptRef(params: ScriptReferences, lucid: LucidEvolution): Promise<UTxO>;
311
+ }
325
312
 
326
- declare const CdpParamsSchema: _lucid_evolution_lucid.TObject<{
327
- cdp_auth_token: _lucid_evolution_lucid.TObject<{
328
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
329
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
330
- }>;
331
- cdp_asset_symbol: _lucid_evolution_lucid.TUnsafe<string>;
332
- iasset_auth_token: _lucid_evolution_lucid.TObject<{
333
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
334
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
335
- }>;
336
- stability_pool_auth_token: _lucid_evolution_lucid.TObject<{
337
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
338
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
339
- }>;
340
- version_record_token: _lucid_evolution_lucid.TObject<{
341
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
342
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
343
- }>;
344
- upgrade_token: _lucid_evolution_lucid.TObject<{
345
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
346
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
313
+ declare class GovContract {
314
+ }
315
+
316
+ declare class StabilityPoolContract {
317
+ static createAccount(asset: string, amount: bigint, params: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
318
+ static adjustAccount(asset: string, amount: bigint, accountUtxo: UTxO, params: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
319
+ static closeAccount(accountUtxo: UTxO, params: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
320
+ static processRequest(asset: string, stabilityPoolUtxo: UTxO, accountUtxo: UTxO, govUtxo: UTxO, iAssetUtxo: UTxO, newSnapshotUtxo: UTxO | undefined, params: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
321
+ }
322
+
323
+ declare class StakingContract {
324
+ static openPosition(amount: bigint, params: SystemParams, lucid: LucidEvolution, stakingManagerRef?: OutRef): Promise<TxBuilder>;
325
+ static adjustPosition(stakingPositionRef: OutRef, amount: bigint, params: SystemParams, lucid: LucidEvolution, stakingManagerRef?: OutRef): Promise<TxBuilder>;
326
+ static closePosition(stakingPositionRef: OutRef, params: SystemParams, lucid: LucidEvolution, stakingManagerRef?: OutRef): Promise<TxBuilder>;
327
+ static validator(params: StakingParams): SpendingValidator;
328
+ static validatorHash(params: StakingParams): string;
329
+ static address(params: StakingParams, lucid: LucidEvolution): Address$1;
330
+ static scriptRef(params: ScriptReferences, lucid: LucidEvolution): Promise<UTxO>;
331
+ static stakingTokenScriptRef(params: ScriptReferences, lucid: LucidEvolution): Promise<UTxO>;
332
+ }
333
+
334
+ declare const InterestOracleDatumSchema: _lucid_evolution_lucid.TObject<{
335
+ unitaryInterest: _lucid_evolution_lucid.TUnsafe<bigint>;
336
+ interestRate: _lucid_evolution_lucid.TObject<{
337
+ getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
347
338
  }>;
348
- collector_val_hash: _lucid_evolution_lucid.TUnsafe<string>;
349
- sp_val_hash: _lucid_evolution_lucid.TUnsafe<string>;
350
- gov_nft: _lucid_evolution_lucid.TObject<{
351
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
352
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
339
+ lastUpdated: _lucid_evolution_lucid.TUnsafe<bigint>;
340
+ }>;
341
+ type InterestOracleDatum = Data.Static<typeof InterestOracleDatumSchema>;
342
+ declare function parseInterestOracleDatum(datum: Datum): InterestOracleDatum;
343
+ declare function serialiseInterestOracleDatum(datum: InterestOracleDatum): Datum;
344
+ declare const FeedInterestOracleRedeemerSchema: _lucid_evolution_lucid.TObject<{
345
+ newInterestRate: _lucid_evolution_lucid.TObject<{
346
+ getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
353
347
  }>;
354
- min_collateral_in_lovelace: _lucid_evolution_lucid.TUnsafe<bigint>;
355
- partial_redemption_extra_fee_lovelace: _lucid_evolution_lucid.TUnsafe<bigint>;
356
- bias_time: _lucid_evolution_lucid.TUnsafe<bigint>;
357
- treasury_val_hash: _lucid_evolution_lucid.TUnsafe<string>;
348
+ currentTime: _lucid_evolution_lucid.TUnsafe<bigint>;
349
+ }>;
350
+ type FeedInterestOracleRedeemer = Data.Static<typeof FeedInterestOracleRedeemerSchema>;
351
+ declare function serialiseFeedInterestOracleRedeemer(redeemer: FeedInterestOracleRedeemer): Datum;
352
+ declare const InterestOracleParamsSchema: _lucid_evolution_lucid.TObject<{
353
+ /** Milliseconds */
354
+ biasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
355
+ owner: _lucid_evolution_lucid.TUnsafe<string>;
358
356
  }>;
359
- type CdpParams = Data.Static<typeof CdpParamsSchema>;
357
+ type InterestOracleParams = Data.Static<typeof InterestOracleParamsSchema>;
358
+ declare function castInterestOracleParams(params: InterestOracleParams): Data;
359
+
360
+ declare class InterestOracleContract {
361
+ static startInterestOracle(initialUnitaryInterest: bigint, initialInterestRate: bigint, initialLastInterestUpdate: bigint, oracleParams: InterestOracleParams, lucid: LucidEvolution, withScriptRef?: boolean, refOutRef?: OutRef, interestTokenName?: string): Promise<[TxBuilder, AssetClass]>;
362
+ static feedInterestOracle(params: InterestOracleParams, newInterestRate: bigint, lucid: LucidEvolution, assetClass?: AssetClass, utxo?: UTxO, scriptRef?: UTxO): Promise<TxBuilder>;
363
+ }
364
+
365
+ declare class TreasuryContract {
366
+ static feeTx(fee: bigint, lucid: LucidEvolution, params: SystemParams, tx: TxBuilder, treasuryRef?: OutRef): Promise<void>;
367
+ static validator(params: TreasuryParams): SpendingValidator;
368
+ static validatorHash(params: TreasuryParams): string;
369
+ static address(params: TreasuryParams, lucid: LucidEvolution): Address$1;
370
+ static scriptRef(params: ScriptReferences, lucid: LucidEvolution): Promise<UTxO>;
371
+ }
372
+
360
373
  declare const CDPFeesSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
361
374
  ActiveCDPInterestTracking: _lucid_evolution_lucid.TObject<{
362
375
  lastSettled: _lucid_evolution_lucid.TUnsafe<bigint>;
@@ -369,7 +382,7 @@ declare const CDPFeesSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution_luc
369
382
  }>;
370
383
  }>)[]>;
371
384
  declare const CDPContentSchema: _lucid_evolution_lucid.TObject<{
372
- cdpOwner: _lucid_evolution_lucid.TUnsafe<string | null>;
385
+ cdpOwner: _lucid_evolution_lucid.TUnsafe<string>;
373
386
  iasset: _lucid_evolution_lucid.TUnsafe<string>;
374
387
  mintedAmt: _lucid_evolution_lucid.TUnsafe<bigint>;
375
388
  cdpFees: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
@@ -384,35 +397,17 @@ declare const CDPContentSchema: _lucid_evolution_lucid.TObject<{
384
397
  }>;
385
398
  }>)[]>;
386
399
  }>;
387
- declare const IAssetPriceInfoSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
388
- Delisted: _lucid_evolution_lucid.TObject<{
389
- content: _lucid_evolution_lucid.TObject<{
390
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
391
- }>;
392
- }>;
393
- }> | _lucid_evolution_lucid.TObject<{
394
- Oracle: _lucid_evolution_lucid.TObject<{
395
- content: _lucid_evolution_lucid.TObject<{
396
- oracleNft: _lucid_evolution_lucid.TObject<{
397
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
398
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
399
- }>;
400
- }>;
401
- }>;
402
- }>)[]>;
403
400
  declare const IAssetContentSchema: _lucid_evolution_lucid.TObject<{
404
401
  /** Use the HEX encoding */
405
402
  assetName: _lucid_evolution_lucid.TUnsafe<string>;
406
403
  price: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
407
404
  Delisted: _lucid_evolution_lucid.TObject<{
408
- content: _lucid_evolution_lucid.TObject<{
409
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
410
- }>;
405
+ getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
411
406
  }>;
412
407
  }> | _lucid_evolution_lucid.TObject<{
413
408
  Oracle: _lucid_evolution_lucid.TObject<{
414
- content: _lucid_evolution_lucid.TObject<{
415
- oracleNft: _lucid_evolution_lucid.TObject<{
409
+ oracleNft: _lucid_evolution_lucid.TObject<{
410
+ asset: _lucid_evolution_lucid.TObject<{
416
411
  currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
417
412
  tokenName: _lucid_evolution_lucid.TUnsafe<string>;
418
413
  }>;
@@ -451,12 +446,12 @@ declare const IAssetContentSchema: _lucid_evolution_lucid.TObject<{
451
446
  getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
452
447
  }>;
453
448
  firstIAsset: _lucid_evolution_lucid.TUnsafe<boolean>;
454
- nextIAsset: _lucid_evolution_lucid.TUnsafe<string | null>;
449
+ nextIAsset: _lucid_evolution_lucid.TUnsafe<string>;
455
450
  }>;
456
451
  declare const CDPDatumSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
457
452
  CDP: _lucid_evolution_lucid.TObject<{
458
453
  content: _lucid_evolution_lucid.TObject<{
459
- cdpOwner: _lucid_evolution_lucid.TUnsafe<string | null>;
454
+ cdpOwner: _lucid_evolution_lucid.TUnsafe<string>;
460
455
  iasset: _lucid_evolution_lucid.TUnsafe<string>;
461
456
  mintedAmt: _lucid_evolution_lucid.TUnsafe<bigint>;
462
457
  cdpFees: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
@@ -479,14 +474,12 @@ declare const CDPDatumSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lu
479
474
  assetName: _lucid_evolution_lucid.TUnsafe<string>;
480
475
  price: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
481
476
  Delisted: _lucid_evolution_lucid.TObject<{
482
- content: _lucid_evolution_lucid.TObject<{
483
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
484
- }>;
477
+ getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
485
478
  }>;
486
479
  }> | _lucid_evolution_lucid.TObject<{
487
480
  Oracle: _lucid_evolution_lucid.TObject<{
488
- content: _lucid_evolution_lucid.TObject<{
489
- oracleNft: _lucid_evolution_lucid.TObject<{
481
+ oracleNft: _lucid_evolution_lucid.TObject<{
482
+ asset: _lucid_evolution_lucid.TObject<{
490
483
  currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
491
484
  tokenName: _lucid_evolution_lucid.TUnsafe<string>;
492
485
  }>;
@@ -525,7 +518,7 @@ declare const CDPDatumSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lu
525
518
  getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
526
519
  }>;
527
520
  firstIAsset: _lucid_evolution_lucid.TUnsafe<boolean>;
528
- nextIAsset: _lucid_evolution_lucid.TUnsafe<string | null>;
521
+ nextIAsset: _lucid_evolution_lucid.TUnsafe<string>;
529
522
  }>;
530
523
  }>;
531
524
  }>)[]>;
@@ -533,446 +526,186 @@ type CDPFees = Data.Static<typeof CDPFeesSchema>;
533
526
  type CDPDatum = Data.Static<typeof CDPDatumSchema>;
534
527
  type CDPContent = Data.Static<typeof CDPContentSchema>;
535
528
  type IAssetContent = Data.Static<typeof IAssetContentSchema>;
536
- declare const CDPRedeemerSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
537
- AdjustCdp: _lucid_evolution_lucid.TObject<{
538
- currentTime: _lucid_evolution_lucid.TUnsafe<bigint>;
539
- mintedAmtChange: _lucid_evolution_lucid.TUnsafe<bigint>;
540
- collateralAmtChange: _lucid_evolution_lucid.TUnsafe<bigint>;
541
- }>;
542
- }> | _lucid_evolution_lucid.TObject<{
543
- CloseCdp: _lucid_evolution_lucid.TObject<{
544
- currentTime: _lucid_evolution_lucid.TUnsafe<bigint>;
545
- }>;
546
- }> | _lucid_evolution_lucid.TObject<{
547
- RedeemCdp: _lucid_evolution_lucid.TObject<{
548
- currentTime: _lucid_evolution_lucid.TUnsafe<bigint>;
549
- }>;
550
- }> | _lucid_evolution_lucid.TObject<{
551
- FreezeCdp: _lucid_evolution_lucid.TObject<{
552
- currentTime: _lucid_evolution_lucid.TUnsafe<bigint>;
553
- }>;
554
- }> | _lucid_evolution_lucid.TLiteral<"MergeCdps"> | _lucid_evolution_lucid.TObject<{
555
- MergeAuxiliary: _lucid_evolution_lucid.TObject<{
556
- mainMergeUtxo: _lucid_evolution_lucid.TObject<{
557
- txHash: _lucid_evolution_lucid.TObject<{
558
- hash: _lucid_evolution_lucid.TUnsafe<string>;
559
- }>;
560
- outputIndex: _lucid_evolution_lucid.TUnsafe<bigint>;
561
- }>;
562
- }>;
563
- }> | _lucid_evolution_lucid.TLiteral<"Liquidate"> | _lucid_evolution_lucid.TLiteral<"UpdateOrInsertAsset"> | _lucid_evolution_lucid.TLiteral<"UpgradeVersion">)[]>;
564
- type CDPRedeemer = Data.Static<typeof CDPRedeemerSchema>;
565
- declare function serialiseCdpRedeemer(r: CDPRedeemer): Redeemer;
566
- declare function parseCdpDatum(datum: Datum): option.Option<CDPContent>;
567
- declare function parseCdpDatumOrThrow(datum: Datum): CDPContent;
568
- declare function serialiseCdpDatum(cdpDatum: CDPContent): Datum;
569
- declare function parseIAssetDatum(datum: Datum): option.Option<IAssetContent>;
570
- declare function parseIAssetDatumOrThrow(datum: Datum): IAssetContent;
529
+ declare function parseCDPDatum(datum: Datum): CDPContent;
530
+ declare function serialiseCDPDatum(cdpDatum: CDPContent): Datum;
531
+ declare function parseIAssetDatum(datum: Datum): IAssetContent;
571
532
  declare function serialiseIAssetDatum(iassetDatum: IAssetContent): Datum;
572
- declare function castCdpParams(params: CdpParams): Data;
533
+
573
534
  type IAssetOutput = {
574
- datum: IAssetContent;
575
535
  utxo: UTxO;
536
+ datum: IAssetContent;
576
537
  };
538
+ declare class IAssetHelpers {
539
+ static findIAssetByRef(outRef: OutRef, lucid: LucidEvolution): Promise<IAssetOutput>;
540
+ static findIAssetByName(assetName: string, params: SystemParams, lucid: LucidEvolution): Promise<IAssetOutput>;
541
+ }
577
542
 
578
- declare const InterestOracleDatumSchema: _lucid_evolution_lucid.TObject<{
579
- unitaryInterest: _lucid_evolution_lucid.TUnsafe<bigint>;
580
- interestRate: _lucid_evolution_lucid.TObject<{
581
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
582
- }>;
583
- lastUpdated: _lucid_evolution_lucid.TUnsafe<bigint>;
584
- }>;
585
- type InterestOracleDatum = Data.Static<typeof InterestOracleDatumSchema>;
586
- declare function parseInterestOracleDatum(datum: Datum): InterestOracleDatum;
587
- declare function serialiseInterestOracleDatum(datum: InterestOracleDatum): Datum;
588
- declare const FeedInterestOracleRedeemerSchema: _lucid_evolution_lucid.TObject<{
589
- newInterestRate: _lucid_evolution_lucid.TObject<{
590
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
591
- }>;
592
- currentTime: _lucid_evolution_lucid.TUnsafe<bigint>;
593
- }>;
594
- type FeedInterestOracleRedeemer = Data.Static<typeof FeedInterestOracleRedeemerSchema>;
595
- declare function serialiseFeedInterestOracleRedeemer(redeemer: FeedInterestOracleRedeemer): Datum;
596
- declare const InterestOracleParamsSchema: _lucid_evolution_lucid.TObject<{
597
- /** Milliseconds */
598
- biasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
599
- owner: _lucid_evolution_lucid.TUnsafe<string>;
600
- }>;
601
- type InterestOracleParams = Data.Static<typeof InterestOracleParamsSchema>;
602
- declare function castInterestOracleParams(params: InterestOracleParams): Data;
603
-
604
- /**
605
- * This is mostly for debugging purposes.
606
- */
607
- declare function cdpCollateralRatioPercentage(currentSlot: number, iassetPrice: OnChainDecimal, cdpUtxo: UTxO, cdpContent: CDPContent, interestOracleDatum: InterestOracleDatum, network: Network): number;
608
543
  /**
609
- * The amount of iassets to redeem to reach the RMR.
544
+ * Accept only a single item in the array and return it.
545
+ * When not exclusively a single item, throw an error.
610
546
  */
611
- declare function calculateIAssetRedemptionAmt(collateralAmt: bigint, mintedAmt: bigint, price: OnChainDecimal, rmr: OnChainDecimal): bigint;
547
+ declare function matchSingle<T>(xs: T[], mkErr: (xs: T[]) => Error): T;
548
+ declare function calculateFeeFromPercentage(percent: bigint, amount: bigint): bigint;
549
+ declare function loadSystemParamsFromFile(file: string): SystemParams;
550
+ declare function loadSystemParamsFromUrl(url: string): Promise<SystemParams>;
551
+ declare const getRandomElement: <T>(arr: T[]) => T;
552
+
612
553
  /**
613
- * Calculates the allowable redemption amount so the min collateral constraint still holds.
614
- * It caps the redemption amount to still satisfy the min collateral.
615
- *
616
- * Returns uncapped max iassets /\ capped max iassets
617
- *
618
- * The derived calculation comes from the following equation where:
619
- * c - collateral
620
- * m - min collateral
621
- * r - reimburstment ratio
622
- * x - redemption amount
623
- *
624
- * `c - x + r * x = m`
625
- * `-x + r * x = m - c`
626
- * `x * (r - 1) = m - c`
627
- * `x = (m - c) / r - 1`
554
+ * Returns the inline datum.
555
+ * Throws when the UTXO doesn't have an inline datum
556
+ * (i.e. in case it has hash datum or no datum).
628
557
  */
629
- declare function calculateMinCollateralCappedIAssetRedemptionAmt(collateralAmt: bigint, mintedAmt: bigint, price: OnChainDecimal, rmr: OnChainDecimal, reimburstmentPercentage: OnChainDecimal, minCollateral: bigint): {
630
- uncappedIAssetRedemptionAmt: bigint;
631
- cappedIAssetRedemptionAmt: bigint;
632
- };
633
-
634
- declare const mkCdpValidatorFromSP: (params: CdpParamsSP) => SpendingValidator;
558
+ declare function getInlineDatumOrThrow(utxo: UTxO): Datum;
559
+ declare function addrDetails(lucid: LucidEvolution): Promise<[Credential$1, Credential$1 | undefined]>;
560
+ declare function createScriptAddress(network: Network, scriptHash: ScriptHash, stakeCredential?: Credential$1): Address$1;
561
+ declare function scriptRef(ref: ScriptReference, lucid: LucidEvolution): Promise<UTxO>;
562
+ declare function balance(utxos: UTxO[]): Assets;
635
563
 
636
- declare const CDPCreatorParamsSchema: _lucid_evolution_lucid.TObject<{
637
- cdpCreatorNft: _lucid_evolution_lucid.TObject<{
638
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
639
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
640
- }>;
641
- cdpAssetCs: _lucid_evolution_lucid.TUnsafe<string>;
642
- cdpAuthTk: _lucid_evolution_lucid.TObject<{
643
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
644
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
645
- }>;
646
- iAssetAuthTk: _lucid_evolution_lucid.TObject<{
647
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
648
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
649
- }>;
650
- versionRecordToken: _lucid_evolution_lucid.TObject<{
651
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
652
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
653
- }>;
654
- cdpScriptHash: _lucid_evolution_lucid.TUnsafe<string>;
655
- collectorValHash: _lucid_evolution_lucid.TUnsafe<string>;
656
- minCollateralInLovelace: _lucid_evolution_lucid.TUnsafe<bigint>;
657
- biasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
564
+ declare const SPIntegerSchema: _lucid_evolution_lucid.TObject<{
565
+ value: _lucid_evolution_lucid.TUnsafe<bigint>;
658
566
  }>;
659
- type CDPCreatorParams = Data.Static<typeof CDPCreatorParamsSchema>;
660
- declare const CDPCreatorParams: CDPCreatorParams;
661
- declare function castCDPCreatorParams(params: CDPCreatorParams): Data;
662
- declare const CDPCreatorRedeemerSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
663
- CreateCDP: _lucid_evolution_lucid.TObject<{
664
- cdpOwner: _lucid_evolution_lucid.TUnsafe<string>;
665
- minted: _lucid_evolution_lucid.TUnsafe<bigint>;
666
- collateral: _lucid_evolution_lucid.TUnsafe<bigint>;
667
- currentTime: _lucid_evolution_lucid.TUnsafe<bigint>;
668
- }>;
669
- }> | _lucid_evolution_lucid.TObject<{
670
- UpgradeCreatorVersion: _lucid_evolution_lucid.TObject<{}>;
671
- }>)[]>;
672
- type CDPCreatorRedeemer = Data.Static<typeof CDPCreatorRedeemerSchema>;
673
- declare const CDPCreatorRedeemer: CDPCreatorRedeemer;
674
- declare function serialiseCDPCreatorRedeemer(params: CDPCreatorRedeemer): Redeemer;
675
- declare function serialiseCDPCreatorDatum(): Datum;
676
-
677
- declare const mkCDPCreatorValidator: (params: CDPCreatorParams) => SpendingValidator;
678
- declare const mkCDPCreatorValidatorFromSP: (params: CDPCreatorParamsSP) => SpendingValidator;
679
-
680
- declare const PollManagerParamsSchema: _lucid_evolution_lucid.TObject<{
681
- govNFT: _lucid_evolution_lucid.TObject<{
682
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
683
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
684
- }>;
685
- pollToken: _lucid_evolution_lucid.TObject<{
686
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
687
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
567
+ type SPInteger = Data.Static<typeof SPIntegerSchema>;
568
+ declare const SPInteger: SPInteger;
569
+ declare const StabilityPoolSnapshotSchema: _lucid_evolution_lucid.TObject<{
570
+ productVal: _lucid_evolution_lucid.TObject<{
571
+ value: _lucid_evolution_lucid.TUnsafe<bigint>;
688
572
  }>;
689
- upgradeToken: _lucid_evolution_lucid.TObject<{
690
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
691
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
573
+ depositVal: _lucid_evolution_lucid.TObject<{
574
+ value: _lucid_evolution_lucid.TUnsafe<bigint>;
692
575
  }>;
693
- indyAsset: _lucid_evolution_lucid.TObject<{
694
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
695
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
576
+ sumVal: _lucid_evolution_lucid.TObject<{
577
+ value: _lucid_evolution_lucid.TUnsafe<bigint>;
696
578
  }>;
697
- govExecuteValHash: _lucid_evolution_lucid.TUnsafe<string>;
698
- pBiasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
699
- shardValHash: _lucid_evolution_lucid.TUnsafe<string>;
700
- treasuryValHash: _lucid_evolution_lucid.TUnsafe<string>;
701
- initialIndyDistribution: _lucid_evolution_lucid.TUnsafe<bigint>;
579
+ epoch: _lucid_evolution_lucid.TUnsafe<bigint>;
580
+ scale: _lucid_evolution_lucid.TUnsafe<bigint>;
702
581
  }>;
703
- type PollManagerParams = Data.Static<typeof PollManagerParamsSchema>;
704
- declare const PollManagerParams: PollManagerParams;
705
- declare const PollManagerRedeemerSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
706
- EndPoll: _lucid_evolution_lucid.TObject<{
707
- currentTime: _lucid_evolution_lucid.TUnsafe<bigint>;
708
- }>;
709
- }> | _lucid_evolution_lucid.TObject<{
710
- CreateShards: _lucid_evolution_lucid.TObject<{
711
- currentTime: _lucid_evolution_lucid.TUnsafe<bigint>;
712
- }>;
713
- }> | _lucid_evolution_lucid.TObject<{
714
- MergeShardsManager: _lucid_evolution_lucid.TObject<{
715
- currentTime: _lucid_evolution_lucid.TUnsafe<bigint>;
716
- }>;
717
- }>)[]>;
718
- type PollManagerRedeemer = Data.Static<typeof PollManagerRedeemerSchema>;
719
- declare const PollManagerRedeemer: PollManagerRedeemer;
720
- declare function serialisePollManagerRedeemer(r: PollManagerRedeemer): Redeemer;
721
- declare function castPollManagerParams(params: PollManagerParams): Data;
722
-
723
- declare const PollShardParamsSchema: _lucid_evolution_lucid.TObject<{
724
- pollToken: _lucid_evolution_lucid.TObject<{
725
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
726
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
727
- }>;
728
- stakingToken: _lucid_evolution_lucid.TObject<{
729
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
730
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
731
- }>;
732
- indyAsset: _lucid_evolution_lucid.TObject<{
733
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
734
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
735
- }>;
736
- stakingValHash: _lucid_evolution_lucid.TUnsafe<string>;
582
+ type StabilityPoolSnapshot = Data.Static<typeof StabilityPoolSnapshotSchema>;
583
+ declare const StabilityPoolSnapshot: StabilityPoolSnapshot;
584
+ declare const EpochToScaleToSumSchema: _lucid_evolution_lucid.TUnsafe<Map<{
585
+ epoch: bigint;
586
+ scale: bigint;
587
+ }, {
588
+ value: bigint;
589
+ }>>;
590
+ type EpochToScaleToSum = Data.Static<typeof EpochToScaleToSumSchema>;
591
+ declare const EpochToScaleToSum: EpochToScaleToSum;
592
+ declare const StabilityPoolContentSchema: _lucid_evolution_lucid.TObject<{
593
+ asset: _lucid_evolution_lucid.TUnsafe<string>;
594
+ snapshot: _lucid_evolution_lucid.TObject<{
595
+ productVal: _lucid_evolution_lucid.TObject<{
596
+ value: _lucid_evolution_lucid.TUnsafe<bigint>;
597
+ }>;
598
+ depositVal: _lucid_evolution_lucid.TObject<{
599
+ value: _lucid_evolution_lucid.TUnsafe<bigint>;
600
+ }>;
601
+ sumVal: _lucid_evolution_lucid.TObject<{
602
+ value: _lucid_evolution_lucid.TUnsafe<bigint>;
603
+ }>;
604
+ epoch: _lucid_evolution_lucid.TUnsafe<bigint>;
605
+ scale: _lucid_evolution_lucid.TUnsafe<bigint>;
606
+ }>;
607
+ epochToScaleToSum: _lucid_evolution_lucid.TUnsafe<Map<{
608
+ epoch: bigint;
609
+ scale: bigint;
610
+ }, {
611
+ value: bigint;
612
+ }>>;
737
613
  }>;
738
- type PollShardParams = Data.Static<typeof PollShardParamsSchema>;
739
- declare const PollShardParams: PollShardParams;
740
- declare const VoteOptionSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TLiteral<"Yes"> | _lucid_evolution_lucid.TLiteral<"No">)[]>;
741
- type VoteOption = Data.Static<typeof VoteOptionSchema>;
742
- declare const PollShardRedeemerSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
743
- Vote: _lucid_evolution_lucid.TObject<{
744
- content: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TLiteral<"Yes"> | _lucid_evolution_lucid.TLiteral<"No">)[]>;
614
+ type StabilityPoolContent = Data.Static<typeof StabilityPoolContentSchema>;
615
+ declare const StabilityPoolContent: StabilityPoolContent;
616
+ declare const AccountActionSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TLiteral<"Create"> | _lucid_evolution_lucid.TObject<{
617
+ Adjust: _lucid_evolution_lucid.TObject<{
618
+ amount: _lucid_evolution_lucid.TUnsafe<bigint>;
619
+ outputAddress: _lucid_evolution_lucid.TObject<{
620
+ paymentCredential: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
621
+ PublicKeyCredential: _lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TUnsafe<string>]>;
622
+ }> | _lucid_evolution_lucid.TObject<{
623
+ ScriptCredential: _lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TUnsafe<string>]>;
624
+ }>)[]>;
625
+ stakeCredential: _lucid_evolution_lucid.TUnsafe<{
626
+ Inline: [{
627
+ PublicKeyCredential: [string];
628
+ } | {
629
+ ScriptCredential: [string];
630
+ }];
631
+ } | {
632
+ Pointer: [{
633
+ slotNumber: bigint;
634
+ transactionIndex: bigint;
635
+ certificateIndex: bigint;
636
+ }];
637
+ }>;
638
+ }>;
745
639
  }>;
746
640
  }> | _lucid_evolution_lucid.TObject<{
747
- MergeShards: _lucid_evolution_lucid.TObject<{
748
- currentTime: _lucid_evolution_lucid.TUnsafe<bigint>;
749
- pollManagerRef: _lucid_evolution_lucid.TObject<{
750
- txHash: _lucid_evolution_lucid.TObject<{
751
- hash: _lucid_evolution_lucid.TUnsafe<string>;
641
+ Close: _lucid_evolution_lucid.TObject<{
642
+ outputAddress: _lucid_evolution_lucid.TObject<{
643
+ paymentCredential: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
644
+ PublicKeyCredential: _lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TUnsafe<string>]>;
645
+ }> | _lucid_evolution_lucid.TObject<{
646
+ ScriptCredential: _lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TUnsafe<string>]>;
647
+ }>)[]>;
648
+ stakeCredential: _lucid_evolution_lucid.TUnsafe<{
649
+ Inline: [{
650
+ PublicKeyCredential: [string];
651
+ } | {
652
+ ScriptCredential: [string];
653
+ }];
654
+ } | {
655
+ Pointer: [{
656
+ slotNumber: bigint;
657
+ transactionIndex: bigint;
658
+ certificateIndex: bigint;
659
+ }];
752
660
  }>;
753
- outputIndex: _lucid_evolution_lucid.TUnsafe<bigint>;
754
661
  }>;
755
662
  }>;
756
663
  }>)[]>;
757
- type PollShardRedeemer = Data.Static<typeof PollShardRedeemerSchema>;
758
- declare const PollShardRedeemer: PollShardRedeemer;
759
- declare function serialisePollShardRedeemer(redeemer: PollShardRedeemer): Redeemer;
760
- declare function castPollShardParams(params: PollShardParams): Data;
761
-
762
- declare const mkPollManagerValidator: (params: PollManagerParams) => SpendingValidator;
763
- declare const mkPollManagerValidatorFromSP: (params: PollManagerParamsSP) => SpendingValidator;
764
- declare const mkPollShardValidator: (params: PollShardParams) => SpendingValidator;
765
- declare const mkPollShardValidatorFromSP: (params: PollShardParamsSP) => SpendingValidator;
766
-
767
- declare function collectorFeeTx(fee: bigint, lucid: LucidEvolution, params: SystemParams, tx: TxBuilder, collectorOref: OutRef): Promise<void>;
768
-
769
- declare const GovDatumSchema: _lucid_evolution_lucid.TObject<{
770
- currentProposal: _lucid_evolution_lucid.TUnsafe<bigint>;
771
- protocolParams: _lucid_evolution_lucid.TObject<{
772
- proposalDeposit: _lucid_evolution_lucid.TUnsafe<bigint>;
773
- votingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
774
- effectiveDelay: _lucid_evolution_lucid.TUnsafe<bigint>;
775
- expirationPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
776
- collateralFeePercentage: _lucid_evolution_lucid.TObject<{
777
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
664
+ type AccountAction = Data.Static<typeof AccountActionSchema>;
665
+ declare const AccountAction: AccountAction;
666
+ declare const AccountContentSchema: _lucid_evolution_lucid.TObject<{
667
+ owner: _lucid_evolution_lucid.TUnsafe<string>;
668
+ asset: _lucid_evolution_lucid.TUnsafe<string>;
669
+ snapshot: _lucid_evolution_lucid.TObject<{
670
+ productVal: _lucid_evolution_lucid.TObject<{
671
+ value: _lucid_evolution_lucid.TUnsafe<bigint>;
778
672
  }>;
779
- proposingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
780
- totalShards: _lucid_evolution_lucid.TUnsafe<bigint>;
781
- minimumQuorum: _lucid_evolution_lucid.TUnsafe<bigint>;
782
- maxTreasuryLovelaceSpend: _lucid_evolution_lucid.TUnsafe<bigint>;
783
- maxTreasuryIndySpend: _lucid_evolution_lucid.TUnsafe<bigint>;
784
- }>;
785
- currentVersion: _lucid_evolution_lucid.TUnsafe<bigint>;
786
- iassetsCount: _lucid_evolution_lucid.TUnsafe<bigint>;
787
- activeProposals: _lucid_evolution_lucid.TUnsafe<bigint>;
788
- treasuryIndyWithdrawnAmt: _lucid_evolution_lucid.TUnsafe<bigint>;
789
- }>;
790
- type GovDatum = Data.Static<typeof GovDatumSchema>;
791
- declare const GovParamsSchema: _lucid_evolution_lucid.TObject<{
792
- govNFT: _lucid_evolution_lucid.TObject<{
793
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
794
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
795
- }>;
796
- pollToken: _lucid_evolution_lucid.TObject<{
797
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
798
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
799
- }>;
800
- upgradeToken: _lucid_evolution_lucid.TObject<{
801
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
802
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
803
- }>;
804
- indyAsset: _lucid_evolution_lucid.TObject<{
805
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
806
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
807
- }>;
808
- versionRecordToken: _lucid_evolution_lucid.TObject<{
809
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
810
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
811
- }>;
812
- pollManagerValHash: _lucid_evolution_lucid.TUnsafe<string>;
813
- gBiasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
814
- daoIdentityToken: _lucid_evolution_lucid.TObject<{
815
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
816
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
817
- }>;
818
- iAssetAuthToken: _lucid_evolution_lucid.TObject<{
819
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
820
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
673
+ depositVal: _lucid_evolution_lucid.TObject<{
674
+ value: _lucid_evolution_lucid.TUnsafe<bigint>;
675
+ }>;
676
+ sumVal: _lucid_evolution_lucid.TObject<{
677
+ value: _lucid_evolution_lucid.TUnsafe<bigint>;
678
+ }>;
679
+ epoch: _lucid_evolution_lucid.TUnsafe<bigint>;
680
+ scale: _lucid_evolution_lucid.TUnsafe<bigint>;
821
681
  }>;
822
- }>;
823
- type GovParams = Data.Static<typeof GovParamsSchema>;
824
- declare const GovParams: GovParams;
825
- declare const ValueWithdrawalItemSchema: _lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TUnsafe<string>, _lucid_evolution_lucid.TUnsafe<string>, _lucid_evolution_lucid.TUnsafe<bigint>]>;
826
- type TreasuryWithdrawalItem = Data.Static<typeof ValueWithdrawalItemSchema>;
827
- declare const TreasuryWithdrawalSchema: _lucid_evolution_lucid.TObject<{
828
- destination: _lucid_evolution_lucid.TObject<{
829
- paymentCredential: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
830
- PublicKeyCredential: _lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TUnsafe<string>]>;
831
- }> | _lucid_evolution_lucid.TObject<{
832
- ScriptCredential: _lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TUnsafe<string>]>;
833
- }>)[]>;
834
- stakeCredential: _lucid_evolution_lucid.TUnsafe<{
835
- Inline: [{
836
- PublicKeyCredential: [string];
837
- } | {
838
- ScriptCredential: [string];
839
- }];
840
- } | {
841
- Pointer: [{
842
- slotNumber: bigint;
843
- transactionIndex: bigint;
844
- certificateIndex: bigint;
845
- }];
846
- } | null>;
847
- }>;
848
- value: _lucid_evolution_lucid.TArray<_lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TUnsafe<string>, _lucid_evolution_lucid.TUnsafe<string>, _lucid_evolution_lucid.TUnsafe<bigint>]>>;
849
- }>;
850
- type TreasuryWithdrawal = Data.Static<typeof TreasuryWithdrawalSchema>;
851
- declare const GovRedeemerSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TLiteral<"UpgradeVersion"> | _lucid_evolution_lucid.TObject<{
852
- CreatePoll: _lucid_evolution_lucid.TObject<{
853
- currentTime: _lucid_evolution_lucid.TUnsafe<bigint>;
854
- proposalOwner: _lucid_evolution_lucid.TUnsafe<string>;
855
- content: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
856
- ProposeAsset: _lucid_evolution_lucid.TObject<{
857
- asset: _lucid_evolution_lucid.TUnsafe<string>;
858
- priceOracleNft: _lucid_evolution_lucid.TObject<{
859
- oracleNft: _lucid_evolution_lucid.TObject<{
860
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
861
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
862
- }>;
863
- }>;
864
- interestOracleNft: _lucid_evolution_lucid.TObject<{
865
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
866
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
867
- }>;
868
- redemptionRatioPercentage: _lucid_evolution_lucid.TObject<{
869
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
870
- }>;
871
- maintenanceRatioPercentage: _lucid_evolution_lucid.TObject<{
872
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
873
- }>;
874
- liquidationRatioPercentage: _lucid_evolution_lucid.TObject<{
875
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
876
- }>;
877
- debtMintingFeePercentage: _lucid_evolution_lucid.TObject<{
878
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
879
- }>;
880
- liquidationProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
881
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
882
- }>;
883
- stabilityPoolWithdrawalFeePercentage: _lucid_evolution_lucid.TObject<{
884
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
885
- }>;
886
- redemptionReimbursementPercentage: _lucid_evolution_lucid.TObject<{
887
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
888
- }>;
889
- redemptionProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
890
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
891
- }>;
892
- interestCollectorPortionPercentage: _lucid_evolution_lucid.TObject<{
893
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
894
- }>;
895
- }>;
896
- }> | _lucid_evolution_lucid.TObject<{
897
- ModifyAsset: _lucid_evolution_lucid.TObject<{
898
- asset: _lucid_evolution_lucid.TUnsafe<string>;
899
- newAssetPriceInfo: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
900
- Delisted: _lucid_evolution_lucid.TObject<{
901
- content: _lucid_evolution_lucid.TObject<{
902
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
903
- }>;
904
- }>;
905
- }> | _lucid_evolution_lucid.TObject<{
906
- Oracle: _lucid_evolution_lucid.TObject<{
907
- content: _lucid_evolution_lucid.TObject<{
908
- oracleNft: _lucid_evolution_lucid.TObject<{
909
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
910
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
911
- }>;
912
- }>;
913
- }>;
914
- }>)[]>;
915
- newInterestOracleNft: _lucid_evolution_lucid.TObject<{
916
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
917
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
918
- }>;
919
- newRedemptionRatioPercentage: _lucid_evolution_lucid.TObject<{
920
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
921
- }>;
922
- newMaintenanceRatioPercentage: _lucid_evolution_lucid.TObject<{
923
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
924
- }>;
925
- newLiquidationRatioPercentage: _lucid_evolution_lucid.TObject<{
926
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
927
- }>;
928
- newDebtMintingFeePercentage: _lucid_evolution_lucid.TObject<{
929
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
930
- }>;
931
- newLiquidationProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
932
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
933
- }>;
934
- newStabilityPoolWithdrawalFeePercentage: _lucid_evolution_lucid.TObject<{
935
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
936
- }>;
937
- newRedemptionReimbursementPercentage: _lucid_evolution_lucid.TObject<{
938
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
939
- }>;
940
- newRedemptionProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
941
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
942
- }>;
943
- newInterestCollectorPortionPercentage: _lucid_evolution_lucid.TObject<{
944
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
945
- }>;
946
- }>;
947
- }> | _lucid_evolution_lucid.TObject<{
948
- ModifyProtocolParams: _lucid_evolution_lucid.TObject<{
949
- newParams: _lucid_evolution_lucid.TObject<{
950
- proposalDeposit: _lucid_evolution_lucid.TUnsafe<bigint>;
951
- votingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
952
- effectiveDelay: _lucid_evolution_lucid.TUnsafe<bigint>;
953
- expirationPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
954
- collateralFeePercentage: _lucid_evolution_lucid.TObject<{
955
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
956
- }>;
957
- proposingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
958
- totalShards: _lucid_evolution_lucid.TUnsafe<bigint>;
959
- minimumQuorum: _lucid_evolution_lucid.TUnsafe<bigint>;
960
- maxTreasuryLovelaceSpend: _lucid_evolution_lucid.TUnsafe<bigint>;
961
- maxTreasuryIndySpend: _lucid_evolution_lucid.TUnsafe<bigint>;
962
- }>;
963
- }>;
964
- }> | _lucid_evolution_lucid.TObject<{
965
- UpgradeProtocol: _lucid_evolution_lucid.TObject<{
966
- content: _lucid_evolution_lucid.TUnsafe<Data>;
967
- }>;
968
- }> | _lucid_evolution_lucid.TObject<{
969
- TextProposal: _lucid_evolution_lucid.TObject<{
970
- bytes: _lucid_evolution_lucid.TUnsafe<string>;
971
- }>;
972
- }>)[]>;
973
- treasuryWithdrawal: _lucid_evolution_lucid.TUnsafe<{
974
- value: [string, string, bigint][];
975
- destination: {
682
+ request: _lucid_evolution_lucid.TUnsafe<"Create" | {
683
+ Adjust: {
684
+ amount: bigint;
685
+ outputAddress: {
686
+ paymentCredential: {
687
+ PublicKeyCredential: [string];
688
+ } | {
689
+ ScriptCredential: [string];
690
+ };
691
+ stakeCredential: {
692
+ Inline: [{
693
+ PublicKeyCredential: [string];
694
+ } | {
695
+ ScriptCredential: [string];
696
+ }];
697
+ } | {
698
+ Pointer: [{
699
+ slotNumber: bigint;
700
+ transactionIndex: bigint;
701
+ certificateIndex: bigint;
702
+ }];
703
+ };
704
+ };
705
+ };
706
+ } | {
707
+ Close: {
708
+ outputAddress: {
976
709
  paymentCredential: {
977
710
  PublicKeyCredential: [string];
978
711
  } | {
@@ -990,291 +723,393 @@ declare const GovRedeemerSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution
990
723
  transactionIndex: bigint;
991
724
  certificateIndex: bigint;
992
725
  }];
993
- } | null;
726
+ };
994
727
  };
995
- } | null>;
728
+ };
996
729
  }>;
997
- }> | _lucid_evolution_lucid.TObject<{
998
- WitnessEndPoll: _lucid_evolution_lucid.TObject<{
999
- currentTime: _lucid_evolution_lucid.TUnsafe<bigint>;
1000
- }>;
1001
- }> | _lucid_evolution_lucid.TLiteral<"UpgradeGov">)[]>;
1002
- type GovRedeemer = Data.Static<typeof GovRedeemerSchema>;
1003
- declare const GovRedeemer: GovRedeemer;
1004
- declare function parseGovDatum(datum: Datum): option.Option<GovDatum>;
1005
- declare function parseGovDatumOrThrow(datum: Datum): GovDatum;
1006
- declare function serialiseGovDatum(d: GovDatum): Datum;
1007
- declare function serialiseGovRedeemer(redeemer: GovRedeemer): Redeemer;
1008
- declare function castGovParams(params: GovParams): Data;
1009
-
1010
- declare const ProposalContentSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
1011
- ProposeAsset: _lucid_evolution_lucid.TObject<{
1012
- asset: _lucid_evolution_lucid.TUnsafe<string>;
1013
- priceOracleNft: _lucid_evolution_lucid.TObject<{
1014
- oracleNft: _lucid_evolution_lucid.TObject<{
1015
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
1016
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
730
+ }>;
731
+ type AccountContent = Data.Static<typeof AccountContentSchema>;
732
+ declare const AccountContent: AccountContent;
733
+ declare const SnapshotEpochToScaleToSumContentSchema: _lucid_evolution_lucid.TObject<{
734
+ asset: _lucid_evolution_lucid.TUnsafe<string>;
735
+ snapshot: _lucid_evolution_lucid.TUnsafe<Map<{
736
+ epoch: bigint;
737
+ scale: bigint;
738
+ }, {
739
+ value: bigint;
740
+ }>>;
741
+ }>;
742
+ type SnapshotEpochToScaleToSumContent = Data.Static<typeof SnapshotEpochToScaleToSumContentSchema>;
743
+ declare const SnapshotEpochToScaleToSumContent: SnapshotEpochToScaleToSumContent;
744
+ declare const StabilityPoolDatumSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
745
+ StabilityPool: _lucid_evolution_lucid.TObject<{
746
+ content: _lucid_evolution_lucid.TObject<{
747
+ asset: _lucid_evolution_lucid.TUnsafe<string>;
748
+ snapshot: _lucid_evolution_lucid.TObject<{
749
+ productVal: _lucid_evolution_lucid.TObject<{
750
+ value: _lucid_evolution_lucid.TUnsafe<bigint>;
751
+ }>;
752
+ depositVal: _lucid_evolution_lucid.TObject<{
753
+ value: _lucid_evolution_lucid.TUnsafe<bigint>;
754
+ }>;
755
+ sumVal: _lucid_evolution_lucid.TObject<{
756
+ value: _lucid_evolution_lucid.TUnsafe<bigint>;
757
+ }>;
758
+ epoch: _lucid_evolution_lucid.TUnsafe<bigint>;
759
+ scale: _lucid_evolution_lucid.TUnsafe<bigint>;
1017
760
  }>;
761
+ epochToScaleToSum: _lucid_evolution_lucid.TUnsafe<Map<{
762
+ epoch: bigint;
763
+ scale: bigint;
764
+ }, {
765
+ value: bigint;
766
+ }>>;
1018
767
  }>;
1019
- interestOracleNft: _lucid_evolution_lucid.TObject<{
1020
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
1021
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
1022
- }>;
1023
- redemptionRatioPercentage: _lucid_evolution_lucid.TObject<{
1024
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1025
- }>;
1026
- maintenanceRatioPercentage: _lucid_evolution_lucid.TObject<{
1027
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1028
- }>;
1029
- liquidationRatioPercentage: _lucid_evolution_lucid.TObject<{
1030
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1031
- }>;
1032
- debtMintingFeePercentage: _lucid_evolution_lucid.TObject<{
1033
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1034
- }>;
1035
- liquidationProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
1036
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1037
- }>;
1038
- stabilityPoolWithdrawalFeePercentage: _lucid_evolution_lucid.TObject<{
1039
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1040
- }>;
1041
- redemptionReimbursementPercentage: _lucid_evolution_lucid.TObject<{
1042
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
768
+ }>;
769
+ }> | _lucid_evolution_lucid.TObject<{
770
+ Account: _lucid_evolution_lucid.TObject<{
771
+ content: _lucid_evolution_lucid.TObject<{
772
+ owner: _lucid_evolution_lucid.TUnsafe<string>;
773
+ asset: _lucid_evolution_lucid.TUnsafe<string>;
774
+ snapshot: _lucid_evolution_lucid.TObject<{
775
+ productVal: _lucid_evolution_lucid.TObject<{
776
+ value: _lucid_evolution_lucid.TUnsafe<bigint>;
777
+ }>;
778
+ depositVal: _lucid_evolution_lucid.TObject<{
779
+ value: _lucid_evolution_lucid.TUnsafe<bigint>;
780
+ }>;
781
+ sumVal: _lucid_evolution_lucid.TObject<{
782
+ value: _lucid_evolution_lucid.TUnsafe<bigint>;
783
+ }>;
784
+ epoch: _lucid_evolution_lucid.TUnsafe<bigint>;
785
+ scale: _lucid_evolution_lucid.TUnsafe<bigint>;
786
+ }>;
787
+ request: _lucid_evolution_lucid.TUnsafe<"Create" | {
788
+ Adjust: {
789
+ amount: bigint;
790
+ outputAddress: {
791
+ paymentCredential: {
792
+ PublicKeyCredential: [string];
793
+ } | {
794
+ ScriptCredential: [string];
795
+ };
796
+ stakeCredential: {
797
+ Inline: [{
798
+ PublicKeyCredential: [string];
799
+ } | {
800
+ ScriptCredential: [string];
801
+ }];
802
+ } | {
803
+ Pointer: [{
804
+ slotNumber: bigint;
805
+ transactionIndex: bigint;
806
+ certificateIndex: bigint;
807
+ }];
808
+ };
809
+ };
810
+ };
811
+ } | {
812
+ Close: {
813
+ outputAddress: {
814
+ paymentCredential: {
815
+ PublicKeyCredential: [string];
816
+ } | {
817
+ ScriptCredential: [string];
818
+ };
819
+ stakeCredential: {
820
+ Inline: [{
821
+ PublicKeyCredential: [string];
822
+ } | {
823
+ ScriptCredential: [string];
824
+ }];
825
+ } | {
826
+ Pointer: [{
827
+ slotNumber: bigint;
828
+ transactionIndex: bigint;
829
+ certificateIndex: bigint;
830
+ }];
831
+ };
832
+ };
833
+ };
834
+ }>;
1043
835
  }>;
1044
- redemptionProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
1045
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
836
+ }>;
837
+ }> | _lucid_evolution_lucid.TObject<{
838
+ SnapshotEpochToScaleToSum: _lucid_evolution_lucid.TObject<{
839
+ content: _lucid_evolution_lucid.TObject<{
840
+ asset: _lucid_evolution_lucid.TUnsafe<string>;
841
+ snapshot: _lucid_evolution_lucid.TUnsafe<Map<{
842
+ epoch: bigint;
843
+ scale: bigint;
844
+ }, {
845
+ value: bigint;
846
+ }>>;
1046
847
  }>;
1047
- interestCollectorPortionPercentage: _lucid_evolution_lucid.TObject<{
1048
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
848
+ }>;
849
+ }>)[]>;
850
+ type StabilityPoolDatum = Data.Static<typeof StabilityPoolDatumSchema>;
851
+ declare const StabilityPoolDatum: StabilityPoolDatum;
852
+ declare const ActionReturnDatumSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
853
+ IndigoStabilityPoolAccountAdjustment: _lucid_evolution_lucid.TObject<{
854
+ spent_account: _lucid_evolution_lucid.TObject<{
855
+ txHash: _lucid_evolution_lucid.TObject<{
856
+ hash: _lucid_evolution_lucid.TUnsafe<string>;
857
+ }>;
858
+ outputIndex: _lucid_evolution_lucid.TUnsafe<bigint>;
1049
859
  }>;
1050
860
  }>;
1051
861
  }> | _lucid_evolution_lucid.TObject<{
1052
- ModifyAsset: _lucid_evolution_lucid.TObject<{
1053
- asset: _lucid_evolution_lucid.TUnsafe<string>;
1054
- newAssetPriceInfo: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
1055
- Delisted: _lucid_evolution_lucid.TObject<{
1056
- content: _lucid_evolution_lucid.TObject<{
1057
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
862
+ IndigoStabilityPoolAccountClosure: _lucid_evolution_lucid.TObject<{
863
+ closed_account: _lucid_evolution_lucid.TObject<{
864
+ txHash: _lucid_evolution_lucid.TObject<{
865
+ hash: _lucid_evolution_lucid.TUnsafe<string>;
866
+ }>;
867
+ outputIndex: _lucid_evolution_lucid.TUnsafe<bigint>;
868
+ }>;
869
+ }>;
870
+ }>)[]>;
871
+ type ActionReturnDatum = Data.Static<typeof ActionReturnDatumSchema>;
872
+ declare const ActionReturnDatum: ActionReturnDatum;
873
+ declare const StabilityPoolRedeemerSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
874
+ RequestAction: _lucid_evolution_lucid.TObject<{
875
+ action: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TLiteral<"Create"> | _lucid_evolution_lucid.TObject<{
876
+ Adjust: _lucid_evolution_lucid.TObject<{
877
+ amount: _lucid_evolution_lucid.TUnsafe<bigint>;
878
+ outputAddress: _lucid_evolution_lucid.TObject<{
879
+ paymentCredential: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
880
+ PublicKeyCredential: _lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TUnsafe<string>]>;
881
+ }> | _lucid_evolution_lucid.TObject<{
882
+ ScriptCredential: _lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TUnsafe<string>]>;
883
+ }>)[]>;
884
+ stakeCredential: _lucid_evolution_lucid.TUnsafe<{
885
+ Inline: [{
886
+ PublicKeyCredential: [string];
887
+ } | {
888
+ ScriptCredential: [string];
889
+ }];
890
+ } | {
891
+ Pointer: [{
892
+ slotNumber: bigint;
893
+ transactionIndex: bigint;
894
+ certificateIndex: bigint;
895
+ }];
896
+ }>;
1058
897
  }>;
1059
898
  }>;
1060
899
  }> | _lucid_evolution_lucid.TObject<{
1061
- Oracle: _lucid_evolution_lucid.TObject<{
1062
- content: _lucid_evolution_lucid.TObject<{
1063
- oracleNft: _lucid_evolution_lucid.TObject<{
1064
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
1065
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
900
+ Close: _lucid_evolution_lucid.TObject<{
901
+ outputAddress: _lucid_evolution_lucid.TObject<{
902
+ paymentCredential: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
903
+ PublicKeyCredential: _lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TUnsafe<string>]>;
904
+ }> | _lucid_evolution_lucid.TObject<{
905
+ ScriptCredential: _lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TUnsafe<string>]>;
906
+ }>)[]>;
907
+ stakeCredential: _lucid_evolution_lucid.TUnsafe<{
908
+ Inline: [{
909
+ PublicKeyCredential: [string];
910
+ } | {
911
+ ScriptCredential: [string];
912
+ }];
913
+ } | {
914
+ Pointer: [{
915
+ slotNumber: bigint;
916
+ transactionIndex: bigint;
917
+ certificateIndex: bigint;
918
+ }];
1066
919
  }>;
1067
920
  }>;
1068
921
  }>;
1069
922
  }>)[]>;
1070
- newInterestOracleNft: _lucid_evolution_lucid.TObject<{
1071
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
1072
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
1073
- }>;
1074
- newRedemptionRatioPercentage: _lucid_evolution_lucid.TObject<{
1075
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1076
- }>;
1077
- newMaintenanceRatioPercentage: _lucid_evolution_lucid.TObject<{
1078
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1079
- }>;
1080
- newLiquidationRatioPercentage: _lucid_evolution_lucid.TObject<{
1081
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1082
- }>;
1083
- newDebtMintingFeePercentage: _lucid_evolution_lucid.TObject<{
1084
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1085
- }>;
1086
- newLiquidationProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
1087
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1088
- }>;
1089
- newStabilityPoolWithdrawalFeePercentage: _lucid_evolution_lucid.TObject<{
1090
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1091
- }>;
1092
- newRedemptionReimbursementPercentage: _lucid_evolution_lucid.TObject<{
1093
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1094
- }>;
1095
- newRedemptionProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
1096
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1097
- }>;
1098
- newInterestCollectorPortionPercentage: _lucid_evolution_lucid.TObject<{
1099
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1100
- }>;
1101
923
  }>;
1102
924
  }> | _lucid_evolution_lucid.TObject<{
1103
- ModifyProtocolParams: _lucid_evolution_lucid.TObject<{
1104
- newParams: _lucid_evolution_lucid.TObject<{
1105
- proposalDeposit: _lucid_evolution_lucid.TUnsafe<bigint>;
1106
- votingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
1107
- effectiveDelay: _lucid_evolution_lucid.TUnsafe<bigint>;
1108
- expirationPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
1109
- collateralFeePercentage: _lucid_evolution_lucid.TObject<{
1110
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
925
+ ProcessRequest: _lucid_evolution_lucid.TObject<{
926
+ requestRef: _lucid_evolution_lucid.TObject<{
927
+ txHash: _lucid_evolution_lucid.TObject<{
928
+ hash: _lucid_evolution_lucid.TUnsafe<string>;
1111
929
  }>;
1112
- proposingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
1113
- totalShards: _lucid_evolution_lucid.TUnsafe<bigint>;
1114
- minimumQuorum: _lucid_evolution_lucid.TUnsafe<bigint>;
1115
- maxTreasuryLovelaceSpend: _lucid_evolution_lucid.TUnsafe<bigint>;
1116
- maxTreasuryIndySpend: _lucid_evolution_lucid.TUnsafe<bigint>;
930
+ outputIndex: _lucid_evolution_lucid.TUnsafe<bigint>;
1117
931
  }>;
1118
932
  }>;
1119
933
  }> | _lucid_evolution_lucid.TObject<{
1120
- UpgradeProtocol: _lucid_evolution_lucid.TObject<{
1121
- content: _lucid_evolution_lucid.TUnsafe<Data>;
1122
- }>;
934
+ AnnulRequest: _lucid_evolution_lucid.TObject<{}>;
1123
935
  }> | _lucid_evolution_lucid.TObject<{
1124
- TextProposal: _lucid_evolution_lucid.TObject<{
1125
- bytes: _lucid_evolution_lucid.TUnsafe<string>;
1126
- }>;
936
+ LiquidateCDP: _lucid_evolution_lucid.TObject<{}>;
937
+ }> | _lucid_evolution_lucid.TObject<{
938
+ RecordEpochToScaleToSum: _lucid_evolution_lucid.TObject<{}>;
939
+ }> | _lucid_evolution_lucid.TObject<{
940
+ UpgradeVersion: _lucid_evolution_lucid.TObject<{}>;
1127
941
  }>)[]>;
1128
- type ProposalContent = Data.Static<typeof ProposalContentSchema>;
1129
- declare const ProposalContent: ProposalContent;
1130
-
1131
- /**
1132
- * Returns the new PollId.
1133
- */
1134
- declare function createProposal(proposalContent: ProposalContent, treasuryWithdrawal: TreasuryWithdrawal | null, sysParams: SystemParams, lucid: LucidEvolution, currentSlot: number, govOref: OutRef,
1135
- /**
1136
- * This has to be passed only in case of createAsset proposal
1137
- */
1138
- allIAssetOrefs: OutRef[]): Promise<[TxBuilder, bigint]>;
1139
- /**
1140
- * Builds transaction creating shards of count chunk size.
1141
- */
1142
- declare function createShardsChunks(
1143
- /**
1144
- * This gets automatically capped to total shards count.
1145
- */
1146
- chunkSize: bigint, pollManagerOref: OutRef, sysParams: SystemParams, currentSlot: number, lucid: LucidEvolution): Promise<TxBuilder>;
1147
- declare function vote(voteOption: VoteOption, pollShardOref: OutRef, stakingPositionOref: OutRef, sysParams: SystemParams, lucid: LucidEvolution, currentSlot: number): Promise<TxBuilder>;
1148
- declare function mergeShards(pollManagerOref: OutRef, shardsOutRefs: OutRef[], sysParams: SystemParams, lucid: LucidEvolution, currentSlot: number): Promise<TxBuilder>;
1149
- declare function endProposal(pollManagerOref: OutRef, govOref: OutRef, sysParams: SystemParams, lucid: LucidEvolution, currentSlot: number): Promise<TxBuilder>;
1150
- declare function executeProposal(executeOref: OutRef, govOref: OutRef, treasuryWithdrawalOref: OutRef | null, allIAssetOrefs: OutRef[] | null, modifyIAssetOref: OutRef | null, sysParams: SystemParams, lucid: LucidEvolution, currentSlot: number): Promise<TxBuilder>;
1151
-
1152
- declare function createSpAccount(asset: string, amount: bigint, params: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
1153
- declare function adjustSpAccount(asset: string, amount: bigint, accountUtxo: UTxO, params: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
1154
- declare function closeSpAccount(accountUtxo: UTxO, params: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
1155
- declare function processSpRequest(asset: string, stabilityPoolUtxo: UTxO, accountUtxo: UTxO, govUtxo: UTxO, iAssetUtxo: UTxO, newSnapshotUtxo: UTxO | undefined, params: SystemParams, lucid: LucidEvolution, collectorOref: OutRef): Promise<TxBuilder>;
1156
-
1157
- declare function openStakingPosition(amount: bigint, params: SystemParams, lucid: LucidEvolution, stakingManagerRef?: OutRef): Promise<TxBuilder>;
1158
- declare function adjustStakingPosition(stakingPositionRef: OutRef, amount: bigint, params: SystemParams, lucid: LucidEvolution, stakingManagerRef?: OutRef): Promise<TxBuilder>;
1159
- declare function closeStakingPosition(stakingPositionRef: OutRef, params: SystemParams, lucid: LucidEvolution, stakingManagerRef?: OutRef): Promise<TxBuilder>;
942
+ type StabilityPoolRedeemer = Data.Static<typeof StabilityPoolRedeemerSchema>;
943
+ declare const StabilityPoolRedeemer: StabilityPoolRedeemer;
944
+ declare function parseStabilityPoolDatum(datum: Datum): StabilityPoolContent;
945
+ declare function parseAccountDatum(datum: Datum): AccountContent;
946
+ declare function parseSnapshotEpochToScaleToSumDatum(datum: Datum): SnapshotEpochToScaleToSumContent;
947
+ declare function serialiseStabilityPoolDatum(d: StabilityPoolDatum): Datum;
948
+ declare function serialiseStabilityPoolRedeemer(params: StabilityPoolRedeemer): string;
949
+ /** SP Parameters */
950
+ declare const StabilityPoolParamsSchema: _lucid_evolution_lucid.TObject<{
951
+ assetSymbol: _lucid_evolution_lucid.TUnsafe<string>;
952
+ stabilityPoolToken: _lucid_evolution_lucid.TObject<{
953
+ currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
954
+ tokenName: _lucid_evolution_lucid.TUnsafe<string>;
955
+ }>;
956
+ snapshotEpochToScaleToSumToken: _lucid_evolution_lucid.TObject<{
957
+ currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
958
+ tokenName: _lucid_evolution_lucid.TUnsafe<string>;
959
+ }>;
960
+ accountToken: _lucid_evolution_lucid.TObject<{
961
+ currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
962
+ tokenName: _lucid_evolution_lucid.TUnsafe<string>;
963
+ }>;
964
+ cdpToken: _lucid_evolution_lucid.TObject<{
965
+ currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
966
+ tokenName: _lucid_evolution_lucid.TUnsafe<string>;
967
+ }>;
968
+ iAssetAuthToken: _lucid_evolution_lucid.TObject<{
969
+ currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
970
+ tokenName: _lucid_evolution_lucid.TUnsafe<string>;
971
+ }>;
972
+ versionRecordToken: _lucid_evolution_lucid.TObject<{
973
+ currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
974
+ tokenName: _lucid_evolution_lucid.TUnsafe<string>;
975
+ }>;
976
+ collectorValHash: _lucid_evolution_lucid.TUnsafe<string>;
977
+ govNFT: _lucid_evolution_lucid.TObject<{
978
+ currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
979
+ tokenName: _lucid_evolution_lucid.TUnsafe<string>;
980
+ }>;
981
+ accountCreateFeeLovelaces: _lucid_evolution_lucid.TUnsafe<bigint>;
982
+ accountAdjustmentFeeLovelaces: _lucid_evolution_lucid.TUnsafe<bigint>;
983
+ requestCollateralLovelaces: _lucid_evolution_lucid.TUnsafe<bigint>;
984
+ }>;
985
+ type StabilityPoolParams = Data.Static<typeof StabilityPoolParamsSchema>;
986
+ declare const StabilityPoolParams: StabilityPoolParams;
987
+ declare function castStabilityPoolParams(params: StabilityPoolParams): Data;
988
+ declare function mkSPInteger(value: bigint): SPInteger;
989
+ declare function fromSPInteger(value: SPInteger): bigint;
990
+ declare function spAdd(a: SPInteger, b: SPInteger): SPInteger;
991
+ declare function spSub(a: SPInteger, b: SPInteger): SPInteger;
992
+ declare function spMul(a: SPInteger, b: SPInteger): SPInteger;
993
+ declare function spDiv(a: SPInteger, b: SPInteger): SPInteger;
1160
994
 
1161
- declare function startInterestOracle(initialUnitaryInterest: bigint, initialInterestRate: bigint, initialLastInterestUpdate: bigint, oracleParams: InterestOracleParams, lucid: LucidEvolution, interestTokenName?: string, withScriptRef?: boolean, refOutRef?: OutRef): Promise<[TxBuilder, AssetClass]>;
1162
- declare function feedInterestOracle(params: InterestOracleParams, newInterestRate: bigint, lucid: LucidEvolution, assetClass?: AssetClass, utxo?: UTxO, scriptRef?: UTxO): Promise<TxBuilder>;
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];
1163
1002
 
1164
- declare function mkInterestOracleValidator(params: InterestOracleParams): SpendingValidator;
1003
+ declare const ONE_SECOND: number;
1004
+ declare const oneHour: bigint;
1005
+ declare const oneDay: bigint;
1006
+ declare const oneYear: bigint;
1165
1007
 
1166
- declare const VersionRecordTokenParamsSchema: _lucid_evolution_lucid.TObject<{
1167
- upgradeToken: _lucid_evolution_lucid.TObject<{
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<{
1168
1015
  currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
1169
1016
  tokenName: _lucid_evolution_lucid.TUnsafe<string>;
1170
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>;
1171
1030
  }>;
1172
- type VersionRecordTokenParams = Data.Static<typeof VersionRecordTokenParamsSchema>;
1173
- declare const VersionRecordTokenParams: VersionRecordTokenParams;
1174
- declare function castVersionRecordTokenParams(params: VersionRecordTokenParams): Data;
1031
+ type CDPCreatorParams = Data.Static<typeof CDPCreatorParamsSchema>;
1032
+ declare const CDPCreatorParams: CDPCreatorParams;
1175
1033
 
1176
- declare function mkVersionRecordTokenPolicy(params: VersionRecordTokenParams): MintingPolicy;
1177
- declare const mkVersionRegistryValidator: () => SpendingValidator;
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;
1178
1041
 
1179
- declare function treasuryFeeTx(fee: bigint, lucid: LucidEvolution, sysParams: SystemParams, tx: TxBuilder, treasuryOref: OutRef): Promise<void>;
1042
+ declare const _cdpValidator: {
1043
+ type: ScriptType;
1044
+ description: string;
1045
+ cborHex: string;
1046
+ };
1180
1047
 
1181
- /**
1182
- * Accept only a single item in the array and return it.
1183
- * When not exclusively a single item, throw an error.
1184
- */
1185
- declare function matchSingle<T>(xs: T[], mkErr: (xs: T[]) => Error): T;
1186
- declare function loadSystemParamsFromFile(file: string): SystemParams;
1187
- declare function loadSystemParamsFromUrl(url: string): Promise<SystemParams>;
1188
- declare const getRandomElement: <T>(arr: T[]) => T | undefined;
1048
+ declare const _collectorValidator: {
1049
+ type: ScriptType;
1050
+ description: string;
1051
+ cborHex: string;
1052
+ };
1189
1053
 
1190
- /**
1191
- * Returns the inline datum.
1192
- * Throws when the UTXO doesn't have an inline datum
1193
- * (i.e. in case it has hash datum or no datum).
1194
- */
1195
- declare function getInlineDatumOrThrow(utxo: UTxO): Datum;
1196
- declare function addrDetails(lucid: LucidEvolution): Promise<[Credential, Credential | undefined]>;
1197
- declare function createScriptAddress(network: Network, scriptHash: ScriptHash, stakeCredential?: Credential): Address;
1198
- declare function scriptRef(ref: ScriptReference, lucid: LucidEvolution): Promise<UTxO>;
1199
- declare function balance(utxos: UTxO[]): Assets;
1054
+ declare function mkInterestOracleValidator(params: InterestOracleParams): SpendingValidator;
1200
1055
 
1201
- declare const SPIntegerSchema: Core.TSchema.Struct<{
1202
- value: Core.TSchema.Integer;
1203
- }>;
1204
- type SPInteger = typeof SPIntegerSchema.Type;
1205
- declare const EpochToScaleToSumSchema: Core.TSchema.Map<Core.TSchema.Struct<{
1206
- epoch: Core.TSchema.Integer;
1207
- scale: Core.TSchema.Integer;
1208
- }>, Core.TSchema.Struct<{
1209
- value: Core.TSchema.Integer;
1210
- }>>;
1211
- type EpochToScaleToSum = typeof EpochToScaleToSumSchema.Type;
1212
- declare const StabilityPoolSnapshotSchema: Core.TSchema.Struct<{
1213
- productVal: Core.TSchema.Struct<{
1214
- value: Core.TSchema.Integer;
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>;
1215
1060
  }>;
1216
- depositVal: Core.TSchema.Struct<{
1217
- value: Core.TSchema.Integer;
1061
+ stakingToken: _lucid_evolution_lucid.TObject<{
1062
+ currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
1063
+ tokenName: _lucid_evolution_lucid.TUnsafe<string>;
1218
1064
  }>;
1219
- sumVal: Core.TSchema.Struct<{
1220
- value: Core.TSchema.Integer;
1065
+ indyAsset: _lucid_evolution_lucid.TObject<{
1066
+ currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
1067
+ tokenName: _lucid_evolution_lucid.TUnsafe<string>;
1221
1068
  }>;
1222
- epoch: Core.TSchema.Integer;
1223
- scale: Core.TSchema.Integer;
1069
+ stakingValHash: _lucid_evolution_lucid.TUnsafe<string>;
1224
1070
  }>;
1225
- type StabilityPoolSnapshot = typeof StabilityPoolSnapshotSchema.Type;
1226
- declare const StabilityPoolContentSchema: Core.TSchema.Struct<{
1227
- asset: Core.TSchema.ByteArray;
1228
- poolSnapshot: Core.TSchema.Struct<{
1229
- productVal: Core.TSchema.Struct<{
1230
- value: Core.TSchema.Integer;
1231
- }>;
1232
- depositVal: Core.TSchema.Struct<{
1233
- value: Core.TSchema.Integer;
1234
- }>;
1235
- sumVal: Core.TSchema.Struct<{
1236
- value: Core.TSchema.Integer;
1237
- }>;
1238
- epoch: Core.TSchema.Integer;
1239
- scale: Core.TSchema.Integer;
1240
- }>;
1241
- epochToScaleToSum: Core.TSchema.Map<Core.TSchema.Struct<{
1242
- epoch: Core.TSchema.Integer;
1243
- scale: Core.TSchema.Integer;
1244
- }>, Core.TSchema.Struct<{
1245
- value: Core.TSchema.Integer;
1246
- }>>;
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>;
1247
1100
  }>;
1248
- type StabilityPoolContent = typeof StabilityPoolContentSchema.Type;
1249
-
1250
- declare const initSpSnapshot: StabilityPoolSnapshot;
1251
- declare const initEpochToScaleToSumMap: () => EpochToScaleToSum;
1252
- declare function getSumFromEpochToScaleToSum(e2s2s: EpochToScaleToSum, epoch: bigint, scale: bigint): SPInteger | undefined;
1253
- /**
1254
- * It's necessary to use this to update map entries because typescript can't compare keys as objects.
1255
- */
1256
- declare function setSumInEpochToScaleToSum(e2s2s: EpochToScaleToSum, epoch: bigint, scale: bigint, sum: SPInteger): EpochToScaleToSum;
1257
- declare function getAccountReward(account: StabilityPoolSnapshot, e2s2s: EpochToScaleToSum): SPInteger;
1258
- declare function getAccountFund(pool: StabilityPoolSnapshot, account: StabilityPoolSnapshot): SPInteger;
1259
- declare function adjust(pool: StabilityPoolSnapshot, account: StabilityPoolSnapshot, e2s2s: EpochToScaleToSum): [StabilityPoolSnapshot, bigint];
1260
- declare function adjustmentHelper(spESTSTokenRef1: UTxO, spESTSTokenRef2: UTxO | undefined, pool: StabilityPoolSnapshot, e2s2s: EpochToScaleToSum, account: StabilityPoolSnapshot): [StabilityPoolSnapshot, bigint, UTxO[]];
1261
- declare function updatePoolSnapshotWithdrawalFee(withdrawalFeeAmount: SPInteger, newPoolDepositExcludingFee: SPInteger, pool: StabilityPoolSnapshot): [SPInteger, SPInteger];
1262
- declare function liquidationHelper(spContent: StabilityPoolContent, iassetBurnAmt: bigint,
1263
- /**
1264
- * The collateral absorbed
1265
- */
1266
- reward: bigint): {
1267
- newSpContent: StabilityPoolContent;
1268
- };
1269
-
1270
- declare const ONE_SECOND: number;
1271
- declare const ONE_HOUR: bigint;
1272
- declare const ONE_DAY: bigint;
1273
- declare const ONE_YEAR: bigint;
1101
+ type PollManagerParams = Data.Static<typeof PollManagerParamsSchema>;
1102
+ declare const PollManagerParams: PollManagerParams;
1103
+ declare function castPollManagerParams(params: PollManagerParams): Data;
1274
1104
 
1275
- declare const mkCollectorValidatorFromSP: (params: CollectorParamsSP) => SpendingValidator;
1105
+ declare const mkPollManagerValidator: (params: PollManagerParams) => SpendingValidator;
1106
+ declare const mkPollManagerValidatorFromSP: (params: PollManagerParamsSP) => SpendingValidator;
1276
1107
 
1277
- declare const mkTreasuryValidatorFromSP: (params: TreasuryParamsSP) => SpendingValidator;
1108
+ declare const _treasuryValidator: {
1109
+ type: ScriptType;
1110
+ description: string;
1111
+ cborHex: string;
1112
+ };
1278
1113
 
1279
1114
  declare const ExecuteParamsSchema: _lucid_evolution_lucid.TObject<{
1280
1115
  govNFT: _lucid_evolution_lucid.TObject<{
@@ -1308,257 +1143,95 @@ declare const ExecuteParamsSchema: _lucid_evolution_lucid.TObject<{
1308
1143
  }>;
1309
1144
  type ExecuteParams = Data.Static<typeof ExecuteParamsSchema>;
1310
1145
  declare const ExecuteParams: ExecuteParams;
1311
- declare const ExecuteDatumSchema: _lucid_evolution_lucid.TObject<{
1312
- id: _lucid_evolution_lucid.TUnsafe<bigint>;
1313
- content: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
1314
- ProposeAsset: _lucid_evolution_lucid.TObject<{
1315
- asset: _lucid_evolution_lucid.TUnsafe<string>;
1316
- priceOracleNft: _lucid_evolution_lucid.TObject<{
1317
- oracleNft: _lucid_evolution_lucid.TObject<{
1318
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
1319
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
1320
- }>;
1321
- }>;
1322
- interestOracleNft: _lucid_evolution_lucid.TObject<{
1323
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
1324
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
1325
- }>;
1326
- redemptionRatioPercentage: _lucid_evolution_lucid.TObject<{
1327
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1328
- }>;
1329
- maintenanceRatioPercentage: _lucid_evolution_lucid.TObject<{
1330
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1331
- }>;
1332
- liquidationRatioPercentage: _lucid_evolution_lucid.TObject<{
1333
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1334
- }>;
1335
- debtMintingFeePercentage: _lucid_evolution_lucid.TObject<{
1336
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1337
- }>;
1338
- liquidationProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
1339
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1340
- }>;
1341
- stabilityPoolWithdrawalFeePercentage: _lucid_evolution_lucid.TObject<{
1342
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1343
- }>;
1344
- redemptionReimbursementPercentage: _lucid_evolution_lucid.TObject<{
1345
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1346
- }>;
1347
- redemptionProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
1348
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1349
- }>;
1350
- interestCollectorPortionPercentage: _lucid_evolution_lucid.TObject<{
1351
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1352
- }>;
1353
- }>;
1354
- }> | _lucid_evolution_lucid.TObject<{
1355
- ModifyAsset: _lucid_evolution_lucid.TObject<{
1356
- asset: _lucid_evolution_lucid.TUnsafe<string>;
1357
- newAssetPriceInfo: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
1358
- Delisted: _lucid_evolution_lucid.TObject<{
1359
- content: _lucid_evolution_lucid.TObject<{
1360
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1361
- }>;
1362
- }>;
1363
- }> | _lucid_evolution_lucid.TObject<{
1364
- Oracle: _lucid_evolution_lucid.TObject<{
1365
- content: _lucid_evolution_lucid.TObject<{
1366
- oracleNft: _lucid_evolution_lucid.TObject<{
1367
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
1368
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
1369
- }>;
1370
- }>;
1371
- }>;
1372
- }>)[]>;
1373
- newInterestOracleNft: _lucid_evolution_lucid.TObject<{
1374
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
1375
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
1376
- }>;
1377
- newRedemptionRatioPercentage: _lucid_evolution_lucid.TObject<{
1378
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1379
- }>;
1380
- newMaintenanceRatioPercentage: _lucid_evolution_lucid.TObject<{
1381
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1382
- }>;
1383
- newLiquidationRatioPercentage: _lucid_evolution_lucid.TObject<{
1384
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1385
- }>;
1386
- newDebtMintingFeePercentage: _lucid_evolution_lucid.TObject<{
1387
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1388
- }>;
1389
- newLiquidationProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
1390
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1391
- }>;
1392
- newStabilityPoolWithdrawalFeePercentage: _lucid_evolution_lucid.TObject<{
1393
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1394
- }>;
1395
- newRedemptionReimbursementPercentage: _lucid_evolution_lucid.TObject<{
1396
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1397
- }>;
1398
- newRedemptionProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
1399
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1400
- }>;
1401
- newInterestCollectorPortionPercentage: _lucid_evolution_lucid.TObject<{
1402
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1403
- }>;
1404
- }>;
1405
- }> | _lucid_evolution_lucid.TObject<{
1406
- ModifyProtocolParams: _lucid_evolution_lucid.TObject<{
1407
- newParams: _lucid_evolution_lucid.TObject<{
1408
- proposalDeposit: _lucid_evolution_lucid.TUnsafe<bigint>;
1409
- votingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
1410
- effectiveDelay: _lucid_evolution_lucid.TUnsafe<bigint>;
1411
- expirationPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
1412
- collateralFeePercentage: _lucid_evolution_lucid.TObject<{
1413
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1414
- }>;
1415
- proposingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
1416
- totalShards: _lucid_evolution_lucid.TUnsafe<bigint>;
1417
- minimumQuorum: _lucid_evolution_lucid.TUnsafe<bigint>;
1418
- maxTreasuryLovelaceSpend: _lucid_evolution_lucid.TUnsafe<bigint>;
1419
- maxTreasuryIndySpend: _lucid_evolution_lucid.TUnsafe<bigint>;
1420
- }>;
1421
- }>;
1422
- }> | _lucid_evolution_lucid.TObject<{
1423
- UpgradeProtocol: _lucid_evolution_lucid.TObject<{
1424
- content: _lucid_evolution_lucid.TUnsafe<Data>;
1425
- }>;
1426
- }> | _lucid_evolution_lucid.TObject<{
1427
- TextProposal: _lucid_evolution_lucid.TObject<{
1428
- bytes: _lucid_evolution_lucid.TUnsafe<string>;
1429
- }>;
1430
- }>)[]>;
1431
- passedTime: _lucid_evolution_lucid.TUnsafe<bigint>;
1432
- votingEndTime: _lucid_evolution_lucid.TUnsafe<bigint>;
1433
- protocolVersion: _lucid_evolution_lucid.TUnsafe<bigint>;
1434
- treasuryWithdrawal: _lucid_evolution_lucid.TUnsafe<{
1435
- value: [string, string, bigint][];
1436
- destination: {
1437
- paymentCredential: {
1438
- PublicKeyCredential: [string];
1439
- } | {
1440
- ScriptCredential: [string];
1441
- };
1442
- stakeCredential: {
1443
- Inline: [{
1444
- PublicKeyCredential: [string];
1445
- } | {
1446
- ScriptCredential: [string];
1447
- }];
1448
- } | {
1449
- Pointer: [{
1450
- slotNumber: bigint;
1451
- transactionIndex: bigint;
1452
- certificateIndex: bigint;
1453
- }];
1454
- } | null;
1455
- };
1456
- } | null>;
1457
- }>;
1458
- type ExecuteDatum = Data.Static<typeof ExecuteDatumSchema>;
1459
- declare const ExecuteDatum: ExecuteDatum;
1460
- declare function serialiseExecuteDatum(d: ExecuteDatum): Datum;
1461
- declare function parseExecuteDatum(d: Datum): option.Option<ExecuteDatum>;
1462
- declare function parseExecuteDatumOrThrow(d: Datum): ExecuteDatum;
1463
1146
  declare function castExecuteParams(params: ExecuteParams): Data;
1464
1147
 
1465
- declare const mkExecuteValidator: (params: ExecuteParams) => SpendingValidator;
1466
- declare const mkExecuteValidatorFromSP: (params: ExecuteParamsSP) => SpendingValidator;
1467
-
1468
- declare const OracleAssetNftSchema: _lucid_evolution_lucid.TObject<{
1469
- oracleNft: _lucid_evolution_lucid.TObject<{
1470
- currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
1471
- tokenName: _lucid_evolution_lucid.TUnsafe<string>;
1472
- }>;
1473
- }>;
1474
- type OracleAssetNft = Data.Static<typeof OracleAssetNftSchema>;
1475
- declare const PriceOracleParamsSchema: _lucid_evolution_lucid.TObject<{
1476
- owner: _lucid_evolution_lucid.TUnsafe<string>;
1477
- /** Milliseconds */
1478
- biasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
1479
- /** Milliseconds */
1480
- expiration: _lucid_evolution_lucid.TUnsafe<bigint>;
1481
- }>;
1482
- type PriceOracleParams = Data.Static<typeof PriceOracleParamsSchema>;
1483
- declare const PriceOracleDatumSchema: _lucid_evolution_lucid.TObject<{
1484
- price: _lucid_evolution_lucid.TObject<{
1485
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1486
- }>;
1487
- expiration: _lucid_evolution_lucid.TUnsafe<bigint>;
1488
- }>;
1489
- type PriceOracleDatum = Data.Static<typeof PriceOracleDatumSchema>;
1490
- declare const PriceOracleRedeemerSchema: _lucid_evolution_lucid.TObject<{
1491
- currentTime: _lucid_evolution_lucid.TUnsafe<bigint>;
1492
- newPrice: _lucid_evolution_lucid.TObject<{
1493
- getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1494
- }>;
1495
- }>;
1496
- type PriceOracleRedeemer = Data.Static<typeof PriceOracleRedeemerSchema>;
1497
- declare function serialisePriceOracleRedeemer(r: PriceOracleRedeemer): Redeemer;
1498
- declare function parsePriceOracleDatum(datum: Datum): PriceOracleDatum;
1499
- declare function serialisePriceOracleDatum(datum: PriceOracleDatum): Datum;
1500
- declare function castPriceOracleParams(params: PriceOracleParams): Data;
1501
-
1502
- declare const ActionReturnDatumSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
1503
- IndigoStabilityPoolAccountAdjustment: _lucid_evolution_lucid.TObject<{
1504
- spent_account: _lucid_evolution_lucid.TObject<{
1505
- txHash: _lucid_evolution_lucid.TObject<{
1506
- hash: _lucid_evolution_lucid.TUnsafe<string>;
1507
- }>;
1508
- outputIndex: _lucid_evolution_lucid.TUnsafe<bigint>;
1509
- }>;
1510
- }>;
1511
- }> | _lucid_evolution_lucid.TObject<{
1512
- IndigoStabilityPoolAccountClosure: _lucid_evolution_lucid.TObject<{
1513
- closed_account: _lucid_evolution_lucid.TObject<{
1514
- txHash: _lucid_evolution_lucid.TObject<{
1515
- hash: _lucid_evolution_lucid.TUnsafe<string>;
1516
- }>;
1517
- outputIndex: _lucid_evolution_lucid.TUnsafe<bigint>;
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>;
1518
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>;
1519
1163
  }>;
1520
- }>)[]>;
1521
- type ActionReturnDatum = Data.Static<typeof ActionReturnDatumSchema>;
1522
- declare const ActionReturnDatum: ActionReturnDatum;
1523
- /** SP Parameters */
1524
- declare const StabilityPoolParamsSchema: _lucid_evolution_lucid.TObject<{
1525
- assetSymbol: _lucid_evolution_lucid.TUnsafe<string>;
1526
- stabilityPoolToken: _lucid_evolution_lucid.TObject<{
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<{
1527
1174
  currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
1528
1175
  tokenName: _lucid_evolution_lucid.TUnsafe<string>;
1529
1176
  }>;
1530
- snapshotEpochToScaleToSumToken: _lucid_evolution_lucid.TObject<{
1177
+ pollToken: _lucid_evolution_lucid.TObject<{
1531
1178
  currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
1532
1179
  tokenName: _lucid_evolution_lucid.TUnsafe<string>;
1533
1180
  }>;
1534
- accountToken: _lucid_evolution_lucid.TObject<{
1181
+ upgradeToken: _lucid_evolution_lucid.TObject<{
1535
1182
  currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
1536
1183
  tokenName: _lucid_evolution_lucid.TUnsafe<string>;
1537
1184
  }>;
1538
- cdpToken: _lucid_evolution_lucid.TObject<{
1185
+ indyAsset: _lucid_evolution_lucid.TObject<{
1539
1186
  currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
1540
1187
  tokenName: _lucid_evolution_lucid.TUnsafe<string>;
1541
1188
  }>;
1542
- iAssetAuthToken: _lucid_evolution_lucid.TObject<{
1189
+ versionRecordToken: _lucid_evolution_lucid.TObject<{
1543
1190
  currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
1544
1191
  tokenName: _lucid_evolution_lucid.TUnsafe<string>;
1545
1192
  }>;
1546
- versionRecordToken: _lucid_evolution_lucid.TObject<{
1193
+ pollManagerValHash: _lucid_evolution_lucid.TUnsafe<string>;
1194
+ gBiasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
1195
+ daoIdentityToken: _lucid_evolution_lucid.TObject<{
1547
1196
  currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
1548
1197
  tokenName: _lucid_evolution_lucid.TUnsafe<string>;
1549
1198
  }>;
1550
- collectorValHash: _lucid_evolution_lucid.TUnsafe<string>;
1551
- govNFT: _lucid_evolution_lucid.TObject<{
1199
+ iAssetAuthToken: _lucid_evolution_lucid.TObject<{
1552
1200
  currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
1553
1201
  tokenName: _lucid_evolution_lucid.TUnsafe<string>;
1554
1202
  }>;
1555
- accountCreateFeeLovelaces: _lucid_evolution_lucid.TUnsafe<bigint>;
1556
- accountAdjustmentFeeLovelaces: _lucid_evolution_lucid.TUnsafe<bigint>;
1557
- requestCollateralLovelaces: _lucid_evolution_lucid.TUnsafe<bigint>;
1558
1203
  }>;
1559
- type StabilityPoolParams = Data.Static<typeof StabilityPoolParamsSchema>;
1560
- declare const StabilityPoolParams: StabilityPoolParams;
1561
- declare function castStabilityPoolParams(params: StabilityPoolParams): Data;
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;
1562
1235
 
1563
1236
  declare const LRPParamsSchema: _lucid_evolution_lucid.TObject<{
1564
1237
  versionRecordToken: _lucid_evolution_lucid.TObject<{
@@ -1615,7 +1288,12 @@ declare function serialiseLrpDatum(datum: LRPDatum): Datum;
1615
1288
  declare function serialiseLrpRedeemer(redeemer: LRPRedeemer): Redeemer;
1616
1289
  declare function castLrpParams(params: LRPParams): Data;
1617
1290
 
1618
- declare function openLrp(assetTokenName: string, lovelacesAmt: bigint, maxPrice: OnChainDecimal, lucid: LucidEvolution, lrpScriptHash: ScriptHash, network: Network, lrpStakeCredential?: Credential): Promise<TxBuilder>;
1291
+ declare const OnChainDecimalSchema: _lucid_evolution_lucid.TObject<{
1292
+ getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
1293
+ }>;
1294
+ type OnChainDecimal = Data.Static<typeof OnChainDecimalSchema>;
1295
+
1296
+ declare function openLrp(assetTokenName: string, lovelacesAmt: bigint, maxPrice: OnChainDecimal, lucid: LucidEvolution, lrpScriptHash: ScriptHash, network: Network, lrpStakeCredential?: Credential$1): Promise<TxBuilder>;
1619
1297
  declare function cancelLrp(lrpOutRef: OutRef, lrpRefScriptOutRef: OutRef, lucid: LucidEvolution): Promise<TxBuilder>;
1620
1298
  declare function redeemLrp(
1621
1299
  /** The tuple represents the LRP outref and the amount of iAssets to redeem against it. */
@@ -1638,7 +1316,6 @@ declare const mkLrpValidator: (params: LRPParams) => SpendingValidator;
1638
1316
  declare const mkLrpValidatorFromSP: (params: LrpParamsSP) => SpendingValidator;
1639
1317
 
1640
1318
  /**
1641
- * TODO: remove this, it should be part of the testsuite only
1642
1319
  * Uses an always fail validator for the destination address.
1643
1320
  */
1644
1321
  declare function runCreateScriptRefTx(lucid: LucidEvolution, scriptRefValidator: SpendingValidator, network: Network): Promise<OutRef>;
@@ -1658,4 +1335,4 @@ type OneShotParams = Data.Static<typeof OneShotParamsSchema>;
1658
1335
  declare function oneShotMintTx(lucid: LucidEvolution, params: OneShotParams): Promise<[TxBuilder, PolicyId]>;
1659
1336
  declare function runOneShotMintTx(lucid: LucidEvolution, params: OneShotParams): Promise<PolicyId>;
1660
1337
 
1661
- export { ActionReturnDatum, ActionReturnDatumSchema, type AddressCredential, type AddressCredentialOrDatum, AddressD, type AddressSP, AddressSchema, type Amount, type AssetClass, type AssetClassSP, AssetClassSchema, type AuthTokenPolicies, type CDPContent, CDPContentSchema, CDPCreatorParams, type CDPCreatorParamsSP, CDPCreatorRedeemer, type CDPDatum, CDPDatumSchema, type CDPFees, CDPFeesSchema, type CDPRedeemer, type CdpParams, type CdpParamsSP, type CollectorParamsSP, CredentialD, CredentialSchema, type CurrencySymbol, type DistributionParams, ExecuteDatum, ExecuteParams, type ExecuteParamsSP, type FeedInterestOracleRedeemer, FeedInterestOracleRedeemerSchema, type GovDatum, GovParams, type GovParamsSP, GovRedeemer, type IAssetContent, IAssetContentSchema, type IAssetOutput, IAssetPriceInfoSchema, type Input, type InterestOracleDatum, InterestOracleDatumSchema, type InterestOracleParams, InterestOracleParamsSchema, type LRPDatum, LRPDatumSchema, type LRPParams, LRPParamsSchema, type LRPRedeemer, LRPRedeemerSchema, type LrpParamsSP, ONE_DAY, ONE_HOUR, ONE_SECOND, ONE_YEAR, type OracleAssetNft, OracleAssetNftSchema, type Output, type OutputReference, OutputReferenceSchema, PollManagerParams, type PollManagerParamsSP, PollManagerRedeemer, PollShardParams, type PollShardParamsSP, PollShardRedeemer, type PriceOracleDatum, PriceOracleDatumSchema, type PriceOracleParams, PriceOracleParamsSchema, type PriceOracleRedeemer, type PubKeyHash, type ScriptCredential, type ScriptOutput, type ScriptRef, type ScriptReference, type ScriptReferences, StabilityPoolParams, type StabilityPoolParamsSP, StakeCredentialSchema, type StakingParamsSP, type StartTime, type SystemParams, type TokenName, type TreasuryParamsSP, type TreasuryWithdrawal, type TreasuryWithdrawalItem, TreasuryWithdrawalSchema, type ValidatorHashes, VerificationKeyHashSchema, type VersionRecordParams, VersionRecordTokenParams, type VoteOption, addrDetails, addressFromBech32, addressToBech32, adjust, adjustLrp, adjustSpAccount, adjustStakingPosition, adjustmentHelper, balance, burnCdp, calculateIAssetRedemptionAmt, calculateMinCollateralCappedIAssetRedemptionAmt, cancelLrp, castCDPCreatorParams, castCdpParams, castExecuteParams, castGovParams, castInterestOracleParams, castLrpParams, castPollManagerParams, castPollShardParams, castPriceOracleParams, castStabilityPoolParams, castVersionRecordTokenParams, cdpCollateralRatioPercentage, claimLrp, closeCdp, closeSpAccount, closeStakingPosition, collectorFeeTx, createProposal, createScriptAddress, createShardsChunks, createSpAccount, depositCdp, endProposal, executeProposal, feedInterestOracle, freezeCdp, fromSysParamsScriptCredential, fromSystemParamsAsset, fromSystemParamsScriptRef, getAccountFund, getAccountReward, getInlineDatumOrThrow, getRandomElement, getSumFromEpochToScaleToSum, initEpochToScaleToSumMap, initSpSnapshot, liquidateCdp, liquidationHelper, loadSystemParamsFromFile, loadSystemParamsFromUrl, matchSingle, mergeCdps, mergeShards, mintCdp, mkCDPCreatorValidator, mkCDPCreatorValidatorFromSP, mkCdpValidatorFromSP, mkCollectorValidatorFromSP, mkExecuteValidator, mkExecuteValidatorFromSP, mkInterestOracleValidator, mkLrpValidator, mkLrpValidatorFromSP, mkPollManagerValidator, mkPollManagerValidatorFromSP, mkPollShardValidator, mkPollShardValidatorFromSP, mkTreasuryValidatorFromSP, mkVersionRecordTokenPolicy, mkVersionRegistryValidator, oneShotMintTx, openCdp, openLrp, openStakingPosition, parseCdpDatum, parseCdpDatumOrThrow, parseExecuteDatum, parseExecuteDatumOrThrow, parseGovDatum, parseGovDatumOrThrow, parseIAssetDatum, parseIAssetDatumOrThrow, parseInterestOracleDatum, parseLrpDatum, parsePriceOracleDatum, processSpRequest, redeemCdp, redeemLrp, runCreateScriptRefTx, runOneShotMintTx, scriptRef, serialiseCDPCreatorDatum, serialiseCDPCreatorRedeemer, serialiseCdpDatum, serialiseCdpRedeemer, serialiseExecuteDatum, serialiseFeedInterestOracleRedeemer, serialiseGovDatum, serialiseGovRedeemer, serialiseIAssetDatum, serialiseInterestOracleDatum, serialiseLrpDatum, serialiseLrpRedeemer, serialisePollManagerRedeemer, serialisePollShardRedeemer, serialisePriceOracleDatum, serialisePriceOracleRedeemer, setSumInEpochToScaleToSum, startInterestOracle, toSystemParamsAsset, treasuryFeeTx, updatePoolSnapshotWithdrawalFee, vote, withdrawCdp };
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 };