@meshsdk/core 1.5.16 → 1.6.0-alpha.10
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/constants.d.ts +1 -1
- package/dist/common/contracts/evaluator.d.ts +1 -1
- package/dist/common/contracts/fetcher.d.ts +1 -1
- package/dist/common/contracts/signer.d.ts +1 -1
- package/dist/common/data/index.d.ts +2 -0
- package/dist/common/data/mesh.d.ts +8 -0
- package/dist/common/data/plutus.d.ts +72 -0
- package/dist/common/data/plutus.spec.d.ts +1 -0
- package/dist/common/helpers/index.d.ts +0 -2
- package/dist/common/helpers/readPlutusData.d.ts +1 -1
- package/dist/common/index.d.ts +1 -0
- package/dist/common/utils/builder.d.ts +2 -2
- package/dist/common/utils/converter.d.ts +1 -1
- package/dist/common/utils/deserializer.d.ts +1 -1
- package/dist/common/utils/resolver.d.ts +1 -1
- package/dist/core/CIP1852.d.ts +2 -2
- package/dist/core/CIP1853.d.ts +1 -1
- package/dist/core/CIP1855.d.ts +1 -1
- package/dist/core/CIP2.d.ts +1 -1
- package/dist/core/CIP8.d.ts +1 -1
- package/dist/core/{CPS-009.d.ts → CPS0009.d.ts} +1 -1
- package/dist/core/CSL.d.ts +2 -2
- package/dist/core/index.d.ts +1 -0
- package/dist/core.cjs +18 -8
- package/dist/core.js +19918 -3022
- package/dist/index.d.ts +6 -2
- package/dist/providers/blockfrost.provider.d.ts +1 -1
- package/dist/providers/index.d.ts +1 -1
- package/dist/providers/koios.provider.d.ts +1 -1
- package/dist/providers/maestro.provider.d.ts +1 -1
- package/dist/providers/ogmios.provider.d.ts +1 -1
- package/dist/providers/tango.provider.d.ts +1 -1
- package/dist/providers/yaci.provider.d.ts +32 -0
- package/dist/scripts/forge.script.d.ts +1 -1
- package/dist/serializer/index.d.ts +2 -0
- package/dist/serializer/serializer.d.ts +42 -0
- package/dist/transaction/meshTxBuilder/meshTxBuilderCore.d.ts +6 -34
- package/dist/transaction/meshTxBuilder/type.d.ts +1 -1
- package/dist/transaction/transaction.service.d.ts +1 -1
- package/dist/{common/types → types}/Asset.d.ts +1 -0
- package/dist/{common/types → types}/Network.d.ts +1 -1
- package/dist/types/PlutusScript.d.ts +5 -0
- package/dist/wallet/app.service.d.ts +8 -1
- package/dist/wallet/browser.service.d.ts +144 -14
- package/dist/wallet/embedded.service.d.ts +1 -1
- package/dist/wallet/index.d.ts +1 -0
- package/dist/wallet/mesh.service.d.ts +188 -0
- package/dist/wallet/mina.service.d.ts +1 -1
- package/package.json +3 -5
- package/dist/common/helpers/readTransaction.d.ts +0 -2
- package/dist/common/types/PlutusScript.d.ts +0 -6
- /package/dist/{common/helpers/mergeSignatures.d.ts → serializer/signatures.d.ts} +0 -0
- /package/dist/{common/types → types}/Account.d.ts +0 -0
- /package/dist/{common/types → types}/AccountInfo.d.ts +0 -0
- /package/dist/{common/types → types}/Action.d.ts +0 -0
- /package/dist/{common/types → types}/AssetExtended.d.ts +0 -0
- /package/dist/{common/types → types}/AssetMetadata.d.ts +0 -0
- /package/dist/{common/types → types}/BlockInfo.d.ts +0 -0
- /package/dist/{common/types → types}/Data.d.ts +0 -0
- /package/dist/{common/types → types}/DataSignature.d.ts +0 -0
- /package/dist/{common/types → types}/Era.d.ts +0 -0
- /package/dist/{common/types → types}/Mint.d.ts +0 -0
- /package/dist/{common/types → types}/NativeScript.d.ts +0 -0
- /package/dist/{common/types → types}/PoolParams.d.ts +0 -0
- /package/dist/{common/types → types}/Protocol.d.ts +0 -0
- /package/dist/{common/types → types}/Recipient.d.ts +0 -0
- /package/dist/{common/types → types}/Relay.d.ts +0 -0
- /package/dist/{common/types → types}/Token.d.ts +0 -0
- /package/dist/{common/types → types}/TransactionInfo.d.ts +0 -0
- /package/dist/{common/types → types}/UTxO.d.ts +0 -0
- /package/dist/{common/types → types}/Wallet.d.ts +0 -0
- /package/dist/{common/types → types}/index.d.ts +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { csl } from '@mesh/core';
|
|
2
2
|
import type { Costmdls } from '@mesh/core';
|
|
3
|
-
import type { Budget, Era, Network, Protocol } from '
|
|
3
|
+
import type { Budget, Era, Network, Protocol } from '../types';
|
|
4
4
|
export declare const DEFAULT_REDEEMER_BUDGET: Budget;
|
|
5
5
|
export declare const DEFAULT_PROTOCOL_PARAMETERS: Protocol;
|
|
6
6
|
export declare const HARDENED_KEY_START = 2147483648;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { AccountInfo, Asset, AssetMetadata, BlockInfo, Protocol, TransactionInfo, UTxO } from '@mesh/
|
|
1
|
+
import type { AccountInfo, Asset, AssetMetadata, BlockInfo, Protocol, TransactionInfo, UTxO } from '@mesh/types';
|
|
2
2
|
/**
|
|
3
3
|
* Fetcher interface defines end points to query blockchain data.
|
|
4
4
|
*/
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { DataSignature } from '@mesh/
|
|
1
|
+
import { DataSignature } from '@mesh/types';
|
|
2
2
|
export interface ISigner {
|
|
3
3
|
signData(address: string, payload: string): SometimesPromise<DataSignature>;
|
|
4
4
|
signTx(unsignedTx: string, partialSign: boolean): SometimesPromise<string>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Data } from '@mesh/types';
|
|
2
|
+
export declare const mConStr: <T extends Data[]>(alternative: number, fields: T) => Data;
|
|
3
|
+
export declare const mConStr0: <T extends Data[]>(fields: T) => Data;
|
|
4
|
+
export declare const mConStr1: <T extends Data[]>(fields: T) => Data;
|
|
5
|
+
export declare const mConStr2: <T extends Data[]>(fields: T) => Data;
|
|
6
|
+
export declare const mMaybeStakingHash: (stakeCredential: string) => Data;
|
|
7
|
+
export declare const mPubKeyAddress: (bytes: string, stakeCredential?: string) => Data;
|
|
8
|
+
export declare const mScriptAddress: (bytes: string, stakeCredential?: string) => Data;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { Asset } from '@mesh/types';
|
|
2
|
+
export declare type ConStr<N = any, T = any> = {
|
|
3
|
+
constructor: N;
|
|
4
|
+
fields: T;
|
|
5
|
+
};
|
|
6
|
+
export declare type ConStr0<T = any> = ConStr<0, T>;
|
|
7
|
+
export declare type ConStr1<T = any> = ConStr<1, T>;
|
|
8
|
+
export declare type ConStr2<T = any> = ConStr<2, T>;
|
|
9
|
+
export declare type Bool = ConStr0<[]> | ConStr1<[]>;
|
|
10
|
+
export declare type BuiltinByteString = {
|
|
11
|
+
bytes: string;
|
|
12
|
+
};
|
|
13
|
+
export declare type Integer = {
|
|
14
|
+
int: number;
|
|
15
|
+
};
|
|
16
|
+
export declare type List = {
|
|
17
|
+
list: PlutusData[];
|
|
18
|
+
};
|
|
19
|
+
export declare type ValidatorHash = BuiltinByteString;
|
|
20
|
+
export declare type PaymentPubKeyHash = BuiltinByteString;
|
|
21
|
+
export declare type PubKeyHash = PaymentPubKeyHash;
|
|
22
|
+
export declare type POSIXTime = Integer;
|
|
23
|
+
export declare type CurrencySymbol = BuiltinByteString;
|
|
24
|
+
export declare type TokenName = BuiltinByteString;
|
|
25
|
+
export declare type MaybeStakingHash = ConStr1<[]> | ConStr0<[ConStr0<[ConStr0<[BuiltinByteString]>]>]>;
|
|
26
|
+
export declare type PubKeyAddress = ConStr0<[ConStr0<[PubKeyHash]>, MaybeStakingHash]>;
|
|
27
|
+
export declare type ScriptAddress = ConStr0<[
|
|
28
|
+
ConStr1<[ValidatorHash]>,
|
|
29
|
+
MaybeStakingHash
|
|
30
|
+
]>;
|
|
31
|
+
export declare type AssetClass = ConStr0<[CurrencySymbol, TokenName]>;
|
|
32
|
+
export declare type TxOutRef = ConStr0<[ConStr0<[BuiltinByteString]>, Integer]>;
|
|
33
|
+
export declare type AssocMapItem<K, V> = {
|
|
34
|
+
k: K;
|
|
35
|
+
v: V;
|
|
36
|
+
};
|
|
37
|
+
export declare type DictItem<K, V> = {
|
|
38
|
+
k: K;
|
|
39
|
+
v: V;
|
|
40
|
+
};
|
|
41
|
+
export declare type AssocMap<K, V> = {
|
|
42
|
+
map: AssocMapItem<K, V>[];
|
|
43
|
+
};
|
|
44
|
+
export declare type Dict<K, V> = {
|
|
45
|
+
map: DictItem<K, V>[];
|
|
46
|
+
};
|
|
47
|
+
export declare type Tuple<K, V> = ConStr0<[K, V]>;
|
|
48
|
+
export declare type Value = AssocMap<CurrencySymbol, AssocMap<TokenName, Integer>>;
|
|
49
|
+
export declare type PlutusData = BuiltinByteString | Integer | MaybeStakingHash | PubKeyAddress | ScriptAddress | AssetClass | PaymentPubKeyHash | PubKeyHash | POSIXTime | TxOutRef;
|
|
50
|
+
export declare const conStr: <N, T>(constructor: N, fields: T) => ConStr<N, T>;
|
|
51
|
+
export declare const conStr0: <T>(fields: T) => ConStr0<T>;
|
|
52
|
+
export declare const conStr1: <T>(fields: T) => ConStr1<T>;
|
|
53
|
+
export declare const conStr2: <T>(fields: T) => ConStr2<T>;
|
|
54
|
+
export declare const bool: (b: boolean) => Bool;
|
|
55
|
+
export declare const builtinByteString: (bytes: string) => BuiltinByteString;
|
|
56
|
+
export declare const integer: (int: number) => Integer;
|
|
57
|
+
export declare const list: (pList: PlutusData[]) => List;
|
|
58
|
+
export declare const currencySymbol: (bytes: string) => CurrencySymbol;
|
|
59
|
+
export declare const tokenName: (bytes: string) => TokenName;
|
|
60
|
+
export declare const maybeStakingHash: (stakeCredential: string) => MaybeStakingHash;
|
|
61
|
+
export declare const pubKeyAddress: (bytes: string, stakeCredential?: string) => PubKeyAddress;
|
|
62
|
+
export declare const scriptAddress: (bytes: string, stakeCredential?: string) => ScriptAddress;
|
|
63
|
+
export declare const assetClass: (policyId: string, assetName: string) => AssetClass;
|
|
64
|
+
export declare const txOutRef: (txHash: string, index: number) => TxOutRef;
|
|
65
|
+
export declare const paymentPubKeyHash: (bytes: string) => PaymentPubKeyHash;
|
|
66
|
+
export declare const pubKeyHash: (bytes: string) => PubKeyHash;
|
|
67
|
+
export declare const posixTime: (int: number) => POSIXTime;
|
|
68
|
+
export declare const assocMap: <K, V>(itemsMap: [K, V][]) => AssocMap<K, V>;
|
|
69
|
+
export declare const dict: <K, V>(itemsMap: [K, V][]) => AssocMap<K, V>;
|
|
70
|
+
export declare const tuple: <K, V>(key: K, value: V) => Tuple<K, V>;
|
|
71
|
+
export declare const value: (assets: Asset[]) => Value;
|
|
72
|
+
export declare const parsePlutusValueToAssets: (plutusValue: Value) => Asset[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Data } from '@mesh/
|
|
1
|
+
import type { Data } from '@mesh/types';
|
|
2
2
|
export declare const readPlutusData: (plutusData: string) => Data;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './data';
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { csl } from '@mesh/core';
|
|
2
2
|
import type { BaseAddress, Bip32PrivateKey, DataCost, DatumSource, Ed25519KeyHash, EnterpriseAddress, MintWitness, PlutusScriptSource, RewardAddress, TransactionBuilder, TransactionOutputBuilder, TxInputsBuilder } from '@mesh/core';
|
|
3
|
-
import type { Action, Data, PlutusScript, Recipient, UTxO } from '@mesh/
|
|
3
|
+
import type { Action, Data, PlutusScript, Recipient, UTxO } from '@mesh/types';
|
|
4
4
|
export declare const buildBaseAddress: (networkId: number, paymentKeyHash: Ed25519KeyHash, stakeKeyHash: Ed25519KeyHash) => BaseAddress;
|
|
5
5
|
export declare const buildBip32PrivateKey: (entropy: string, password?: string) => Bip32PrivateKey;
|
|
6
6
|
export declare const buildDataCost: (coinsPerByte: string) => DataCost;
|
|
@@ -13,6 +13,6 @@ export declare const buildPlutusScriptSource: (script: PlutusScript | UTxO) => P
|
|
|
13
13
|
export declare const buildScriptPubkey: (keyHash: Ed25519KeyHash) => csl.NativeScript;
|
|
14
14
|
export declare const buildTimelockExpiry: (slot: string) => csl.NativeScript;
|
|
15
15
|
export declare const buildTimelockStart: (slot: string) => csl.NativeScript;
|
|
16
|
-
export declare const buildTxBuilder: (parameters?: import("@mesh/
|
|
16
|
+
export declare const buildTxBuilder: (parameters?: import("@mesh/types").Protocol) => TransactionBuilder;
|
|
17
17
|
export declare const buildTxInputsBuilder: (utxos: unknown[]) => TxInputsBuilder;
|
|
18
18
|
export declare const buildTxOutputBuilder: (recipient: Recipient) => TransactionOutputBuilder;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { csl } from '@mesh/core';
|
|
2
2
|
import type { PlutusData, ScriptRef, TransactionUnspentOutput, Value } from '@mesh/core';
|
|
3
|
-
import type { Action, Asset, Data, NativeScript, PlutusScript, PoolParams, Relay, UTxO } from '@mesh/
|
|
3
|
+
import type { Action, Asset, Data, NativeScript, PlutusScript, PoolParams, Relay, UTxO } from '@mesh/types';
|
|
4
4
|
export declare const toAddress: (bech32: string) => csl.Address;
|
|
5
5
|
export declare const toBaseAddress: (bech32: string) => csl.BaseAddress | undefined;
|
|
6
6
|
export declare const toEnterpriseAddress: (bech32: string) => csl.EnterpriseAddress | undefined;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { csl } from '@mesh/core';
|
|
2
|
-
import type { LanguageVersion } from '@mesh/
|
|
2
|
+
import type { LanguageVersion } from '@mesh/types';
|
|
3
3
|
export declare const deserializeAddress: (address: string) => csl.Address;
|
|
4
4
|
export declare const deserializeBip32PrivateKey: (bip32PrivateKey: string) => csl.Bip32PrivateKey;
|
|
5
5
|
export declare const deserializeDataHash: (dataHash: string) => csl.DataHash;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Data, Era, LanguageVersion, NativeScript, Network, PlutusScript } from '@mesh/
|
|
1
|
+
import type { Data, Era, LanguageVersion, NativeScript, Network, PlutusScript } from '@mesh/types';
|
|
2
2
|
export declare const resolveDataHash: (data: Data) => string;
|
|
3
3
|
export declare const resolveEpochNo: (network: Network, milliseconds?: number) => number;
|
|
4
4
|
export declare const resolveFingerprint: (policyId: string, assetName: string) => string;
|
package/dist/core/CIP1852.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export declare const deriveAccountKeys: (rootKey: string, accountIndex: number) => {
|
|
2
|
-
paymentKey: import("@
|
|
3
|
-
stakeKey: import("@
|
|
2
|
+
paymentKey: import("@sidan-lab/sidan-csl-rs-nodejs").PrivateKey;
|
|
3
|
+
stakeKey: import("@sidan-lab/sidan-csl-rs-nodejs").PrivateKey;
|
|
4
4
|
};
|
package/dist/core/CIP1853.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const deriveStakePoolColdKey: (rootKey: string, coldIndex: number) => import("@
|
|
1
|
+
export declare const deriveStakePoolColdKey: (rootKey: string, coldIndex: number) => import("@sidan-lab/sidan-csl-rs-nodejs").PrivateKey;
|
package/dist/core/CIP1855.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const deriveForgingPolicyKey: (rootKey: string, policyIndex: number) => import("@
|
|
1
|
+
export declare const deriveForgingPolicyKey: (rootKey: string, policyIndex: number) => import("@sidan-lab/sidan-csl-rs-nodejs").PrivateKey;
|
package/dist/core/CIP2.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Protocol, Quantity, Unit, UTxO } from '@mesh/
|
|
1
|
+
import type { Protocol, Quantity, Unit, UTxO } from '@mesh/types';
|
|
2
2
|
export declare const keepRelevant: (requestedOutputSet: Map<Unit, Quantity>, initialUTxOSet: UTxO[], minimumLovelaceRequired?: string) => UTxO[];
|
|
3
3
|
export declare const largestFirst: (lovelace: Quantity, initialUTxOSet: UTxO[], includeTxFees?: boolean, { maxTxSize, minFeeA, minFeeB }?: Protocol) => UTxO[];
|
|
4
4
|
export declare const largestFirstMultiAsset: (requestedOutputSet: Map<Unit, Quantity>, initialUTxOSet: UTxO[], includeTxFees?: boolean, parameters?: Protocol) => UTxO[];
|
package/dist/core/CIP8.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import type { Quantity, UTxO, Unit } from '@mesh/
|
|
1
|
+
import type { Quantity, UTxO, Unit } from '@mesh/types';
|
|
2
2
|
export declare const selectUtxos: (inputs: UTxO[], requiredAssets: Map<Unit, Quantity>, threshold: Quantity) => UTxO[];
|
package/dist/core/CSL.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { csl } from '
|
|
2
|
-
export
|
|
1
|
+
import { csl } from '@meshsdk/mesh-csl';
|
|
2
|
+
export { csl, applyParamsToScript } from '@meshsdk/mesh-csl';
|
|
3
3
|
export declare type Address = InstanceType<typeof csl.Address>;
|
|
4
4
|
export declare type AssetName = InstanceType<typeof csl.AssetName>;
|
|
5
5
|
export declare type AssetNames = InstanceType<typeof csl.AssetNames>;
|