@indigo-labs/indigo-sdk 0.1.21 → 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 +670 -1291
- package/dist/index.d.ts +670 -1291
- package/dist/index.js +2235 -4669
- package/dist/index.mjs +2216 -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 -38
- 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,163 @@ 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
|
-
type TreasuryWithdrawalItem = Data.Static<typeof ValueWithdrawalItemSchema>;
|
|
827
|
-
declare const TreasuryWithdrawalSchema: _lucid_evolution_lucid.TObject<{
|
|
828
|
-
destination: _lucid_evolution_lucid.TObject<{
|
|
829
|
-
paymentCredential: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
|
|
830
|
-
PublicKeyCredential: _lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TUnsafe<string>]>;
|
|
831
|
-
}> | _lucid_evolution_lucid.TObject<{
|
|
832
|
-
ScriptCredential: _lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TUnsafe<string>]>;
|
|
833
|
-
}>)[]>;
|
|
834
|
-
stakeCredential: _lucid_evolution_lucid.TUnsafe<{
|
|
835
|
-
Inline: [{
|
|
836
|
-
PublicKeyCredential: [string];
|
|
837
|
-
} | {
|
|
838
|
-
ScriptCredential: [string];
|
|
839
|
-
}];
|
|
840
|
-
} | {
|
|
841
|
-
Pointer: [{
|
|
842
|
-
slotNumber: bigint;
|
|
843
|
-
transactionIndex: bigint;
|
|
844
|
-
certificateIndex: bigint;
|
|
845
|
-
}];
|
|
846
|
-
} | null>;
|
|
847
|
-
}>;
|
|
848
|
-
value: _lucid_evolution_lucid.TArray<_lucid_evolution_lucid.TTuple<[_lucid_evolution_lucid.TUnsafe<string>, _lucid_evolution_lucid.TUnsafe<string>, _lucid_evolution_lucid.TUnsafe<bigint>]>>;
|
|
849
|
-
}>;
|
|
850
|
-
type TreasuryWithdrawal = Data.Static<typeof TreasuryWithdrawalSchema>;
|
|
851
|
-
declare const GovRedeemerSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TLiteral<"UpgradeVersion"> | _lucid_evolution_lucid.TObject<{
|
|
852
|
-
CreatePoll: _lucid_evolution_lucid.TObject<{
|
|
853
|
-
currentTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
854
|
-
proposalOwner: _lucid_evolution_lucid.TUnsafe<string>;
|
|
855
|
-
content: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
|
|
856
|
-
ProposeAsset: _lucid_evolution_lucid.TObject<{
|
|
857
|
-
asset: _lucid_evolution_lucid.TUnsafe<string>;
|
|
858
|
-
priceOracleNft: _lucid_evolution_lucid.TObject<{
|
|
859
|
-
oracleNft: _lucid_evolution_lucid.TObject<{
|
|
860
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
861
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
862
|
-
}>;
|
|
863
|
-
}>;
|
|
864
|
-
interestOracleNft: _lucid_evolution_lucid.TObject<{
|
|
865
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
866
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
867
|
-
}>;
|
|
868
|
-
redemptionRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
869
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
870
|
-
}>;
|
|
871
|
-
maintenanceRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
872
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
873
|
-
}>;
|
|
874
|
-
liquidationRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
875
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
876
|
-
}>;
|
|
877
|
-
debtMintingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
878
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
879
|
-
}>;
|
|
880
|
-
liquidationProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
881
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
882
|
-
}>;
|
|
883
|
-
stabilityPoolWithdrawalFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
884
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
885
|
-
}>;
|
|
886
|
-
redemptionReimbursementPercentage: _lucid_evolution_lucid.TObject<{
|
|
887
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
888
|
-
}>;
|
|
889
|
-
redemptionProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
890
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
891
|
-
}>;
|
|
892
|
-
interestCollectorPortionPercentage: _lucid_evolution_lucid.TObject<{
|
|
893
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
894
|
-
}>;
|
|
895
|
-
}>;
|
|
896
|
-
}> | _lucid_evolution_lucid.TObject<{
|
|
897
|
-
ModifyAsset: _lucid_evolution_lucid.TObject<{
|
|
898
|
-
asset: _lucid_evolution_lucid.TUnsafe<string>;
|
|
899
|
-
newAssetPriceInfo: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
|
|
900
|
-
Delisted: _lucid_evolution_lucid.TObject<{
|
|
901
|
-
content: _lucid_evolution_lucid.TObject<{
|
|
902
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
903
|
-
}>;
|
|
904
|
-
}>;
|
|
905
|
-
}> | _lucid_evolution_lucid.TObject<{
|
|
906
|
-
Oracle: _lucid_evolution_lucid.TObject<{
|
|
907
|
-
content: _lucid_evolution_lucid.TObject<{
|
|
908
|
-
oracleNft: _lucid_evolution_lucid.TObject<{
|
|
909
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
910
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
911
|
-
}>;
|
|
912
|
-
}>;
|
|
913
|
-
}>;
|
|
914
|
-
}>)[]>;
|
|
915
|
-
newInterestOracleNft: _lucid_evolution_lucid.TObject<{
|
|
916
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
917
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
918
|
-
}>;
|
|
919
|
-
newRedemptionRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
920
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
921
|
-
}>;
|
|
922
|
-
newMaintenanceRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
923
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
924
|
-
}>;
|
|
925
|
-
newLiquidationRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
926
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
927
|
-
}>;
|
|
928
|
-
newDebtMintingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
929
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
930
|
-
}>;
|
|
931
|
-
newLiquidationProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
932
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
933
|
-
}>;
|
|
934
|
-
newStabilityPoolWithdrawalFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
935
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
936
|
-
}>;
|
|
937
|
-
newRedemptionReimbursementPercentage: _lucid_evolution_lucid.TObject<{
|
|
938
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
939
|
-
}>;
|
|
940
|
-
newRedemptionProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
941
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
942
|
-
}>;
|
|
943
|
-
newInterestCollectorPortionPercentage: _lucid_evolution_lucid.TObject<{
|
|
944
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
945
|
-
}>;
|
|
946
|
-
}>;
|
|
947
|
-
}> | _lucid_evolution_lucid.TObject<{
|
|
948
|
-
ModifyProtocolParams: _lucid_evolution_lucid.TObject<{
|
|
949
|
-
newParams: _lucid_evolution_lucid.TObject<{
|
|
950
|
-
proposalDeposit: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
951
|
-
votingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
952
|
-
effectiveDelay: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
953
|
-
expirationPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
954
|
-
collateralFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
955
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
956
|
-
}>;
|
|
957
|
-
proposingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
958
|
-
totalShards: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
959
|
-
minimumQuorum: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
960
|
-
maxTreasuryLovelaceSpend: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
961
|
-
maxTreasuryIndySpend: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
962
|
-
}>;
|
|
963
|
-
}>;
|
|
964
|
-
}> | _lucid_evolution_lucid.TObject<{
|
|
965
|
-
UpgradeProtocol: _lucid_evolution_lucid.TObject<{
|
|
966
|
-
content: _lucid_evolution_lucid.TUnsafe<Data>;
|
|
967
|
-
}>;
|
|
968
|
-
}> | _lucid_evolution_lucid.TObject<{
|
|
969
|
-
TextProposal: _lucid_evolution_lucid.TObject<{
|
|
970
|
-
bytes: _lucid_evolution_lucid.TUnsafe<string>;
|
|
971
|
-
}>;
|
|
972
|
-
}>)[]>;
|
|
973
|
-
treasuryWithdrawal: _lucid_evolution_lucid.TUnsafe<{
|
|
974
|
-
value: [string, string, bigint][];
|
|
975
|
-
destination: {
|
|
682
|
+
request: _lucid_evolution_lucid.TUnsafe<"Create" | {
|
|
683
|
+
Adjust: {
|
|
684
|
+
amount: bigint;
|
|
685
|
+
outputAddress: {
|
|
976
686
|
paymentCredential: {
|
|
977
687
|
PublicKeyCredential: [string];
|
|
978
688
|
} | {
|
|
@@ -990,554 +700,291 @@ declare const GovRedeemerSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution
|
|
|
990
700
|
transactionIndex: bigint;
|
|
991
701
|
certificateIndex: bigint;
|
|
992
702
|
}];
|
|
993
|
-
}
|
|
703
|
+
};
|
|
994
704
|
};
|
|
995
|
-
}
|
|
705
|
+
};
|
|
706
|
+
} | {
|
|
707
|
+
Close: {
|
|
708
|
+
outputAddress: {
|
|
709
|
+
paymentCredential: {
|
|
710
|
+
PublicKeyCredential: [string];
|
|
711
|
+
} | {
|
|
712
|
+
ScriptCredential: [string];
|
|
713
|
+
};
|
|
714
|
+
stakeCredential: {
|
|
715
|
+
Inline: [{
|
|
716
|
+
PublicKeyCredential: [string];
|
|
717
|
+
} | {
|
|
718
|
+
ScriptCredential: [string];
|
|
719
|
+
}];
|
|
720
|
+
} | {
|
|
721
|
+
Pointer: [{
|
|
722
|
+
slotNumber: bigint;
|
|
723
|
+
transactionIndex: bigint;
|
|
724
|
+
certificateIndex: bigint;
|
|
725
|
+
}];
|
|
726
|
+
};
|
|
727
|
+
};
|
|
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
|
-
* Builds transaction creating shards of count chunk size.
|
|
1141
|
-
*/
|
|
1142
|
-
declare function createShardsChunks(
|
|
1143
|
-
/**
|
|
1144
|
-
* This gets automatically capped to total shards count.
|
|
1145
|
-
*/
|
|
1146
|
-
chunkSize: bigint, pollManagerOref: OutRef, sysParams: SystemParams, currentSlot: number, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
1147
|
-
declare function vote(voteOption: VoteOption, pollShardOref: OutRef, stakingPositionOref: OutRef, sysParams: SystemParams, lucid: LucidEvolution, currentSlot: number): Promise<TxBuilder>;
|
|
1148
|
-
declare function mergeShards(pollManagerOref: OutRef, shardsOutRefs: OutRef[], sysParams: SystemParams, lucid: LucidEvolution, currentSlot: number): Promise<TxBuilder>;
|
|
1149
|
-
declare function endProposal(pollManagerOref: OutRef, govOref: OutRef, sysParams: SystemParams, lucid: LucidEvolution, currentSlot: number): Promise<TxBuilder>;
|
|
1150
|
-
declare function executeProposal(executeOref: OutRef, govOref: OutRef, treasuryWithdrawalOref: OutRef | null, allIAssetOrefs: OutRef[] | null, modifyIAssetOref: OutRef | null, sysParams: SystemParams, lucid: LucidEvolution, currentSlot: number): Promise<TxBuilder>;
|
|
1151
|
-
|
|
1152
|
-
declare function createSpAccount(asset: string, amount: bigint, params: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
1153
|
-
declare function adjustSpAccount(asset: string, amount: bigint, accountUtxo: UTxO, params: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
1154
|
-
declare function closeSpAccount(accountUtxo: UTxO, params: SystemParams, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
1155
|
-
declare function processSpRequest(asset: string, stabilityPoolUtxo: UTxO, accountUtxo: UTxO, govUtxo: UTxO, iAssetUtxo: UTxO, newSnapshotUtxo: UTxO | undefined, params: SystemParams, lucid: LucidEvolution, collectorOref: OutRef): Promise<TxBuilder>;
|
|
1156
|
-
|
|
1157
|
-
declare function openStakingPosition(amount: bigint, params: SystemParams, lucid: LucidEvolution, stakingManagerRef?: OutRef): Promise<TxBuilder>;
|
|
1158
|
-
declare function adjustStakingPosition(stakingPositionRef: OutRef, amount: bigint, params: SystemParams, lucid: LucidEvolution, stakingManagerRef?: OutRef): Promise<TxBuilder>;
|
|
1159
|
-
declare function closeStakingPosition(stakingPositionRef: OutRef, params: SystemParams, lucid: LucidEvolution, stakingManagerRef?: OutRef): Promise<TxBuilder>;
|
|
1160
|
-
|
|
1161
|
-
declare function startInterestOracle(initialUnitaryInterest: bigint, initialInterestRate: bigint, initialLastInterestUpdate: bigint, oracleParams: InterestOracleParams, lucid: LucidEvolution, interestTokenName?: string, withScriptRef?: boolean, refOutRef?: OutRef): Promise<[TxBuilder, AssetClass]>;
|
|
1162
|
-
declare function feedInterestOracle(params: InterestOracleParams, newInterestRate: bigint, lucid: LucidEvolution, assetClass?: AssetClass, utxo?: UTxO, scriptRef?: UTxO): Promise<TxBuilder>;
|
|
1163
|
-
|
|
1164
|
-
declare function mkInterestOracleValidator(params: InterestOracleParams): SpendingValidator;
|
|
1165
|
-
|
|
1166
|
-
declare const VersionRecordTokenParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1167
|
-
upgradeToken: _lucid_evolution_lucid.TObject<{
|
|
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<{
|
|
1168
953
|
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1169
954
|
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1170
955
|
}>;
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
declare function castVersionRecordTokenParams(params: VersionRecordTokenParams): Data;
|
|
1175
|
-
|
|
1176
|
-
declare function mkVersionRecordTokenPolicy(params: VersionRecordTokenParams): MintingPolicy;
|
|
1177
|
-
declare const mkVersionRegistryValidator: () => SpendingValidator;
|
|
1178
|
-
|
|
1179
|
-
declare function treasuryFeeTx(fee: bigint, lucid: LucidEvolution, sysParams: SystemParams, tx: TxBuilder, treasuryOref: OutRef): Promise<void>;
|
|
1180
|
-
|
|
1181
|
-
/**
|
|
1182
|
-
* Accept only a single item in the array and return it.
|
|
1183
|
-
* When not exclusively a single item, throw an error.
|
|
1184
|
-
*/
|
|
1185
|
-
declare function matchSingle<T>(xs: T[], mkErr: (xs: T[]) => Error): T;
|
|
1186
|
-
declare function loadSystemParamsFromFile(file: string): SystemParams;
|
|
1187
|
-
declare function loadSystemParamsFromUrl(url: string): Promise<SystemParams>;
|
|
1188
|
-
declare const getRandomElement: <T>(arr: T[]) => T | undefined;
|
|
1189
|
-
|
|
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;
|
|
1200
|
-
|
|
1201
|
-
declare const SPIntegerSchema: Core.TSchema.Struct<{
|
|
1202
|
-
value: Core.TSchema.Integer;
|
|
1203
|
-
}>;
|
|
1204
|
-
type SPInteger = typeof SPIntegerSchema.Type;
|
|
1205
|
-
declare const AccountActionSchema: Core.TSchema.Union<[Core.TSchema.Literal<["Create"]>, Core.TSchema.Struct<{
|
|
1206
|
-
Adjust: Core.TSchema.Struct<{
|
|
1207
|
-
amount: Core.TSchema.Integer;
|
|
1208
|
-
outputAddress: Core.TSchema.Struct<{
|
|
1209
|
-
paymentCredential: Core.TSchema.Union<[Core.TSchema.Struct<{
|
|
1210
|
-
PublicKeyCredential: Core.TSchema.ByteArray;
|
|
1211
|
-
}>, Core.TSchema.Struct<{
|
|
1212
|
-
ScriptCredential: Core.TSchema.ByteArray;
|
|
1213
|
-
}>]>;
|
|
1214
|
-
stakeCredential: Core.TSchema.NullOr<Core.TSchema.Union<[Core.TSchema.Struct<{
|
|
1215
|
-
Inline: Core.TSchema.Union<[Core.TSchema.Struct<{
|
|
1216
|
-
PublicKeyCredential: Core.TSchema.ByteArray;
|
|
1217
|
-
}>, Core.TSchema.Struct<{
|
|
1218
|
-
ScriptCredential: Core.TSchema.ByteArray;
|
|
1219
|
-
}>]>;
|
|
1220
|
-
}>, Core.TSchema.Struct<{
|
|
1221
|
-
Pointer: Core.TSchema.Struct<{
|
|
1222
|
-
slotNumber: Core.TSchema.Integer;
|
|
1223
|
-
transactionIndex: Core.TSchema.Integer;
|
|
1224
|
-
certificateIndex: Core.TSchema.Integer;
|
|
1225
|
-
}>;
|
|
1226
|
-
}>]>>;
|
|
1227
|
-
}>;
|
|
956
|
+
snapshotEpochToScaleToSumToken: _lucid_evolution_lucid.TObject<{
|
|
957
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
958
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1228
959
|
}>;
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
paymentCredential: Core.TSchema.Union<[Core.TSchema.Struct<{
|
|
1233
|
-
PublicKeyCredential: Core.TSchema.ByteArray;
|
|
1234
|
-
}>, Core.TSchema.Struct<{
|
|
1235
|
-
ScriptCredential: Core.TSchema.ByteArray;
|
|
1236
|
-
}>]>;
|
|
1237
|
-
stakeCredential: Core.TSchema.NullOr<Core.TSchema.Union<[Core.TSchema.Struct<{
|
|
1238
|
-
Inline: Core.TSchema.Union<[Core.TSchema.Struct<{
|
|
1239
|
-
PublicKeyCredential: Core.TSchema.ByteArray;
|
|
1240
|
-
}>, Core.TSchema.Struct<{
|
|
1241
|
-
ScriptCredential: Core.TSchema.ByteArray;
|
|
1242
|
-
}>]>;
|
|
1243
|
-
}>, Core.TSchema.Struct<{
|
|
1244
|
-
Pointer: Core.TSchema.Struct<{
|
|
1245
|
-
slotNumber: Core.TSchema.Integer;
|
|
1246
|
-
transactionIndex: Core.TSchema.Integer;
|
|
1247
|
-
certificateIndex: Core.TSchema.Integer;
|
|
1248
|
-
}>;
|
|
1249
|
-
}>]>>;
|
|
1250
|
-
}>;
|
|
960
|
+
accountToken: _lucid_evolution_lucid.TObject<{
|
|
961
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
962
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1251
963
|
}>;
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
epoch: Core.TSchema.Integer;
|
|
1256
|
-
scale: Core.TSchema.Integer;
|
|
1257
|
-
}>, Core.TSchema.Struct<{
|
|
1258
|
-
value: Core.TSchema.Integer;
|
|
1259
|
-
}>>;
|
|
1260
|
-
type EpochToScaleToSum = typeof EpochToScaleToSumSchema.Type;
|
|
1261
|
-
declare const StabilityPoolSnapshotSchema: Core.TSchema.Struct<{
|
|
1262
|
-
productVal: Core.TSchema.Struct<{
|
|
1263
|
-
value: Core.TSchema.Integer;
|
|
964
|
+
cdpToken: _lucid_evolution_lucid.TObject<{
|
|
965
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
966
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1264
967
|
}>;
|
|
1265
|
-
|
|
1266
|
-
|
|
968
|
+
iAssetAuthToken: _lucid_evolution_lucid.TObject<{
|
|
969
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
970
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1267
971
|
}>;
|
|
1268
|
-
|
|
1269
|
-
|
|
972
|
+
versionRecordToken: _lucid_evolution_lucid.TObject<{
|
|
973
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
974
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1270
975
|
}>;
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
declare const StabilityPoolContentSchema: Core.TSchema.Struct<{
|
|
1276
|
-
asset: Core.TSchema.ByteArray;
|
|
1277
|
-
poolSnapshot: Core.TSchema.Struct<{
|
|
1278
|
-
productVal: Core.TSchema.Struct<{
|
|
1279
|
-
value: Core.TSchema.Integer;
|
|
1280
|
-
}>;
|
|
1281
|
-
depositVal: Core.TSchema.Struct<{
|
|
1282
|
-
value: Core.TSchema.Integer;
|
|
1283
|
-
}>;
|
|
1284
|
-
sumVal: Core.TSchema.Struct<{
|
|
1285
|
-
value: Core.TSchema.Integer;
|
|
1286
|
-
}>;
|
|
1287
|
-
epoch: Core.TSchema.Integer;
|
|
1288
|
-
scale: Core.TSchema.Integer;
|
|
1289
|
-
}>;
|
|
1290
|
-
epochToScaleToSum: Core.TSchema.Map<Core.TSchema.Struct<{
|
|
1291
|
-
epoch: Core.TSchema.Integer;
|
|
1292
|
-
scale: Core.TSchema.Integer;
|
|
1293
|
-
}>, Core.TSchema.Struct<{
|
|
1294
|
-
value: Core.TSchema.Integer;
|
|
1295
|
-
}>>;
|
|
1296
|
-
}>;
|
|
1297
|
-
type StabilityPoolContent = typeof StabilityPoolContentSchema.Type;
|
|
1298
|
-
declare const AccountContentSchema: Core.TSchema.Struct<{
|
|
1299
|
-
owner: Core.TSchema.ByteArray;
|
|
1300
|
-
asset: Core.TSchema.ByteArray;
|
|
1301
|
-
accountSnapshot: Core.TSchema.Struct<{
|
|
1302
|
-
productVal: Core.TSchema.Struct<{
|
|
1303
|
-
value: Core.TSchema.Integer;
|
|
1304
|
-
}>;
|
|
1305
|
-
depositVal: Core.TSchema.Struct<{
|
|
1306
|
-
value: Core.TSchema.Integer;
|
|
1307
|
-
}>;
|
|
1308
|
-
sumVal: Core.TSchema.Struct<{
|
|
1309
|
-
value: Core.TSchema.Integer;
|
|
1310
|
-
}>;
|
|
1311
|
-
epoch: Core.TSchema.Integer;
|
|
1312
|
-
scale: Core.TSchema.Integer;
|
|
1313
|
-
}>;
|
|
1314
|
-
request: Core.TSchema.NullOr<Core.TSchema.Union<[Core.TSchema.Literal<["Create"]>, Core.TSchema.Struct<{
|
|
1315
|
-
Adjust: Core.TSchema.Struct<{
|
|
1316
|
-
amount: Core.TSchema.Integer;
|
|
1317
|
-
outputAddress: Core.TSchema.Struct<{
|
|
1318
|
-
paymentCredential: Core.TSchema.Union<[Core.TSchema.Struct<{
|
|
1319
|
-
PublicKeyCredential: Core.TSchema.ByteArray;
|
|
1320
|
-
}>, Core.TSchema.Struct<{
|
|
1321
|
-
ScriptCredential: Core.TSchema.ByteArray;
|
|
1322
|
-
}>]>;
|
|
1323
|
-
stakeCredential: Core.TSchema.NullOr<Core.TSchema.Union<[Core.TSchema.Struct<{
|
|
1324
|
-
Inline: Core.TSchema.Union<[Core.TSchema.Struct<{
|
|
1325
|
-
PublicKeyCredential: Core.TSchema.ByteArray;
|
|
1326
|
-
}>, Core.TSchema.Struct<{
|
|
1327
|
-
ScriptCredential: Core.TSchema.ByteArray;
|
|
1328
|
-
}>]>;
|
|
1329
|
-
}>, Core.TSchema.Struct<{
|
|
1330
|
-
Pointer: Core.TSchema.Struct<{
|
|
1331
|
-
slotNumber: Core.TSchema.Integer;
|
|
1332
|
-
transactionIndex: Core.TSchema.Integer;
|
|
1333
|
-
certificateIndex: Core.TSchema.Integer;
|
|
1334
|
-
}>;
|
|
1335
|
-
}>]>>;
|
|
1336
|
-
}>;
|
|
1337
|
-
}>;
|
|
1338
|
-
}>, Core.TSchema.Struct<{
|
|
1339
|
-
Close: Core.TSchema.Struct<{
|
|
1340
|
-
outputAddress: Core.TSchema.Struct<{
|
|
1341
|
-
paymentCredential: Core.TSchema.Union<[Core.TSchema.Struct<{
|
|
1342
|
-
PublicKeyCredential: Core.TSchema.ByteArray;
|
|
1343
|
-
}>, Core.TSchema.Struct<{
|
|
1344
|
-
ScriptCredential: Core.TSchema.ByteArray;
|
|
1345
|
-
}>]>;
|
|
1346
|
-
stakeCredential: Core.TSchema.NullOr<Core.TSchema.Union<[Core.TSchema.Struct<{
|
|
1347
|
-
Inline: Core.TSchema.Union<[Core.TSchema.Struct<{
|
|
1348
|
-
PublicKeyCredential: Core.TSchema.ByteArray;
|
|
1349
|
-
}>, Core.TSchema.Struct<{
|
|
1350
|
-
ScriptCredential: Core.TSchema.ByteArray;
|
|
1351
|
-
}>]>;
|
|
1352
|
-
}>, Core.TSchema.Struct<{
|
|
1353
|
-
Pointer: Core.TSchema.Struct<{
|
|
1354
|
-
slotNumber: Core.TSchema.Integer;
|
|
1355
|
-
transactionIndex: Core.TSchema.Integer;
|
|
1356
|
-
certificateIndex: Core.TSchema.Integer;
|
|
1357
|
-
}>;
|
|
1358
|
-
}>]>>;
|
|
1359
|
-
}>;
|
|
1360
|
-
}>;
|
|
1361
|
-
}>]>>;
|
|
1362
|
-
}>;
|
|
1363
|
-
type AccountContent = typeof AccountContentSchema.Type;
|
|
1364
|
-
declare const SnapshotEpochToScaleToSumContentSchema: Core.TSchema.Struct<{
|
|
1365
|
-
snapshot: Core.TSchema.Map<Core.TSchema.Struct<{
|
|
1366
|
-
epoch: Core.TSchema.Integer;
|
|
1367
|
-
scale: Core.TSchema.Integer;
|
|
1368
|
-
}>, Core.TSchema.Struct<{
|
|
1369
|
-
value: Core.TSchema.Integer;
|
|
1370
|
-
}>>;
|
|
1371
|
-
asset: Core.TSchema.ByteArray;
|
|
1372
|
-
}>;
|
|
1373
|
-
type SnapshotEpochToScaleToSumContent = typeof SnapshotEpochToScaleToSumContentSchema.Type;
|
|
1374
|
-
declare const StabilityPoolDatumSchema: Core.TSchema.Union<[Core.TSchema.Struct<{
|
|
1375
|
-
StabilityPool: Core.TSchema.Struct<{
|
|
1376
|
-
asset: Core.TSchema.ByteArray;
|
|
1377
|
-
poolSnapshot: Core.TSchema.Struct<{
|
|
1378
|
-
productVal: Core.TSchema.Struct<{
|
|
1379
|
-
value: Core.TSchema.Integer;
|
|
1380
|
-
}>;
|
|
1381
|
-
depositVal: Core.TSchema.Struct<{
|
|
1382
|
-
value: Core.TSchema.Integer;
|
|
1383
|
-
}>;
|
|
1384
|
-
sumVal: Core.TSchema.Struct<{
|
|
1385
|
-
value: Core.TSchema.Integer;
|
|
1386
|
-
}>;
|
|
1387
|
-
epoch: Core.TSchema.Integer;
|
|
1388
|
-
scale: Core.TSchema.Integer;
|
|
1389
|
-
}>;
|
|
1390
|
-
epochToScaleToSum: Core.TSchema.Map<Core.TSchema.Struct<{
|
|
1391
|
-
epoch: Core.TSchema.Integer;
|
|
1392
|
-
scale: Core.TSchema.Integer;
|
|
1393
|
-
}>, Core.TSchema.Struct<{
|
|
1394
|
-
value: Core.TSchema.Integer;
|
|
1395
|
-
}>>;
|
|
1396
|
-
}>;
|
|
1397
|
-
}>, Core.TSchema.Struct<{
|
|
1398
|
-
Account: Core.TSchema.Struct<{
|
|
1399
|
-
owner: Core.TSchema.ByteArray;
|
|
1400
|
-
asset: Core.TSchema.ByteArray;
|
|
1401
|
-
accountSnapshot: Core.TSchema.Struct<{
|
|
1402
|
-
productVal: Core.TSchema.Struct<{
|
|
1403
|
-
value: Core.TSchema.Integer;
|
|
1404
|
-
}>;
|
|
1405
|
-
depositVal: Core.TSchema.Struct<{
|
|
1406
|
-
value: Core.TSchema.Integer;
|
|
1407
|
-
}>;
|
|
1408
|
-
sumVal: Core.TSchema.Struct<{
|
|
1409
|
-
value: Core.TSchema.Integer;
|
|
1410
|
-
}>;
|
|
1411
|
-
epoch: Core.TSchema.Integer;
|
|
1412
|
-
scale: Core.TSchema.Integer;
|
|
1413
|
-
}>;
|
|
1414
|
-
request: Core.TSchema.NullOr<Core.TSchema.Union<[Core.TSchema.Literal<["Create"]>, Core.TSchema.Struct<{
|
|
1415
|
-
Adjust: Core.TSchema.Struct<{
|
|
1416
|
-
amount: Core.TSchema.Integer;
|
|
1417
|
-
outputAddress: Core.TSchema.Struct<{
|
|
1418
|
-
paymentCredential: Core.TSchema.Union<[Core.TSchema.Struct<{
|
|
1419
|
-
PublicKeyCredential: Core.TSchema.ByteArray;
|
|
1420
|
-
}>, Core.TSchema.Struct<{
|
|
1421
|
-
ScriptCredential: Core.TSchema.ByteArray;
|
|
1422
|
-
}>]>;
|
|
1423
|
-
stakeCredential: Core.TSchema.NullOr<Core.TSchema.Union<[Core.TSchema.Struct<{
|
|
1424
|
-
Inline: Core.TSchema.Union<[Core.TSchema.Struct<{
|
|
1425
|
-
PublicKeyCredential: Core.TSchema.ByteArray;
|
|
1426
|
-
}>, Core.TSchema.Struct<{
|
|
1427
|
-
ScriptCredential: Core.TSchema.ByteArray;
|
|
1428
|
-
}>]>;
|
|
1429
|
-
}>, Core.TSchema.Struct<{
|
|
1430
|
-
Pointer: Core.TSchema.Struct<{
|
|
1431
|
-
slotNumber: Core.TSchema.Integer;
|
|
1432
|
-
transactionIndex: Core.TSchema.Integer;
|
|
1433
|
-
certificateIndex: Core.TSchema.Integer;
|
|
1434
|
-
}>;
|
|
1435
|
-
}>]>>;
|
|
1436
|
-
}>;
|
|
1437
|
-
}>;
|
|
1438
|
-
}>, Core.TSchema.Struct<{
|
|
1439
|
-
Close: Core.TSchema.Struct<{
|
|
1440
|
-
outputAddress: Core.TSchema.Struct<{
|
|
1441
|
-
paymentCredential: Core.TSchema.Union<[Core.TSchema.Struct<{
|
|
1442
|
-
PublicKeyCredential: Core.TSchema.ByteArray;
|
|
1443
|
-
}>, Core.TSchema.Struct<{
|
|
1444
|
-
ScriptCredential: Core.TSchema.ByteArray;
|
|
1445
|
-
}>]>;
|
|
1446
|
-
stakeCredential: Core.TSchema.NullOr<Core.TSchema.Union<[Core.TSchema.Struct<{
|
|
1447
|
-
Inline: Core.TSchema.Union<[Core.TSchema.Struct<{
|
|
1448
|
-
PublicKeyCredential: Core.TSchema.ByteArray;
|
|
1449
|
-
}>, Core.TSchema.Struct<{
|
|
1450
|
-
ScriptCredential: Core.TSchema.ByteArray;
|
|
1451
|
-
}>]>;
|
|
1452
|
-
}>, Core.TSchema.Struct<{
|
|
1453
|
-
Pointer: Core.TSchema.Struct<{
|
|
1454
|
-
slotNumber: Core.TSchema.Integer;
|
|
1455
|
-
transactionIndex: Core.TSchema.Integer;
|
|
1456
|
-
certificateIndex: Core.TSchema.Integer;
|
|
1457
|
-
}>;
|
|
1458
|
-
}>]>>;
|
|
1459
|
-
}>;
|
|
1460
|
-
}>;
|
|
1461
|
-
}>]>>;
|
|
1462
|
-
}>;
|
|
1463
|
-
}>, Core.TSchema.Struct<{
|
|
1464
|
-
SnapshotEpochToScaleToSum: Core.TSchema.Struct<{
|
|
1465
|
-
snapshot: Core.TSchema.Map<Core.TSchema.Struct<{
|
|
1466
|
-
epoch: Core.TSchema.Integer;
|
|
1467
|
-
scale: Core.TSchema.Integer;
|
|
1468
|
-
}>, Core.TSchema.Struct<{
|
|
1469
|
-
value: Core.TSchema.Integer;
|
|
1470
|
-
}>>;
|
|
1471
|
-
asset: Core.TSchema.ByteArray;
|
|
1472
|
-
}>;
|
|
1473
|
-
}>]>;
|
|
1474
|
-
declare const StabilityPoolRedeemerSchema: Core.TSchema.Union<[Core.TSchema.Struct<{
|
|
1475
|
-
RequestAction: Core.TSchema.Union<[Core.TSchema.Literal<["Create"]>, Core.TSchema.Struct<{
|
|
1476
|
-
Adjust: Core.TSchema.Struct<{
|
|
1477
|
-
amount: Core.TSchema.Integer;
|
|
1478
|
-
outputAddress: Core.TSchema.Struct<{
|
|
1479
|
-
paymentCredential: Core.TSchema.Union<[Core.TSchema.Struct<{
|
|
1480
|
-
PublicKeyCredential: Core.TSchema.ByteArray;
|
|
1481
|
-
}>, Core.TSchema.Struct<{
|
|
1482
|
-
ScriptCredential: Core.TSchema.ByteArray;
|
|
1483
|
-
}>]>;
|
|
1484
|
-
stakeCredential: Core.TSchema.NullOr<Core.TSchema.Union<[Core.TSchema.Struct<{
|
|
1485
|
-
Inline: Core.TSchema.Union<[Core.TSchema.Struct<{
|
|
1486
|
-
PublicKeyCredential: Core.TSchema.ByteArray;
|
|
1487
|
-
}>, Core.TSchema.Struct<{
|
|
1488
|
-
ScriptCredential: Core.TSchema.ByteArray;
|
|
1489
|
-
}>]>;
|
|
1490
|
-
}>, Core.TSchema.Struct<{
|
|
1491
|
-
Pointer: Core.TSchema.Struct<{
|
|
1492
|
-
slotNumber: Core.TSchema.Integer;
|
|
1493
|
-
transactionIndex: Core.TSchema.Integer;
|
|
1494
|
-
certificateIndex: Core.TSchema.Integer;
|
|
1495
|
-
}>;
|
|
1496
|
-
}>]>>;
|
|
1497
|
-
}>;
|
|
1498
|
-
}>;
|
|
1499
|
-
}>, Core.TSchema.Struct<{
|
|
1500
|
-
Close: Core.TSchema.Struct<{
|
|
1501
|
-
outputAddress: Core.TSchema.Struct<{
|
|
1502
|
-
paymentCredential: Core.TSchema.Union<[Core.TSchema.Struct<{
|
|
1503
|
-
PublicKeyCredential: Core.TSchema.ByteArray;
|
|
1504
|
-
}>, Core.TSchema.Struct<{
|
|
1505
|
-
ScriptCredential: Core.TSchema.ByteArray;
|
|
1506
|
-
}>]>;
|
|
1507
|
-
stakeCredential: Core.TSchema.NullOr<Core.TSchema.Union<[Core.TSchema.Struct<{
|
|
1508
|
-
Inline: Core.TSchema.Union<[Core.TSchema.Struct<{
|
|
1509
|
-
PublicKeyCredential: Core.TSchema.ByteArray;
|
|
1510
|
-
}>, Core.TSchema.Struct<{
|
|
1511
|
-
ScriptCredential: Core.TSchema.ByteArray;
|
|
1512
|
-
}>]>;
|
|
1513
|
-
}>, Core.TSchema.Struct<{
|
|
1514
|
-
Pointer: Core.TSchema.Struct<{
|
|
1515
|
-
slotNumber: Core.TSchema.Integer;
|
|
1516
|
-
transactionIndex: Core.TSchema.Integer;
|
|
1517
|
-
certificateIndex: Core.TSchema.Integer;
|
|
1518
|
-
}>;
|
|
1519
|
-
}>]>>;
|
|
1520
|
-
}>;
|
|
1521
|
-
}>;
|
|
1522
|
-
}>]>;
|
|
1523
|
-
}>, Core.TSchema.Struct<{
|
|
1524
|
-
ProcessRequest: Core.TSchema.Struct<{
|
|
1525
|
-
txHash: Core.TSchema.Struct<{
|
|
1526
|
-
hash: Core.TSchema.ByteArray;
|
|
1527
|
-
}>;
|
|
1528
|
-
outputIndex: Core.TSchema.Integer;
|
|
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>;
|
|
1529
980
|
}>;
|
|
1530
|
-
|
|
1531
|
-
|
|
1532
|
-
|
|
1533
|
-
|
|
1534
|
-
|
|
1535
|
-
|
|
1536
|
-
|
|
1537
|
-
useIndefiniteMaps?: boolean): string;
|
|
1538
|
-
declare function parseStabilityPoolDatum(datum: string): StabilityPoolContent;
|
|
1539
|
-
declare function parseAccountDatum(datum: string): AccountContent;
|
|
1540
|
-
declare function parseSnapshotEpochToScaleToSumDatum(datum: string): SnapshotEpochToScaleToSumContent;
|
|
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;
|
|
1541
988
|
declare function mkSPInteger(value: bigint): SPInteger;
|
|
1542
989
|
declare function fromSPInteger(value: SPInteger): bigint;
|
|
1543
990
|
declare function spAdd(a: SPInteger, b: SPInteger): SPInteger;
|
|
@@ -1545,34 +992,124 @@ declare function spSub(a: SPInteger, b: SPInteger): SPInteger;
|
|
|
1545
992
|
declare function spMul(a: SPInteger, b: SPInteger): SPInteger;
|
|
1546
993
|
declare function spDiv(a: SPInteger, b: SPInteger): SPInteger;
|
|
1547
994
|
|
|
1548
|
-
declare const initSpSnapshot: StabilityPoolSnapshot;
|
|
1549
|
-
declare const initEpochToScaleToSumMap: () => EpochToScaleToSum;
|
|
1550
995
|
declare function getSumFromEpochToScaleToSum(e2s2s: EpochToScaleToSum, epoch: bigint, scale: bigint): SPInteger | undefined;
|
|
1551
|
-
/**
|
|
1552
|
-
* It's necessary to use this to update map entries because typescript can't compare keys as objects.
|
|
1553
|
-
*/
|
|
1554
996
|
declare function setSumInEpochToScaleToSum(e2s2s: EpochToScaleToSum, epoch: bigint, scale: bigint, sum: SPInteger): EpochToScaleToSum;
|
|
1555
997
|
declare function getAccountReward(account: StabilityPoolSnapshot, e2s2s: EpochToScaleToSum): SPInteger;
|
|
1556
998
|
declare function getAccountFund(pool: StabilityPoolSnapshot, account: StabilityPoolSnapshot): SPInteger;
|
|
1557
999
|
declare function adjust(pool: StabilityPoolSnapshot, account: StabilityPoolSnapshot, e2s2s: EpochToScaleToSum): [StabilityPoolSnapshot, bigint];
|
|
1558
1000
|
declare function adjustmentHelper(spESTSTokenRef1: UTxO, spESTSTokenRef2: UTxO | undefined, pool: StabilityPoolSnapshot, e2s2s: EpochToScaleToSum, account: StabilityPoolSnapshot): [StabilityPoolSnapshot, bigint, UTxO[]];
|
|
1559
1001
|
declare function updatePoolSnapshotWithdrawalFee(withdrawalFeeAmount: SPInteger, newPoolDepositExcludingFee: SPInteger, pool: StabilityPoolSnapshot): [SPInteger, SPInteger];
|
|
1560
|
-
declare function liquidationHelper(spContent: StabilityPoolContent, iassetBurnAmt: bigint,
|
|
1561
|
-
/**
|
|
1562
|
-
* The collateral absorbed
|
|
1563
|
-
*/
|
|
1564
|
-
reward: bigint): {
|
|
1565
|
-
newSpContent: StabilityPoolContent;
|
|
1566
|
-
};
|
|
1567
1002
|
|
|
1568
1003
|
declare const ONE_SECOND: number;
|
|
1569
|
-
declare const
|
|
1570
|
-
declare const
|
|
1571
|
-
declare const
|
|
1004
|
+
declare const oneHour: bigint;
|
|
1005
|
+
declare const oneDay: bigint;
|
|
1006
|
+
declare const oneYear: bigint;
|
|
1007
|
+
|
|
1008
|
+
declare const CDPCreatorParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1009
|
+
cdpCreatorNft: _lucid_evolution_lucid.TObject<{
|
|
1010
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1011
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1012
|
+
}>;
|
|
1013
|
+
cdpAssetCs: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1014
|
+
cdpAuthTk: _lucid_evolution_lucid.TObject<{
|
|
1015
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1016
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1017
|
+
}>;
|
|
1018
|
+
iAssetAuthTk: _lucid_evolution_lucid.TObject<{
|
|
1019
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1020
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1021
|
+
}>;
|
|
1022
|
+
versionRecordToken: _lucid_evolution_lucid.TObject<{
|
|
1023
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1024
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1025
|
+
}>;
|
|
1026
|
+
cdpScriptHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1027
|
+
collectorValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1028
|
+
minCollateralInLovelace: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1029
|
+
biasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1030
|
+
}>;
|
|
1031
|
+
type CDPCreatorParams = Data.Static<typeof CDPCreatorParamsSchema>;
|
|
1032
|
+
declare const CDPCreatorParams: CDPCreatorParams;
|
|
1033
|
+
|
|
1034
|
+
declare const cdpCreatorValidator: {
|
|
1035
|
+
type: ScriptType;
|
|
1036
|
+
description: string;
|
|
1037
|
+
cborHex: string;
|
|
1038
|
+
};
|
|
1039
|
+
declare const mkCDPCreatorValidator: (params: CDPCreatorParams) => SpendingValidator;
|
|
1040
|
+
declare const mkCDPCreatorValidatorFromSP: (params: CDPCreatorParamsSP) => SpendingValidator;
|
|
1041
|
+
|
|
1042
|
+
declare const _cdpValidator: {
|
|
1043
|
+
type: ScriptType;
|
|
1044
|
+
description: string;
|
|
1045
|
+
cborHex: string;
|
|
1046
|
+
};
|
|
1047
|
+
|
|
1048
|
+
declare const _collectorValidator: {
|
|
1049
|
+
type: ScriptType;
|
|
1050
|
+
description: string;
|
|
1051
|
+
cborHex: string;
|
|
1052
|
+
};
|
|
1053
|
+
|
|
1054
|
+
declare function mkInterestOracleValidator(params: InterestOracleParams): SpendingValidator;
|
|
1055
|
+
|
|
1056
|
+
declare const PollShardParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1057
|
+
pollToken: _lucid_evolution_lucid.TObject<{
|
|
1058
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1059
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1060
|
+
}>;
|
|
1061
|
+
stakingToken: _lucid_evolution_lucid.TObject<{
|
|
1062
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1063
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1064
|
+
}>;
|
|
1065
|
+
indyAsset: _lucid_evolution_lucid.TObject<{
|
|
1066
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1067
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1068
|
+
}>;
|
|
1069
|
+
stakingValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1070
|
+
}>;
|
|
1071
|
+
type PollShardParams = Data.Static<typeof PollShardParamsSchema>;
|
|
1072
|
+
declare const PollShardParams: PollShardParams;
|
|
1073
|
+
declare function castPollShardParams(params: PollShardParams): Data;
|
|
1074
|
+
|
|
1075
|
+
declare const mkPollShardValidator: (params: PollShardParams) => SpendingValidator;
|
|
1076
|
+
declare const mkPollShardValidatorFromSP: (params: PollShardParamsSP) => SpendingValidator;
|
|
1077
|
+
|
|
1078
|
+
declare const PollManagerParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1079
|
+
govNFT: _lucid_evolution_lucid.TObject<{
|
|
1080
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1081
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1082
|
+
}>;
|
|
1083
|
+
pollToken: _lucid_evolution_lucid.TObject<{
|
|
1084
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1085
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1086
|
+
}>;
|
|
1087
|
+
upgradeToken: _lucid_evolution_lucid.TObject<{
|
|
1088
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1089
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1090
|
+
}>;
|
|
1091
|
+
indyAsset: _lucid_evolution_lucid.TObject<{
|
|
1092
|
+
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1093
|
+
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1094
|
+
}>;
|
|
1095
|
+
govExecuteValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1096
|
+
pBiasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1097
|
+
shardValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1098
|
+
treasuryValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1099
|
+
initialIndyDistribution: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1100
|
+
}>;
|
|
1101
|
+
type PollManagerParams = Data.Static<typeof PollManagerParamsSchema>;
|
|
1102
|
+
declare const PollManagerParams: PollManagerParams;
|
|
1103
|
+
declare function castPollManagerParams(params: PollManagerParams): Data;
|
|
1572
1104
|
|
|
1573
|
-
declare const
|
|
1105
|
+
declare const mkPollManagerValidator: (params: PollManagerParams) => SpendingValidator;
|
|
1106
|
+
declare const mkPollManagerValidatorFromSP: (params: PollManagerParamsSP) => SpendingValidator;
|
|
1574
1107
|
|
|
1575
|
-
declare const
|
|
1108
|
+
declare const _treasuryValidator: {
|
|
1109
|
+
type: ScriptType;
|
|
1110
|
+
description: string;
|
|
1111
|
+
cborHex: string;
|
|
1112
|
+
};
|
|
1576
1113
|
|
|
1577
1114
|
declare const ExecuteParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1578
1115
|
govNFT: _lucid_evolution_lucid.TObject<{
|
|
@@ -1606,257 +1143,95 @@ declare const ExecuteParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
|
1606
1143
|
}>;
|
|
1607
1144
|
type ExecuteParams = Data.Static<typeof ExecuteParamsSchema>;
|
|
1608
1145
|
declare const ExecuteParams: ExecuteParams;
|
|
1609
|
-
declare const ExecuteDatumSchema: _lucid_evolution_lucid.TObject<{
|
|
1610
|
-
id: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1611
|
-
content: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
|
|
1612
|
-
ProposeAsset: _lucid_evolution_lucid.TObject<{
|
|
1613
|
-
asset: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1614
|
-
priceOracleNft: _lucid_evolution_lucid.TObject<{
|
|
1615
|
-
oracleNft: _lucid_evolution_lucid.TObject<{
|
|
1616
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1617
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1618
|
-
}>;
|
|
1619
|
-
}>;
|
|
1620
|
-
interestOracleNft: _lucid_evolution_lucid.TObject<{
|
|
1621
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1622
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1623
|
-
}>;
|
|
1624
|
-
redemptionRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
1625
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1626
|
-
}>;
|
|
1627
|
-
maintenanceRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
1628
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1629
|
-
}>;
|
|
1630
|
-
liquidationRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
1631
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1632
|
-
}>;
|
|
1633
|
-
debtMintingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
1634
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1635
|
-
}>;
|
|
1636
|
-
liquidationProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
1637
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1638
|
-
}>;
|
|
1639
|
-
stabilityPoolWithdrawalFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
1640
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1641
|
-
}>;
|
|
1642
|
-
redemptionReimbursementPercentage: _lucid_evolution_lucid.TObject<{
|
|
1643
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1644
|
-
}>;
|
|
1645
|
-
redemptionProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
1646
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1647
|
-
}>;
|
|
1648
|
-
interestCollectorPortionPercentage: _lucid_evolution_lucid.TObject<{
|
|
1649
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1650
|
-
}>;
|
|
1651
|
-
}>;
|
|
1652
|
-
}> | _lucid_evolution_lucid.TObject<{
|
|
1653
|
-
ModifyAsset: _lucid_evolution_lucid.TObject<{
|
|
1654
|
-
asset: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1655
|
-
newAssetPriceInfo: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
|
|
1656
|
-
Delisted: _lucid_evolution_lucid.TObject<{
|
|
1657
|
-
content: _lucid_evolution_lucid.TObject<{
|
|
1658
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1659
|
-
}>;
|
|
1660
|
-
}>;
|
|
1661
|
-
}> | _lucid_evolution_lucid.TObject<{
|
|
1662
|
-
Oracle: _lucid_evolution_lucid.TObject<{
|
|
1663
|
-
content: _lucid_evolution_lucid.TObject<{
|
|
1664
|
-
oracleNft: _lucid_evolution_lucid.TObject<{
|
|
1665
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1666
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1667
|
-
}>;
|
|
1668
|
-
}>;
|
|
1669
|
-
}>;
|
|
1670
|
-
}>)[]>;
|
|
1671
|
-
newInterestOracleNft: _lucid_evolution_lucid.TObject<{
|
|
1672
|
-
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1673
|
-
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1674
|
-
}>;
|
|
1675
|
-
newRedemptionRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
1676
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1677
|
-
}>;
|
|
1678
|
-
newMaintenanceRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
1679
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1680
|
-
}>;
|
|
1681
|
-
newLiquidationRatioPercentage: _lucid_evolution_lucid.TObject<{
|
|
1682
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1683
|
-
}>;
|
|
1684
|
-
newDebtMintingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
1685
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1686
|
-
}>;
|
|
1687
|
-
newLiquidationProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
1688
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1689
|
-
}>;
|
|
1690
|
-
newStabilityPoolWithdrawalFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
1691
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1692
|
-
}>;
|
|
1693
|
-
newRedemptionReimbursementPercentage: _lucid_evolution_lucid.TObject<{
|
|
1694
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1695
|
-
}>;
|
|
1696
|
-
newRedemptionProcessingFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
1697
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1698
|
-
}>;
|
|
1699
|
-
newInterestCollectorPortionPercentage: _lucid_evolution_lucid.TObject<{
|
|
1700
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1701
|
-
}>;
|
|
1702
|
-
}>;
|
|
1703
|
-
}> | _lucid_evolution_lucid.TObject<{
|
|
1704
|
-
ModifyProtocolParams: _lucid_evolution_lucid.TObject<{
|
|
1705
|
-
newParams: _lucid_evolution_lucid.TObject<{
|
|
1706
|
-
proposalDeposit: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1707
|
-
votingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1708
|
-
effectiveDelay: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1709
|
-
expirationPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1710
|
-
collateralFeePercentage: _lucid_evolution_lucid.TObject<{
|
|
1711
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1712
|
-
}>;
|
|
1713
|
-
proposingPeriod: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1714
|
-
totalShards: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1715
|
-
minimumQuorum: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1716
|
-
maxTreasuryLovelaceSpend: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1717
|
-
maxTreasuryIndySpend: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1718
|
-
}>;
|
|
1719
|
-
}>;
|
|
1720
|
-
}> | _lucid_evolution_lucid.TObject<{
|
|
1721
|
-
UpgradeProtocol: _lucid_evolution_lucid.TObject<{
|
|
1722
|
-
content: _lucid_evolution_lucid.TUnsafe<Data>;
|
|
1723
|
-
}>;
|
|
1724
|
-
}> | _lucid_evolution_lucid.TObject<{
|
|
1725
|
-
TextProposal: _lucid_evolution_lucid.TObject<{
|
|
1726
|
-
bytes: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1727
|
-
}>;
|
|
1728
|
-
}>)[]>;
|
|
1729
|
-
passedTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1730
|
-
votingEndTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1731
|
-
protocolVersion: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1732
|
-
treasuryWithdrawal: _lucid_evolution_lucid.TUnsafe<{
|
|
1733
|
-
value: [string, string, bigint][];
|
|
1734
|
-
destination: {
|
|
1735
|
-
paymentCredential: {
|
|
1736
|
-
PublicKeyCredential: [string];
|
|
1737
|
-
} | {
|
|
1738
|
-
ScriptCredential: [string];
|
|
1739
|
-
};
|
|
1740
|
-
stakeCredential: {
|
|
1741
|
-
Inline: [{
|
|
1742
|
-
PublicKeyCredential: [string];
|
|
1743
|
-
} | {
|
|
1744
|
-
ScriptCredential: [string];
|
|
1745
|
-
}];
|
|
1746
|
-
} | {
|
|
1747
|
-
Pointer: [{
|
|
1748
|
-
slotNumber: bigint;
|
|
1749
|
-
transactionIndex: bigint;
|
|
1750
|
-
certificateIndex: bigint;
|
|
1751
|
-
}];
|
|
1752
|
-
} | null;
|
|
1753
|
-
};
|
|
1754
|
-
} | null>;
|
|
1755
|
-
}>;
|
|
1756
|
-
type ExecuteDatum = Data.Static<typeof ExecuteDatumSchema>;
|
|
1757
|
-
declare const ExecuteDatum: ExecuteDatum;
|
|
1758
|
-
declare function serialiseExecuteDatum(d: ExecuteDatum): Datum;
|
|
1759
|
-
declare function parseExecuteDatum(d: Datum): option.Option<ExecuteDatum>;
|
|
1760
|
-
declare function parseExecuteDatumOrThrow(d: Datum): ExecuteDatum;
|
|
1761
1146
|
declare function castExecuteParams(params: ExecuteParams): Data;
|
|
1762
1147
|
|
|
1763
|
-
declare const
|
|
1764
|
-
|
|
1765
|
-
|
|
1766
|
-
|
|
1767
|
-
|
|
1768
|
-
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
|
|
1772
|
-
type OracleAssetNft = Data.Static<typeof OracleAssetNftSchema>;
|
|
1773
|
-
declare const PriceOracleParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1774
|
-
owner: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1775
|
-
/** Milliseconds */
|
|
1776
|
-
biasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1777
|
-
/** Milliseconds */
|
|
1778
|
-
expiration: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1779
|
-
}>;
|
|
1780
|
-
type PriceOracleParams = Data.Static<typeof PriceOracleParamsSchema>;
|
|
1781
|
-
declare const PriceOracleDatumSchema: _lucid_evolution_lucid.TObject<{
|
|
1782
|
-
price: _lucid_evolution_lucid.TObject<{
|
|
1783
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1784
|
-
}>;
|
|
1785
|
-
expiration: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1786
|
-
}>;
|
|
1787
|
-
type PriceOracleDatum = Data.Static<typeof PriceOracleDatumSchema>;
|
|
1788
|
-
declare const PriceOracleRedeemerSchema: _lucid_evolution_lucid.TObject<{
|
|
1789
|
-
currentTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1790
|
-
newPrice: _lucid_evolution_lucid.TObject<{
|
|
1791
|
-
getOnChainInt: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1792
|
-
}>;
|
|
1793
|
-
}>;
|
|
1794
|
-
type PriceOracleRedeemer = Data.Static<typeof PriceOracleRedeemerSchema>;
|
|
1795
|
-
declare function serialisePriceOracleRedeemer(r: PriceOracleRedeemer): Redeemer;
|
|
1796
|
-
declare function parsePriceOracleDatum(datum: Datum): PriceOracleDatum;
|
|
1797
|
-
declare function serialisePriceOracleDatum(datum: PriceOracleDatum): Datum;
|
|
1798
|
-
declare function castPriceOracleParams(params: PriceOracleParams): Data;
|
|
1799
|
-
|
|
1800
|
-
declare const ActionReturnDatumSchema: _lucid_evolution_lucid.TUnion<(_lucid_evolution_lucid.TObject<{
|
|
1801
|
-
IndigoStabilityPoolAccountAdjustment: _lucid_evolution_lucid.TObject<{
|
|
1802
|
-
spent_account: _lucid_evolution_lucid.TObject<{
|
|
1803
|
-
txHash: _lucid_evolution_lucid.TObject<{
|
|
1804
|
-
hash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1805
|
-
}>;
|
|
1806
|
-
outputIndex: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1807
|
-
}>;
|
|
1808
|
-
}>;
|
|
1809
|
-
}> | _lucid_evolution_lucid.TObject<{
|
|
1810
|
-
IndigoStabilityPoolAccountClosure: _lucid_evolution_lucid.TObject<{
|
|
1811
|
-
closed_account: _lucid_evolution_lucid.TObject<{
|
|
1812
|
-
txHash: _lucid_evolution_lucid.TObject<{
|
|
1813
|
-
hash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1814
|
-
}>;
|
|
1815
|
-
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>;
|
|
1816
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>;
|
|
1817
1163
|
}>;
|
|
1818
|
-
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
|
|
1822
|
-
|
|
1823
|
-
|
|
1824
|
-
|
|
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<{
|
|
1825
1174
|
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1826
1175
|
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1827
1176
|
}>;
|
|
1828
|
-
|
|
1177
|
+
pollToken: _lucid_evolution_lucid.TObject<{
|
|
1829
1178
|
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1830
1179
|
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1831
1180
|
}>;
|
|
1832
|
-
|
|
1181
|
+
upgradeToken: _lucid_evolution_lucid.TObject<{
|
|
1833
1182
|
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1834
1183
|
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1835
1184
|
}>;
|
|
1836
|
-
|
|
1185
|
+
indyAsset: _lucid_evolution_lucid.TObject<{
|
|
1837
1186
|
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1838
1187
|
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1839
1188
|
}>;
|
|
1840
|
-
|
|
1189
|
+
versionRecordToken: _lucid_evolution_lucid.TObject<{
|
|
1841
1190
|
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1842
1191
|
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1843
1192
|
}>;
|
|
1844
|
-
|
|
1193
|
+
pollManagerValHash: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1194
|
+
gBiasTime: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1195
|
+
daoIdentityToken: _lucid_evolution_lucid.TObject<{
|
|
1845
1196
|
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1846
1197
|
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1847
1198
|
}>;
|
|
1848
|
-
|
|
1849
|
-
govNFT: _lucid_evolution_lucid.TObject<{
|
|
1199
|
+
iAssetAuthToken: _lucid_evolution_lucid.TObject<{
|
|
1850
1200
|
currencySymbol: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1851
1201
|
tokenName: _lucid_evolution_lucid.TUnsafe<string>;
|
|
1852
1202
|
}>;
|
|
1853
|
-
accountCreateFeeLovelaces: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1854
|
-
accountAdjustmentFeeLovelaces: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1855
|
-
requestCollateralLovelaces: _lucid_evolution_lucid.TUnsafe<bigint>;
|
|
1856
1203
|
}>;
|
|
1857
|
-
type
|
|
1858
|
-
declare const
|
|
1859
|
-
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;
|
|
1860
1235
|
|
|
1861
1236
|
declare const LRPParamsSchema: _lucid_evolution_lucid.TObject<{
|
|
1862
1237
|
versionRecordToken: _lucid_evolution_lucid.TObject<{
|
|
@@ -1913,7 +1288,12 @@ declare function serialiseLrpDatum(datum: LRPDatum): Datum;
|
|
|
1913
1288
|
declare function serialiseLrpRedeemer(redeemer: LRPRedeemer): Redeemer;
|
|
1914
1289
|
declare function castLrpParams(params: LRPParams): Data;
|
|
1915
1290
|
|
|
1916
|
-
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>;
|
|
1917
1297
|
declare function cancelLrp(lrpOutRef: OutRef, lrpRefScriptOutRef: OutRef, lucid: LucidEvolution): Promise<TxBuilder>;
|
|
1918
1298
|
declare function redeemLrp(
|
|
1919
1299
|
/** The tuple represents the LRP outref and the amount of iAssets to redeem against it. */
|
|
@@ -1936,7 +1316,6 @@ declare const mkLrpValidator: (params: LRPParams) => SpendingValidator;
|
|
|
1936
1316
|
declare const mkLrpValidatorFromSP: (params: LrpParamsSP) => SpendingValidator;
|
|
1937
1317
|
|
|
1938
1318
|
/**
|
|
1939
|
-
* TODO: remove this, it should be part of the testsuite only
|
|
1940
1319
|
* Uses an always fail validator for the destination address.
|
|
1941
1320
|
*/
|
|
1942
1321
|
declare function runCreateScriptRefTx(lucid: LucidEvolution, scriptRefValidator: SpendingValidator, network: Network): Promise<OutRef>;
|
|
@@ -1956,4 +1335,4 @@ type OneShotParams = Data.Static<typeof OneShotParamsSchema>;
|
|
|
1956
1335
|
declare function oneShotMintTx(lucid: LucidEvolution, params: OneShotParams): Promise<[TxBuilder, PolicyId]>;
|
|
1957
1336
|
declare function runOneShotMintTx(lucid: LucidEvolution, params: OneShotParams): Promise<PolicyId>;
|
|
1958
1337
|
|
|
1959
|
-
export {
|
|
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 };
|