@meshsdk/contract 1.9.0-beta.10 → 1.9.0-beta.101
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/README.md +40 -11
- package/dist/index.cjs +28739 -20320
- package/dist/index.d.cts +7 -13
- package/dist/index.d.ts +7 -13
- package/dist/index.js +28694 -20275
- package/package.json +4 -4
package/dist/index.d.cts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _meshsdk_common from '@meshsdk/common';
|
|
2
|
-
import {
|
|
2
|
+
import { ConStr1, PubKeyAddress, Value, ConStr0 as ConStr0$1, Integer as Integer$1, CurrencySymbol, TokenName, AssetMetadata, Asset as Asset$1, UTxO as UTxO$1, BuiltinByteString as BuiltinByteString$1 } from '@meshsdk/common';
|
|
3
3
|
import { MeshTxBuilder, IFetcher, IWallet, LanguageVersion, UTxO, ConStr0, BuiltinByteString, ScriptAddress, Integer, NativeScript, Asset } from '@meshsdk/core';
|
|
4
4
|
|
|
5
5
|
type MeshTxInitiatorInput = {
|
|
@@ -19,7 +19,7 @@ declare class MeshTxInitiator {
|
|
|
19
19
|
version: number;
|
|
20
20
|
languageVersion: LanguageVersion;
|
|
21
21
|
constructor({ mesh, fetcher, wallet, networkId, stakeCredential, version, }: MeshTxInitiatorInput);
|
|
22
|
-
getScriptAddress: (scriptCbor: string) =>
|
|
22
|
+
getScriptAddress: (scriptCbor: string) => any;
|
|
23
23
|
protected signSubmitReset: () => Promise<string | undefined>;
|
|
24
24
|
protected queryUtxos: (walletAddress: string) => Promise<UTxO[]>;
|
|
25
25
|
protected getWalletDappAddress: () => Promise<string | undefined>;
|
|
@@ -76,15 +76,15 @@ type TransferContent = {
|
|
|
76
76
|
* @example
|
|
77
77
|
* ```typescript
|
|
78
78
|
* const meshTxBuilder = new MeshTxBuilder({
|
|
79
|
-
* fetcher:
|
|
80
|
-
* submitter:
|
|
79
|
+
* fetcher: provider, // one of the Providers
|
|
80
|
+
* submitter: provider,
|
|
81
81
|
* verbose: true,
|
|
82
82
|
* });
|
|
83
83
|
*
|
|
84
84
|
* const contract = new MeshContentOwnershipContract(
|
|
85
85
|
* {
|
|
86
86
|
* mesh: meshTxBuilder,
|
|
87
|
-
* fetcher:
|
|
87
|
+
* fetcher: provider,
|
|
88
88
|
* wallet: wallet,
|
|
89
89
|
* networkId: 0,
|
|
90
90
|
* },
|
|
@@ -192,10 +192,7 @@ declare class MeshContentOwnershipContract extends MeshTxInitiator {
|
|
|
192
192
|
*/
|
|
193
193
|
mintOneTimeMintingPolicy: () => Promise<{
|
|
194
194
|
tx: string;
|
|
195
|
-
paramUtxo:
|
|
196
|
-
outputIndex: number;
|
|
197
|
-
txHash: string;
|
|
198
|
-
};
|
|
195
|
+
paramUtxo: _meshsdk_common.TxInput;
|
|
199
196
|
}>;
|
|
200
197
|
/**
|
|
201
198
|
* [Setup phase]
|
|
@@ -468,10 +465,7 @@ declare class MeshPlutusNFTContract extends MeshTxInitiator {
|
|
|
468
465
|
*/
|
|
469
466
|
setupOracle: (lovelacePrice: number) => Promise<{
|
|
470
467
|
tx: string;
|
|
471
|
-
paramUtxo:
|
|
472
|
-
outputIndex: number;
|
|
473
|
-
txHash: string;
|
|
474
|
-
};
|
|
468
|
+
paramUtxo: _meshsdk_common.TxInput;
|
|
475
469
|
}>;
|
|
476
470
|
/**
|
|
477
471
|
* Mint NFT token with an automatically incremented index, which increases by one for each newly minted NFT.
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as _meshsdk_common from '@meshsdk/common';
|
|
2
|
-
import {
|
|
2
|
+
import { ConStr1, PubKeyAddress, Value, ConStr0 as ConStr0$1, Integer as Integer$1, CurrencySymbol, TokenName, AssetMetadata, Asset as Asset$1, UTxO as UTxO$1, BuiltinByteString as BuiltinByteString$1 } from '@meshsdk/common';
|
|
3
3
|
import { MeshTxBuilder, IFetcher, IWallet, LanguageVersion, UTxO, ConStr0, BuiltinByteString, ScriptAddress, Integer, NativeScript, Asset } from '@meshsdk/core';
|
|
4
4
|
|
|
5
5
|
type MeshTxInitiatorInput = {
|
|
@@ -19,7 +19,7 @@ declare class MeshTxInitiator {
|
|
|
19
19
|
version: number;
|
|
20
20
|
languageVersion: LanguageVersion;
|
|
21
21
|
constructor({ mesh, fetcher, wallet, networkId, stakeCredential, version, }: MeshTxInitiatorInput);
|
|
22
|
-
getScriptAddress: (scriptCbor: string) =>
|
|
22
|
+
getScriptAddress: (scriptCbor: string) => any;
|
|
23
23
|
protected signSubmitReset: () => Promise<string | undefined>;
|
|
24
24
|
protected queryUtxos: (walletAddress: string) => Promise<UTxO[]>;
|
|
25
25
|
protected getWalletDappAddress: () => Promise<string | undefined>;
|
|
@@ -76,15 +76,15 @@ type TransferContent = {
|
|
|
76
76
|
* @example
|
|
77
77
|
* ```typescript
|
|
78
78
|
* const meshTxBuilder = new MeshTxBuilder({
|
|
79
|
-
* fetcher:
|
|
80
|
-
* submitter:
|
|
79
|
+
* fetcher: provider, // one of the Providers
|
|
80
|
+
* submitter: provider,
|
|
81
81
|
* verbose: true,
|
|
82
82
|
* });
|
|
83
83
|
*
|
|
84
84
|
* const contract = new MeshContentOwnershipContract(
|
|
85
85
|
* {
|
|
86
86
|
* mesh: meshTxBuilder,
|
|
87
|
-
* fetcher:
|
|
87
|
+
* fetcher: provider,
|
|
88
88
|
* wallet: wallet,
|
|
89
89
|
* networkId: 0,
|
|
90
90
|
* },
|
|
@@ -192,10 +192,7 @@ declare class MeshContentOwnershipContract extends MeshTxInitiator {
|
|
|
192
192
|
*/
|
|
193
193
|
mintOneTimeMintingPolicy: () => Promise<{
|
|
194
194
|
tx: string;
|
|
195
|
-
paramUtxo:
|
|
196
|
-
outputIndex: number;
|
|
197
|
-
txHash: string;
|
|
198
|
-
};
|
|
195
|
+
paramUtxo: _meshsdk_common.TxInput;
|
|
199
196
|
}>;
|
|
200
197
|
/**
|
|
201
198
|
* [Setup phase]
|
|
@@ -468,10 +465,7 @@ declare class MeshPlutusNFTContract extends MeshTxInitiator {
|
|
|
468
465
|
*/
|
|
469
466
|
setupOracle: (lovelacePrice: number) => Promise<{
|
|
470
467
|
tx: string;
|
|
471
|
-
paramUtxo:
|
|
472
|
-
outputIndex: number;
|
|
473
|
-
txHash: string;
|
|
474
|
-
};
|
|
468
|
+
paramUtxo: _meshsdk_common.TxInput;
|
|
475
469
|
}>;
|
|
476
470
|
/**
|
|
477
471
|
* Mint NFT token with an automatically incremented index, which increases by one for each newly minted NFT.
|