opnet 1.3.15 → 1.3.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.3.15";
1
+ export declare const version = "1.3.16";
@@ -34,13 +34,13 @@ export type LogUpdatePoolEvent = {
34
34
  export type StakedBTCEvent = {
35
35
  readonly user: Address;
36
36
  readonly netAmount: bigint;
37
- readonly stakeTxHash: bigint;
37
+ readonly stakeTxId: bigint;
38
38
  readonly stakeIndex: bigint;
39
39
  };
40
40
  export type UnstakedBTCEvent = {
41
41
  readonly user: Address;
42
42
  readonly pendingMoto: bigint;
43
- readonly storedTxHash: bigint;
43
+ readonly storedTxId: bigint;
44
44
  readonly storedIndex: bigint;
45
45
  };
46
46
  export type LogSetPoolEvent = {
@@ -115,8 +115,8 @@ export type PendingMoto = CallResult<{
115
115
  export type TreasuryAddress = CallResult<{
116
116
  treasuryAddress: string;
117
117
  }, OPNetEvent<never>[]>;
118
- export type GetStakingTxHash = CallResult<{
119
- stakingTxHash: bigint;
118
+ export type GetStakingTxId = CallResult<{
119
+ stakingTxId: bigint;
120
120
  }, OPNetEvent<never>[]>;
121
121
  export type GetStakingIndex = CallResult<{
122
122
  stakingIndex: bigint;
@@ -186,7 +186,7 @@ export interface IMotoChef extends IOwnable {
186
186
  getMultiplier(from: bigint, to: bigint): Promise<GetMultiplier>;
187
187
  pendingMoto(poolId: bigint, user: Address): Promise<PendingMoto>;
188
188
  treasuryAddress(): Promise<TreasuryAddress>;
189
- getStakingTxHash(user: Address): Promise<GetStakingTxHash>;
189
+ getStakingTxId(user: Address): Promise<GetStakingTxId>;
190
190
  getStakingIndex(user: Address): Promise<GetStakingIndex>;
191
191
  totalBTCStaked(): Promise<TotalBTCStaked>;
192
192
  stakeBTC(amount: bigint): Promise<StakeBTC>;
@@ -1,5 +1,5 @@
1
1
  import { Network, PsbtOutputExtended, Signer } from '@btc-vision/bitcoin';
2
- import { BinaryReader, UTXO } from '@btc-vision/transaction';
2
+ import { 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';
@@ -30,6 +30,7 @@ export declare class CallResult<T extends ContractDecodedObjectResult = {}, U ex
30
30
  readonly accessList: IAccessList;
31
31
  readonly revert: string | undefined;
32
32
  calldata: Buffer | undefined;
33
+ loadedStorage: LoadedStorage | undefined;
33
34
  readonly estimatedGas: bigint | undefined;
34
35
  properties: T;
35
36
  estimatedSatGas: bigint;
@@ -43,6 +44,7 @@ export declare class CallResult<T extends ContractDecodedObjectResult = {}, U ex
43
44
  setDecoded(decoded: DecodedOutput): void;
44
45
  setEvents(events: U): void;
45
46
  setCalldata(calldata: Buffer): void;
47
+ private getValuesFromAccessList;
46
48
  private contractToString;
47
49
  private parseEvents;
48
50
  private base64ToUint8Array;
@@ -1,4 +1,4 @@
1
- import { BinaryReader, NetEvent } from '@btc-vision/transaction';
1
+ import { BinaryReader, LoadedStorage, NetEvent } from '@btc-vision/transaction';
2
2
  import { IAccessList } from './IAccessList.js';
3
3
  export interface ICallRequestError {
4
4
  readonly error: string;
@@ -19,5 +19,6 @@ export interface ICallResultData {
19
19
  readonly accessList: IAccessList;
20
20
  readonly revert?: string;
21
21
  readonly estimatedGas?: string;
22
+ readonly loadedStorage?: LoadedStorage;
22
23
  }
23
24
  export type ICallResult = ICallRequestError | ICallResultData;