@meshsdk/common 1.9.0-beta.1 → 1.9.0-beta.11
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 +27 -868
- package/dist/index.d.cts +33 -9
- package/dist/index.d.ts +33 -9
- package/dist/index.js +24 -891
- package/package.json +4 -3
package/dist/index.d.cts
CHANGED
|
@@ -470,8 +470,9 @@ type ScriptTxIn = {
|
|
|
470
470
|
txIn: TxInParameter;
|
|
471
471
|
scriptTxIn: ScriptTxInParameter;
|
|
472
472
|
};
|
|
473
|
+
declare const txInToUtxo: (txIn: TxInParameter) => UTxO;
|
|
473
474
|
|
|
474
|
-
type Credential = {
|
|
475
|
+
type Credential$1 = {
|
|
475
476
|
type: "ScriptHash";
|
|
476
477
|
scriptHash: string;
|
|
477
478
|
} | {
|
|
@@ -502,7 +503,7 @@ type VoteType = {
|
|
|
502
503
|
};
|
|
503
504
|
type Voter = {
|
|
504
505
|
type: "ConstitutionalCommittee";
|
|
505
|
-
hotCred: Credential;
|
|
506
|
+
hotCred: Credential$1;
|
|
506
507
|
} | {
|
|
507
508
|
type: "DRep";
|
|
508
509
|
drepId: string;
|
|
@@ -556,6 +557,8 @@ type MeshTxBuilderBody = {
|
|
|
556
557
|
strategy: UtxoSelectionStrategy;
|
|
557
558
|
includeTxFees: boolean;
|
|
558
559
|
};
|
|
560
|
+
chainedTxs: string[];
|
|
561
|
+
inputsForEvaluation: Record<string, UTxO>;
|
|
559
562
|
fee?: string;
|
|
560
563
|
network: Network | number[][];
|
|
561
564
|
};
|
|
@@ -736,6 +739,10 @@ type MPubKeyAddress = MConStr0<[MConStr0<[string]>, MMaybeStakingHash]>;
|
|
|
736
739
|
* The Mesh Data script address
|
|
737
740
|
*/
|
|
738
741
|
type MScriptAddress = MConStr0<[MConStr1<[string]>, MMaybeStakingHash]>;
|
|
742
|
+
/**
|
|
743
|
+
* The Mesh Data credential
|
|
744
|
+
*/
|
|
745
|
+
type MCredential = MConStr0<[string]> | MConStr1<[string]>;
|
|
739
746
|
/**
|
|
740
747
|
* The utility function to create a Mesh Data staking hash
|
|
741
748
|
* @param stakeCredential The staking credential in hex
|
|
@@ -759,6 +766,13 @@ declare const mPubKeyAddress: (bytes: string, stakeCredential?: string, isStakeS
|
|
|
759
766
|
* @returns The Mesh Data script address object
|
|
760
767
|
*/
|
|
761
768
|
declare const mScriptAddress: (bytes: string, stakeCredential?: string, isStakeScriptCredential?: boolean) => MScriptAddress;
|
|
769
|
+
/**
|
|
770
|
+
* The utility function to create a Mesh Data credential
|
|
771
|
+
* @param hash The pub key hash or script hash
|
|
772
|
+
* @param isScriptCredential Indicate if the credential is script hash (false for pub key hash)
|
|
773
|
+
* @returns Mesh Data credential object
|
|
774
|
+
*/
|
|
775
|
+
declare const mCredential: (hash: string, isScriptCredential?: boolean) => MCredential;
|
|
762
776
|
|
|
763
777
|
/**
|
|
764
778
|
* The Mesh Data boolean
|
|
@@ -1135,6 +1149,10 @@ type PubKeyAddress = ConStr0<[ConStr0<[PubKeyHash]>, MaybeStakingHash]>;
|
|
|
1135
1149
|
* The Plutus Data script address in JSON
|
|
1136
1150
|
*/
|
|
1137
1151
|
type ScriptAddress = ConStr0<[ConStr1<[ScriptHash]>, MaybeStakingHash]>;
|
|
1152
|
+
/**
|
|
1153
|
+
* The Plutus Data credential in JSON
|
|
1154
|
+
*/
|
|
1155
|
+
type Credential = ConStr0<[PubKeyHash]> | ConStr1<[ScriptHash]>;
|
|
1138
1156
|
/**
|
|
1139
1157
|
* The utility function to create a Plutus Data staking hash in JSON
|
|
1140
1158
|
* @param stakeCredential The staking credential in hex
|
|
@@ -1158,6 +1176,13 @@ declare const pubKeyAddress: (bytes: string, stakeCredential?: string, isStakeSc
|
|
|
1158
1176
|
* @returns The Plutus Data script address object
|
|
1159
1177
|
*/
|
|
1160
1178
|
declare const scriptAddress: (bytes: string, stakeCredential?: string, isStakeScriptCredential?: boolean) => ScriptAddress;
|
|
1179
|
+
/**
|
|
1180
|
+
* The utility function to create a Plutus Data credential in JSON
|
|
1181
|
+
* @param hash The pub key hash or script hash
|
|
1182
|
+
* @param isScriptCredential Indicate if the credential is script hash (false for pub key hash)
|
|
1183
|
+
* @returns Plutus Data credential object
|
|
1184
|
+
*/
|
|
1185
|
+
declare const credential: (hash: string, isScriptCredential?: boolean) => Credential;
|
|
1161
1186
|
|
|
1162
1187
|
type PlutusData = ConStr | Bool | ByteString | Integer | List | AssocMap | MaybeStakingHash | PubKeyAddress | ScriptAddress | AssetClass | OutputReference | PubKeyHash | POSIXTime | Dict<any> | Tuple<any, any>;
|
|
1163
1188
|
|
|
@@ -1525,11 +1550,10 @@ interface IFetcher {
|
|
|
1525
1550
|
}
|
|
1526
1551
|
|
|
1527
1552
|
interface IInitiator {
|
|
1528
|
-
getChangeAddress():
|
|
1529
|
-
getCollateral():
|
|
1530
|
-
getUtxos():
|
|
1553
|
+
getChangeAddress(): Promise<string>;
|
|
1554
|
+
getCollateral(): Promise<UTxO[]>;
|
|
1555
|
+
getUtxos(): Promise<UTxO[]>;
|
|
1531
1556
|
}
|
|
1532
|
-
type SometimesPromise<T> = Promise<T> | T;
|
|
1533
1557
|
|
|
1534
1558
|
interface IListener {
|
|
1535
1559
|
onTxConfirmed(txHash: string, callback: () => void, limit?: number): void;
|
|
@@ -1541,7 +1565,7 @@ interface ISubmitter {
|
|
|
1541
1565
|
|
|
1542
1566
|
interface IMeshTxSerializer {
|
|
1543
1567
|
verbose: boolean;
|
|
1544
|
-
serializeTxBody(txBuilderBody: MeshTxBuilderBody, protocolParams: Protocol): string;
|
|
1568
|
+
serializeTxBody(txBuilderBody: MeshTxBuilderBody, protocolParams: Protocol, balanced: Boolean): string;
|
|
1545
1569
|
addSigningKeys(txHex: string, signingKeys: string[]): string;
|
|
1546
1570
|
resolver: IResolver;
|
|
1547
1571
|
deserializer: IDeserializer;
|
|
@@ -1587,7 +1611,7 @@ interface ISigner {
|
|
|
1587
1611
|
}
|
|
1588
1612
|
|
|
1589
1613
|
interface IEvaluator {
|
|
1590
|
-
evaluateTx(tx: string): Promise<Omit<Action, "data">[]>;
|
|
1614
|
+
evaluateTx(tx: string, additionalUtxos?: UTxO[], additionalTxs?: string[]): Promise<Omit<Action, "data">[]>;
|
|
1591
1615
|
}
|
|
1592
1616
|
|
|
1593
1617
|
interface IWallet extends IInitiator, ISigner, ISubmitter {
|
|
@@ -1647,4 +1671,4 @@ declare const hashDrepAnchor: (jsonLD: object) => string;
|
|
|
1647
1671
|
|
|
1648
1672
|
declare function getFile(url: string): string;
|
|
1649
1673
|
|
|
1650
|
-
export { type AccountInfo, type Action, type Anchor, type Asset, type AssetClass, type AssetExtended, AssetFingerprint, type AssetMetadata, type AssetName, type AssocMap, type AssocMapItem, type BasicVote, BigNum, type BlockInfo, type Bool, type Budget, type BuilderData, type BuiltinByteString, type ByteString, CIP68_100, CIP68_222, type Certificate, type CertificateType, type ConStr, type ConStr0, type ConStr1, type ConStr2, type ConStr3, type CurrencySymbol, DEFAULT_PROTOCOL_PARAMETERS, DEFAULT_REDEEMER_BUDGET, DEFAULT_V1_COST_MODEL_LIST, DEFAULT_V2_COST_MODEL_LIST, DEFAULT_V3_COST_MODEL_LIST, DREP_DEPOSIT, type DRep, type Data, type DataSignature, type DatumSource, type DeserializedAddress, type DeserializedScript, type Dict, type DictItem, type Era, type Files, type FungibleAssetMetadata, type GovernanceProposalInfo, HARDENED_KEY_START, type IDeserializer, type IEvaluator, type IFetcher, type IInitiator, type IListener, type IMeshTxSerializer, type IMintingBlueprint, type IResolver, type ISigner, type ISpendingBlueprint, type ISubmitter, type IWallet, type IWithdrawalBlueprint, type ImageAssetMetadata, type Integer, LANGUAGE_VERSIONS, type LanguageVersion, type List, type MAssetClass, type MBool, type MConStr, type MConStr0, type MConStr1, type MConStr2, type MConStr3, type MMaybeStakingHash, type MNone, type MOption, type MOutputReference, type MPubKeyAddress, type MScriptAddress, type MSome, type MTuple, type MTxOutRef, type MValue, type MaybeStakingHash, type MeshTxBuilderBody, MeshValue, type Message, type Metadata, type Metadatum, type MetadatumMap, type Mint, type MintItem, type NativeScript, type Network, type NonFungibleAssetMetadata, type None, type Option, type Output, type OutputReference, POLICY_ID_LENGTH, type POSIXTime, type PlutusData, type PlutusDataType, type PlutusScript, type PolicyId, type PoolMetadata, type PoolParams, type Protocol, type PubKeyAddress, type PubKeyHash, type PubKeyTxIn, type PubKeyWithdrawal, type Quantity, type Recipient, type Redeemer, type RedeemerTagType, type RefTxIn, type Relay, type RequiredWith, type RoyaltiesStandard, SLOT_CONFIG_NETWORK, SUPPORTED_CLOCKS, SUPPORTED_HANDLES, SUPPORTED_LANGUAGE_VIEWS, SUPPORTED_OGMIOS_LINKS, SUPPORTED_TOKENS, SUPPORTED_WALLETS, type ScriptAddress, type ScriptHash, type ScriptSource, type ScriptTxIn, type ScriptTxInParameter, type ScriptVote, type ScriptWithdrawal, type SimpleScriptSourceInfo, type SimpleScriptTxIn, type SimpleScriptTxInParameter, type SimpleScriptVote, type SimpleScriptWithdrawal, type SlotConfig, type Some, type Token, type TokenName, type TransactionInfo, type Tuple, type TxIn, type TxInParameter, type TxMetadata, type TxOutRef, type UTxO, type Unit, UtxoSelection, type UtxoSelectionStrategy, type ValidityRange, type Value, type Vote, type VoteKind, type VoteType, type Voter, type VotingProcedure, type Wallet, type Withdrawal, assetClass, assetName, assocMap, bool, builtinByteString, byteString, bytesToHex, castProtocol, conStr, conStr0, conStr1, conStr2, conStr3, currencySymbol, dict, emptyTxBuilderBody, experimentalSelectUtxos, fromUTF8, fungibleAssetKeys, getFile, hashByteString, hashDrepAnchor, hexToBytes, hexToString, integer, isNetwork, keepRelevant, largestFirst, largestFirstMultiAsset, list, mAssetClass, mBool, mConStr, mConStr0, mConStr1, mConStr2, mConStr3, mMaybeStakingHash, mNone, mOption, mOutputReference, mPlutusBSArrayToString, mPubKeyAddress, mScriptAddress, mSome, mStringToPlutusBSArray, mTuple, mTxOutRef, mValue, maybeStakingHash, mergeAssets, metadataStandardKeys, metadataToCip68, none, option, outputReference, parseAssetUnit, plutusBSArrayToString, policyId, posixTime, pubKeyAddress, pubKeyHash, resolveEpochNo, resolveFingerprint, resolveLanguageView, resolveSlotNo, resolveTxFees, royaltiesStandardKeys, scriptAddress, scriptHash, slotToBeginUnixTime, some, stringToBSArray, stringToHex, toBytes, toUTF8, tokenName, tuple, txOutRef, unixTimeToEnclosingSlot, validityRangeToObj, value };
|
|
1674
|
+
export { type AccountInfo, type Action, type Anchor, type Asset, type AssetClass, type AssetExtended, AssetFingerprint, type AssetMetadata, type AssetName, type AssocMap, type AssocMapItem, type BasicVote, BigNum, type BlockInfo, type Bool, type Budget, type BuilderData, type BuiltinByteString, type ByteString, CIP68_100, CIP68_222, type Certificate, type CertificateType, type ConStr, type ConStr0, type ConStr1, type ConStr2, type ConStr3, type Credential, type CurrencySymbol, DEFAULT_PROTOCOL_PARAMETERS, DEFAULT_REDEEMER_BUDGET, DEFAULT_V1_COST_MODEL_LIST, DEFAULT_V2_COST_MODEL_LIST, DEFAULT_V3_COST_MODEL_LIST, DREP_DEPOSIT, type DRep, type Data, type DataSignature, type DatumSource, type DeserializedAddress, type DeserializedScript, type Dict, type DictItem, type Era, type Files, type FungibleAssetMetadata, type GovernanceProposalInfo, HARDENED_KEY_START, type IDeserializer, type IEvaluator, type IFetcher, type IInitiator, type IListener, type IMeshTxSerializer, type IMintingBlueprint, type IResolver, type ISigner, type ISpendingBlueprint, type ISubmitter, type IWallet, type IWithdrawalBlueprint, type ImageAssetMetadata, type Integer, LANGUAGE_VERSIONS, type LanguageVersion, type List, type MAssetClass, type MBool, type MConStr, type MConStr0, type MConStr1, type MConStr2, type MConStr3, type MCredential, type MMaybeStakingHash, type MNone, type MOption, type MOutputReference, type MPubKeyAddress, type MScriptAddress, type MSome, type MTuple, type MTxOutRef, type MValue, type MaybeStakingHash, type MeshTxBuilderBody, MeshValue, type Message, type Metadata, type Metadatum, type MetadatumMap, type Mint, type MintItem, type NativeScript, type Network, type NonFungibleAssetMetadata, type None, type Option, type Output, type OutputReference, POLICY_ID_LENGTH, type POSIXTime, type PlutusData, type PlutusDataType, type PlutusScript, type PolicyId, type PoolMetadata, type PoolParams, type Protocol, type PubKeyAddress, type PubKeyHash, type PubKeyTxIn, type PubKeyWithdrawal, type Quantity, type Recipient, type Redeemer, type RedeemerTagType, type RefTxIn, type Relay, type RequiredWith, type RoyaltiesStandard, SLOT_CONFIG_NETWORK, SUPPORTED_CLOCKS, SUPPORTED_HANDLES, SUPPORTED_LANGUAGE_VIEWS, SUPPORTED_OGMIOS_LINKS, SUPPORTED_TOKENS, SUPPORTED_WALLETS, type ScriptAddress, type ScriptHash, type ScriptSource, type ScriptTxIn, type ScriptTxInParameter, type ScriptVote, type ScriptWithdrawal, type SimpleScriptSourceInfo, type SimpleScriptTxIn, type SimpleScriptTxInParameter, type SimpleScriptVote, type SimpleScriptWithdrawal, type SlotConfig, type Some, type Token, type TokenName, type TransactionInfo, type Tuple, type TxIn, type TxInParameter, type TxMetadata, type TxOutRef, type UTxO, type Unit, UtxoSelection, type UtxoSelectionStrategy, type ValidityRange, type Value, type Vote, type VoteKind, type VoteType, type Voter, type VotingProcedure, type Wallet, type Withdrawal, assetClass, assetName, assocMap, bool, builtinByteString, byteString, bytesToHex, castProtocol, conStr, conStr0, conStr1, conStr2, conStr3, credential, currencySymbol, dict, emptyTxBuilderBody, experimentalSelectUtxos, fromUTF8, fungibleAssetKeys, getFile, hashByteString, hashDrepAnchor, hexToBytes, hexToString, integer, isNetwork, keepRelevant, largestFirst, largestFirstMultiAsset, list, mAssetClass, mBool, mConStr, mConStr0, mConStr1, mConStr2, mConStr3, mCredential, mMaybeStakingHash, mNone, mOption, mOutputReference, mPlutusBSArrayToString, mPubKeyAddress, mScriptAddress, mSome, mStringToPlutusBSArray, mTuple, mTxOutRef, mValue, maybeStakingHash, mergeAssets, metadataStandardKeys, metadataToCip68, none, option, outputReference, parseAssetUnit, plutusBSArrayToString, policyId, posixTime, pubKeyAddress, pubKeyHash, resolveEpochNo, resolveFingerprint, resolveLanguageView, resolveSlotNo, resolveTxFees, royaltiesStandardKeys, scriptAddress, scriptHash, slotToBeginUnixTime, some, stringToBSArray, stringToHex, toBytes, toUTF8, tokenName, tuple, txInToUtxo, txOutRef, unixTimeToEnclosingSlot, validityRangeToObj, value };
|
package/dist/index.d.ts
CHANGED
|
@@ -470,8 +470,9 @@ type ScriptTxIn = {
|
|
|
470
470
|
txIn: TxInParameter;
|
|
471
471
|
scriptTxIn: ScriptTxInParameter;
|
|
472
472
|
};
|
|
473
|
+
declare const txInToUtxo: (txIn: TxInParameter) => UTxO;
|
|
473
474
|
|
|
474
|
-
type Credential = {
|
|
475
|
+
type Credential$1 = {
|
|
475
476
|
type: "ScriptHash";
|
|
476
477
|
scriptHash: string;
|
|
477
478
|
} | {
|
|
@@ -502,7 +503,7 @@ type VoteType = {
|
|
|
502
503
|
};
|
|
503
504
|
type Voter = {
|
|
504
505
|
type: "ConstitutionalCommittee";
|
|
505
|
-
hotCred: Credential;
|
|
506
|
+
hotCred: Credential$1;
|
|
506
507
|
} | {
|
|
507
508
|
type: "DRep";
|
|
508
509
|
drepId: string;
|
|
@@ -556,6 +557,8 @@ type MeshTxBuilderBody = {
|
|
|
556
557
|
strategy: UtxoSelectionStrategy;
|
|
557
558
|
includeTxFees: boolean;
|
|
558
559
|
};
|
|
560
|
+
chainedTxs: string[];
|
|
561
|
+
inputsForEvaluation: Record<string, UTxO>;
|
|
559
562
|
fee?: string;
|
|
560
563
|
network: Network | number[][];
|
|
561
564
|
};
|
|
@@ -736,6 +739,10 @@ type MPubKeyAddress = MConStr0<[MConStr0<[string]>, MMaybeStakingHash]>;
|
|
|
736
739
|
* The Mesh Data script address
|
|
737
740
|
*/
|
|
738
741
|
type MScriptAddress = MConStr0<[MConStr1<[string]>, MMaybeStakingHash]>;
|
|
742
|
+
/**
|
|
743
|
+
* The Mesh Data credential
|
|
744
|
+
*/
|
|
745
|
+
type MCredential = MConStr0<[string]> | MConStr1<[string]>;
|
|
739
746
|
/**
|
|
740
747
|
* The utility function to create a Mesh Data staking hash
|
|
741
748
|
* @param stakeCredential The staking credential in hex
|
|
@@ -759,6 +766,13 @@ declare const mPubKeyAddress: (bytes: string, stakeCredential?: string, isStakeS
|
|
|
759
766
|
* @returns The Mesh Data script address object
|
|
760
767
|
*/
|
|
761
768
|
declare const mScriptAddress: (bytes: string, stakeCredential?: string, isStakeScriptCredential?: boolean) => MScriptAddress;
|
|
769
|
+
/**
|
|
770
|
+
* The utility function to create a Mesh Data credential
|
|
771
|
+
* @param hash The pub key hash or script hash
|
|
772
|
+
* @param isScriptCredential Indicate if the credential is script hash (false for pub key hash)
|
|
773
|
+
* @returns Mesh Data credential object
|
|
774
|
+
*/
|
|
775
|
+
declare const mCredential: (hash: string, isScriptCredential?: boolean) => MCredential;
|
|
762
776
|
|
|
763
777
|
/**
|
|
764
778
|
* The Mesh Data boolean
|
|
@@ -1135,6 +1149,10 @@ type PubKeyAddress = ConStr0<[ConStr0<[PubKeyHash]>, MaybeStakingHash]>;
|
|
|
1135
1149
|
* The Plutus Data script address in JSON
|
|
1136
1150
|
*/
|
|
1137
1151
|
type ScriptAddress = ConStr0<[ConStr1<[ScriptHash]>, MaybeStakingHash]>;
|
|
1152
|
+
/**
|
|
1153
|
+
* The Plutus Data credential in JSON
|
|
1154
|
+
*/
|
|
1155
|
+
type Credential = ConStr0<[PubKeyHash]> | ConStr1<[ScriptHash]>;
|
|
1138
1156
|
/**
|
|
1139
1157
|
* The utility function to create a Plutus Data staking hash in JSON
|
|
1140
1158
|
* @param stakeCredential The staking credential in hex
|
|
@@ -1158,6 +1176,13 @@ declare const pubKeyAddress: (bytes: string, stakeCredential?: string, isStakeSc
|
|
|
1158
1176
|
* @returns The Plutus Data script address object
|
|
1159
1177
|
*/
|
|
1160
1178
|
declare const scriptAddress: (bytes: string, stakeCredential?: string, isStakeScriptCredential?: boolean) => ScriptAddress;
|
|
1179
|
+
/**
|
|
1180
|
+
* The utility function to create a Plutus Data credential in JSON
|
|
1181
|
+
* @param hash The pub key hash or script hash
|
|
1182
|
+
* @param isScriptCredential Indicate if the credential is script hash (false for pub key hash)
|
|
1183
|
+
* @returns Plutus Data credential object
|
|
1184
|
+
*/
|
|
1185
|
+
declare const credential: (hash: string, isScriptCredential?: boolean) => Credential;
|
|
1161
1186
|
|
|
1162
1187
|
type PlutusData = ConStr | Bool | ByteString | Integer | List | AssocMap | MaybeStakingHash | PubKeyAddress | ScriptAddress | AssetClass | OutputReference | PubKeyHash | POSIXTime | Dict<any> | Tuple<any, any>;
|
|
1163
1188
|
|
|
@@ -1525,11 +1550,10 @@ interface IFetcher {
|
|
|
1525
1550
|
}
|
|
1526
1551
|
|
|
1527
1552
|
interface IInitiator {
|
|
1528
|
-
getChangeAddress():
|
|
1529
|
-
getCollateral():
|
|
1530
|
-
getUtxos():
|
|
1553
|
+
getChangeAddress(): Promise<string>;
|
|
1554
|
+
getCollateral(): Promise<UTxO[]>;
|
|
1555
|
+
getUtxos(): Promise<UTxO[]>;
|
|
1531
1556
|
}
|
|
1532
|
-
type SometimesPromise<T> = Promise<T> | T;
|
|
1533
1557
|
|
|
1534
1558
|
interface IListener {
|
|
1535
1559
|
onTxConfirmed(txHash: string, callback: () => void, limit?: number): void;
|
|
@@ -1541,7 +1565,7 @@ interface ISubmitter {
|
|
|
1541
1565
|
|
|
1542
1566
|
interface IMeshTxSerializer {
|
|
1543
1567
|
verbose: boolean;
|
|
1544
|
-
serializeTxBody(txBuilderBody: MeshTxBuilderBody, protocolParams: Protocol): string;
|
|
1568
|
+
serializeTxBody(txBuilderBody: MeshTxBuilderBody, protocolParams: Protocol, balanced: Boolean): string;
|
|
1545
1569
|
addSigningKeys(txHex: string, signingKeys: string[]): string;
|
|
1546
1570
|
resolver: IResolver;
|
|
1547
1571
|
deserializer: IDeserializer;
|
|
@@ -1587,7 +1611,7 @@ interface ISigner {
|
|
|
1587
1611
|
}
|
|
1588
1612
|
|
|
1589
1613
|
interface IEvaluator {
|
|
1590
|
-
evaluateTx(tx: string): Promise<Omit<Action, "data">[]>;
|
|
1614
|
+
evaluateTx(tx: string, additionalUtxos?: UTxO[], additionalTxs?: string[]): Promise<Omit<Action, "data">[]>;
|
|
1591
1615
|
}
|
|
1592
1616
|
|
|
1593
1617
|
interface IWallet extends IInitiator, ISigner, ISubmitter {
|
|
@@ -1647,4 +1671,4 @@ declare const hashDrepAnchor: (jsonLD: object) => string;
|
|
|
1647
1671
|
|
|
1648
1672
|
declare function getFile(url: string): string;
|
|
1649
1673
|
|
|
1650
|
-
export { type AccountInfo, type Action, type Anchor, type Asset, type AssetClass, type AssetExtended, AssetFingerprint, type AssetMetadata, type AssetName, type AssocMap, type AssocMapItem, type BasicVote, BigNum, type BlockInfo, type Bool, type Budget, type BuilderData, type BuiltinByteString, type ByteString, CIP68_100, CIP68_222, type Certificate, type CertificateType, type ConStr, type ConStr0, type ConStr1, type ConStr2, type ConStr3, type CurrencySymbol, DEFAULT_PROTOCOL_PARAMETERS, DEFAULT_REDEEMER_BUDGET, DEFAULT_V1_COST_MODEL_LIST, DEFAULT_V2_COST_MODEL_LIST, DEFAULT_V3_COST_MODEL_LIST, DREP_DEPOSIT, type DRep, type Data, type DataSignature, type DatumSource, type DeserializedAddress, type DeserializedScript, type Dict, type DictItem, type Era, type Files, type FungibleAssetMetadata, type GovernanceProposalInfo, HARDENED_KEY_START, type IDeserializer, type IEvaluator, type IFetcher, type IInitiator, type IListener, type IMeshTxSerializer, type IMintingBlueprint, type IResolver, type ISigner, type ISpendingBlueprint, type ISubmitter, type IWallet, type IWithdrawalBlueprint, type ImageAssetMetadata, type Integer, LANGUAGE_VERSIONS, type LanguageVersion, type List, type MAssetClass, type MBool, type MConStr, type MConStr0, type MConStr1, type MConStr2, type MConStr3, type MMaybeStakingHash, type MNone, type MOption, type MOutputReference, type MPubKeyAddress, type MScriptAddress, type MSome, type MTuple, type MTxOutRef, type MValue, type MaybeStakingHash, type MeshTxBuilderBody, MeshValue, type Message, type Metadata, type Metadatum, type MetadatumMap, type Mint, type MintItem, type NativeScript, type Network, type NonFungibleAssetMetadata, type None, type Option, type Output, type OutputReference, POLICY_ID_LENGTH, type POSIXTime, type PlutusData, type PlutusDataType, type PlutusScript, type PolicyId, type PoolMetadata, type PoolParams, type Protocol, type PubKeyAddress, type PubKeyHash, type PubKeyTxIn, type PubKeyWithdrawal, type Quantity, type Recipient, type Redeemer, type RedeemerTagType, type RefTxIn, type Relay, type RequiredWith, type RoyaltiesStandard, SLOT_CONFIG_NETWORK, SUPPORTED_CLOCKS, SUPPORTED_HANDLES, SUPPORTED_LANGUAGE_VIEWS, SUPPORTED_OGMIOS_LINKS, SUPPORTED_TOKENS, SUPPORTED_WALLETS, type ScriptAddress, type ScriptHash, type ScriptSource, type ScriptTxIn, type ScriptTxInParameter, type ScriptVote, type ScriptWithdrawal, type SimpleScriptSourceInfo, type SimpleScriptTxIn, type SimpleScriptTxInParameter, type SimpleScriptVote, type SimpleScriptWithdrawal, type SlotConfig, type Some, type Token, type TokenName, type TransactionInfo, type Tuple, type TxIn, type TxInParameter, type TxMetadata, type TxOutRef, type UTxO, type Unit, UtxoSelection, type UtxoSelectionStrategy, type ValidityRange, type Value, type Vote, type VoteKind, type VoteType, type Voter, type VotingProcedure, type Wallet, type Withdrawal, assetClass, assetName, assocMap, bool, builtinByteString, byteString, bytesToHex, castProtocol, conStr, conStr0, conStr1, conStr2, conStr3, currencySymbol, dict, emptyTxBuilderBody, experimentalSelectUtxos, fromUTF8, fungibleAssetKeys, getFile, hashByteString, hashDrepAnchor, hexToBytes, hexToString, integer, isNetwork, keepRelevant, largestFirst, largestFirstMultiAsset, list, mAssetClass, mBool, mConStr, mConStr0, mConStr1, mConStr2, mConStr3, mMaybeStakingHash, mNone, mOption, mOutputReference, mPlutusBSArrayToString, mPubKeyAddress, mScriptAddress, mSome, mStringToPlutusBSArray, mTuple, mTxOutRef, mValue, maybeStakingHash, mergeAssets, metadataStandardKeys, metadataToCip68, none, option, outputReference, parseAssetUnit, plutusBSArrayToString, policyId, posixTime, pubKeyAddress, pubKeyHash, resolveEpochNo, resolveFingerprint, resolveLanguageView, resolveSlotNo, resolveTxFees, royaltiesStandardKeys, scriptAddress, scriptHash, slotToBeginUnixTime, some, stringToBSArray, stringToHex, toBytes, toUTF8, tokenName, tuple, txOutRef, unixTimeToEnclosingSlot, validityRangeToObj, value };
|
|
1674
|
+
export { type AccountInfo, type Action, type Anchor, type Asset, type AssetClass, type AssetExtended, AssetFingerprint, type AssetMetadata, type AssetName, type AssocMap, type AssocMapItem, type BasicVote, BigNum, type BlockInfo, type Bool, type Budget, type BuilderData, type BuiltinByteString, type ByteString, CIP68_100, CIP68_222, type Certificate, type CertificateType, type ConStr, type ConStr0, type ConStr1, type ConStr2, type ConStr3, type Credential, type CurrencySymbol, DEFAULT_PROTOCOL_PARAMETERS, DEFAULT_REDEEMER_BUDGET, DEFAULT_V1_COST_MODEL_LIST, DEFAULT_V2_COST_MODEL_LIST, DEFAULT_V3_COST_MODEL_LIST, DREP_DEPOSIT, type DRep, type Data, type DataSignature, type DatumSource, type DeserializedAddress, type DeserializedScript, type Dict, type DictItem, type Era, type Files, type FungibleAssetMetadata, type GovernanceProposalInfo, HARDENED_KEY_START, type IDeserializer, type IEvaluator, type IFetcher, type IInitiator, type IListener, type IMeshTxSerializer, type IMintingBlueprint, type IResolver, type ISigner, type ISpendingBlueprint, type ISubmitter, type IWallet, type IWithdrawalBlueprint, type ImageAssetMetadata, type Integer, LANGUAGE_VERSIONS, type LanguageVersion, type List, type MAssetClass, type MBool, type MConStr, type MConStr0, type MConStr1, type MConStr2, type MConStr3, type MCredential, type MMaybeStakingHash, type MNone, type MOption, type MOutputReference, type MPubKeyAddress, type MScriptAddress, type MSome, type MTuple, type MTxOutRef, type MValue, type MaybeStakingHash, type MeshTxBuilderBody, MeshValue, type Message, type Metadata, type Metadatum, type MetadatumMap, type Mint, type MintItem, type NativeScript, type Network, type NonFungibleAssetMetadata, type None, type Option, type Output, type OutputReference, POLICY_ID_LENGTH, type POSIXTime, type PlutusData, type PlutusDataType, type PlutusScript, type PolicyId, type PoolMetadata, type PoolParams, type Protocol, type PubKeyAddress, type PubKeyHash, type PubKeyTxIn, type PubKeyWithdrawal, type Quantity, type Recipient, type Redeemer, type RedeemerTagType, type RefTxIn, type Relay, type RequiredWith, type RoyaltiesStandard, SLOT_CONFIG_NETWORK, SUPPORTED_CLOCKS, SUPPORTED_HANDLES, SUPPORTED_LANGUAGE_VIEWS, SUPPORTED_OGMIOS_LINKS, SUPPORTED_TOKENS, SUPPORTED_WALLETS, type ScriptAddress, type ScriptHash, type ScriptSource, type ScriptTxIn, type ScriptTxInParameter, type ScriptVote, type ScriptWithdrawal, type SimpleScriptSourceInfo, type SimpleScriptTxIn, type SimpleScriptTxInParameter, type SimpleScriptVote, type SimpleScriptWithdrawal, type SlotConfig, type Some, type Token, type TokenName, type TransactionInfo, type Tuple, type TxIn, type TxInParameter, type TxMetadata, type TxOutRef, type UTxO, type Unit, UtxoSelection, type UtxoSelectionStrategy, type ValidityRange, type Value, type Vote, type VoteKind, type VoteType, type Voter, type VotingProcedure, type Wallet, type Withdrawal, assetClass, assetName, assocMap, bool, builtinByteString, byteString, bytesToHex, castProtocol, conStr, conStr0, conStr1, conStr2, conStr3, credential, currencySymbol, dict, emptyTxBuilderBody, experimentalSelectUtxos, fromUTF8, fungibleAssetKeys, getFile, hashByteString, hashDrepAnchor, hexToBytes, hexToString, integer, isNetwork, keepRelevant, largestFirst, largestFirstMultiAsset, list, mAssetClass, mBool, mConStr, mConStr0, mConStr1, mConStr2, mConStr3, mCredential, mMaybeStakingHash, mNone, mOption, mOutputReference, mPlutusBSArrayToString, mPubKeyAddress, mScriptAddress, mSome, mStringToPlutusBSArray, mTuple, mTxOutRef, mValue, maybeStakingHash, mergeAssets, metadataStandardKeys, metadataToCip68, none, option, outputReference, parseAssetUnit, plutusBSArrayToString, policyId, posixTime, pubKeyAddress, pubKeyHash, resolveEpochNo, resolveFingerprint, resolveLanguageView, resolveSlotNo, resolveTxFees, royaltiesStandardKeys, scriptAddress, scriptHash, slotToBeginUnixTime, some, stringToBSArray, stringToHex, toBytes, toUTF8, tokenName, tuple, txInToUtxo, txOutRef, unixTimeToEnclosingSlot, validityRangeToObj, value };
|