@indigo-labs/indigo-sdk 0.5.7 → 0.5.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.mts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +37 -31
- package/dist/index.mjs +61 -54
- package/package.json +1 -1
package/dist/index.d.mts
CHANGED
|
@@ -2556,7 +2556,7 @@ type InterestOracleParams = Data.Static<typeof InterestOracleParamsSchema>;
|
|
|
2556
2556
|
declare function castInterestOracleParams(params: InterestOracleParams): Data;
|
|
2557
2557
|
|
|
2558
2558
|
declare function startInterestOracle(initialUnitaryInterest: bigint, initialInterestRate: bigint, initialLastInterestUpdate: bigint, oracleParams: InterestOracleParams, lucid: LucidEvolution, interestTokenName?: string, withScriptRef?: boolean, refOutRef?: OutRef): Promise<[TxBuilder, AssetClass]>;
|
|
2559
|
-
declare function feedInterestOracle(params: InterestOracleParams, newInterestRate: bigint, lucid: LucidEvolution, assetClass?: AssetClass, utxo?: UTxO, scriptRef?: UTxO, currentSlot?: number): Promise<TxBuilder>;
|
|
2559
|
+
declare function feedInterestOracle(params: InterestOracleParams, newInterestRate: bigint, lucid: LucidEvolution, assetClass?: AssetClass, utxo?: UTxO, scriptRef?: UTxO, currentSlot?: number, scriptOverrideCborHex?: string): Promise<TxBuilder>;
|
|
2560
2560
|
|
|
2561
2561
|
declare function findInterestOracle(lucid: LucidEvolution, interestNft: AssetClass): Promise<UTxO>;
|
|
2562
2562
|
|
package/dist/index.d.ts
CHANGED
|
@@ -2556,7 +2556,7 @@ type InterestOracleParams = Data.Static<typeof InterestOracleParamsSchema>;
|
|
|
2556
2556
|
declare function castInterestOracleParams(params: InterestOracleParams): Data;
|
|
2557
2557
|
|
|
2558
2558
|
declare function startInterestOracle(initialUnitaryInterest: bigint, initialInterestRate: bigint, initialLastInterestUpdate: bigint, oracleParams: InterestOracleParams, lucid: LucidEvolution, interestTokenName?: string, withScriptRef?: boolean, refOutRef?: OutRef): Promise<[TxBuilder, AssetClass]>;
|
|
2559
|
-
declare function feedInterestOracle(params: InterestOracleParams, newInterestRate: bigint, lucid: LucidEvolution, assetClass?: AssetClass, utxo?: UTxO, scriptRef?: UTxO, currentSlot?: number): Promise<TxBuilder>;
|
|
2559
|
+
declare function feedInterestOracle(params: InterestOracleParams, newInterestRate: bigint, lucid: LucidEvolution, assetClass?: AssetClass, utxo?: UTxO, scriptRef?: UTxO, currentSlot?: number, scriptOverrideCborHex?: string): Promise<TxBuilder>;
|
|
2560
2560
|
|
|
2561
2561
|
declare function findInterestOracle(lucid: LucidEvolution, interestNft: AssetClass): Promise<UTxO>;
|
|
2562
2562
|
|
package/dist/index.js
CHANGED
|
@@ -7497,30 +7497,42 @@ function castStakingParams(params) {
|
|
|
7497
7497
|
// src/contracts/interest-oracle/transactions.ts
|
|
7498
7498
|
var import_lucid34 = require("@lucid-evolution/lucid");
|
|
7499
7499
|
|
|
7500
|
+
// src/contracts/interest-oracle/types.ts
|
|
7501
|
+
var import_lucid29 = require("@lucid-evolution/lucid");
|
|
7502
|
+
var InterestOracleParamsSchema = import_lucid29.Data.Object({
|
|
7503
|
+
/** Milliseconds */
|
|
7504
|
+
biasTime: import_lucid29.Data.Integer(),
|
|
7505
|
+
owner: import_lucid29.Data.Bytes()
|
|
7506
|
+
});
|
|
7507
|
+
var InterestOracleParams = InterestOracleParamsSchema;
|
|
7508
|
+
function castInterestOracleParams(params) {
|
|
7509
|
+
return import_lucid29.Data.castTo(params, InterestOracleParams);
|
|
7510
|
+
}
|
|
7511
|
+
|
|
7500
7512
|
// src/contracts/one-shot/transactions.ts
|
|
7501
|
-
var
|
|
7513
|
+
var import_lucid32 = require("@lucid-evolution/lucid");
|
|
7502
7514
|
|
|
7503
7515
|
// src/contracts/one-shot/scripts.ts
|
|
7504
|
-
var
|
|
7516
|
+
var import_lucid31 = require("@lucid-evolution/lucid");
|
|
7505
7517
|
|
|
7506
7518
|
// src/contracts/one-shot/types.ts
|
|
7507
|
-
var
|
|
7508
|
-
var OneShotParamsSchema =
|
|
7509
|
-
referenceOutRef:
|
|
7510
|
-
txHash:
|
|
7511
|
-
outputIdx:
|
|
7519
|
+
var import_lucid30 = require("@lucid-evolution/lucid");
|
|
7520
|
+
var OneShotParamsSchema = import_lucid30.Data.Object({
|
|
7521
|
+
referenceOutRef: import_lucid30.Data.Object({
|
|
7522
|
+
txHash: import_lucid30.Data.Bytes(),
|
|
7523
|
+
outputIdx: import_lucid30.Data.Integer()
|
|
7512
7524
|
}),
|
|
7513
|
-
mintAmounts:
|
|
7514
|
-
|
|
7525
|
+
mintAmounts: import_lucid30.Data.Array(
|
|
7526
|
+
import_lucid30.Data.Object({
|
|
7515
7527
|
/// Use hex encoded string
|
|
7516
|
-
tokenName:
|
|
7517
|
-
amount:
|
|
7528
|
+
tokenName: import_lucid30.Data.Bytes(),
|
|
7529
|
+
amount: import_lucid30.Data.Integer()
|
|
7518
7530
|
})
|
|
7519
7531
|
)
|
|
7520
7532
|
});
|
|
7521
7533
|
var OneShotParams = OneShotParamsSchema;
|
|
7522
7534
|
function castOneShotParams(params) {
|
|
7523
|
-
return
|
|
7535
|
+
return import_lucid30.Data.castTo(params, OneShotParams);
|
|
7524
7536
|
}
|
|
7525
7537
|
|
|
7526
7538
|
// src/validators/one-shot-policy.ts
|
|
@@ -7534,7 +7546,7 @@ var _oneShotPolicy = {
|
|
|
7534
7546
|
function mkOneShotPolicy(params) {
|
|
7535
7547
|
return {
|
|
7536
7548
|
type: "PlutusV3",
|
|
7537
|
-
script: (0,
|
|
7549
|
+
script: (0, import_lucid31.applyParamsToScript)(_oneShotPolicy.cborHex, [
|
|
7538
7550
|
castOneShotParams(params)
|
|
7539
7551
|
])
|
|
7540
7552
|
};
|
|
@@ -7544,7 +7556,7 @@ function mkOneShotPolicy(params) {
|
|
|
7544
7556
|
var import_Array = require("fp-ts/lib/Array");
|
|
7545
7557
|
async function oneShotMintTx(lucid, params) {
|
|
7546
7558
|
const oneShotPolicy = mkOneShotPolicy(params);
|
|
7547
|
-
const policyId = (0,
|
|
7559
|
+
const policyId = (0, import_lucid32.mintingPolicyToId)(oneShotPolicy);
|
|
7548
7560
|
const refUtxo = matchSingle(
|
|
7549
7561
|
await lucid.utxosByOutRef([
|
|
7550
7562
|
{
|
|
@@ -7560,11 +7572,11 @@ async function oneShotMintTx(lucid, params) {
|
|
|
7560
7572
|
lucid.newTx().collectFrom([refUtxo]).mintAssets(
|
|
7561
7573
|
(0, import_Array.reduce)(
|
|
7562
7574
|
{},
|
|
7563
|
-
(acc, entry) => (0,
|
|
7564
|
-
[(0,
|
|
7575
|
+
(acc, entry) => (0, import_lucid32.addAssets)(acc, {
|
|
7576
|
+
[(0, import_lucid32.toUnit)(policyId, entry.tokenName)]: entry.amount
|
|
7565
7577
|
})
|
|
7566
7578
|
)(params.mintAmounts),
|
|
7567
|
-
|
|
7579
|
+
import_lucid32.Data.void()
|
|
7568
7580
|
).attach.MintingPolicy(oneShotPolicy),
|
|
7569
7581
|
policyId
|
|
7570
7582
|
];
|
|
@@ -7579,18 +7591,6 @@ async function runOneShotMintTx(lucid, params) {
|
|
|
7579
7591
|
// src/contracts/interest-oracle/scripts.ts
|
|
7580
7592
|
var import_lucid33 = require("@lucid-evolution/lucid");
|
|
7581
7593
|
|
|
7582
|
-
// src/contracts/interest-oracle/types.ts
|
|
7583
|
-
var import_lucid32 = require("@lucid-evolution/lucid");
|
|
7584
|
-
var InterestOracleParamsSchema = import_lucid32.Data.Object({
|
|
7585
|
-
/** Milliseconds */
|
|
7586
|
-
biasTime: import_lucid32.Data.Integer(),
|
|
7587
|
-
owner: import_lucid32.Data.Bytes()
|
|
7588
|
-
});
|
|
7589
|
-
var InterestOracleParams = InterestOracleParamsSchema;
|
|
7590
|
-
function castInterestOracleParams(params) {
|
|
7591
|
-
return import_lucid32.Data.castTo(params, InterestOracleParams);
|
|
7592
|
-
}
|
|
7593
|
-
|
|
7594
7594
|
// src/validators/interest-oracle-validator.ts
|
|
7595
7595
|
var _interestOracleValidator = {
|
|
7596
7596
|
type: "PlutusScriptV3",
|
|
@@ -7667,7 +7667,7 @@ async function startInterestOracle(initialUnitaryInterest, initialInterestRate,
|
|
|
7667
7667
|
}
|
|
7668
7668
|
];
|
|
7669
7669
|
}
|
|
7670
|
-
async function feedInterestOracle(params, newInterestRate, lucid, assetClass, utxo, scriptRef2, currentSlot) {
|
|
7670
|
+
async function feedInterestOracle(params, newInterestRate, lucid, assetClass, utxo, scriptRef2, currentSlot, scriptOverrideCborHex) {
|
|
7671
7671
|
if (!assetClass && !utxo)
|
|
7672
7672
|
throw new Error("Either interest oracle nft or utxo must be provided");
|
|
7673
7673
|
if (assetClass && !utxo) {
|
|
@@ -7680,7 +7680,13 @@ async function feedInterestOracle(params, newInterestRate, lucid, assetClass, ut
|
|
|
7680
7680
|
if (scriptRef2) {
|
|
7681
7681
|
tx.readFrom([scriptRef2]);
|
|
7682
7682
|
} else {
|
|
7683
|
-
|
|
7683
|
+
const validator = scriptOverrideCborHex ? {
|
|
7684
|
+
type: "PlutusV2",
|
|
7685
|
+
script: (0, import_lucid34.applyParamsToScript)(scriptOverrideCborHex, [
|
|
7686
|
+
castInterestOracleParams(params)
|
|
7687
|
+
])
|
|
7688
|
+
} : mkInterestOracleValidator(params);
|
|
7689
|
+
tx.attach.Script(validator);
|
|
7684
7690
|
}
|
|
7685
7691
|
tx.collectFrom(
|
|
7686
7692
|
[utxo],
|
package/dist/index.mjs
CHANGED
|
@@ -7230,16 +7230,29 @@ function castStakingParams(params) {
|
|
|
7230
7230
|
|
|
7231
7231
|
// src/contracts/interest-oracle/transactions.ts
|
|
7232
7232
|
import {
|
|
7233
|
+
applyParamsToScript as applyParamsToScript9,
|
|
7233
7234
|
fromHex as fromHex10,
|
|
7234
7235
|
fromText as fromText6,
|
|
7235
7236
|
toUnit as toUnit2,
|
|
7236
7237
|
validatorToAddress
|
|
7237
7238
|
} from "@lucid-evolution/lucid";
|
|
7238
7239
|
|
|
7240
|
+
// src/contracts/interest-oracle/types.ts
|
|
7241
|
+
import { Data as Data34 } from "@lucid-evolution/lucid";
|
|
7242
|
+
var InterestOracleParamsSchema = Data34.Object({
|
|
7243
|
+
/** Milliseconds */
|
|
7244
|
+
biasTime: Data34.Integer(),
|
|
7245
|
+
owner: Data34.Bytes()
|
|
7246
|
+
});
|
|
7247
|
+
var InterestOracleParams = InterestOracleParamsSchema;
|
|
7248
|
+
function castInterestOracleParams(params) {
|
|
7249
|
+
return Data34.castTo(params, InterestOracleParams);
|
|
7250
|
+
}
|
|
7251
|
+
|
|
7239
7252
|
// src/contracts/one-shot/transactions.ts
|
|
7240
7253
|
import {
|
|
7241
7254
|
addAssets as addAssets10,
|
|
7242
|
-
Data as
|
|
7255
|
+
Data as Data36,
|
|
7243
7256
|
mintingPolicyToId,
|
|
7244
7257
|
toUnit
|
|
7245
7258
|
} from "@lucid-evolution/lucid";
|
|
@@ -7248,23 +7261,23 @@ import {
|
|
|
7248
7261
|
import { applyParamsToScript as applyParamsToScript7 } from "@lucid-evolution/lucid";
|
|
7249
7262
|
|
|
7250
7263
|
// src/contracts/one-shot/types.ts
|
|
7251
|
-
import { Data as
|
|
7252
|
-
var OneShotParamsSchema =
|
|
7253
|
-
referenceOutRef:
|
|
7254
|
-
txHash:
|
|
7255
|
-
outputIdx:
|
|
7264
|
+
import { Data as Data35 } from "@lucid-evolution/lucid";
|
|
7265
|
+
var OneShotParamsSchema = Data35.Object({
|
|
7266
|
+
referenceOutRef: Data35.Object({
|
|
7267
|
+
txHash: Data35.Bytes(),
|
|
7268
|
+
outputIdx: Data35.Integer()
|
|
7256
7269
|
}),
|
|
7257
|
-
mintAmounts:
|
|
7258
|
-
|
|
7270
|
+
mintAmounts: Data35.Array(
|
|
7271
|
+
Data35.Object({
|
|
7259
7272
|
/// Use hex encoded string
|
|
7260
|
-
tokenName:
|
|
7261
|
-
amount:
|
|
7273
|
+
tokenName: Data35.Bytes(),
|
|
7274
|
+
amount: Data35.Integer()
|
|
7262
7275
|
})
|
|
7263
7276
|
)
|
|
7264
7277
|
});
|
|
7265
7278
|
var OneShotParams = OneShotParamsSchema;
|
|
7266
7279
|
function castOneShotParams(params) {
|
|
7267
|
-
return
|
|
7280
|
+
return Data35.castTo(params, OneShotParams);
|
|
7268
7281
|
}
|
|
7269
7282
|
|
|
7270
7283
|
// src/validators/one-shot-policy.ts
|
|
@@ -7308,7 +7321,7 @@ async function oneShotMintTx(lucid, params) {
|
|
|
7308
7321
|
[toUnit(policyId, entry.tokenName)]: entry.amount
|
|
7309
7322
|
})
|
|
7310
7323
|
)(params.mintAmounts),
|
|
7311
|
-
|
|
7324
|
+
Data36.void()
|
|
7312
7325
|
).attach.MintingPolicy(oneShotPolicy),
|
|
7313
7326
|
policyId
|
|
7314
7327
|
];
|
|
@@ -7323,18 +7336,6 @@ async function runOneShotMintTx(lucid, params) {
|
|
|
7323
7336
|
// src/contracts/interest-oracle/scripts.ts
|
|
7324
7337
|
import { applyParamsToScript as applyParamsToScript8 } from "@lucid-evolution/lucid";
|
|
7325
7338
|
|
|
7326
|
-
// src/contracts/interest-oracle/types.ts
|
|
7327
|
-
import { Data as Data36 } from "@lucid-evolution/lucid";
|
|
7328
|
-
var InterestOracleParamsSchema = Data36.Object({
|
|
7329
|
-
/** Milliseconds */
|
|
7330
|
-
biasTime: Data36.Integer(),
|
|
7331
|
-
owner: Data36.Bytes()
|
|
7332
|
-
});
|
|
7333
|
-
var InterestOracleParams = InterestOracleParamsSchema;
|
|
7334
|
-
function castInterestOracleParams(params) {
|
|
7335
|
-
return Data36.castTo(params, InterestOracleParams);
|
|
7336
|
-
}
|
|
7337
|
-
|
|
7338
7339
|
// src/validators/interest-oracle-validator.ts
|
|
7339
7340
|
var _interestOracleValidator = {
|
|
7340
7341
|
type: "PlutusScriptV3",
|
|
@@ -7413,7 +7414,7 @@ async function startInterestOracle(initialUnitaryInterest, initialInterestRate,
|
|
|
7413
7414
|
}
|
|
7414
7415
|
];
|
|
7415
7416
|
}
|
|
7416
|
-
async function feedInterestOracle(params, newInterestRate, lucid, assetClass, utxo, scriptRef2, currentSlot) {
|
|
7417
|
+
async function feedInterestOracle(params, newInterestRate, lucid, assetClass, utxo, scriptRef2, currentSlot, scriptOverrideCborHex) {
|
|
7417
7418
|
if (!assetClass && !utxo)
|
|
7418
7419
|
throw new Error("Either interest oracle nft or utxo must be provided");
|
|
7419
7420
|
if (assetClass && !utxo) {
|
|
@@ -7426,7 +7427,13 @@ async function feedInterestOracle(params, newInterestRate, lucid, assetClass, ut
|
|
|
7426
7427
|
if (scriptRef2) {
|
|
7427
7428
|
tx.readFrom([scriptRef2]);
|
|
7428
7429
|
} else {
|
|
7429
|
-
|
|
7430
|
+
const validator = scriptOverrideCborHex ? {
|
|
7431
|
+
type: "PlutusV2",
|
|
7432
|
+
script: applyParamsToScript9(scriptOverrideCborHex, [
|
|
7433
|
+
castInterestOracleParams(params)
|
|
7434
|
+
])
|
|
7435
|
+
} : mkInterestOracleValidator(params);
|
|
7436
|
+
tx.attach.Script(validator);
|
|
7430
7437
|
}
|
|
7431
7438
|
tx.collectFrom(
|
|
7432
7439
|
[utxo],
|
|
@@ -7491,7 +7498,7 @@ function castInterestCollectionParams(params) {
|
|
|
7491
7498
|
}
|
|
7492
7499
|
|
|
7493
7500
|
// src/contracts/interest-collection/scripts.ts
|
|
7494
|
-
import { applyParamsToScript as
|
|
7501
|
+
import { applyParamsToScript as applyParamsToScript10 } from "@lucid-evolution/lucid";
|
|
7495
7502
|
|
|
7496
7503
|
// src/validators/interest-collection-validator.ts
|
|
7497
7504
|
var _interestCollectionValidator = {
|
|
@@ -7504,7 +7511,7 @@ var _interestCollectionValidator = {
|
|
|
7504
7511
|
function mkInterestCollectionValidator(params) {
|
|
7505
7512
|
return {
|
|
7506
7513
|
type: "PlutusV3",
|
|
7507
|
-
script:
|
|
7514
|
+
script: applyParamsToScript10(_interestCollectionValidator.cborHex, [
|
|
7508
7515
|
castInterestCollectionParams(params)
|
|
7509
7516
|
])
|
|
7510
7517
|
};
|
|
@@ -7512,7 +7519,7 @@ function mkInterestCollectionValidator(params) {
|
|
|
7512
7519
|
var mkInterestCollectionValidatorFromSP = (params) => {
|
|
7513
7520
|
return {
|
|
7514
7521
|
type: "PlutusV3",
|
|
7515
|
-
script:
|
|
7522
|
+
script: applyParamsToScript10(_interestCollectionValidator.cborHex, [
|
|
7516
7523
|
castInterestCollectionParams({
|
|
7517
7524
|
versionRecordNft: fromSystemParamsAssetLucid(params.versionRecordNft),
|
|
7518
7525
|
multisigUtxoNft: fromSystemParamsAssetLucid(params.multisigUtxoNft),
|
|
@@ -7590,7 +7597,7 @@ function castVersionRecordTokenParams(params) {
|
|
|
7590
7597
|
|
|
7591
7598
|
// src/contracts/version-registry/scripts.ts
|
|
7592
7599
|
import {
|
|
7593
|
-
applyParamsToScript as
|
|
7600
|
+
applyParamsToScript as applyParamsToScript11
|
|
7594
7601
|
} from "@lucid-evolution/lucid";
|
|
7595
7602
|
|
|
7596
7603
|
// src/validators/version-record-policy.ts
|
|
@@ -7611,7 +7618,7 @@ var _versionRegistryValidator = {
|
|
|
7611
7618
|
function mkVersionRecordTokenPolicy(params) {
|
|
7612
7619
|
return {
|
|
7613
7620
|
type: "PlutusV3",
|
|
7614
|
-
script:
|
|
7621
|
+
script: applyParamsToScript11(_versionRecordTokenPolicy.cborHex, [
|
|
7615
7622
|
castVersionRecordTokenParams(params)
|
|
7616
7623
|
])
|
|
7617
7624
|
};
|
|
@@ -7624,7 +7631,7 @@ var mkVersionRegistryValidator = () => {
|
|
|
7624
7631
|
};
|
|
7625
7632
|
|
|
7626
7633
|
// src/contracts/treasury/scripts.ts
|
|
7627
|
-
import { applyParamsToScript as
|
|
7634
|
+
import { applyParamsToScript as applyParamsToScript12 } from "@lucid-evolution/lucid";
|
|
7628
7635
|
|
|
7629
7636
|
// src/validators/treasury-validator.ts
|
|
7630
7637
|
var _treasuryValidator = {
|
|
@@ -7649,7 +7656,7 @@ function castTreasuryParams(params) {
|
|
|
7649
7656
|
var mkTreasuryValidatorFromSP = (params) => {
|
|
7650
7657
|
return {
|
|
7651
7658
|
type: "PlutusV3",
|
|
7652
|
-
script:
|
|
7659
|
+
script: applyParamsToScript12(_treasuryValidator.cborHex, [
|
|
7653
7660
|
castTreasuryParams({
|
|
7654
7661
|
upgradeToken: fromSystemParamsAssetLucid(params.upgradeToken),
|
|
7655
7662
|
versionRecordToken: fromSystemParamsAssetLucid(
|
|
@@ -7723,7 +7730,7 @@ async function findAllTreasuryUtxosWithNonAdaAsset(lucid, sysParams, includeDaoT
|
|
|
7723
7730
|
|
|
7724
7731
|
// src/contracts/collector/scripts.ts
|
|
7725
7732
|
import {
|
|
7726
|
-
applyParamsToScript as
|
|
7733
|
+
applyParamsToScript as applyParamsToScript13,
|
|
7727
7734
|
Constr as Constr2,
|
|
7728
7735
|
fromText as fromText7
|
|
7729
7736
|
} from "@lucid-evolution/lucid";
|
|
@@ -7739,7 +7746,7 @@ var _collectorValidator = {
|
|
|
7739
7746
|
var mkCollectorValidatorFromSP = (params) => {
|
|
7740
7747
|
return {
|
|
7741
7748
|
type: "PlutusV3",
|
|
7742
|
-
script:
|
|
7749
|
+
script: applyParamsToScript13(_collectorValidator.cborHex, [
|
|
7743
7750
|
new Constr2(0, [
|
|
7744
7751
|
new Constr2(0, [
|
|
7745
7752
|
params.stakingManagerNFT[0].unCurrencySymbol,
|
|
@@ -7782,7 +7789,7 @@ function castExecuteParams(params) {
|
|
|
7782
7789
|
|
|
7783
7790
|
// src/contracts/execute/scripts.ts
|
|
7784
7791
|
import {
|
|
7785
|
-
applyParamsToScript as
|
|
7792
|
+
applyParamsToScript as applyParamsToScript14,
|
|
7786
7793
|
applySingleCborEncoding
|
|
7787
7794
|
} from "@lucid-evolution/lucid";
|
|
7788
7795
|
|
|
@@ -7798,7 +7805,7 @@ var mkExecuteValidator = (params) => {
|
|
|
7798
7805
|
return {
|
|
7799
7806
|
type: "PlutusV3",
|
|
7800
7807
|
script: applySingleCborEncoding(
|
|
7801
|
-
|
|
7808
|
+
applyParamsToScript14(_executeValidator.cborHex, [
|
|
7802
7809
|
castExecuteParams(params)
|
|
7803
7810
|
])
|
|
7804
7811
|
)
|
|
@@ -7808,7 +7815,7 @@ var mkExecuteValidatorFromSP = (params) => {
|
|
|
7808
7815
|
return {
|
|
7809
7816
|
type: "PlutusV3",
|
|
7810
7817
|
script: applySingleCborEncoding(
|
|
7811
|
-
|
|
7818
|
+
applyParamsToScript14(_executeValidator.cborHex, [
|
|
7812
7819
|
castExecuteParams({
|
|
7813
7820
|
govNFT: fromSystemParamsAssetLucid(params.govNFT),
|
|
7814
7821
|
upgradeToken: fromSystemParamsAssetLucid(params.upgradeToken),
|
|
@@ -9336,7 +9343,7 @@ async function claimRob(lucid, robOutRef, sysParams) {
|
|
|
9336
9343
|
}
|
|
9337
9344
|
|
|
9338
9345
|
// src/contracts/rob/scripts.ts
|
|
9339
|
-
import { applyParamsToScript as
|
|
9346
|
+
import { applyParamsToScript as applyParamsToScript15 } from "@lucid-evolution/lucid";
|
|
9340
9347
|
|
|
9341
9348
|
// src/validators/rob-validator.ts
|
|
9342
9349
|
var _robValidator = {
|
|
@@ -9349,13 +9356,13 @@ var _robValidator = {
|
|
|
9349
9356
|
var mkRobValidator = (params) => {
|
|
9350
9357
|
return {
|
|
9351
9358
|
type: "PlutusV3",
|
|
9352
|
-
script:
|
|
9359
|
+
script: applyParamsToScript15(_robValidator.cborHex, [castRobParams(params)])
|
|
9353
9360
|
};
|
|
9354
9361
|
};
|
|
9355
9362
|
var mkRobValidatorFromSP = (params) => {
|
|
9356
9363
|
return {
|
|
9357
9364
|
type: "PlutusV3",
|
|
9358
|
-
script:
|
|
9365
|
+
script: applyParamsToScript15(_robValidator.cborHex, [
|
|
9359
9366
|
castRobParams({
|
|
9360
9367
|
versionRecordToken: fromSystemParamsAssetLucid(
|
|
9361
9368
|
params.versionRecordToken
|
|
@@ -9817,7 +9824,7 @@ import {
|
|
|
9817
9824
|
|
|
9818
9825
|
// src/contracts/price-oracle/scripts.ts
|
|
9819
9826
|
import {
|
|
9820
|
-
applyParamsToScript as
|
|
9827
|
+
applyParamsToScript as applyParamsToScript16
|
|
9821
9828
|
} from "@lucid-evolution/lucid";
|
|
9822
9829
|
|
|
9823
9830
|
// src/validators/price-oracle-validator.ts
|
|
@@ -9831,7 +9838,7 @@ var _priceOracleValidator = {
|
|
|
9831
9838
|
function mkPriceOracleValidator(params) {
|
|
9832
9839
|
return {
|
|
9833
9840
|
type: "PlutusV3",
|
|
9834
|
-
script:
|
|
9841
|
+
script: applyParamsToScript16(_priceOracleValidator.cborHex, [
|
|
9835
9842
|
castPriceOracleParams(params)
|
|
9836
9843
|
])
|
|
9837
9844
|
};
|
|
@@ -9940,7 +9947,7 @@ import {
|
|
|
9940
9947
|
|
|
9941
9948
|
// src/scripts/auth-token-policy.ts
|
|
9942
9949
|
import {
|
|
9943
|
-
applyParamsToScript as
|
|
9950
|
+
applyParamsToScript as applyParamsToScript17,
|
|
9944
9951
|
Constr as Constr3,
|
|
9945
9952
|
toHex as toHex15
|
|
9946
9953
|
} from "@lucid-evolution/lucid";
|
|
@@ -9951,7 +9958,7 @@ var authPolicyData = {
|
|
|
9951
9958
|
function mkAuthTokenPolicy(ac, tn) {
|
|
9952
9959
|
return {
|
|
9953
9960
|
type: authPolicyData.type,
|
|
9954
|
-
script:
|
|
9961
|
+
script: applyParamsToScript17(authPolicyData.cborHex, [
|
|
9955
9962
|
new Constr3(0, [toHex15(ac.currencySymbol), toHex15(ac.tokenName)]),
|
|
9956
9963
|
tn
|
|
9957
9964
|
])
|
|
@@ -9959,7 +9966,7 @@ function mkAuthTokenPolicy(ac, tn) {
|
|
|
9959
9966
|
}
|
|
9960
9967
|
|
|
9961
9968
|
// src/contracts/iasset/scripts.ts
|
|
9962
|
-
import { applyParamsToScript as
|
|
9969
|
+
import { applyParamsToScript as applyParamsToScript18 } from "@lucid-evolution/lucid";
|
|
9963
9970
|
|
|
9964
9971
|
// src/validators/iasset-validator.ts
|
|
9965
9972
|
var _iassetValidator = {
|
|
@@ -9978,7 +9985,7 @@ var IAssetScriptParams = IAssetScriptParamsSchema;
|
|
|
9978
9985
|
var mkIAssetValidatorFromSP = (params) => {
|
|
9979
9986
|
return {
|
|
9980
9987
|
type: "PlutusV3",
|
|
9981
|
-
script:
|
|
9988
|
+
script: applyParamsToScript18(_iassetValidator.cborHex, [
|
|
9982
9989
|
Data48.castTo(
|
|
9983
9990
|
{
|
|
9984
9991
|
upgradeToken: fromSystemParamsAssetLucid(params.upgradeToken),
|
|
@@ -10410,7 +10417,7 @@ import {
|
|
|
10410
10417
|
|
|
10411
10418
|
// src/scripts/iasset-policy.ts
|
|
10412
10419
|
import {
|
|
10413
|
-
applyParamsToScript as
|
|
10420
|
+
applyParamsToScript as applyParamsToScript19,
|
|
10414
10421
|
Constr as Constr4,
|
|
10415
10422
|
toHex as toHex16
|
|
10416
10423
|
} from "@lucid-evolution/lucid";
|
|
@@ -10421,14 +10428,14 @@ var iassetPolicyData = {
|
|
|
10421
10428
|
function mkIAssetTokenPolicy(ac) {
|
|
10422
10429
|
return {
|
|
10423
10430
|
type: iassetPolicyData.type,
|
|
10424
|
-
script:
|
|
10431
|
+
script: applyParamsToScript19(iassetPolicyData.cborHex, [
|
|
10425
10432
|
new Constr4(0, [toHex16(ac.currencySymbol), toHex16(ac.tokenName)])
|
|
10426
10433
|
])
|
|
10427
10434
|
};
|
|
10428
10435
|
}
|
|
10429
10436
|
|
|
10430
10437
|
// src/contracts/stableswap/scripts.ts
|
|
10431
|
-
import { applyParamsToScript as
|
|
10438
|
+
import { applyParamsToScript as applyParamsToScript20 } from "@lucid-evolution/lucid";
|
|
10432
10439
|
|
|
10433
10440
|
// src/contracts/stableswap/types.ts
|
|
10434
10441
|
import { Data as Data50 } from "@lucid-evolution/lucid";
|
|
@@ -10455,7 +10462,7 @@ var _stableswapValidator = {
|
|
|
10455
10462
|
var mkStableswapValidator = (params) => {
|
|
10456
10463
|
return {
|
|
10457
10464
|
type: "PlutusV3",
|
|
10458
|
-
script:
|
|
10465
|
+
script: applyParamsToScript20(_stableswapValidator.cborHex, [
|
|
10459
10466
|
castStableswapParams(params)
|
|
10460
10467
|
])
|
|
10461
10468
|
};
|
|
@@ -10463,7 +10470,7 @@ var mkStableswapValidator = (params) => {
|
|
|
10463
10470
|
var mkStableswapValidatorFromSP = (params) => {
|
|
10464
10471
|
return {
|
|
10465
10472
|
type: "PlutusV3",
|
|
10466
|
-
script:
|
|
10473
|
+
script: applyParamsToScript20(_stableswapValidator.cborHex, [
|
|
10467
10474
|
castStableswapParams({
|
|
10468
10475
|
iassetSymbol: params.iassetSymbol.unCurrencySymbol,
|
|
10469
10476
|
cdpToken: fromSystemParamsAssetLucid(params.cdpToken),
|
|
@@ -10485,11 +10492,11 @@ var _pythFeedValidator = {
|
|
|
10485
10492
|
};
|
|
10486
10493
|
|
|
10487
10494
|
// src/contracts/pyth-feed/scripts.ts
|
|
10488
|
-
import { applyParamsToScript as
|
|
10495
|
+
import { applyParamsToScript as applyParamsToScript21 } from "@evolution-sdk/evolution/uplc";
|
|
10489
10496
|
var mkPythFeedValidator = (params) => {
|
|
10490
10497
|
return {
|
|
10491
10498
|
type: "PlutusV3",
|
|
10492
|
-
script:
|
|
10499
|
+
script: applyParamsToScript21(_pythFeedValidator.cborHex, [
|
|
10493
10500
|
serialisePythFeedParams(params)
|
|
10494
10501
|
])
|
|
10495
10502
|
};
|