@meshsdk/core 1.2.1 → 1.3.0
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/common/helpers/generateNonce.d.ts +1 -0
- package/dist/common/helpers/index.d.ts +1 -0
- package/dist/common/helpers/readPlutusData.d.ts +2 -0
- package/dist/common/utils/builder.d.ts +3 -2
- package/dist/common/utils/converter.d.ts +2 -1
- package/dist/common/utils/deserializer.d.ts +2 -0
- package/dist/common/utils/parser.d.ts +4 -0
- package/dist/core/CIP8.d.ts +3 -1
- package/dist/core/CSL.d.ts +3 -0
- package/dist/core.cjs +1 -1
- package/dist/core.js +777 -710
- package/dist/index.d.ts +2 -0
- package/dist/transaction/transaction.service.d.ts +6 -5
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
export * from './common/contracts';
|
|
2
2
|
export * from './common/types';
|
|
3
|
+
export { generateNonce } from './common/helpers';
|
|
3
4
|
export * from './common/utils/resolver';
|
|
4
5
|
export * from './core/CIP2';
|
|
6
|
+
export { checkSignature } from './core/CIP8';
|
|
5
7
|
export * from './providers';
|
|
6
8
|
export * from './scripts';
|
|
7
9
|
export * from './transaction';
|
|
@@ -7,23 +7,24 @@ export declare class Transaction {
|
|
|
7
7
|
private _totalMints;
|
|
8
8
|
private readonly _era?;
|
|
9
9
|
private readonly _initiator?;
|
|
10
|
+
private readonly _mintBuilder;
|
|
10
11
|
private readonly _protocolParameters;
|
|
11
12
|
private readonly _txBuilder;
|
|
12
13
|
private readonly _txCertificates;
|
|
13
14
|
private readonly _txInputsBuilder;
|
|
14
15
|
private readonly _txWithdrawals;
|
|
15
16
|
constructor(options?: Partial<CreateTxOptions>);
|
|
16
|
-
static maskMetadata(cborTx: string): string;
|
|
17
|
+
static maskMetadata(cborTx: string, era?: Era): string;
|
|
17
18
|
static readMetadata(cborTx: string): string;
|
|
18
|
-
static writeMetadata(cborTx: string, cborTxMetadata: string): string;
|
|
19
|
+
static writeMetadata(cborTx: string, cborTxMetadata: string, era?: Era): string;
|
|
19
20
|
get size(): number;
|
|
20
21
|
build(): Promise<string>;
|
|
21
|
-
burnAsset(forgeScript: string, asset: Asset): Transaction;
|
|
22
|
+
burnAsset(forgeScript: string | PlutusScript | UTxO, asset: Asset, redeemer?: Partial<Action>): Transaction;
|
|
22
23
|
delegateStake(rewardAddress: string, poolId: string): Transaction;
|
|
23
24
|
deregisterStake(rewardAddress: string): Transaction;
|
|
24
|
-
mintAsset(forgeScript: string, mint: Mint): Transaction;
|
|
25
|
+
mintAsset(forgeScript: string | PlutusScript | UTxO, mint: Mint, redeemer?: Partial<Action>): Transaction;
|
|
25
26
|
redeemValue(options: {
|
|
26
|
-
value: UTxO
|
|
27
|
+
value: UTxO;
|
|
27
28
|
script: PlutusScript | UTxO;
|
|
28
29
|
datum: Data | UTxO;
|
|
29
30
|
redeemer?: Action;
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"description": "Rapidly build Web3 apps on the Cardano Blockchain.",
|
|
4
4
|
"homepage": "https://meshjs.dev",
|
|
5
5
|
"author": "MeshJS",
|
|
6
|
-
"version": "1.
|
|
6
|
+
"version": "1.3.0",
|
|
7
7
|
"license": "Apache-2.0",
|
|
8
8
|
"type": "module",
|
|
9
9
|
"repository": {
|
|
@@ -66,8 +66,8 @@
|
|
|
66
66
|
"dependencies": {
|
|
67
67
|
"@emurgo/cardano-message-signing-browser": "1.0.1",
|
|
68
68
|
"@emurgo/cardano-message-signing-nodejs": "1.0.1",
|
|
69
|
-
"@emurgo/cardano-serialization-lib-browser": "11.
|
|
70
|
-
"@emurgo/cardano-serialization-lib-nodejs": "11.
|
|
69
|
+
"@emurgo/cardano-serialization-lib-browser": "11.2.1",
|
|
70
|
+
"@emurgo/cardano-serialization-lib-nodejs": "11.2.1",
|
|
71
71
|
"@emurgo/cip14-js": "3.0.1",
|
|
72
72
|
"axios": "0.27.2",
|
|
73
73
|
"bip39": "3.0.4",
|