alkanesjs 1.2.3 → 1.2.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.d.ts CHANGED
@@ -1,5 +1,6 @@
1
1
  import * as bitcoin from 'bitcoinjs-lib';
2
2
  import { Network, Psbt, Transaction } from 'bitcoinjs-lib';
3
+ import { Espo as Espo$1 } from 'espo-ts';
3
4
  import { BorshSchema, Infer } from 'borsher';
4
5
  import { z } from 'zod';
5
6
  import * as ecpair from 'ecpair';
@@ -159,6 +160,7 @@ declare class WaitPacer {
159
160
  interface ProviderConfig {
160
161
  sandshrewUrl: string;
161
162
  electrumApiUrl: string;
163
+ espoUrl: string;
162
164
  network: Network;
163
165
  explorerUrl: string;
164
166
  defaultFeeRate?: number;
@@ -180,6 +182,7 @@ type AlkanesParsedTraceResult = {
180
182
  declare class Provider {
181
183
  readonly sandshrewUrl: string;
182
184
  readonly electrumApiUrl: string;
185
+ readonly espoUrl: string;
183
186
  readonly network: Network;
184
187
  readonly explorerUrl: string;
185
188
  readonly pacerSettings: PacerSettings;
@@ -328,8 +331,8 @@ declare class OrdRpcProvider {
328
331
  }
329
332
 
330
333
  interface EncodedAlkaneId {
331
- block: string;
332
- tx: string;
334
+ block: bigint;
335
+ tx: bigint;
333
336
  }
334
337
  type AlkaneEncoded = {
335
338
  value: string;
@@ -425,10 +428,10 @@ type AlkaneEncodedSimulationRequest = {
425
428
  alkanes: any[];
426
429
  transaction: string;
427
430
  block: string;
428
- height: string;
431
+ height: bigint;
429
432
  txindex: number;
430
433
  target: EncodedAlkaneId;
431
- inputs: string[];
434
+ inputs: bigint[];
432
435
  pointer: number;
433
436
  refundPointer: number;
434
437
  vout: number;
@@ -605,12 +608,19 @@ declare class RunesRpcProvider {
605
608
  runes_getOutpoint(txidAndVout: string, blockHeight?: string): RpcCall<RunesOutpoint>;
606
609
  }
607
610
 
611
+ type EspoCtor = new (url: string) => Espo$1;
612
+ declare const Espo: EspoCtor | undefined;
613
+ declare class EspoRpcProvider extends Espo {
614
+ constructor(providerOrUrl: Provider | string);
615
+ }
616
+
608
617
  declare class BaseRpcProvider {
609
618
  readonly electrum: ElectrumApiProvider;
610
619
  readonly ord: OrdRpcProvider;
611
620
  readonly alkanes: AlkanesRpcProvider;
612
621
  readonly sandshrew: SandshrewRpcProvider;
613
622
  readonly runes: RunesRpcProvider;
623
+ readonly espo: EspoRpcProvider;
614
624
  constructor(coreProvider: Provider);
615
625
  }
616
626
 
@@ -1512,5 +1522,5 @@ declare const TokenContract_base: new (provider: Provider, alkaneId: AlkaneId, s
1512
1522
  declare class TokenContract extends TokenContract_base {
1513
1523
  }
1514
1524
 
1515
- 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, makeFakeBlock, mapToPrimitives, minimumFee, parseSimulateReturn, psbtBuilder, redeemTypeFromOutput, reverseHexBytes, schemaAlkaneId, simulate, sleep, stripHex, tapTweakHash, toEsploraTx, toFormattedUtxo, toU128LittleEndianHex, toU64BigEndianHex, toU64LittleEndianHex, trimUndefined, tweakSigner, u128Schema, unmapFromPrimitives, witnessStackToScriptWitness };
1525
+ export { AddressType, AlkanesBaseContract, AlkanesExecuteError, AlkanesFetchError, AlkanesInscription, AlkanesRpcProvider, AlkanesSimulationError, AlkanesTraceError, BaseRpcProvider, DecodableAlkanesResponse, DecodeError, EcPair, ElectrumApiProvider, Encodable, EncodeError, EsploraFetchError, EspoRpcProvider, 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, makeFakeBlock, mapToPrimitives, minimumFee, parseSimulateReturn, psbtBuilder, redeemTypeFromOutput, reverseHexBytes, schemaAlkaneId, simulate, sleep, stripHex, tapTweakHash, toEsploraTx, toFormattedUtxo, toU128LittleEndianHex, toU64BigEndianHex, toU64LittleEndianHex, trimUndefined, tweakSigner, u128Schema, unmapFromPrimitives, witnessStackToScriptWitness };
1516
1526
  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 };