@meshsdk/contract 1.9.0-beta.13 → 1.9.0-beta.15
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 +9 -1
- package/dist/index.js +9 -1
- package/package.json +3 -3
package/dist/index.cjs
CHANGED
|
@@ -31007,6 +31007,7 @@ __export(util_exports, {
|
|
|
31007
31007
|
isPlutusBoundedBytes: () => isPlutusBoundedBytes,
|
|
31008
31008
|
isPlutusList: () => isPlutusList,
|
|
31009
31009
|
isPlutusMap: () => isPlutusMap,
|
|
31010
|
+
isScriptAddress: () => isScriptAddress,
|
|
31010
31011
|
resolveInputValue: () => resolveInputValue,
|
|
31011
31012
|
tryConvertPlutusMapToUtf8Record: () => tryConvertPlutusMapToUtf8Record
|
|
31012
31013
|
});
|
|
@@ -44739,6 +44740,14 @@ var addressesShareAnyKey = (address1, address2) => {
|
|
|
44739
44740
|
return isPaymentIdPresentAndEquals(ids1.paymentId, ids2.paymentId) || isStakeIdPresentAndEquals(ids1.stakeId, ids2.stakeId);
|
|
44740
44741
|
};
|
|
44741
44742
|
|
|
44743
|
+
// ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/util/isScriptAddress.js
|
|
44744
|
+
var isScriptAddress = (address) => {
|
|
44745
|
+
const baseAddress = Address.fromBech32(address).asBase();
|
|
44746
|
+
const paymentCredential = baseAddress?.getPaymentCredential();
|
|
44747
|
+
const stakeCredential = baseAddress?.getStakeCredential();
|
|
44748
|
+
return paymentCredential?.type === CredentialType.ScriptHash && stakeCredential?.type === CredentialType.ScriptHash;
|
|
44749
|
+
};
|
|
44750
|
+
|
|
44742
44751
|
// ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/index.js
|
|
44743
44752
|
var Cardano_exports = {};
|
|
44744
44753
|
__export(Cardano_exports, {
|
|
@@ -48639,7 +48648,6 @@ var parseInlineDatum = (utxo) => {
|
|
|
48639
48648
|
const datumCbor = utxo.inline_datum || "";
|
|
48640
48649
|
return datumCborToJson(datumCbor);
|
|
48641
48650
|
};
|
|
48642
|
-
var CBOR_EMPTY_LIST = new Uint8Array([128]);
|
|
48643
48651
|
var CBOR_EMPTY_MAP = new Uint8Array([160]);
|
|
48644
48652
|
var supportedPlutusCoreVersions = [
|
|
48645
48653
|
{
|
package/dist/index.js
CHANGED
|
@@ -31004,6 +31004,7 @@ __export(util_exports, {
|
|
|
31004
31004
|
isPlutusBoundedBytes: () => isPlutusBoundedBytes,
|
|
31005
31005
|
isPlutusList: () => isPlutusList,
|
|
31006
31006
|
isPlutusMap: () => isPlutusMap,
|
|
31007
|
+
isScriptAddress: () => isScriptAddress,
|
|
31007
31008
|
resolveInputValue: () => resolveInputValue,
|
|
31008
31009
|
tryConvertPlutusMapToUtf8Record: () => tryConvertPlutusMapToUtf8Record
|
|
31009
31010
|
});
|
|
@@ -44736,6 +44737,14 @@ var addressesShareAnyKey = (address1, address2) => {
|
|
|
44736
44737
|
return isPaymentIdPresentAndEquals(ids1.paymentId, ids2.paymentId) || isStakeIdPresentAndEquals(ids1.stakeId, ids2.stakeId);
|
|
44737
44738
|
};
|
|
44738
44739
|
|
|
44740
|
+
// ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/util/isScriptAddress.js
|
|
44741
|
+
var isScriptAddress = (address) => {
|
|
44742
|
+
const baseAddress = Address.fromBech32(address).asBase();
|
|
44743
|
+
const paymentCredential = baseAddress?.getPaymentCredential();
|
|
44744
|
+
const stakeCredential = baseAddress?.getStakeCredential();
|
|
44745
|
+
return paymentCredential?.type === CredentialType.ScriptHash && stakeCredential?.type === CredentialType.ScriptHash;
|
|
44746
|
+
};
|
|
44747
|
+
|
|
44739
44748
|
// ../../node_modules/@cardano-sdk/core/dist/esm/Cardano/index.js
|
|
44740
44749
|
var Cardano_exports = {};
|
|
44741
44750
|
__export(Cardano_exports, {
|
|
@@ -48653,7 +48662,6 @@ var parseInlineDatum = (utxo) => {
|
|
|
48653
48662
|
const datumCbor = utxo.inline_datum || "";
|
|
48654
48663
|
return datumCborToJson(datumCbor);
|
|
48655
48664
|
};
|
|
48656
|
-
var CBOR_EMPTY_LIST = new Uint8Array([128]);
|
|
48657
48665
|
var CBOR_EMPTY_MAP = new Uint8Array([160]);
|
|
48658
48666
|
var supportedPlutusCoreVersions = [
|
|
48659
48667
|
{
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meshsdk/contract",
|
|
3
|
-
"version": "1.9.0-beta.
|
|
3
|
+
"version": "1.9.0-beta.15",
|
|
4
4
|
"description": "List of open-source smart contracts, complete with documentation, live demos, and end-to-end source code. https://meshjs.dev/smart-contracts",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"browser": "./dist/index.js",
|
|
@@ -34,8 +34,8 @@
|
|
|
34
34
|
"typescript": "^5.3.3"
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
|
-
"@meshsdk/common": "1.9.0-beta.
|
|
38
|
-
"@meshsdk/core": "1.9.0-beta.
|
|
37
|
+
"@meshsdk/common": "1.9.0-beta.15",
|
|
38
|
+
"@meshsdk/core": "1.9.0-beta.15"
|
|
39
39
|
},
|
|
40
40
|
"prettier": "@meshsdk/configs/prettier",
|
|
41
41
|
"publishConfig": {
|