@meshsdk/common 1.6.13 → 1.7.1
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.cjs +1 -1
- package/dist/index.d.cts +3 -8
- package/dist/index.d.ts +3 -8
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1220,7 +1220,7 @@ var MeshValue = class _MeshValue {
|
|
|
1220
1220
|
* @returns boolean
|
|
1221
1221
|
*/
|
|
1222
1222
|
leq = (other) => {
|
|
1223
|
-
return Object.keys(
|
|
1223
|
+
return Object.keys(this.value).every((key) => this.leqUnit(key, other));
|
|
1224
1224
|
};
|
|
1225
1225
|
/**
|
|
1226
1226
|
* Check if the specific unit of value is less than or equal to that unit of another value
|
package/dist/index.d.cts
CHANGED
|
@@ -324,6 +324,7 @@ type SimpleScriptSourceInfo = {
|
|
|
324
324
|
txHash: string;
|
|
325
325
|
txIndex: number;
|
|
326
326
|
simpleScriptHash?: string;
|
|
327
|
+
scriptSize?: string;
|
|
327
328
|
};
|
|
328
329
|
|
|
329
330
|
type Certificate = {
|
|
@@ -430,7 +431,7 @@ type Output = {
|
|
|
430
431
|
address: string;
|
|
431
432
|
amount: Asset[];
|
|
432
433
|
datum?: {
|
|
433
|
-
type: "Hash" | "Inline";
|
|
434
|
+
type: "Hash" | "Inline" | "Embedded";
|
|
434
435
|
data: BuilderData;
|
|
435
436
|
};
|
|
436
437
|
referenceScript?: PlutusScript;
|
|
@@ -457,13 +458,7 @@ type SimpleScriptTxIn = {
|
|
|
457
458
|
simpleScriptTxIn: SimpleScriptTxInParameter;
|
|
458
459
|
};
|
|
459
460
|
type SimpleScriptTxInParameter = {
|
|
460
|
-
scriptSource?:
|
|
461
|
-
type: "Provided";
|
|
462
|
-
script: string;
|
|
463
|
-
} | {
|
|
464
|
-
type: "Inline";
|
|
465
|
-
txInInfo: SimpleScriptSourceInfo;
|
|
466
|
-
};
|
|
461
|
+
scriptSource?: SimpleScriptSourceInfo;
|
|
467
462
|
};
|
|
468
463
|
type ScriptTxInParameter = {
|
|
469
464
|
scriptSource?: ScriptSource;
|
package/dist/index.d.ts
CHANGED
|
@@ -324,6 +324,7 @@ type SimpleScriptSourceInfo = {
|
|
|
324
324
|
txHash: string;
|
|
325
325
|
txIndex: number;
|
|
326
326
|
simpleScriptHash?: string;
|
|
327
|
+
scriptSize?: string;
|
|
327
328
|
};
|
|
328
329
|
|
|
329
330
|
type Certificate = {
|
|
@@ -430,7 +431,7 @@ type Output = {
|
|
|
430
431
|
address: string;
|
|
431
432
|
amount: Asset[];
|
|
432
433
|
datum?: {
|
|
433
|
-
type: "Hash" | "Inline";
|
|
434
|
+
type: "Hash" | "Inline" | "Embedded";
|
|
434
435
|
data: BuilderData;
|
|
435
436
|
};
|
|
436
437
|
referenceScript?: PlutusScript;
|
|
@@ -457,13 +458,7 @@ type SimpleScriptTxIn = {
|
|
|
457
458
|
simpleScriptTxIn: SimpleScriptTxInParameter;
|
|
458
459
|
};
|
|
459
460
|
type SimpleScriptTxInParameter = {
|
|
460
|
-
scriptSource?:
|
|
461
|
-
type: "Provided";
|
|
462
|
-
script: string;
|
|
463
|
-
} | {
|
|
464
|
-
type: "Inline";
|
|
465
|
-
txInInfo: SimpleScriptSourceInfo;
|
|
466
|
-
};
|
|
461
|
+
scriptSource?: SimpleScriptSourceInfo;
|
|
467
462
|
};
|
|
468
463
|
type ScriptTxInParameter = {
|
|
469
464
|
scriptSource?: ScriptSource;
|
package/dist/index.js
CHANGED
|
@@ -1091,7 +1091,7 @@ var MeshValue = class _MeshValue {
|
|
|
1091
1091
|
* @returns boolean
|
|
1092
1092
|
*/
|
|
1093
1093
|
leq = (other) => {
|
|
1094
|
-
return Object.keys(
|
|
1094
|
+
return Object.keys(this.value).every((key) => this.leqUnit(key, other));
|
|
1095
1095
|
};
|
|
1096
1096
|
/**
|
|
1097
1097
|
* Check if the specific unit of value is less than or equal to that unit of another value
|