@meshsdk/core 1.9.0-beta.22 → 1.9.0-beta.23
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 +2 -8
- package/dist/index.d.cts +4 -5
- package/dist/index.d.ts +4 -5
- package/dist/index.js +2 -8
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -242,14 +242,12 @@ var WithdrawalBlueprint = class {
|
|
|
242
242
|
cbor;
|
|
243
243
|
hash;
|
|
244
244
|
address;
|
|
245
|
-
|
|
246
|
-
constructor(version, networkId, isStakeScriptCredential = false) {
|
|
245
|
+
constructor(version, networkId) {
|
|
247
246
|
this.version = version;
|
|
248
247
|
this.networkId = networkId;
|
|
249
248
|
this.cbor = "";
|
|
250
249
|
this.hash = "";
|
|
251
250
|
this.address = "";
|
|
252
|
-
this.isStakeScriptCredential = isStakeScriptCredential;
|
|
253
251
|
}
|
|
254
252
|
/**
|
|
255
253
|
* Initialize the withdrawal blueprint, with the same parameters to `applyParamsToScript`
|
|
@@ -261,11 +259,7 @@ var WithdrawalBlueprint = class {
|
|
|
261
259
|
paramScript(compiledCode, params, paramsType = "Mesh") {
|
|
262
260
|
const cbor = applyParamsToScript2(compiledCode, params, paramsType);
|
|
263
261
|
const hash = resolveScriptHash(cbor, this.version);
|
|
264
|
-
this.address = serializeRewardAddress(
|
|
265
|
-
hash,
|
|
266
|
-
this.isStakeScriptCredential,
|
|
267
|
-
this.networkId
|
|
268
|
-
);
|
|
262
|
+
this.address = serializeRewardAddress(hash, true, this.networkId);
|
|
269
263
|
this.hash = hash;
|
|
270
264
|
this.cbor = cbor;
|
|
271
265
|
return this;
|
package/dist/index.d.cts
CHANGED
|
@@ -195,7 +195,7 @@ declare class MintingBlueprint implements IMintingBlueprint {
|
|
|
195
195
|
* @param paramsType The type of the parameters, default to be Mesh's Data type. It could also be in JSON and raw CBOR.
|
|
196
196
|
* @returns The minting blueprint object
|
|
197
197
|
*/
|
|
198
|
-
paramScript(compiledCode: string, params:
|
|
198
|
+
paramScript(compiledCode: string, params: object[] | Data[], paramsType?: PlutusDataType): this;
|
|
199
199
|
/**
|
|
200
200
|
* Initialize the minting blueprint, with no parameters
|
|
201
201
|
* @param compiledCode The raw script CborHex from blueprint.
|
|
@@ -234,7 +234,7 @@ declare class SpendingBlueprint implements ISpendingBlueprint {
|
|
|
234
234
|
* @param paramsType The type of the parameters, default to be Mesh's Data type. It could also be in JSON and raw CBOR.
|
|
235
235
|
* @returns
|
|
236
236
|
*/
|
|
237
|
-
paramScript(compiledCode: string, params:
|
|
237
|
+
paramScript(compiledCode: string, params: object[] | Data[], paramsType?: PlutusDataType): this;
|
|
238
238
|
/**
|
|
239
239
|
* Initialize the minting blueprint, with no parameters
|
|
240
240
|
* @param compiledCode The raw script CborHex from blueprint.
|
|
@@ -263,8 +263,7 @@ declare class WithdrawalBlueprint implements IWithdrawalBlueprint {
|
|
|
263
263
|
cbor: string;
|
|
264
264
|
hash: string;
|
|
265
265
|
address: string;
|
|
266
|
-
|
|
267
|
-
constructor(version: LanguageVersion, networkId: number, isStakeScriptCredential?: boolean);
|
|
266
|
+
constructor(version: LanguageVersion, networkId: number);
|
|
268
267
|
/**
|
|
269
268
|
* Initialize the withdrawal blueprint, with the same parameters to `applyParamsToScript`
|
|
270
269
|
* @param compiledCode The raw script CborHex from blueprint.
|
|
@@ -272,7 +271,7 @@ declare class WithdrawalBlueprint implements IWithdrawalBlueprint {
|
|
|
272
271
|
* @param paramsType The type of the parameters, default to be Mesh's Data type. It could also be in JSON and raw CBOR.
|
|
273
272
|
* @returns The withdrawal blueprint object
|
|
274
273
|
*/
|
|
275
|
-
paramScript(compiledCode: string, params:
|
|
274
|
+
paramScript(compiledCode: string, params: object[] | Data[], paramsType?: PlutusDataType): this;
|
|
276
275
|
/**
|
|
277
276
|
* Initialize the withdrawal blueprint, with no parameters
|
|
278
277
|
* @param compiledCode The raw script CborHex from blueprint.
|
package/dist/index.d.ts
CHANGED
|
@@ -195,7 +195,7 @@ declare class MintingBlueprint implements IMintingBlueprint {
|
|
|
195
195
|
* @param paramsType The type of the parameters, default to be Mesh's Data type. It could also be in JSON and raw CBOR.
|
|
196
196
|
* @returns The minting blueprint object
|
|
197
197
|
*/
|
|
198
|
-
paramScript(compiledCode: string, params:
|
|
198
|
+
paramScript(compiledCode: string, params: object[] | Data[], paramsType?: PlutusDataType): this;
|
|
199
199
|
/**
|
|
200
200
|
* Initialize the minting blueprint, with no parameters
|
|
201
201
|
* @param compiledCode The raw script CborHex from blueprint.
|
|
@@ -234,7 +234,7 @@ declare class SpendingBlueprint implements ISpendingBlueprint {
|
|
|
234
234
|
* @param paramsType The type of the parameters, default to be Mesh's Data type. It could also be in JSON and raw CBOR.
|
|
235
235
|
* @returns
|
|
236
236
|
*/
|
|
237
|
-
paramScript(compiledCode: string, params:
|
|
237
|
+
paramScript(compiledCode: string, params: object[] | Data[], paramsType?: PlutusDataType): this;
|
|
238
238
|
/**
|
|
239
239
|
* Initialize the minting blueprint, with no parameters
|
|
240
240
|
* @param compiledCode The raw script CborHex from blueprint.
|
|
@@ -263,8 +263,7 @@ declare class WithdrawalBlueprint implements IWithdrawalBlueprint {
|
|
|
263
263
|
cbor: string;
|
|
264
264
|
hash: string;
|
|
265
265
|
address: string;
|
|
266
|
-
|
|
267
|
-
constructor(version: LanguageVersion, networkId: number, isStakeScriptCredential?: boolean);
|
|
266
|
+
constructor(version: LanguageVersion, networkId: number);
|
|
268
267
|
/**
|
|
269
268
|
* Initialize the withdrawal blueprint, with the same parameters to `applyParamsToScript`
|
|
270
269
|
* @param compiledCode The raw script CborHex from blueprint.
|
|
@@ -272,7 +271,7 @@ declare class WithdrawalBlueprint implements IWithdrawalBlueprint {
|
|
|
272
271
|
* @param paramsType The type of the parameters, default to be Mesh's Data type. It could also be in JSON and raw CBOR.
|
|
273
272
|
* @returns The withdrawal blueprint object
|
|
274
273
|
*/
|
|
275
|
-
paramScript(compiledCode: string, params:
|
|
274
|
+
paramScript(compiledCode: string, params: object[] | Data[], paramsType?: PlutusDataType): this;
|
|
276
275
|
/**
|
|
277
276
|
* Initialize the withdrawal blueprint, with no parameters
|
|
278
277
|
* @param compiledCode The raw script CborHex from blueprint.
|
package/dist/index.js
CHANGED
|
@@ -172,14 +172,12 @@ var WithdrawalBlueprint = class {
|
|
|
172
172
|
cbor;
|
|
173
173
|
hash;
|
|
174
174
|
address;
|
|
175
|
-
|
|
176
|
-
constructor(version, networkId, isStakeScriptCredential = false) {
|
|
175
|
+
constructor(version, networkId) {
|
|
177
176
|
this.version = version;
|
|
178
177
|
this.networkId = networkId;
|
|
179
178
|
this.cbor = "";
|
|
180
179
|
this.hash = "";
|
|
181
180
|
this.address = "";
|
|
182
|
-
this.isStakeScriptCredential = isStakeScriptCredential;
|
|
183
181
|
}
|
|
184
182
|
/**
|
|
185
183
|
* Initialize the withdrawal blueprint, with the same parameters to `applyParamsToScript`
|
|
@@ -191,11 +189,7 @@ var WithdrawalBlueprint = class {
|
|
|
191
189
|
paramScript(compiledCode, params, paramsType = "Mesh") {
|
|
192
190
|
const cbor = applyParamsToScript2(compiledCode, params, paramsType);
|
|
193
191
|
const hash = resolveScriptHash(cbor, this.version);
|
|
194
|
-
this.address = serializeRewardAddress(
|
|
195
|
-
hash,
|
|
196
|
-
this.isStakeScriptCredential,
|
|
197
|
-
this.networkId
|
|
198
|
-
);
|
|
192
|
+
this.address = serializeRewardAddress(hash, true, this.networkId);
|
|
199
193
|
this.hash = hash;
|
|
200
194
|
this.cbor = cbor;
|
|
201
195
|
return this;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meshsdk/core",
|
|
3
|
-
"version": "1.9.0-beta.
|
|
3
|
+
"version": "1.9.0-beta.23",
|
|
4
4
|
"description": "Mesh SDK Core - https://meshjs.dev/",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"browser": "./dist/index.js",
|
|
@@ -33,12 +33,12 @@
|
|
|
33
33
|
"typescript": "^5.3.3"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@meshsdk/common": "1.9.0-beta.
|
|
37
|
-
"@meshsdk/core-cst": "1.9.0-beta.
|
|
38
|
-
"@meshsdk/provider": "1.9.0-beta.
|
|
39
|
-
"@meshsdk/react": "1.9.0-beta.
|
|
40
|
-
"@meshsdk/transaction": "1.9.0-beta.
|
|
41
|
-
"@meshsdk/wallet": "1.9.0-beta.
|
|
36
|
+
"@meshsdk/common": "1.9.0-beta.23",
|
|
37
|
+
"@meshsdk/core-cst": "1.9.0-beta.23",
|
|
38
|
+
"@meshsdk/provider": "1.9.0-beta.23",
|
|
39
|
+
"@meshsdk/react": "1.9.0-beta.23",
|
|
40
|
+
"@meshsdk/transaction": "1.9.0-beta.23",
|
|
41
|
+
"@meshsdk/wallet": "1.9.0-beta.23"
|
|
42
42
|
},
|
|
43
43
|
"prettier": "@meshsdk/configs/prettier",
|
|
44
44
|
"publishConfig": {
|