@meshsdk/common 1.7.3 → 1.7.5
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 +888 -1
- package/dist/index.d.cts +12 -9
- package/dist/index.d.ts +12 -9
- package/dist/index.js +908 -1
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -392,26 +392,24 @@ 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 = {
|
|
408
|
-
|
|
409
|
-
} | {
|
|
410
|
-
scriptHash: string;
|
|
408
|
+
dRepId: string;
|
|
411
409
|
} | {
|
|
412
|
-
alwaysAbstain:
|
|
410
|
+
alwaysAbstain: null;
|
|
413
411
|
} | {
|
|
414
|
-
alwaysNoConfidence:
|
|
412
|
+
alwaysNoConfidence: null;
|
|
415
413
|
};
|
|
416
414
|
type Anchor = {
|
|
417
415
|
anchorUrl: string;
|
|
@@ -539,6 +537,7 @@ type DeserializedScript = {
|
|
|
539
537
|
};
|
|
540
538
|
|
|
541
539
|
declare const DEFAULT_PROTOCOL_PARAMETERS: Protocol;
|
|
540
|
+
declare const DREP_DEPOSIT = "500000000";
|
|
542
541
|
declare const resolveTxFees: (txSize: number, minFeeA?: number, minFeeB?: number) => string;
|
|
543
542
|
|
|
544
543
|
declare const SUPPORTED_WALLETS: string[];
|
|
@@ -1434,4 +1433,8 @@ declare class BigNum {
|
|
|
1434
1433
|
toString(): string;
|
|
1435
1434
|
}
|
|
1436
1435
|
|
|
1437
|
-
|
|
1436
|
+
declare const hashDrepAnchor: (jsonLD: object) => string;
|
|
1437
|
+
|
|
1438
|
+
declare function getFile(url: string): string;
|
|
1439
|
+
|
|
1440
|
+
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,26 +392,24 @@ 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 = {
|
|
408
|
-
|
|
409
|
-
} | {
|
|
410
|
-
scriptHash: string;
|
|
408
|
+
dRepId: string;
|
|
411
409
|
} | {
|
|
412
|
-
alwaysAbstain:
|
|
410
|
+
alwaysAbstain: null;
|
|
413
411
|
} | {
|
|
414
|
-
alwaysNoConfidence:
|
|
412
|
+
alwaysNoConfidence: null;
|
|
415
413
|
};
|
|
416
414
|
type Anchor = {
|
|
417
415
|
anchorUrl: string;
|
|
@@ -539,6 +537,7 @@ type DeserializedScript = {
|
|
|
539
537
|
};
|
|
540
538
|
|
|
541
539
|
declare const DEFAULT_PROTOCOL_PARAMETERS: Protocol;
|
|
540
|
+
declare const DREP_DEPOSIT = "500000000";
|
|
542
541
|
declare const resolveTxFees: (txSize: number, minFeeA?: number, minFeeB?: number) => string;
|
|
543
542
|
|
|
544
543
|
declare const SUPPORTED_WALLETS: string[];
|
|
@@ -1434,4 +1433,8 @@ declare class BigNum {
|
|
|
1434
1433
|
toString(): string;
|
|
1435
1434
|
}
|
|
1436
1435
|
|
|
1437
|
-
|
|
1436
|
+
declare const hashDrepAnchor: (jsonLD: object) => string;
|
|
1437
|
+
|
|
1438
|
+
declare function getFile(url: string): string;
|
|
1439
|
+
|
|
1440
|
+
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 };
|