opnet 1.5.2 → 1.5.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.
@@ -22,8 +22,6 @@ updates:
22
22
  prefix: '⬆️'
23
23
  include: scope
24
24
 
25
- reviewers:
26
- - 'BlobMaster41'
27
25
  labels:
28
26
  - 'dependencies'
29
27
  - 'npm'
@@ -1 +1 @@
1
- export declare const version = "1.5.1";
1
+ export declare const version = "1.5.4";
@@ -1,5 +1,5 @@
1
1
  import { Network, PsbtOutputExtended, Signer } from '@btc-vision/bitcoin';
2
- import { BinaryReader, LoadedStorage, UTXO } from '@btc-vision/transaction';
2
+ import { Address, BinaryReader, LoadedStorage, UTXO } from '@btc-vision/transaction';
3
3
  import { ECPairInterface } from 'ecpair';
4
4
  import { AbstractRpcProvider } from '../providers/AbstractRpcProvider.js';
5
5
  import { ContractDecodedObjectResult, DecodedOutput } from './Contract.js';
@@ -40,13 +40,14 @@ export declare class CallResult<T extends ContractDecodedObjectResult = {}, U ex
40
40
  estimatedRefundedGasInSat: bigint;
41
41
  events: U;
42
42
  to: string | undefined;
43
+ address: Address | undefined;
43
44
  constructor(callResult: ICallResultData, provider: AbstractRpcProvider);
44
45
  get rawEvents(): EventList;
45
46
  static decodeRevertData(revertDataBytes: Uint8Array | Buffer): string;
46
47
  private static startsWithErrorSelector;
47
48
  private static areBytesEqual;
48
49
  private static bytesToHexString;
49
- setTo(to: string): void;
50
+ setTo(to: string, address: Address): void;
50
51
  sendTransaction(interactionParams: TransactionParameters, amountAddition?: bigint): Promise<InteractionTransactionReceipt>;
51
52
  setGasEstimation(estimatedGas: bigint, refundedGas: bigint): void;
52
53
  setDecoded(decoded: DecodedOutput): void;
@@ -33,8 +33,10 @@ export declare abstract class IBaseContract<T extends BaseContractProperties> im
33
33
  private currentTxDetails;
34
34
  private simulatedHeight;
35
35
  private accessList;
36
+ private _rlAddress;
36
37
  protected constructor(address: string | Address, abi: BitcoinInterface | BitcoinInterfaceAbi, provider: AbstractRpcProvider, network: Network, from?: Address);
37
- get p2trOrTweaked(): string;
38
+ get p2opOrTweaked(): string;
39
+ get contractAddress(): Promise<Address>;
38
40
  setSender(sender: Address): void;
39
41
  decodeEvents(events: NetEvent[] | ContractEvents): OPNetEvent<ContractDecodedObjectResult>[];
40
42
  decodeEvent(event: NetEvent): OPNetEvent;
@@ -6,7 +6,7 @@ import { IAccessList } from './IAccessList.js';
6
6
  import { ParsedSimulatedTransaction } from './SimulatedTransaction.js';
7
7
  export interface IContract {
8
8
  readonly address: Address | string;
9
- get p2trOrTweaked(): string;
9
+ get p2opOrTweaked(): string;
10
10
  currentGasParameters(): Promise<BlockGasParameters>;
11
11
  setSender(sender: Address): void;
12
12
  decodeEvents(events: NetEvent[] | ContractEvents): OPNetEvent[];