@meshsdk/common 1.7.2 → 1.7.4
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 +900 -3
- package/dist/index.d.cts +14 -7
- package/dist/index.d.ts +14 -7
- package/dist/index.js +920 -3
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -392,16 +392,16 @@ type CertificateType = {
|
|
|
392
392
|
anchor?: Anchor;
|
|
393
393
|
} | {
|
|
394
394
|
type: "DRepRegistration";
|
|
395
|
-
|
|
395
|
+
drepId: string;
|
|
396
396
|
coin: number;
|
|
397
397
|
anchor?: Anchor;
|
|
398
398
|
} | {
|
|
399
399
|
type: "DRepDeregistration";
|
|
400
|
-
|
|
400
|
+
drepId: string;
|
|
401
401
|
coin: number;
|
|
402
402
|
} | {
|
|
403
403
|
type: "DRepUpdate";
|
|
404
|
-
|
|
404
|
+
drepId: string;
|
|
405
405
|
anchor: Anchor;
|
|
406
406
|
};
|
|
407
407
|
type DRep = {
|
|
@@ -539,6 +539,7 @@ type DeserializedScript = {
|
|
|
539
539
|
};
|
|
540
540
|
|
|
541
541
|
declare const DEFAULT_PROTOCOL_PARAMETERS: Protocol;
|
|
542
|
+
declare const DREP_DEPOSIT = "500000000";
|
|
542
543
|
declare const resolveTxFees: (txSize: number, minFeeA?: number, minFeeB?: number) => string;
|
|
543
544
|
|
|
544
545
|
declare const SUPPORTED_WALLETS: string[];
|
|
@@ -752,7 +753,7 @@ type MAssetClass = MConStr0<[string, string]>;
|
|
|
752
753
|
* Aiken alias
|
|
753
754
|
* The Mesh Data output reference
|
|
754
755
|
*/
|
|
755
|
-
type MOutputReference = MConStr0<[
|
|
756
|
+
type MOutputReference = MConStr0<[string, number]>;
|
|
756
757
|
/**
|
|
757
758
|
* PlutusTx alias
|
|
758
759
|
* The Mesh Data TxOutRef
|
|
@@ -1031,7 +1032,7 @@ type AssetClass = ConStr0<[CurrencySymbol, TokenName]>;
|
|
|
1031
1032
|
* Aiken alias
|
|
1032
1033
|
* The Plutus Data output reference in JSON
|
|
1033
1034
|
*/
|
|
1034
|
-
type OutputReference = ConStr0<[
|
|
1035
|
+
type OutputReference = ConStr0<[ByteString, Integer]>;
|
|
1035
1036
|
/**
|
|
1036
1037
|
* PlutusTx alias
|
|
1037
1038
|
* The Plutus Data TxOutRef in JSON
|
|
@@ -1114,7 +1115,9 @@ declare const tokenName: (bytes: string) => TokenName;
|
|
|
1114
1115
|
*/
|
|
1115
1116
|
declare const assetClass: (currencySymbolHex: string, tokenNameHex: string) => AssetClass;
|
|
1116
1117
|
/**
|
|
1117
|
-
* The utility function to create a Plutus Data output reference in JSON
|
|
1118
|
+
* The utility function to create a Plutus Data output reference in JSON.
|
|
1119
|
+
* Note that it is updated since aiken version v1.1.0.
|
|
1120
|
+
* If you want to build the type before Chang, please use txOutRef instead.
|
|
1118
1121
|
* @param txHash The transaction hash
|
|
1119
1122
|
* @param index The index of the output
|
|
1120
1123
|
* @returns The Plutus Data output reference object
|
|
@@ -1432,4 +1435,8 @@ declare class BigNum {
|
|
|
1432
1435
|
toString(): string;
|
|
1433
1436
|
}
|
|
1434
1437
|
|
|
1435
|
-
|
|
1438
|
+
declare const hashDrepAnchor: (jsonLD: object) => string;
|
|
1439
|
+
|
|
1440
|
+
declare function getFile(url: string): string;
|
|
1441
|
+
|
|
1442
|
+
export { type AccountInfo, type Action, type Anchor, type Asset, type AssetClass, type AssetExtended, AssetFingerprint, type AssetMetadata, type AssetName, type AssocMap, type AssocMapItem, 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 CurrencySymbol, DEFAULT_PROTOCOL_PARAMETERS, DEFAULT_REDEEMER_BUDGET, DEFAULT_V1_COST_MODEL_LIST, DEFAULT_V2_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, HARDENED_KEY_START, type IDeserializer, type IEvaluator, type IFetcher, type IInitiator, type IListener, type IMeshTxSerializer, type IResolver, type ISigner, type ISubmitter, type ImageAssetMetadata, type Integer, LANGUAGE_VERSIONS, type LanguageVersion, type List, type MAssetClass, type MBool, type MConStr, type MConStr0, type MConStr1, type MConStr2, type MMaybeStakingHash, type MOutputReference, type MPubKeyAddress, type MScriptAddress, type MTuple, type MTxOutRef, type MValue, type MaybeStakingHash, type MeshTxBuilderBody, MeshValue, type Message, type Metadata, type Mint, type MintItem, type NativeScript, type Network, type NonFungibleAssetMetadata, type Output, type OutputReference, POLICY_ID_LENGTH, type POSIXTime, type PlutusData, 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 ScriptWithdrawal, type SimpleScriptSourceInfo, type SimpleScriptTxIn, type SimpleScriptTxInParameter, type SimpleScriptWithdrawal, type SlotConfig, type Token, type TokenName, type TransactionInfo, type Tuple, type TxIn, type TxInParameter, type TxOutRef, type UTxO, type Unit, UtxoSelection, type UtxoSelectionStrategy, type ValidityRange, type Value, type Wallet, type Withdrawal, assetClass, assetName, assocMap, bool, builtinByteString, byteString, bytesToHex, castProtocol, conStr, conStr0, conStr1, conStr2, currencySymbol, dict, emptyTxBuilderBody, experimentalSelectUtxos, fromUTF8, fungibleAssetKeys, getFile, hashByteString, hashDrepAnchor, hexToBytes, hexToString, integer, isNetwork, keepRelevant, largestFirst, largestFirstMultiAsset, list, mAssetClass, mBool, mConStr, mConStr0, mConStr1, mConStr2, mMaybeStakingHash, mOutputReference, mPlutusBSArrayToString, mPubKeyAddress, mScriptAddress, mStringToPlutusBSArray, mTuple, mTxOutRef, mValue, maybeStakingHash, mergeAssets, metadataStandardKeys, metadataToCip68, outputReference, parseAssetUnit, plutusBSArrayToString, policyId, posixTime, pubKeyAddress, pubKeyHash, resolveEpochNo, resolveFingerprint, resolveLanguageView, resolveSlotNo, resolveTxFees, royaltiesStandardKeys, scriptAddress, scriptHash, slotToBeginUnixTime, stringToBSArray, stringToHex, toBytes, toUTF8, tokenName, tuple, txOutRef, unixTimeToEnclosingSlot, validityRangeToObj, value };
|
package/dist/index.d.ts
CHANGED
|
@@ -392,16 +392,16 @@ type CertificateType = {
|
|
|
392
392
|
anchor?: Anchor;
|
|
393
393
|
} | {
|
|
394
394
|
type: "DRepRegistration";
|
|
395
|
-
|
|
395
|
+
drepId: string;
|
|
396
396
|
coin: number;
|
|
397
397
|
anchor?: Anchor;
|
|
398
398
|
} | {
|
|
399
399
|
type: "DRepDeregistration";
|
|
400
|
-
|
|
400
|
+
drepId: string;
|
|
401
401
|
coin: number;
|
|
402
402
|
} | {
|
|
403
403
|
type: "DRepUpdate";
|
|
404
|
-
|
|
404
|
+
drepId: string;
|
|
405
405
|
anchor: Anchor;
|
|
406
406
|
};
|
|
407
407
|
type DRep = {
|
|
@@ -539,6 +539,7 @@ type DeserializedScript = {
|
|
|
539
539
|
};
|
|
540
540
|
|
|
541
541
|
declare const DEFAULT_PROTOCOL_PARAMETERS: Protocol;
|
|
542
|
+
declare const DREP_DEPOSIT = "500000000";
|
|
542
543
|
declare const resolveTxFees: (txSize: number, minFeeA?: number, minFeeB?: number) => string;
|
|
543
544
|
|
|
544
545
|
declare const SUPPORTED_WALLETS: string[];
|
|
@@ -752,7 +753,7 @@ type MAssetClass = MConStr0<[string, string]>;
|
|
|
752
753
|
* Aiken alias
|
|
753
754
|
* The Mesh Data output reference
|
|
754
755
|
*/
|
|
755
|
-
type MOutputReference = MConStr0<[
|
|
756
|
+
type MOutputReference = MConStr0<[string, number]>;
|
|
756
757
|
/**
|
|
757
758
|
* PlutusTx alias
|
|
758
759
|
* The Mesh Data TxOutRef
|
|
@@ -1031,7 +1032,7 @@ type AssetClass = ConStr0<[CurrencySymbol, TokenName]>;
|
|
|
1031
1032
|
* Aiken alias
|
|
1032
1033
|
* The Plutus Data output reference in JSON
|
|
1033
1034
|
*/
|
|
1034
|
-
type OutputReference = ConStr0<[
|
|
1035
|
+
type OutputReference = ConStr0<[ByteString, Integer]>;
|
|
1035
1036
|
/**
|
|
1036
1037
|
* PlutusTx alias
|
|
1037
1038
|
* The Plutus Data TxOutRef in JSON
|
|
@@ -1114,7 +1115,9 @@ declare const tokenName: (bytes: string) => TokenName;
|
|
|
1114
1115
|
*/
|
|
1115
1116
|
declare const assetClass: (currencySymbolHex: string, tokenNameHex: string) => AssetClass;
|
|
1116
1117
|
/**
|
|
1117
|
-
* The utility function to create a Plutus Data output reference in JSON
|
|
1118
|
+
* The utility function to create a Plutus Data output reference in JSON.
|
|
1119
|
+
* Note that it is updated since aiken version v1.1.0.
|
|
1120
|
+
* If you want to build the type before Chang, please use txOutRef instead.
|
|
1118
1121
|
* @param txHash The transaction hash
|
|
1119
1122
|
* @param index The index of the output
|
|
1120
1123
|
* @returns The Plutus Data output reference object
|
|
@@ -1432,4 +1435,8 @@ declare class BigNum {
|
|
|
1432
1435
|
toString(): string;
|
|
1433
1436
|
}
|
|
1434
1437
|
|
|
1435
|
-
|
|
1438
|
+
declare const hashDrepAnchor: (jsonLD: object) => string;
|
|
1439
|
+
|
|
1440
|
+
declare function getFile(url: string): string;
|
|
1441
|
+
|
|
1442
|
+
export { type AccountInfo, type Action, type Anchor, type Asset, type AssetClass, type AssetExtended, AssetFingerprint, type AssetMetadata, type AssetName, type AssocMap, type AssocMapItem, 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 CurrencySymbol, DEFAULT_PROTOCOL_PARAMETERS, DEFAULT_REDEEMER_BUDGET, DEFAULT_V1_COST_MODEL_LIST, DEFAULT_V2_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, HARDENED_KEY_START, type IDeserializer, type IEvaluator, type IFetcher, type IInitiator, type IListener, type IMeshTxSerializer, type IResolver, type ISigner, type ISubmitter, type ImageAssetMetadata, type Integer, LANGUAGE_VERSIONS, type LanguageVersion, type List, type MAssetClass, type MBool, type MConStr, type MConStr0, type MConStr1, type MConStr2, type MMaybeStakingHash, type MOutputReference, type MPubKeyAddress, type MScriptAddress, type MTuple, type MTxOutRef, type MValue, type MaybeStakingHash, type MeshTxBuilderBody, MeshValue, type Message, type Metadata, type Mint, type MintItem, type NativeScript, type Network, type NonFungibleAssetMetadata, type Output, type OutputReference, POLICY_ID_LENGTH, type POSIXTime, type PlutusData, 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 ScriptWithdrawal, type SimpleScriptSourceInfo, type SimpleScriptTxIn, type SimpleScriptTxInParameter, type SimpleScriptWithdrawal, type SlotConfig, type Token, type TokenName, type TransactionInfo, type Tuple, type TxIn, type TxInParameter, type TxOutRef, type UTxO, type Unit, UtxoSelection, type UtxoSelectionStrategy, type ValidityRange, type Value, type Wallet, type Withdrawal, assetClass, assetName, assocMap, bool, builtinByteString, byteString, bytesToHex, castProtocol, conStr, conStr0, conStr1, conStr2, currencySymbol, dict, emptyTxBuilderBody, experimentalSelectUtxos, fromUTF8, fungibleAssetKeys, getFile, hashByteString, hashDrepAnchor, hexToBytes, hexToString, integer, isNetwork, keepRelevant, largestFirst, largestFirstMultiAsset, list, mAssetClass, mBool, mConStr, mConStr0, mConStr1, mConStr2, mMaybeStakingHash, mOutputReference, mPlutusBSArrayToString, mPubKeyAddress, mScriptAddress, mStringToPlutusBSArray, mTuple, mTxOutRef, mValue, maybeStakingHash, mergeAssets, metadataStandardKeys, metadataToCip68, outputReference, parseAssetUnit, plutusBSArrayToString, policyId, posixTime, pubKeyAddress, pubKeyHash, resolveEpochNo, resolveFingerprint, resolveLanguageView, resolveSlotNo, resolveTxFees, royaltiesStandardKeys, scriptAddress, scriptHash, slotToBeginUnixTime, stringToBSArray, stringToHex, toBytes, toUTF8, tokenName, tuple, txOutRef, unixTimeToEnclosingSlot, validityRangeToObj, value };
|