@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.
- package/.github/workflows/ci.yml +3 -8
- package/.github/workflows/test.yml +44 -0
- package/dist/index.d.mts +678 -1001
- package/dist/index.d.ts +678 -1001
- package/dist/index.js +2272 -4670
- package/dist/index.mjs +2234 -4618
- package/eslint.config.mjs +1 -7
- package/package.json +4 -9
- package/src/contracts/cdp.ts +746 -0
- package/src/contracts/collector.ts +98 -0
- package/src/contracts/gov.ts +1 -0
- package/src/contracts/interest-oracle.ts +149 -0
- package/src/contracts/{lrp/transactions.ts → lrp.ts} +14 -14
- package/src/contracts/{one-shot/transactions.ts → one-shot.ts} +3 -3
- package/src/contracts/stability-pool.ts +690 -0
- package/src/contracts/staking.ts +348 -0
- package/src/contracts/treasury.ts +112 -0
- package/src/helpers/asset-helpers.ts +57 -0
- package/src/{utils → helpers}/helper-txs.ts +0 -1
- package/src/{utils/utils.ts → helpers/helpers.ts} +10 -0
- package/src/{contracts/interest-oracle/helpers.ts → helpers/interest-oracle.ts} +9 -37
- package/src/{contracts/stability-pool/helpers.ts → helpers/stability-pool-helpers.ts} +6 -110
- package/src/helpers/staking-helpers.ts +94 -0
- package/src/helpers/time-helpers.ts +4 -0
- package/src/{utils → helpers}/value-helpers.ts +0 -10
- package/src/index.ts +33 -37
- package/src/{validators → scripts}/cdp-creator-validator.ts +50 -4
- package/src/{validators → scripts}/cdp-validator.ts +5 -3
- package/src/{validators → scripts}/collector-validator.ts +3 -2
- package/src/scripts/execute-validator.ts +52 -0
- package/src/{validators/governance-validator.ts → scripts/gov-validator.ts} +40 -3
- package/src/{validators → scripts}/interest-oracle-validator.ts +20 -4
- package/src/scripts/lrp-validator.ts +40 -0
- package/src/{contracts/one-shot/scripts.ts → scripts/one-shot-policy.ts} +1 -1
- package/src/scripts/poll-manager-validator.ts +52 -0
- package/src/{validators → scripts}/poll-shard-validator.ts +43 -3
- package/src/{contracts/price-oracle/scripts.ts → scripts/price-oracle-validator.ts} +4 -1
- package/src/{validators → scripts}/stability-pool-validator.ts +57 -4
- package/src/{validators → scripts}/staking-validator.ts +3 -2
- package/src/{validators → scripts}/treasury-validator.ts +3 -2
- package/src/{validators → scripts}/version-record-policy.ts +23 -4
- package/src/{validators/execute-validator.ts → scripts/version-registry.ts} +11 -3
- package/src/types/generic.ts +60 -78
- package/src/{contracts/cdp-creator/types.ts → types/indigo/cdp-creator.ts} +4 -6
- package/src/types/indigo/cdp.ts +88 -0
- package/src/types/indigo/execute.ts +21 -0
- package/src/types/indigo/gov.ts +51 -0
- package/src/{contracts/interest-oracle/types.ts → types/indigo/interest-oracle.ts} +1 -1
- package/src/{contracts/lrp/types.ts → types/indigo/lrp.ts} +2 -2
- package/src/types/indigo/poll-manager.ts +21 -0
- package/src/types/indigo/poll-shard.ts +16 -0
- package/src/{contracts/price-oracle/types.ts → types/indigo/price-oracle.ts} +4 -16
- package/src/types/indigo/stability-pool.ts +233 -0
- package/src/types/indigo/staking.ts +99 -0
- package/src/{contracts/version-registry/types.ts → types/indigo/version-record.ts} +1 -1
- package/src/types/on-chain-decimal.ts +0 -22
- package/src/types/system-params.ts +11 -22
- package/tests/datums.test.ts +108 -125
- package/tests/endpoints/initialize.ts +338 -240
- package/tests/hash-checks.test.ts +21 -26
- package/tests/indigo-test-helpers.ts +55 -1
- package/tests/initialize.test.ts +5 -10
- package/tests/interest-calculations.test.ts +18 -18
- package/tests/interest-oracle.test.ts +18 -20
- package/tests/lrp.test.ts +65 -191
- package/tests/queries/governance-queries.ts +16 -19
- package/tests/queries/iasset-queries.ts +23 -46
- package/tests/queries/interest-oracle-queries.ts +6 -3
- package/tests/queries/lrp-queries.ts +2 -2
- package/tests/queries/price-oracle-queries.ts +22 -5
- package/tests/queries/stability-pool-queries.ts +8 -10
- package/tests/queries/staking-queries.ts +19 -28
- package/tests/stability-pool.test.ts +71 -186
- package/tests/staking.test.ts +23 -30
- package/tests/test-helpers.ts +2 -11
- package/tsconfig.json +1 -3
- package/vitest.config.ts +1 -1
- package/src/contracts/cdp/helpers.ts +0 -167
- package/src/contracts/cdp/scripts.ts +0 -33
- package/src/contracts/cdp/transactions.ts +0 -1310
- package/src/contracts/cdp/types.ts +0 -161
- package/src/contracts/cdp-creator/scripts.ts +0 -39
- package/src/contracts/collector/scripts.ts +0 -32
- package/src/contracts/collector/transactions.ts +0 -44
- package/src/contracts/execute/scripts.ts +0 -48
- package/src/contracts/execute/types.ts +0 -57
- package/src/contracts/gov/helpers.ts +0 -157
- package/src/contracts/gov/scripts.ts +0 -34
- package/src/contracts/gov/transactions.ts +0 -1224
- package/src/contracts/gov/types-new.ts +0 -115
- package/src/contracts/gov/types.ts +0 -89
- package/src/contracts/interest-oracle/scripts.ts +0 -18
- package/src/contracts/interest-oracle/transactions.ts +0 -149
- package/src/contracts/lrp/scripts.ts +0 -27
- package/src/contracts/poll/helpers.ts +0 -55
- package/src/contracts/poll/scripts.ts +0 -72
- package/src/contracts/poll/types-poll-manager.ts +0 -38
- package/src/contracts/poll/types-poll-shard.ts +0 -38
- package/src/contracts/poll/types-poll.ts +0 -88
- package/src/contracts/price-oracle/transactions.ts +0 -112
- package/src/contracts/stability-pool/scripts.ts +0 -46
- package/src/contracts/stability-pool/transactions.ts +0 -660
- package/src/contracts/stability-pool/types-new.ts +0 -208
- package/src/contracts/stability-pool/types.ts +0 -42
- package/src/contracts/staking/helpers.ts +0 -116
- package/src/contracts/staking/scripts.ts +0 -41
- package/src/contracts/staking/transactions.ts +0 -268
- package/src/contracts/staking/types-new.ts +0 -81
- package/src/contracts/staking/types.ts +0 -41
- package/src/contracts/treasury/scripts.ts +0 -37
- package/src/contracts/treasury/transactions.ts +0 -44
- package/src/contracts/treasury/types.ts +0 -55
- package/src/contracts/version-registry/scripts.ts +0 -29
- package/src/contracts/version-registry/types-new.ts +0 -19
- package/src/contracts/vesting/helpers.ts +0 -267
- package/src/types/evolution-schema-options.ts +0 -16
- package/src/utils/bigint-utils.ts +0 -7
- package/src/utils/time-helpers.ts +0 -4
- package/src/validators/lrp-validator.ts +0 -7
- package/src/validators/poll-manager-validator.ts +0 -7
- package/src/validators/version-registry-validator.ts +0 -7
- package/tests/cdp.test.ts +0 -1565
- package/tests/gov.test.ts +0 -1874
- package/tests/mock/assets-mock.ts +0 -59
- package/tests/queries/cdp-queries.ts +0 -144
- package/tests/queries/collector-queries.ts +0 -26
- package/tests/queries/execute-queries.ts +0 -46
- package/tests/queries/poll-queries.ts +0 -97
- package/tests/queries/treasury-queries.ts +0 -19
- package/tests/utils/asserts.ts +0 -13
- package/tests/utils/index.ts +0 -50
- /package/src/{utils → helpers}/indigo-helpers.ts +0 -0
- /package/src/{utils → helpers}/lucid-utils.ts +0 -0
- /package/src/{contracts/price-oracle/helpers.ts → helpers/price-oracle-helpers.ts} +0 -0
- /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,
|
|
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
|
|
26
|
-
declare const
|
|
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
|
-
}
|
|
43
|
+
}>;
|
|
59
44
|
}>;
|
|
60
|
-
type
|
|
61
|
-
declare const
|
|
62
|
-
declare function addressToBech32(
|
|
63
|
-
declare function addressFromBech32(address: string):
|
|
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:
|
|
63
|
+
treasuryParams: TreasuryParams;
|
|
79
64
|
startTime: StartTime;
|
|
80
|
-
stakingParams:
|
|
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:
|
|
91
|
-
cdpParams:
|
|
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
|
|
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
|
|
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
|
|
254
|
+
interface CollectorParams {
|
|
270
255
|
versionRecordToken: AssetClassSP;
|
|
271
256
|
stakingToken: AssetClassSP;
|
|
272
257
|
stakingManagerNFT: AssetClassSP;
|
|
273
258
|
}
|
|
274
|
-
interface
|
|
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
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
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
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
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
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
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
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
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
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
415
|
-
|
|
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
|
|
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
|
|
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
|
-
|
|
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
|
-
|
|
489
|
-
|
|
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
|
|
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
|
|
537
|
-
|
|
538
|
-
|
|
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
|
-
|
|
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
|
-
*
|
|
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
|
|
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
|
-
*
|
|
614
|
-
*
|
|
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
|
|
630
|
-
|
|
631
|
-
|
|
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
|
|
637
|
-
|
|
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
|
|
660
|
-
declare const
|
|
661
|
-
declare
|
|
662
|
-
|
|
663
|
-
|
|
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
|
-
|
|
690
|
-
|
|
691
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
573
|
+
depositVal: _lucid_evolution_lucid.TObject<{
|
|
574
|
+
value: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
692
575
|
}>;
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
576
|
+
sumVal: _lucid_evolution_lucid.TObject<{
|
|
577
|
+
value: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
696
578
|
}>;
|
|
697
|
-
|
|
698
|
-
|
|
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
|
|
704
|
-
declare const
|
|
705
|
-
declare const
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
}>;
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
}
|
|
732
|
-
|
|
733
|
-
|
|
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
|
|
739
|
-
declare const
|
|
740
|
-
declare const
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
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
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
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
|
|
758
|
-
declare const
|
|
759
|
-
declare
|
|
760
|
-
|
|
761
|
-
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
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
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
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
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
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
|
-
}
|
|
726
|
+
};
|
|
994
727
|
};
|
|
995
|
-
}
|
|
728
|
+
};
|
|
996
729
|
}>;
|
|
997
|
-
}
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
declare const
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
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
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
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
|
-
|
|
1045
|
-
|
|
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
|
-
|
|
1048
|
-
|
|
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
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
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
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
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
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
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
|
-
|
|
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
|
-
|
|
1121
|
-
content: _lucid_evolution_lucid.TUnsafe<Data>;
|
|
1122
|
-
}>;
|
|
934
|
+
AnnulRequest: _lucid_evolution_lucid.TObject<{}>;
|
|
1123
935
|
}> | _lucid_evolution_lucid.TObject<{
|
|
1124
|
-
|
|
1125
|
-
|
|
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
|
|
1129
|
-
declare const
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
declare function
|
|
1135
|
-
/**
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
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
|
|
1162
|
-
declare function
|
|
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
|
|
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
|
|
1167
|
-
|
|
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
|
|
1173
|
-
declare const
|
|
1174
|
-
declare function castVersionRecordTokenParams(params: VersionRecordTokenParams): Data;
|
|
1031
|
+
type CDPCreatorParams = Data.Static<typeof CDPCreatorParamsSchema>;
|
|
1032
|
+
declare const CDPCreatorParams: CDPCreatorParams;
|
|
1175
1033
|
|
|
1176
|
-
declare
|
|
1177
|
-
|
|
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
|
|
1042
|
+
declare const _cdpValidator: {
|
|
1043
|
+
type: ScriptType;
|
|
1044
|
+
description: string;
|
|
1045
|
+
cborHex: string;
|
|
1046
|
+
};
|
|
1180
1047
|
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
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
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
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
|
-
|
|
1217
|
-
|
|
1061
|
+
stakingToken: _lucid_evolution_lucid.TObject<{
|
|
1062
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1063
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1218
1064
|
}>;
|
|
1219
|
-
|
|
1220
|
-
|
|
1065
|
+
indyAsset: _lucid_evolution_lucid.TObject<{
|
|
1066
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1067
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1221
1068
|
}>;
|
|
1222
|
-
|
|
1223
|
-
scale: Core.TSchema.Integer;
|
|
1069
|
+
stakingValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1224
1070
|
}>;
|
|
1225
|
-
type
|
|
1226
|
-
declare const
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
}>;
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
}
|
|
1245
|
-
|
|
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
|
|
1249
|
-
|
|
1250
|
-
declare
|
|
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
|
|
1105
|
+
declare const mkPollManagerValidator: (params: PollManagerParams) => SpendingValidator;
|
|
1106
|
+
declare const mkPollManagerValidatorFromSP: (params: PollManagerParamsSP) => SpendingValidator;
|
|
1276
1107
|
|
|
1277
|
-
declare const
|
|
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
|
|
1466
|
-
|
|
1467
|
-
|
|
1468
|
-
|
|
1469
|
-
|
|
1470
|
-
|
|
1471
|
-
|
|
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
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
|
1560
|
-
declare const
|
|
1561
|
-
declare function
|
|
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
|
|
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,
|
|
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 };
|