alkanesjs 1.1.0 → 1.1.2

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.d.ts CHANGED
@@ -818,6 +818,50 @@ type BasePsbtParams = {
818
818
  feeRate?: number;
819
819
  fee?: number;
820
820
  };
821
+ declare const addressFormats: {
822
+ readonly mainnet: {
823
+ readonly p2pkh: RegExp;
824
+ readonly p2sh: RegExp;
825
+ readonly p2wpkh: RegExp;
826
+ readonly p2wsh: RegExp;
827
+ readonly p2tr: RegExp;
828
+ };
829
+ readonly testnet: {
830
+ readonly p2pkh: RegExp;
831
+ readonly p2sh: RegExp;
832
+ readonly p2wpkh: RegExp;
833
+ readonly p2wsh: RegExp;
834
+ readonly p2tr: RegExp;
835
+ };
836
+ readonly signet: {
837
+ readonly p2pkh: RegExp;
838
+ readonly p2sh: RegExp;
839
+ readonly p2wpkh: RegExp;
840
+ readonly p2wsh: RegExp;
841
+ readonly p2tr: RegExp;
842
+ };
843
+ readonly regtest: {
844
+ readonly p2pkh: RegExp;
845
+ readonly p2sh: RegExp;
846
+ readonly p2wpkh: RegExp;
847
+ readonly p2wsh: RegExp;
848
+ readonly p2tr: RegExp;
849
+ };
850
+ };
851
+ declare const addressTypeToName: {
852
+ readonly p2pkh: "legacy";
853
+ readonly p2sh: "nested-segwit";
854
+ readonly p2wsh: "native-segwit";
855
+ readonly p2wpkh: "segwit";
856
+ readonly p2tr: "taproot";
857
+ };
858
+ declare const addressNameToType: {
859
+ readonly legacy: "p2pkh";
860
+ readonly segwit: "p2wpkh";
861
+ readonly "nested-segwit": "p2sh";
862
+ readonly "native-segwit": "p2wsh";
863
+ readonly taproot: "p2tr";
864
+ };
821
865
  declare function getAddressType(address: string): AddressType | null;
822
866
  declare function redeemTypeFromOutput(script: Buffer, network: bitcoin.Network): AddressType | null;
823
867
  declare function addInputDynamic(psbt: bitcoin.Psbt, network: bitcoin.Network, utxo: FormattedUtxo): void;
