@btc-vision/transaction 1.1.11 → 1.1.12
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/index.js +1 -1
- package/browser/keypair/Address.d.ts +1 -0
- package/browser/transaction/interfaces/ITransactionParameters.d.ts +1 -1
- package/build/_version.d.ts +1 -1
- package/build/_version.js +1 -1
- package/build/keypair/Address.d.ts +1 -0
- package/build/keypair/Address.js +3 -0
- package/build/transaction/interfaces/ITransactionParameters.d.ts +1 -1
- package/package.json +1 -1
- package/src/_version.ts +1 -1
- package/src/keypair/Address.ts +7 -0
- package/src/transaction/interfaces/ITransactionParameters.ts +1 -2
|
@@ -22,7 +22,7 @@ export interface SharedInteractionParameters extends ITransactionParameters {
|
|
|
22
22
|
disableAutoRefund?: boolean;
|
|
23
23
|
readonly randomBytes?: Buffer;
|
|
24
24
|
}
|
|
25
|
-
export interface IInteractionParameters extends
|
|
25
|
+
export interface IInteractionParameters extends SharedInteractionParameters {
|
|
26
26
|
readonly calldata: Buffer;
|
|
27
27
|
readonly to: string;
|
|
28
28
|
}
|
package/build/_version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "1.1.
|
|
1
|
+
export declare const version = "1.1.12";
|
package/build/_version.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '1.1.
|
|
1
|
+
export const version = '1.1.12';
|
package/build/keypair/Address.js
CHANGED
|
@@ -133,6 +133,9 @@ export class Address extends Uint8Array {
|
|
|
133
133
|
toString() {
|
|
134
134
|
return this.toHex();
|
|
135
135
|
}
|
|
136
|
+
toJSON() {
|
|
137
|
+
return this.toHex();
|
|
138
|
+
}
|
|
136
139
|
p2tr(network) {
|
|
137
140
|
if (__classPrivateFieldGet(this, _Address_p2tr, "f") && __classPrivateFieldGet(this, _Address_network, "f") === network) {
|
|
138
141
|
return __classPrivateFieldGet(this, _Address_p2tr, "f");
|
|
@@ -22,7 +22,7 @@ export interface SharedInteractionParameters extends ITransactionParameters {
|
|
|
22
22
|
disableAutoRefund?: boolean;
|
|
23
23
|
readonly randomBytes?: Buffer;
|
|
24
24
|
}
|
|
25
|
-
export interface IInteractionParameters extends
|
|
25
|
+
export interface IInteractionParameters extends SharedInteractionParameters {
|
|
26
26
|
readonly calldata: Buffer;
|
|
27
27
|
readonly to: string;
|
|
28
28
|
}
|
package/package.json
CHANGED
package/src/_version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const version = '1.1.
|
|
1
|
+
export const version = '1.1.12';
|
package/src/keypair/Address.ts
CHANGED
|
@@ -228,6 +228,13 @@ export class Address extends Uint8Array {
|
|
|
228
228
|
public toString(): string {
|
|
229
229
|
return this.toHex();
|
|
230
230
|
}
|
|
231
|
+
|
|
232
|
+
/**
|
|
233
|
+
* Convert the address to a JSON string
|
|
234
|
+
*/
|
|
235
|
+
public toJSON(): string {
|
|
236
|
+
return this.toHex();
|
|
237
|
+
}
|
|
231
238
|
|
|
232
239
|
/**
|
|
233
240
|
* Get the address in p2tr format
|
|
@@ -33,8 +33,7 @@ export interface SharedInteractionParameters extends ITransactionParameters {
|
|
|
33
33
|
readonly randomBytes?: Buffer;
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
-
export interface IInteractionParameters
|
|
37
|
-
extends Omit<SharedInteractionParameters, 'optionalOutputs'> {
|
|
36
|
+
export interface IInteractionParameters extends SharedInteractionParameters {
|
|
38
37
|
readonly calldata: Buffer;
|
|
39
38
|
|
|
40
39
|
readonly to: string;
|