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.
- package/.github/dependabot.yml +0 -2
- package/browser/_version.d.ts +1 -1
- package/browser/contracts/CallResult.d.ts +3 -2
- package/browser/contracts/Contract.d.ts +3 -1
- package/browser/contracts/interfaces/IContract.d.ts +1 -1
- package/browser/index.js +1 -1
- package/browser/providers/interfaces/PublicKeyInfo.d.ts +1 -1
- package/build/_version.d.ts +1 -1
- package/build/_version.js +1 -1
- package/build/contracts/CallResult.d.ts +3 -2
- package/build/contracts/CallResult.js +9 -3
- package/build/contracts/Contract.d.ts +3 -1
- package/build/contracts/Contract.js +25 -11
- package/build/contracts/TypeToStr.js +1 -1
- package/build/contracts/interfaces/IContract.d.ts +1 -1
- package/build/providers/interfaces/PublicKeyInfo.d.ts +1 -1
- package/build/transactions/metadata/TransactionReceipt.js +8 -8
- package/package.json +3 -3
- package/src/_version.ts +1 -1
- package/src/contracts/CallResult.ts +10 -3
- package/src/contracts/Contract.ts +39 -14
- package/src/contracts/TypeToStr.ts +1 -1
- package/src/contracts/interfaces/IContract.ts +1 -1
- package/src/providers/interfaces/PublicKeyInfo.ts +1 -1
- package/src/transactions/interfaces/transactions/ICommonTransaction.ts +1 -1
- package/src/transactions/interfaces/transactions/IDeploymentTransaction.ts +1 -1
- package/src/transactions/metadata/TransactionReceipt.ts +8 -8
package/.github/dependabot.yml
CHANGED
package/browser/_version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.5.
|
|
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
|
|
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
|
|
9
|
+
get p2opOrTweaked(): string;
|
|
10
10
|
currentGasParameters(): Promise<BlockGasParameters>;
|
|
11
11
|
setSender(sender: Address): void;
|
|
12
12
|
decodeEvents(events: NetEvent[] | ContractEvents): OPNetEvent[];
|