opnet 1.6.26 → 1.6.28
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/browser/_version.d.ts +1 -1
- package/browser/bitcoin/UTXOs.d.ts +2 -1
- package/browser/contracts/CallResult.d.ts +6 -2
- package/browser/index.js +1 -1
- package/browser/providers/AbstractRpcProvider.d.ts +3 -1
- package/browser/utxos/UTXOsManager.d.ts +2 -2
- package/browser/utxos/interfaces/IUTXOsManager.d.ts +2 -0
- package/build/_version.d.ts +1 -1
- package/build/_version.js +1 -1
- package/build/bitcoin/UTXOs.d.ts +2 -1
- package/build/bitcoin/UTXOs.js +3 -1
- package/build/contracts/CallResult.d.ts +6 -2
- package/build/contracts/CallResult.js +19 -6
- package/build/contracts/Contract.js +1 -0
- package/build/providers/AbstractRpcProvider.d.ts +3 -1
- package/build/providers/AbstractRpcProvider.js +10 -1
- package/build/utxos/UTXOsManager.d.ts +2 -2
- package/build/utxos/UTXOsManager.js +23 -11
- package/build/utxos/interfaces/IUTXOsManager.d.ts +2 -0
- package/package.json +2 -2
- package/src/_version.ts +1 -1
- package/src/bitcoin/UTXOs.ts +4 -1
- package/src/contracts/CallResult.ts +33 -6
- package/src/contracts/Contract.ts +1 -0
- package/src/providers/AbstractRpcProvider.ts +20 -0
- package/src/utxos/UTXOsManager.ts +37 -13
- package/src/utxos/interfaces/IUTXOsManager.ts +2 -0
package/browser/_version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.6.
|
|
1
|
+
export declare const version = "1.6.28";
|
|
@@ -8,6 +8,7 @@ export declare class UTXO implements Omit<IUTXO, 'raw'> {
|
|
|
8
8
|
readonly nonWitnessUtxo?: Buffer | string;
|
|
9
9
|
witnessScript?: Buffer | string;
|
|
10
10
|
redeemScript?: Buffer | string;
|
|
11
|
-
|
|
11
|
+
isCSV?: boolean;
|
|
12
|
+
constructor(iUTXO: IUTXO, isCSV?: boolean);
|
|
12
13
|
}
|
|
13
14
|
export type UTXOs = UTXO[];
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Network, PsbtOutputExtended, Signer } from '@btc-vision/bitcoin';
|
|
2
|
-
import { Address, BinaryReader, LoadedStorage, RawChallenge, SupportedTransactionVersion
|
|
2
|
+
import { Address, BinaryReader, IP2WSHAddress, LoadedStorage, RawChallenge, SupportedTransactionVersion } from '@btc-vision/transaction';
|
|
3
3
|
import { ECPairInterface } from 'ecpair';
|
|
4
|
+
import { UTXO } from '../bitcoin/UTXOs.js';
|
|
4
5
|
import { BitcoinFees } from '../block/BlockGasParameters.js';
|
|
5
6
|
import { AbstractRpcProvider } from '../providers/AbstractRpcProvider.js';
|
|
6
7
|
import { ContractDecodedObjectResult, DecodedOutput } from './Contract.js';
|
|
@@ -24,7 +25,7 @@ export interface TransactionParameters {
|
|
|
24
25
|
readonly from?: Address;
|
|
25
26
|
readonly txVersion?: SupportedTransactionVersion;
|
|
26
27
|
readonly anchor?: boolean;
|
|
27
|
-
readonly
|
|
28
|
+
readonly dontUseCSVUtxos?: boolean;
|
|
28
29
|
}
|
|
29
30
|
export interface InteractionTransactionReceipt {
|
|
30
31
|
readonly transactionId: string;
|
|
@@ -52,6 +53,8 @@ export declare class CallResult<T extends ContractDecodedObjectResult = {}, U ex
|
|
|
52
53
|
events: U;
|
|
53
54
|
to: string | undefined;
|
|
54
55
|
address: Address | undefined;
|
|
56
|
+
fromAddress: Address | undefined;
|
|
57
|
+
csvAddress: IP2WSHAddress | undefined;
|
|
55
58
|
constructor(callResult: ICallResultData, provider: AbstractRpcProvider);
|
|
56
59
|
get rawEvents(): EventList;
|
|
57
60
|
static decodeRevertData(revertDataBytes: Uint8Array | Buffer): string;
|
|
@@ -59,6 +62,7 @@ export declare class CallResult<T extends ContractDecodedObjectResult = {}, U ex
|
|
|
59
62
|
private static areBytesEqual;
|
|
60
63
|
private static bytesToHexString;
|
|
61
64
|
setTo(to: string, address: Address): void;
|
|
65
|
+
setFromAddress(from?: Address): void;
|
|
62
66
|
sendTransaction(interactionParams: TransactionParameters, amountAddition?: bigint): Promise<InteractionTransactionReceipt>;
|
|
63
67
|
setGasEstimation(estimatedGas: bigint, refundedGas: bigint): void;
|
|
64
68
|
setBitcoinFee(fees: BitcoinFees): void;
|