opnet 1.5.13 → 1.5.16

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.
@@ -1 +1 @@
1
- export declare const version = "1.5.13";
1
+ export declare const version = "1.5.16";
@@ -1,3 +1,20 @@
1
+ export interface FeeRecommendation {
2
+ low: string;
3
+ medium: string;
4
+ high: string;
5
+ }
6
+ export interface RawBitcoinFees {
7
+ readonly conservative: string;
8
+ readonly recommended: FeeRecommendation;
9
+ }
10
+ export interface BitcoinFees {
11
+ readonly conservative: number;
12
+ readonly recommended: {
13
+ readonly low: number;
14
+ readonly medium: number;
15
+ readonly high: number;
16
+ };
17
+ }
1
18
  export interface IBlockGasParameters {
2
19
  readonly blockNumber: bigint;
3
20
  readonly gasUsed: bigint;
@@ -5,6 +22,7 @@ export interface IBlockGasParameters {
5
22
  readonly ema: bigint;
6
23
  readonly baseGas: bigint;
7
24
  readonly gasPerSat: bigint;
25
+ readonly bitcoin: BitcoinFees;
8
26
  }
9
27
  export interface IBlockGasParametersInput {
10
28
  readonly blockNumber: string;
@@ -13,6 +31,7 @@ export interface IBlockGasParametersInput {
13
31
  readonly ema: string;
14
32
  readonly baseGas: string;
15
33
  readonly gasPerSat: string;
34
+ readonly bitcoin: RawBitcoinFees;
16
35
  }
17
36
  export declare class BlockGasParameters implements IBlockGasParameters {
18
37
  readonly blockNumber: bigint;
@@ -21,5 +40,6 @@ export declare class BlockGasParameters implements IBlockGasParameters {
21
40
  readonly ema: bigint;
22
41
  readonly baseGas: bigint;
23
42
  readonly gasPerSat: bigint;
43
+ readonly bitcoin: BitcoinFees;
24
44
  constructor(data: IBlockGasParametersInput);
25
45
  }
@@ -6,6 +6,7 @@ import { ContractDecodedObjectResult, DecodedOutput } from './Contract.js';
6
6
  import { IAccessList } from './interfaces/IAccessList.js';
7
7
  import { EventList, ICallResultData } from './interfaces/ICallResult.js';
8
8
  import { OPNetEvent } from './OPNetEvent.js';
9
+ import { BitcoinFees } from '../block/BlockGasParameters.js';
9
10
  export interface TransactionParameters {
10
11
  readonly signer?: Signer | ECPairInterface;
11
12
  readonly refundTo: string;
@@ -50,6 +51,7 @@ export declare class CallResult<T extends ContractDecodedObjectResult = {}, U ex
50
51
  setTo(to: string, address: Address): void;
51
52
  sendTransaction(interactionParams: TransactionParameters, amountAddition?: bigint): Promise<InteractionTransactionReceipt>;
52
53
  setGasEstimation(estimatedGas: bigint, refundedGas: bigint): void;
54
+ setBitcoinFee(fees: BitcoinFees): void;
53
55
  setDecoded(decoded: DecodedOutput): void;
54
56
  setEvents(events: U): void;
55
57
  setCalldata(calldata: Buffer): void;