@@ -1434,5 +1478,5 @@ declare const TokenContract_base: new (provider: Provider, alkaneId: AlkaneId, s
1434
1478
  declare class TokenContract extends TokenContract_base {
1435
1479
  }
1436
1480
 
1437
- export { AddressType, AlkanesBaseContract, AlkanesExecuteError, AlkanesFetchError, AlkanesInscription, AlkanesRpcProvider, AlkanesSimulationError, AlkanesTraceError, BaseRpcProvider, DecodableAlkanesResponse, DecodeError, EcPair, ElectrumApiProvider, Encodable, EncodeError, EsploraFetchError, OrdFetchError, OrdRpcProvider, ParsableAlkaneId, ProtostoneTransaction, ProtostoneTransactionWithInscription, Provider, RpcError, RunesFetchError, RunesRpcProvider, SandshrewFetchError, SandshrewRpcProvider, TokenABI, TokenContract, abi, addInputDynamic, assertHex, buildRpcCall, calculateTaprootTxSize, decodeAlkanesTrace, decodeCBOR, excludeFields, execute, extractAbiErrorMessage, extractWithDummySigs, formatInputsToSign, getAddressType, getDummyProtostoneTransaction, getEstimatedFee, getProtostoneTransactionsWithInscription, getProtostoneUnsignedPsbtBase64, getVSize, hexToUint8Array, mapToPrimitives, minimumFee, parseSimulateReturn, psbtBuilder, redeemTypeFromOutput, reverseHexBytes, schemaAlkaneId, simulate, sleep, stripHex, tapTweakHash, toEsploraTx, toFormattedUtxo, trimUndefined, tweakSigner, u128Schema, unmapFromPrimitives, witnessStackToScriptWitness };
1481
+ export { AddressType, AlkanesBaseContract, AlkanesExecuteError, AlkanesFetchError, AlkanesInscription, AlkanesRpcProvider, AlkanesSimulationError, AlkanesTraceError, BaseRpcProvider, DecodableAlkanesResponse, DecodeError, EcPair, ElectrumApiProvider, Encodable, EncodeError, EsploraFetchError, OrdFetchError, OrdRpcProvider, ParsableAlkaneId, ProtostoneTransaction, ProtostoneTransactionWithInscription, Provider, RpcError, RunesFetchError, RunesRpcProvider, SandshrewFetchError, SandshrewRpcProvider, TokenABI, TokenContract, abi, addInputDynamic, addressFormats, addressNameToType, addressTypeToName, assertHex, buildRpcCall, calculateTaprootTxSize, decodeAlkanesTrace, decodeCBOR, excludeFields, execute, extractAbiErrorMessage, extractWithDummySigs, formatInputsToSign, getAddressType, getDummyProtostoneTransaction, getEstimatedFee, getProtostoneTransactionsWithInscription, getProtostoneUnsignedPsbtBase64, getVSize, hexToUint8Array, mapToPrimitives, minimumFee, parseSimulateReturn, psbtBuilder, redeemTypeFromOutput, reverseHexBytes, schemaAlkaneId, simulate, sleep, stripHex, tapTweakHash, toEsploraTx, toFormattedUtxo, trimUndefined, tweakSigner, u128Schema, unmapFromPrimitives, witnessStackToScriptWitness };
1438
1482
  export type { Account, AddressKey, Alkane, AlkaneDetails, AlkaneEncoded, AlkaneEncodedSimulationRequest, AlkaneId, AlkaneReadableId, AlkaneRune, AlkaneSimulateRequest, AlkaneToken, AlkanesByAddressOutpoint, AlkanesByAddressResponse, AlkanesByAddressRuneBalance, AlkanesExecuteResponse, AlkanesOutpoint, AlkanesOutpointExtended, AlkanesOutpoints, AlkanesOutpointsExtended, AlkanesParsedSimulationResult, AlkanesParsedTraceResult, AlkanesPushExecuteResponse, AlkanesRawSimulationResponse, AlkanesSimulationResult, AlkanesTraceCreateEvent, AlkanesTraceEncodedCreateEvent, AlkanesTraceEncodedEvent, AlkanesTraceEncodedInvokeEvent, AlkanesTraceEncodedResult, AlkanesTraceEncodedReturnEvent, AlkanesTraceEvent, AlkanesTraceInvokeEvent, AlkanesTraceResult, AlkanesTraceReturnEvent, AlkanesUtxo, AlkanesUtxoBalance, AlkanesUtxoEntry, AvailableDecodeKind, AvailableEncodeKind, CustomSpec, Dec, DecodedCBOR, DecodedCBORValue, DecoderFns, Enc, EncodedAlkaneId, EncoderFns, EsploraAddressResponse, EsploraAddressStats, EsploraUtxo, ExecuteSpec, Expand, FormattedUtxo, HDPaths, IDecodableAlkanesResponse, IEncodable, IEsploraBlockHeader, IEsploraPrevout, IEsploraSpendableUtxo, IEsploraTransaction, IEsploraTransactionStatus, IEsploraVin, IEsploraVout, ISchemaAlkaneId, OpcodeTable, OrdBlock, OrdInscription, OrdOutput, OrdOutputRune, OrdPaginatedIds, OrdSat, ProtoRunesToken, ProtostoneTransactionOptions, ProtostoneTransactionOptionsPartial, ProviderConfig, PsbtInputExtended, ResolveSchema, RpcCall, RpcResponse, RpcTuple, Rune, RuneBalance, RuneName, RunesAddressResult, RunesOutpoint, RunesOutpointResult, Schema, SingularAlkanesTransfer, SingularBTCTransfer, SingularTransfer, SpendStrategy, ViewSpec, WalletStandard };