@meshsdk/common 1.9.0-beta.12 → 1.9.0-beta.14
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 +8 -0
- package/dist/index.d.cts +22 -13
- package/dist/index.d.ts +22 -13
- package/dist/index.js +7 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -34,6 +34,7 @@ __export(index_exports, {
|
|
|
34
34
|
BigNum: () => BigNum,
|
|
35
35
|
CIP68_100: () => CIP68_100,
|
|
36
36
|
CIP68_222: () => CIP68_222,
|
|
37
|
+
DEFAULT_FETCHER_OPTIONS: () => DEFAULT_FETCHER_OPTIONS,
|
|
37
38
|
DEFAULT_PROTOCOL_PARAMETERS: () => DEFAULT_PROTOCOL_PARAMETERS,
|
|
38
39
|
DEFAULT_REDEEMER_BUDGET: () => DEFAULT_REDEEMER_BUDGET,
|
|
39
40
|
DEFAULT_V1_COST_MODEL_LIST: () => DEFAULT_V1_COST_MODEL_LIST,
|
|
@@ -911,6 +912,12 @@ var CIP68_222 = (tokenNameHex) => {
|
|
|
911
912
|
return `000de140${tokenNameHex}`;
|
|
912
913
|
};
|
|
913
914
|
|
|
915
|
+
// src/interfaces/fetcher.ts
|
|
916
|
+
var DEFAULT_FETCHER_OPTIONS = {
|
|
917
|
+
maxPage: 100,
|
|
918
|
+
order: "desc"
|
|
919
|
+
};
|
|
920
|
+
|
|
914
921
|
// src/types/asset.ts
|
|
915
922
|
var mergeAssets = (assets) => {
|
|
916
923
|
const merged = [];
|
|
@@ -1975,6 +1982,7 @@ var import_bip39 = require("bip39");
|
|
|
1975
1982
|
BigNum,
|
|
1976
1983
|
CIP68_100,
|
|
1977
1984
|
CIP68_222,
|
|
1985
|
+
DEFAULT_FETCHER_OPTIONS,
|
|
1978
1986
|
DEFAULT_PROTOCOL_PARAMETERS,
|
|
1979
1987
|
DEFAULT_REDEEMER_BUDGET,
|
|
1980
1988
|
DEFAULT_V1_COST_MODEL_LIST,
|
package/dist/index.d.cts
CHANGED
|
@@ -216,18 +216,6 @@ declare const castProtocol: (data: Partial<Record<keyof Protocol, any>>) => Prot
|
|
|
216
216
|
|
|
217
217
|
type Token = keyof typeof SUPPORTED_TOKENS;
|
|
218
218
|
|
|
219
|
-
type TransactionInfo = {
|
|
220
|
-
index: number;
|
|
221
|
-
block: string;
|
|
222
|
-
hash: string;
|
|
223
|
-
slot: string;
|
|
224
|
-
fees: string;
|
|
225
|
-
size: number;
|
|
226
|
-
deposit: string;
|
|
227
|
-
invalidBefore: string;
|
|
228
|
-
invalidAfter: string;
|
|
229
|
-
};
|
|
230
|
-
|
|
231
219
|
type UTxO = {
|
|
232
220
|
input: {
|
|
233
221
|
outputIndex: number;
|
|
@@ -243,6 +231,20 @@ type UTxO = {
|
|
|
243
231
|
};
|
|
244
232
|
};
|
|
245
233
|
|
|
234
|
+
type TransactionInfo = {
|
|
235
|
+
index: number;
|
|
236
|
+
block: string;
|
|
237
|
+
hash: string;
|
|
238
|
+
slot: string;
|
|
239
|
+
fees: string;
|
|
240
|
+
size: number;
|
|
241
|
+
deposit: string;
|
|
242
|
+
invalidBefore: string;
|
|
243
|
+
invalidAfter: string;
|
|
244
|
+
inputs: UTxO[];
|
|
245
|
+
outputs: UTxO[];
|
|
246
|
+
};
|
|
247
|
+
|
|
246
248
|
type Wallet = {
|
|
247
249
|
id: string;
|
|
248
250
|
name: string;
|
|
@@ -1526,12 +1528,19 @@ declare const CIP68_100: (tokenNameHex: string) => string;
|
|
|
1526
1528
|
*/
|
|
1527
1529
|
declare const CIP68_222: (tokenNameHex: string) => string;
|
|
1528
1530
|
|
|
1531
|
+
type IFetcherOptions = {
|
|
1532
|
+
maxPage?: number;
|
|
1533
|
+
order?: "asc" | "desc";
|
|
1534
|
+
[key: string]: any;
|
|
1535
|
+
};
|
|
1536
|
+
declare const DEFAULT_FETCHER_OPTIONS: IFetcherOptions;
|
|
1529
1537
|
/**
|
|
1530
1538
|
* Fetcher interface defines end points to query blockchain data.
|
|
1531
1539
|
*/
|
|
1532
1540
|
interface IFetcher {
|
|
1533
1541
|
fetchAccountInfo(address: string): Promise<AccountInfo>;
|
|
1534
1542
|
fetchAddressUTxOs(address: string, asset?: string): Promise<UTxO[]>;
|
|
1543
|
+
fetchAddressTxs(address: string, options?: IFetcherOptions): Promise<TransactionInfo[]>;
|
|
1535
1544
|
fetchAssetAddresses(asset: string): Promise<{
|
|
1536
1545
|
address: string;
|
|
1537
1546
|
quantity: string;
|
|
@@ -1671,4 +1680,4 @@ declare const hashDrepAnchor: (jsonLD: object) => string;
|
|
|
1671
1680
|
|
|
1672
1681
|
declare function getFile(url: string): string;
|
|
1673
1682
|
|
|
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 };
|
|
1683
|
+
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_FETCHER_OPTIONS, 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 IFetcherOptions, 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
|
@@ -216,18 +216,6 @@ declare const castProtocol: (data: Partial<Record<keyof Protocol, any>>) => Prot
|
|
|
216
216
|
|
|
217
217
|
type Token = keyof typeof SUPPORTED_TOKENS;
|
|
218
218
|
|
|
219
|
-
type TransactionInfo = {
|
|
220
|
-
index: number;
|
|
221
|
-
block: string;
|
|
222
|
-
hash: string;
|
|
223
|
-
slot: string;
|
|
224
|
-
fees: string;
|
|
225
|
-
size: number;
|
|
226
|
-
deposit: string;
|
|
227
|
-
invalidBefore: string;
|
|
228
|
-
invalidAfter: string;
|
|
229
|
-
};
|
|
230
|
-
|
|
231
219
|
type UTxO = {
|
|
232
220
|
input: {
|
|
233
221
|
outputIndex: number;
|
|
@@ -243,6 +231,20 @@ type UTxO = {
|
|
|
243
231
|
};
|
|
244
232
|
};
|
|
245
233
|
|
|
234
|
+
type TransactionInfo = {
|
|
235
|
+
index: number;
|
|
236
|
+
block: string;
|
|
237
|
+
hash: string;
|
|
238
|
+
slot: string;
|
|
239
|
+
fees: string;
|
|
240
|
+
size: number;
|
|
241
|
+
deposit: string;
|
|
242
|
+
invalidBefore: string;
|
|
243
|
+
invalidAfter: string;
|
|
244
|
+
inputs: UTxO[];
|
|
245
|
+
outputs: UTxO[];
|
|
246
|
+
};
|
|
247
|
+
|
|
246
248
|
type Wallet = {
|
|
247
249
|
id: string;
|
|
248
250
|
name: string;
|
|
@@ -1526,12 +1528,19 @@ declare const CIP68_100: (tokenNameHex: string) => string;
|
|
|
1526
1528
|
*/
|
|
1527
1529
|
declare const CIP68_222: (tokenNameHex: string) => string;
|
|
1528
1530
|
|
|
1531
|
+
type IFetcherOptions = {
|
|
1532
|
+
maxPage?: number;
|
|
1533
|
+
order?: "asc" | "desc";
|
|
1534
|
+
[key: string]: any;
|
|
1535
|
+
};
|
|
1536
|
+
declare const DEFAULT_FETCHER_OPTIONS: IFetcherOptions;
|
|
1529
1537
|
/**
|
|
1530
1538
|
* Fetcher interface defines end points to query blockchain data.
|
|
1531
1539
|
*/
|
|
1532
1540
|
interface IFetcher {
|
|
1533
1541
|
fetchAccountInfo(address: string): Promise<AccountInfo>;
|
|
1534
1542
|
fetchAddressUTxOs(address: string, asset?: string): Promise<UTxO[]>;
|
|
1543
|
+
fetchAddressTxs(address: string, options?: IFetcherOptions): Promise<TransactionInfo[]>;
|
|
1535
1544
|
fetchAssetAddresses(asset: string): Promise<{
|
|
1536
1545
|
address: string;
|
|
1537
1546
|
quantity: string;
|
|
@@ -1671,4 +1680,4 @@ declare const hashDrepAnchor: (jsonLD: object) => string;
|
|
|
1671
1680
|
|
|
1672
1681
|
declare function getFile(url: string): string;
|
|
1673
1682
|
|
|
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 };
|
|
1683
|
+
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_FETCHER_OPTIONS, 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 IFetcherOptions, 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.js
CHANGED
|
@@ -767,6 +767,12 @@ var CIP68_222 = (tokenNameHex) => {
|
|
|
767
767
|
return `000de140${tokenNameHex}`;
|
|
768
768
|
};
|
|
769
769
|
|
|
770
|
+
// src/interfaces/fetcher.ts
|
|
771
|
+
var DEFAULT_FETCHER_OPTIONS = {
|
|
772
|
+
maxPage: 100,
|
|
773
|
+
order: "desc"
|
|
774
|
+
};
|
|
775
|
+
|
|
770
776
|
// src/types/asset.ts
|
|
771
777
|
var mergeAssets = (assets) => {
|
|
772
778
|
const merged = [];
|
|
@@ -1830,6 +1836,7 @@ export {
|
|
|
1830
1836
|
BigNum,
|
|
1831
1837
|
CIP68_100,
|
|
1832
1838
|
CIP68_222,
|
|
1839
|
+
DEFAULT_FETCHER_OPTIONS,
|
|
1833
1840
|
DEFAULT_PROTOCOL_PARAMETERS,
|
|
1834
1841
|
DEFAULT_REDEEMER_BUDGET,
|
|
1835
1842
|
DEFAULT_V1_COST_MODEL_LIST,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meshsdk/common",
|
|
3
|
-
"version": "1.9.0-beta.
|
|
3
|
+
"version": "1.9.0-beta.14",
|
|
4
4
|
"description": "Contains constants, types and interfaces used across the SDK and different serialization libraries",
|
|
5
5
|
"main": "./dist/index.cjs",
|
|
6
6
|
"browser": "./dist/index.js",
|