@meshsdk/core 1.5.20 → 1.5.22

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.
@@ -1,5 +1,5 @@
1
1
  import { IInitiator } from '@mesh/common/contracts';
2
- import type { Action, Asset, Data, Era, Mint, Protocol, PlutusScript, PoolParams, Recipient, Token, UTxO } from '@mesh/common/types';
2
+ import type { Action, Asset, Data, Era, Mint, Protocol, NativeScript, PlutusScript, PoolParams, Recipient, Token, UTxO } from '@mesh/common/types';
3
3
  export declare class Transaction {
4
4
  private _changeAddress?;
5
5
  private _txOutputs;
@@ -100,6 +100,13 @@ export declare class Transaction {
100
100
  * @returns {Transaction} The Transaction object.
101
101
  */
102
102
  setRequiredSigners(addresses: string[]): Transaction;
103
+ /**
104
+ * Sets the native script for the transaction.
105
+ * @param {NativeScript} script The native script to spend from.
106
+ * @param {UTxO} utxo The UTxO attached to the script.
107
+ * @returns {Transaction} The Transaction object.
108
+ */
109
+ setNativeScriptInput(script: NativeScript, utxo: UTxO): Transaction;
103
110
  /**
104
111
  * Sets the start slot for the transaction.
105
112
  *
@@ -2,21 +2,22 @@ import { csl } from '@mesh/core';
2
2
  import { IFetcher, IInitiator, ISigner, ISubmitter } from '@mesh/common/contracts';
3
3
  import type { Address, TransactionUnspentOutput } from '@mesh/core';
4
4
  import type { DataSignature } from '@mesh/common/types';
5
+ export declare type AppWalletKeyType = {
6
+ type: 'root';
7
+ bech32: string;
8
+ } | {
9
+ type: 'cli';
10
+ payment: string;
11
+ stake?: string;
12
+ } | {
13
+ type: 'mnemonic';
14
+ words: string[];
15
+ };
5
16
  export declare type CreateAppWalletOptions = {
6
17
  networkId: number;
7
18
  fetcher?: IFetcher;
8
19
  submitter?: ISubmitter;
9
- key: {
10
- type: 'root';
11
- bech32: string;
12
- } | {
13
- type: 'cli';
14
- payment: string;
15
- stake?: string;
16
- } | {
17
- type: 'mnemonic';
18
- words: string[];
19
- };
20
+ key: AppWalletKeyType;
20
21
  };
21
22
  export declare class AppWallet implements IInitiator, ISigner, ISubmitter {
22
23
  private readonly _fetcher?;
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.5.20",
6
+ "version": "1.5.22",
7
7
  "license": "Apache-2.0",
8
8
  "type": "module",
9
9
  "repository": {