sats-connect 0.5.0 → 1.0.0-dc1319e
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/dist/{src/address → addresses}/index.d.ts +1 -1
- package/dist/{src/address → addresses}/index.js +2 -2
- package/dist/addresses/index.js.map +1 -0
- package/dist/addresses/types.d.ts +18 -0
- package/dist/addresses/types.js +9 -0
- package/dist/addresses/types.js.map +1 -0
- package/dist/call/index.d.ts +3 -0
- package/dist/call/index.js +42 -0
- package/dist/call/index.js.map +1 -0
- package/dist/call/types.d.ts +7 -0
- package/dist/{src/signatures → call}/types.js.map +1 -1
- package/dist/index.d.ts +6 -6
- package/dist/index.js +6 -6
- package/dist/index.js.map +1 -1
- package/dist/{src/signatures → messages}/index.d.ts +1 -1
- package/dist/messages/index.js.map +1 -0
- package/dist/messages/types.d.ts +7 -0
- package/dist/messages/types.js +3 -0
- package/dist/messages/types.js.map +1 -0
- package/dist/provider/index.d.ts +3 -0
- package/dist/provider/index.js +23 -0
- package/dist/provider/index.js.map +1 -0
- package/dist/provider/types.d.ts +16 -0
- package/dist/provider/types.js +3 -0
- package/dist/provider/types.js.map +1 -0
- package/dist/transactions/index.d.ts +3 -0
- package/dist/transactions/index.js +20 -0
- package/dist/transactions/index.js.map +1 -0
- package/dist/transactions/sendBtcTransaction.d.ts +2 -0
- package/dist/transactions/sendBtcTransaction.js +49 -0
- package/dist/transactions/sendBtcTransaction.js.map +1 -0
- package/dist/transactions/signTransaction.d.ts +2 -0
- package/dist/{src/transactions → transactions}/signTransaction.js +2 -2
- package/dist/transactions/signTransaction.js.map +1 -0
- package/dist/transactions/types.d.ts +34 -0
- package/dist/transactions/types.js +3 -0
- package/dist/transactions/types.js.map +1 -0
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/types.d.ts +18 -0
- package/dist/types.js +9 -0
- package/dist/types.js.map +1 -0
- package/package.json +1 -1
- package/dist/src/address/index.js.map +0 -1
- package/dist/src/address/types.d.ts +0 -28
- package/dist/src/address/types.js +0 -9
- package/dist/src/address/types.js.map +0 -1
- package/dist/src/call/index.d.ts +0 -17
- package/dist/src/call/index.js +0 -32
- package/dist/src/call/index.js.map +0 -1
- package/dist/src/provider/index.d.ts +0 -20
- package/dist/src/provider/index.js +0 -8
- package/dist/src/provider/index.js.map +0 -1
- package/dist/src/signatures/index.js.map +0 -1
- package/dist/src/signatures/types.d.ts +0 -12
- package/dist/src/transactions/sendBtcTransaction.d.ts +0 -18
- package/dist/src/transactions/sendBtcTransaction.js +0 -30
- package/dist/src/transactions/sendBtcTransaction.js.map +0 -1
- package/dist/src/transactions/signTransaction.d.ts +0 -24
- package/dist/src/transactions/signTransaction.js.map +0 -1
- /package/dist/{src/signatures → call}/types.js +0 -0
- /package/dist/{src/signatures → messages}/index.js +0 -0
|
@@ -29,8 +29,8 @@ const getAddress = async (options) => {
|
|
|
29
29
|
}
|
|
30
30
|
try {
|
|
31
31
|
const request = (0, jsontokens_1.createUnsecuredToken)(options.payload);
|
|
32
|
-
const
|
|
33
|
-
options.onFinish?.(
|
|
32
|
+
const response = await provider.connect(request);
|
|
33
|
+
options.onFinish?.(response);
|
|
34
34
|
}
|
|
35
35
|
catch (error) {
|
|
36
36
|
console.error('[Connect] Error during address request', error);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/addresses/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,2CAAkD;AAElD,0CAAiD;AAG1C,MAAM,UAAU,GAAG,KAAK,EAAE,OAA0B,EAAE,EAAE;IAC7D,MAAM,EAAE,WAAW,GAAG,6BAAkB,EAAE,GAAG,OAAO,CAAC;IACrD,MAAM,QAAQ,GAAG,MAAM,WAAW,EAAE,CAAC;IACrC,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;KAChD;IAED,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;IACrC,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;KAClD;IAED,IAAI;QACF,MAAM,OAAO,GAAG,IAAA,iCAAoB,EAAC,OAAO,CAAC,OAA0B,CAAC,CAAC;QACzE,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACjD,OAAO,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC;KAC9B;IAAC,OAAO,KAAK,EAAE;QACd,OAAO,CAAC,KAAK,CAAC,wCAAwC,EAAE,KAAK,CAAC,CAAC;QAC/D,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC;KACtB;AACH,CAAC,CAAC;AApBW,QAAA,UAAU,cAoBrB;AAEF,0CAAwB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { RequestOptions, RequestPayload } from '../types';
|
|
2
|
+
export declare enum AddressPurpose {
|
|
3
|
+
Ordinals = "ordinals",
|
|
4
|
+
Payment = "payment"
|
|
5
|
+
}
|
|
6
|
+
export interface GetAddressPayload extends RequestPayload {
|
|
7
|
+
purposes: AddressPurpose[];
|
|
8
|
+
message: string;
|
|
9
|
+
}
|
|
10
|
+
export interface Address {
|
|
11
|
+
address: string;
|
|
12
|
+
publicKey: string;
|
|
13
|
+
purpose: AddressPurpose;
|
|
14
|
+
}
|
|
15
|
+
export interface GetAddressResponse {
|
|
16
|
+
addresses: Address[];
|
|
17
|
+
}
|
|
18
|
+
export type GetAddressOptions = RequestOptions<GetAddressPayload, GetAddressResponse>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AddressPurpose = void 0;
|
|
4
|
+
var AddressPurpose;
|
|
5
|
+
(function (AddressPurpose) {
|
|
6
|
+
AddressPurpose["Ordinals"] = "ordinals";
|
|
7
|
+
AddressPurpose["Payment"] = "payment";
|
|
8
|
+
})(AddressPurpose = exports.AddressPurpose || (exports.AddressPurpose = {}));
|
|
9
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/addresses/types.ts"],"names":[],"mappings":";;;AAEA,IAAY,cAGX;AAHD,WAAY,cAAc;IACxB,uCAAqB,CAAA;IACrB,qCAAmB,CAAA;AACrB,CAAC,EAHW,cAAc,GAAd,sBAAc,KAAd,sBAAc,QAGzB"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.callWalletPopup = void 0;
|
|
18
|
+
const jsontokens_1 = require("jsontokens");
|
|
19
|
+
const provider_1 = require("../provider");
|
|
20
|
+
const callWalletPopup = async (options) => {
|
|
21
|
+
const { getProvider = provider_1.getDefaultProvider } = options;
|
|
22
|
+
const provider = await getProvider();
|
|
23
|
+
if (!provider) {
|
|
24
|
+
throw new Error('No Bitcoin wallet installed');
|
|
25
|
+
}
|
|
26
|
+
const { method } = options.payload;
|
|
27
|
+
if (!method) {
|
|
28
|
+
throw new Error('A wallet method is required');
|
|
29
|
+
}
|
|
30
|
+
const request = (0, jsontokens_1.createUnsecuredToken)(options.payload);
|
|
31
|
+
try {
|
|
32
|
+
const response = await provider.call(request);
|
|
33
|
+
options.onFinish?.(response);
|
|
34
|
+
}
|
|
35
|
+
catch (error) {
|
|
36
|
+
console.error('[Connect] Error during call request', error);
|
|
37
|
+
options.onCancel?.();
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
exports.callWalletPopup = callWalletPopup;
|
|
41
|
+
__exportStar(require("./types"), exports);
|
|
42
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/call/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,2CAAkD;AAElD,0CAAiD;AAG1C,MAAM,eAAe,GAAG,KAAK,EAAE,OAA0B,EAAE,EAAE;IAClE,MAAM,EAAE,WAAW,GAAG,6BAAkB,EAAE,GAAG,OAAO,CAAC;IACrD,MAAM,QAAQ,GAAG,MAAM,WAAW,EAAE,CAAC;IACrC,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;KAChD;IAED,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;IACnC,IAAI,CAAC,MAAM,EAAE;QACX,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;KAChD;IAED,MAAM,OAAO,GAAG,IAAA,iCAAoB,EAAC,OAAO,CAAC,OAA0B,CAAC,CAAC;IACzE,IAAI;QACF,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9C,OAAO,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC;KAC9B;IAAC,OAAO,KAAK,EAAE;QACd,OAAO,CAAC,KAAK,CAAC,qCAAqC,EAAE,KAAK,CAAC,CAAC;QAC5D,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC;KACtB;AACH,CAAC,CAAC;AApBW,QAAA,eAAe,mBAoB1B;AAEF,0CAAwB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { RequestOptions, RequestPayload } from '../types';
|
|
2
|
+
export interface CallWalletPayload extends RequestPayload {
|
|
3
|
+
method: string;
|
|
4
|
+
params?: any[];
|
|
5
|
+
}
|
|
6
|
+
export type CallWalletResponse = Record<string, any>;
|
|
7
|
+
export type CallWalletOptions = RequestOptions<CallWalletPayload, CallWalletResponse>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/call/types.ts"],"names":[],"mappings":""}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export * from './
|
|
2
|
-
export * from './
|
|
3
|
-
export * from './
|
|
4
|
-
export * from './
|
|
5
|
-
export * from './
|
|
6
|
-
export * from './
|
|
1
|
+
export * from './addresses';
|
|
2
|
+
export * from './call';
|
|
3
|
+
export * from './messages';
|
|
4
|
+
export * from './provider';
|
|
5
|
+
export * from './transactions';
|
|
6
|
+
export * from './types';
|
package/dist/index.js
CHANGED
|
@@ -14,10 +14,10 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
18
|
-
__exportStar(require("./
|
|
19
|
-
__exportStar(require("./
|
|
20
|
-
__exportStar(require("./
|
|
21
|
-
__exportStar(require("./
|
|
22
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./addresses"), exports);
|
|
18
|
+
__exportStar(require("./call"), exports);
|
|
19
|
+
__exportStar(require("./messages"), exports);
|
|
20
|
+
__exportStar(require("./provider"), exports);
|
|
21
|
+
__exportStar(require("./transactions"), exports);
|
|
22
|
+
__exportStar(require("./types"), exports);
|
|
23
23
|
//# sourceMappingURL=index.js.map
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,8CAA4B;AAC5B,yCAAuB;AACvB,6CAA2B;AAC3B,6CAA2B;AAC3B,iDAA+B;AAC/B,0CAAwB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/messages/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AACA,2CAAkD;AAElD,0CAAiD;AAG1C,MAAM,WAAW,GAAG,KAAK,EAAE,OAA2B,EAAE,EAAE;IAC/D,MAAM,EAAE,WAAW,GAAG,6BAAkB,EAAE,GAAG,OAAO,CAAC;IACrD,MAAM,QAAQ,GAAG,MAAM,WAAW,EAAE,CAAC;IACrC,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;KAChD;IAED,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;IAC7C,IAAI,CAAC,OAAO,EAAE;QACZ,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;KAC7D;IACD,IAAI,CAAC,OAAO,EAAE;QACZ,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;KACvD;IAED,IAAI;QACF,MAAM,OAAO,GAAG,IAAA,iCAAoB,EAAC,OAAO,CAAC,OAA0B,CAAC,CAAC;QACzE,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QACrD,OAAO,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC;KAC9B;IAAC,OAAO,KAAK,EAAE;QACd,OAAO,CAAC,KAAK,CAAC,6CAA6C,EAAE,KAAK,CAAC,CAAC;QACpE,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC;KACtB;AACH,CAAC,CAAC;AAvBW,QAAA,WAAW,eAuBtB;AAEF,0CAAwB"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { RequestOptions, RequestPayload } from '../types';
|
|
2
|
+
export interface SignMessagePayload extends RequestPayload {
|
|
3
|
+
address: string;
|
|
4
|
+
message: string;
|
|
5
|
+
}
|
|
6
|
+
export type SignMessageResponse = string;
|
|
7
|
+
export type SignMessageOptions = RequestOptions<SignMessagePayload, SignMessageResponse>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/messages/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.getDefaultProvider = void 0;
|
|
18
|
+
async function getDefaultProvider() {
|
|
19
|
+
return window.BitcoinProvider;
|
|
20
|
+
}
|
|
21
|
+
exports.getDefaultProvider = getDefaultProvider;
|
|
22
|
+
__exportStar(require("./types"), exports);
|
|
23
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/provider/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEO,KAAK,UAAU,kBAAkB;IACtC,OAAO,MAAM,CAAC,eAAe,CAAC;AAChC,CAAC;AAFD,gDAEC;AAED,0CAAwB"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import type { GetAddressResponse } from '../addresses';
|
|
2
|
+
import type { CallWalletResponse } from '../call';
|
|
3
|
+
import type { SignMessageResponse } from '../messages';
|
|
4
|
+
import type { SendBtcTransactionResponse, SignTransactionResponse } from '../transactions';
|
|
5
|
+
export interface BitcoinProvider {
|
|
6
|
+
call: (request: string) => Promise<CallWalletResponse>;
|
|
7
|
+
connect: (request: string) => Promise<GetAddressResponse>;
|
|
8
|
+
signMessage: (request: string) => Promise<SignMessageResponse>;
|
|
9
|
+
signTransaction: (request: string) => Promise<SignTransactionResponse>;
|
|
10
|
+
sendBtcTransaction: (request: string) => Promise<SendBtcTransactionResponse>;
|
|
11
|
+
}
|
|
12
|
+
declare global {
|
|
13
|
+
interface Window {
|
|
14
|
+
BitcoinProvider?: BitcoinProvider;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/provider/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./sendBtcTransaction"), exports);
|
|
18
|
+
__exportStar(require("./signTransaction"), exports);
|
|
19
|
+
__exportStar(require("./types"), exports);
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/transactions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,oDAAkC;AAClC,0CAAwB"}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.sendBtcTransaction = void 0;
|
|
4
|
+
const jsontokens_1 = require("jsontokens");
|
|
5
|
+
const provider_1 = require("../provider");
|
|
6
|
+
const serializer = (recipient) => {
|
|
7
|
+
return recipient.map((value) => {
|
|
8
|
+
const { address, amountSats } = value;
|
|
9
|
+
return {
|
|
10
|
+
address,
|
|
11
|
+
amountSats: amountSats.toString(),
|
|
12
|
+
};
|
|
13
|
+
});
|
|
14
|
+
};
|
|
15
|
+
const sendBtcTransaction = async (options) => {
|
|
16
|
+
const { getProvider = provider_1.getDefaultProvider } = options;
|
|
17
|
+
const provider = await getProvider();
|
|
18
|
+
if (!provider) {
|
|
19
|
+
throw new Error('No Bitcoin wallet installed');
|
|
20
|
+
}
|
|
21
|
+
const { recipients, senderAddress, network, message } = options.payload;
|
|
22
|
+
if (!recipients || recipients.length === 0) {
|
|
23
|
+
throw new Error('At least one recipient is required');
|
|
24
|
+
}
|
|
25
|
+
if (recipients.some((item) => typeof item.address !== 'string' || typeof item.amountSats !== 'bigint')) {
|
|
26
|
+
throw new Error('Incorrect recipient format');
|
|
27
|
+
}
|
|
28
|
+
if (!senderAddress) {
|
|
29
|
+
throw new Error('The sender address is required');
|
|
30
|
+
}
|
|
31
|
+
try {
|
|
32
|
+
const serializedRecipients = serializer(recipients);
|
|
33
|
+
const serializedPayload = {
|
|
34
|
+
network,
|
|
35
|
+
senderAddress,
|
|
36
|
+
message,
|
|
37
|
+
recipients: serializedRecipients,
|
|
38
|
+
};
|
|
39
|
+
const request = (0, jsontokens_1.createUnsecuredToken)(serializedPayload);
|
|
40
|
+
const response = await provider.sendBtcTransaction(request);
|
|
41
|
+
options.onFinish?.(response);
|
|
42
|
+
}
|
|
43
|
+
catch (error) {
|
|
44
|
+
console.error('[Connect] Error during send BTC transaction request', error);
|
|
45
|
+
options.onCancel?.();
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
exports.sendBtcTransaction = sendBtcTransaction;
|
|
49
|
+
//# sourceMappingURL=sendBtcTransaction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendBtcTransaction.js","sourceRoot":"","sources":["../../src/transactions/sendBtcTransaction.ts"],"names":[],"mappings":";;;AACA,2CAAkD;AAElD,0CAAiD;AAQjD,MAAM,UAAU,GAAG,CAAC,SAAsB,EAAyB,EAAE;IACnE,OAAO,SAAS,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE;QAC7B,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,GAAG,KAAK,CAAC;QACtC,OAAO;YACL,OAAO;YACP,UAAU,EAAE,UAAU,CAAC,QAAQ,EAAE;SAClC,CAAC;IACJ,CAAC,CAAC,CAAC;AACL,CAAC,CAAC;AAEK,MAAM,kBAAkB,GAAG,KAAK,EAAE,OAAkC,EAAE,EAAE;IAC7E,MAAM,EAAE,WAAW,GAAG,6BAAkB,EAAE,GAAG,OAAO,CAAC;IACrD,MAAM,QAAQ,GAAG,MAAM,WAAW,EAAE,CAAC;IACrC,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;KAChD;IAED,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;IACxE,IAAI,CAAC,UAAU,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE;QAC1C,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;KACvD;IACD,IACE,UAAU,CAAC,IAAI,CACb,CAAC,IAAI,EAAE,EAAE,CAAC,OAAO,IAAI,CAAC,OAAO,KAAK,QAAQ,IAAI,OAAO,IAAI,CAAC,UAAU,KAAK,QAAQ,CAClF,EACD;QACA,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;KAC/C;IACD,IAAI,CAAC,aAAa,EAAE;QAClB,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;KACnD;IAED,IAAI;QACF,MAAM,oBAAoB,GAA0B,UAAU,CAAC,UAAU,CAAC,CAAC;QAC3E,MAAM,iBAAiB,GAAwC;YAC7D,OAAO;YACP,aAAa;YACb,OAAO;YACP,UAAU,EAAE,oBAAoB;SACjC,CAAC;QACF,MAAM,OAAO,GAAG,IAAA,iCAAoB,EAAC,iBAAoC,CAAC,CAAC;QAC3E,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;QAC5D,OAAO,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC;KAC9B;IAAC,OAAO,KAAK,EAAE;QACd,OAAO,CAAC,KAAK,CAAC,qDAAqD,EAAE,KAAK,CAAC,CAAC;QAC5E,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC;KACtB;AACH,CAAC,CAAC;AArCW,QAAA,kBAAkB,sBAqC7B"}
|
|
@@ -18,8 +18,8 @@ const signTransaction = async (options) => {
|
|
|
18
18
|
}
|
|
19
19
|
try {
|
|
20
20
|
const request = (0, jsontokens_1.createUnsecuredToken)(options.payload);
|
|
21
|
-
const
|
|
22
|
-
options.onFinish?.(
|
|
21
|
+
const response = await provider.signTransaction(request);
|
|
22
|
+
options.onFinish?.(response);
|
|
23
23
|
}
|
|
24
24
|
catch (error) {
|
|
25
25
|
console.error('[Connect] Error during sign transaction request', error);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"signTransaction.js","sourceRoot":"","sources":["../../src/transactions/signTransaction.ts"],"names":[],"mappings":";;;AACA,2CAAkD;AAElD,0CAAiD;AAG1C,MAAM,eAAe,GAAG,KAAK,EAAE,OAA+B,EAAE,EAAE;IACvE,MAAM,EAAE,WAAW,GAAG,6BAAkB,EAAE,GAAG,OAAO,CAAC;IACrD,MAAM,QAAQ,GAAG,MAAM,WAAW,EAAE,CAAC;IACrC,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;KAChD;IAED,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;IACrD,IAAI,CAAC,UAAU,EAAE;QACf,MAAM,IAAI,KAAK,CAAC,6DAA6D,CAAC,CAAC;KAChF;IACD,IAAI,CAAC,YAAY,EAAE;QACjB,MAAM,IAAI,KAAK,CAAC,uEAAuE,CAAC,CAAC;KAC1F;IAED,IAAI;QACF,MAAM,OAAO,GAAG,IAAA,iCAAoB,EAAC,OAAO,CAAC,OAA0B,CAAC,CAAC;QACzE,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;QACzD,OAAO,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC;KAC9B;IAAC,OAAO,KAAK,EAAE;QACd,OAAO,CAAC,KAAK,CAAC,iDAAiD,EAAE,KAAK,CAAC,CAAC;QACxE,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC;KACtB;AACH,CAAC,CAAC;AAvBW,QAAA,eAAe,mBAuB1B"}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import type { RequestOptions, RequestPayload } from '../types';
|
|
2
|
+
export interface Recipient {
|
|
3
|
+
address: string;
|
|
4
|
+
amountSats: bigint;
|
|
5
|
+
}
|
|
6
|
+
export type SerializedRecipient = Omit<Recipient, 'amountSats'> & {
|
|
7
|
+
amountSats: string;
|
|
8
|
+
};
|
|
9
|
+
export interface SendBtcTransactionPayload extends RequestPayload {
|
|
10
|
+
recipients: Recipient[];
|
|
11
|
+
senderAddress: string;
|
|
12
|
+
message?: string;
|
|
13
|
+
}
|
|
14
|
+
export type SerializedSendBtcTransactionPayload = Omit<SendBtcTransactionPayload, 'recipients'> & {
|
|
15
|
+
recipients: SerializedRecipient[];
|
|
16
|
+
};
|
|
17
|
+
export type SendBtcTransactionResponse = string;
|
|
18
|
+
export type SendBtcTransactionOptions = RequestOptions<SendBtcTransactionPayload, SendBtcTransactionResponse>;
|
|
19
|
+
export interface InputToSign {
|
|
20
|
+
address: string;
|
|
21
|
+
signingIndexes: number[];
|
|
22
|
+
sigHash?: number;
|
|
23
|
+
}
|
|
24
|
+
export interface SignTransactionPayload extends RequestPayload {
|
|
25
|
+
message: string;
|
|
26
|
+
psbtBase64: string;
|
|
27
|
+
inputsToSign: InputToSign[];
|
|
28
|
+
broadcast?: boolean;
|
|
29
|
+
}
|
|
30
|
+
export interface SignTransactionResponse {
|
|
31
|
+
psbtBase64: string;
|
|
32
|
+
txId?: string;
|
|
33
|
+
}
|
|
34
|
+
export type SignTransactionOptions = RequestOptions<SignTransactionPayload, SignTransactionResponse>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/transactions/types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.es2020.full.d.ts","../node_modules/jsontokens/lib/cryptoClients/secp256k1.d.ts","../node_modules/jsontokens/lib/cryptoClients/index.d.ts","../node_modules/jsontokens/lib/decode.d.ts","../node_modules/jsontokens/lib/signer.d.ts","../node_modules/jsontokens/lib/verifier.d.ts","../node_modules/jsontokens/lib/errors.d.ts","../node_modules/jsontokens/lib/index.d.ts","../src/transactions/signTransaction.ts","../src/provider/index.ts","../src/address/types.ts","../src/address/index.ts","../src/call/index.ts","../src/signatures/types.ts","../src/signatures/index.ts","../src/transactions/sendBtcTransaction.ts","../index.ts","../node_modules/@babel/types/lib/index.d.ts","../node_modules/@types/babel__generator/index.d.ts","../node_modules/@babel/parser/typings/babel-parser.d.ts","../node_modules/@types/babel__template/index.d.ts","../node_modules/@types/babel__traverse/index.d.ts","../node_modules/@types/babel__core/index.d.ts","../node_modules/@types/eslint/helpers.d.ts","../node_modules/@types/estree/index.d.ts","../node_modules/@types/json-schema/index.d.ts","../node_modules/@types/eslint/index.d.ts","../node_modules/@types/eslint-scope/index.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/dom-events.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/readline/promises.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/@types/graceful-fs/index.d.ts","../node_modules/@types/istanbul-lib-coverage/index.d.ts","../node_modules/@types/istanbul-lib-report/index.d.ts","../node_modules/@types/istanbul-reports/index.d.ts","../node_modules/@jest/expect-utils/build/index.d.ts","../node_modules/chalk/index.d.ts","../node_modules/@sinclair/typebox/typebox.d.ts","../node_modules/@jest/schemas/build/index.d.ts","../node_modules/pretty-format/build/index.d.ts","../node_modules/jest-diff/build/index.d.ts","../node_modules/jest-matcher-utils/build/index.d.ts","../node_modules/expect/build/index.d.ts","../node_modules/@types/jest/index.d.ts","../node_modules/@types/prettier/index.d.ts","../node_modules/@types/stack-utils/index.d.ts","../node_modules/@types/yargs-parser/index.d.ts","../node_modules/@types/yargs/index.d.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"f3d4da15233e593eacb3965cde7960f3fddf5878528d882bcedd5cbaba0193c7","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"f58c6d0669d1ee04b2fcb0e87fb949b6828602f3f29c7bf6c76a214f16fd50d5","3a2a8aea8ed40b22c8fc1730eb93862fde113acfd8cb3f0b9e70596a6fa31c2a","5ff4838379c5c1437e2171e1c1a69840e4b50462c1ecb23d295b18962fe97d12","cc6a32bcc8e14d286d69736852e8a21258928d0c76cfb77bea3a7b1445d7a712","0db8e0154c0f208e687da06847cd3480f5ffc3467d85418fe8e7d6db624f0a27","d949ff6b0d61f5ee29356b6e64eb5e32359aaf8a42fefd73b0ab0cd22b1344d1","5be1cdd007ba9787a2f6a9786e493f17cac6340cf03eb33c79972b109cf0b8a9","8e8e613e24a88c3a66bee5b174b9a6b8f415db5c51529d5113388ff701d597d2",{"version":"11fd4cff5cbc93e7b38394b05530ad866bab44e1bd1eb7adc18964dfb0429931","signature":"543899fabc0e78be655b9e71d8cd8dfedc1df5a696c14c7225a50ea9cf0bd77f"},{"version":"e01ddc8f0daca64bac1eafd8ccf186594fb3ebdd9e26fd88eb162a4d1ae26c86","signature":"c025de963b612229e69c31843835d8f0c230e4b4221a41e94d061e0d7bc6ad2d","affectsGlobalScope":true},{"version":"228738a13ae5b26e299d167f7afd49ee6ef632f1b857c6b5ecdc07fab419b062","signature":"9be403b2015efeefef6824df1bd8bb3553acb2e9170adbe13fb73b1e74b45bf7"},{"version":"eb753ecb734735899ea594ffcbc6c5bf0a92597eac00f9f3b9f96c90443988f0","signature":"a954229cc3db251fffd0d647b1a146a01f7d38e90134e6296dd4637f2c0a3d94"},{"version":"e43e0abdfb60b8c48e6b707a07bc8e08aa0fe83333aba9b50b057aaf2f33c296","signature":"303616ada86536ab707c79b0c2caebc0738bf0250cbb6b30d466a410a0c1237d"},{"version":"1d68d360eec5958c28fde86b10e2a52e47684d4b64167ace5e1e65d09a255bfe","signature":"5973c95a87cbbd225c171d95cb097245fee1000f9043e394a6a2f51654d158cd"},{"version":"35251996c53d88a313fbab618287e5b971739ca721c3de05dbb65d34d1335e42","signature":"a530056f2716bf65fa14bf8e0fd169324254845d1c876a36cd86ad888863362e"},{"version":"d7126da07d3cd90e0ad0ac9b095df0b2da5b91c6c566e227b5413dee62fc9ab8","signature":"54d8ff0c8cf57a2626c8b3acbb01536f5f82784103bebcb9efdf48694c1409cc"},"13818224b77c75026f2c1a6908fa36525b0858371dc43e46011f05521d37aabb","3078727fed04c123165efdb42deeac5dceaa42ac62216ca13cb809dc7e13415f","cc957354aa3c94c9961ebf46282cfde1e81d107fc5785a61f62c67f1dd3ac2eb","b4f76b34637d79cefad486127115fed843762c69512d7101b7096e1293699679","93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9","dae3d1adc67ac3dbd1cd471889301339ec439837b5df565982345be20c8fca9a","b6ddf3a46ccfa4441d8be84d2e9bf3087573c48804196faedbd4a25b60631beb",{"version":"64d4b35c5456adf258d2cf56c341e203a073253f229ef3208fc0d5020253b241","affectsGlobalScope":true},"a1c79f857f5c7754e14c93949dad8cfefcd7df2ecc0dc9dd79a30fd493e28449","f3e604694b624fa3f83f6684185452992088f5efb2cf136b62474aa106d6f1b6","4e75a89a181f3b091173e4c0828dec3fb1c24087d3bb4f37b4a31e0619e8336f","e050a0afcdbb269720a900c85076d18e0c1ab73e580202a2bf6964978181222a","7e771891adaa85b690266bc37bd6eb43bc57eecc4b54693ead36467e7369952a","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"ca72190df0eb9b09d4b600821c8c7b6c9747b75a1c700c4d57dc0bb72abc074c","affectsGlobalScope":true},"11e2d554398d2bd460e7d06b2fa5827a297c8acfbe00b4f894a224ac0862857f",{"version":"fc811ced095f38ad4438bb94a8d665c63bf4943e58a71ada16627add5ad93226","affectsGlobalScope":true},"374ca798f244e464346f14301dc2a8b4b111af1a83b49fffef5906c338a1f922","5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","5eb881ed2a0d5b17ea36df5cd4c4be500e460c412f270c3170e906bec65580ac","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","489532ff54b714f0e0939947a1c560e516d3ae93d51d639ab02e907a0e950114","f30bb836526d930a74593f7b0f5c1c46d10856415a8f69e5e2fc3db80371e362","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"816ad2e607a96de5bcac7d437f843f5afd8957f1fa5eefa6bba8e4ed7ca8fd84","affectsGlobalScope":true},"cec36af22f514322f870e81d30675c78df82ae8bf4863f5fd4e4424c040c678d","d903fafe96674bc0b2ac38a5be4a8fc07b14c2548d1cdb165a80ea24c44c0c54","5eec82ac21f84d83586c59a16b9b8502d34505d1393393556682fe7e7fde9ef2","04eb6578a588d6a46f50299b55f30e3a04ef27d0c5a46c57d8fcc211cd530faa","8d3c583a07e0c37e876908c2d5da575019f689df8d9fa4c081d99119d53dba22","2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58",{"version":"e630e5528e899219ae319e83bef54bf3bcb91b01d76861ecf881e8e614b167f0","affectsGlobalScope":true},"2c45b35f4850881ab132f80d3cb51e8a359a4d8fafdc5ff2401d260dc27862f4","7c013aa892414a7fdcfd861ae524a668eaa3ede8c7c0acafaf611948122c8d93","b0973c3cbcdc59b37bf477731d468696ecaf442593ec51bab497a613a580fe30",{"version":"4989e92ba5b69b182d2caaea6295af52b7dc73a4f7a2e336a676722884e7139d","affectsGlobalScope":true},{"version":"b3624aed92dab6da8484280d3cb3e2f4130ec3f4ef3f8201c95144ae9e898bb6","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","210d54cd652ec0fec8c8916e4af59bb341065576ecda039842f9ffb2e908507c","36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","fd93cee2621ff42dabe57b7be402783fd1aa69ece755bcba1e0290547ae60513","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","69ee23dd0d215b09907ad30d23f88b7790c93329d1faf31d7835552a10cf7cbf","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","09326ae5f7e3d49be5cd9ea00eb814770e71870a438faa2efd8bdd9b4db21320",{"version":"970a90f76d4d219ad60819d61f5994514087ba94c985647a3474a5a3d12714ed","affectsGlobalScope":true},"e10177274a35a9d07c825615340b2fcde2f610f53f3fb40269fd196b4288dda6","c4577fb855ca259bdbf3ea663ca73988ce5f84251a92b4aef80a1f4122b6f98e","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"f0900cd5d00fe1263ff41201fb8073dbeb984397e4af3b8002a5c207a30bdc33","affectsGlobalScope":true},{"version":"ff07a9a03c65732ccc59b3c65bc584173da093bd563a6565411c01f5703bd3cb","affectsGlobalScope":true},"06d7c42d256f0ce6afe1b2b6cfbc97ab391f29dadb00dd0ae8e8f23f5bc916c3","ec4bd1b200670fb567920db572d6701ed42a9641d09c4ff6869768c8f81b404c","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa",{"version":"da26af7362f53d122283bc69fed862b9a9fe27e01bc6a69d1d682e0e5a4df3e6","affectsGlobalScope":true},"8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"ed2a670a77a1b80653c5bde2d813b0ab2e92872cc9b2b611ce11050b95139be6","bf88ef4208a770ca39a844b182b3695df536326ea566893fdc5b8418702a331e","8b06ac3faeacb8484d84ddb44571d8f410697f98d7bfa86c0fda60373a9f5215","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","6c1e688f95fcaf53b1e41c0fdadf2c1cfc96fa924eaf7f9fdb60f96deb0a4986","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","db25694be959314fd1e868d72e567746db1db9e2001fae545d12d2a8c1bba1b8","43883cf3635bb1846cbdc6c363787b76227677388c74f7313e3f0edb380840fa","2d47012580f859dae201d2eef898a416bdae719dffc087dfd06aefe3de2f9c8d","3e70a7e67c2cb16f8cd49097360c0309fe9d1e3210ff9222e9dac1f8df9d4fb6","ab68d2a3e3e8767c3fba8f80de099a1cfc18c0de79e42cb02ae66e22dfe14a66","2cec1a31729b9b01e9294c33fc9425d336eff067282809761ad2e74425d6d2a5",{"version":"eb9e147dbb7289f09af3b161483c09a9175c3b222ed587f4a3c0112841e7d6ff","affectsGlobalScope":true},"bc88e4049153bc4dddb4503ed7e624eb141edfa9064b3659d6c86e900fe9e621","b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298","70e9a18da08294f75bf23e46c7d69e67634c0765d355887b9b41f0d959e1426e","ae84439d1ae42b30ced3df38c4285f35b805be40dfc95b0647d0e59c70b11f97"],"options":{"allowUnreachableCode":false,"declaration":true,"esModuleInterop":true,"module":1,"noImplicitAny":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"target":7,"useUnknownInCatchVariables":false},"fileIdsList":[[54,55,57,58,60,61,120],[63,120],[120],[120,134],[63,64,65,66,67,120],[63,65,120],[70,72,120],[69,70,71,120],[91,120,127],[120,129],[120,130],[120,136,139],[74,120],[77,120],[78,83,111,120],[79,90,91,98,108,119,120],[79,80,90,98,120],[81,120],[82,83,91,99,120],[83,108,116,120],[84,86,90,98,120],[85,120],[86,87,120],[90,120],[88,90,120],[90,91,92,108,119,120],[90,91,92,105,108,111,120],[120,124],[86,93,98,108,119,120],[90,91,93,94,98,108,116,119,120],[93,95,108,116,119,120],[74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126],[90,96,120],[97,119,120],[86,90,98,108,120],[99,120],[100,120],[77,101,120],[102,118,120,124],[103,120],[104,120],[90,105,106,120],[105,107,120,122],[78,90,108,109,110,111,120],[78,108,110,120],[108,109,120],[111,120],[112,120],[90,114,115,120],[114,115,120],[83,98,108,116,120],[117,120],[98,118,120],[78,93,104,119,120],[83,120],[108,120,121],[120,122],[120,123],[78,83,90,92,101,108,119,120,122,124],[108,120,125],[120,143],[120,132,138],[120,136],[120,133,137],[47,120],[48,49,50,51,52,120],[48,49,120],[48,50,120],[120,135],[53,55,56,120],[55,120],[53,55,120],[54,57,120],[53,55,59,120],[56],[55],[54,57],[59]],"referencedMap":[[62,1],[65,2],[63,3],[132,3],[135,4],[134,3],[68,5],[64,2],[66,6],[67,2],[73,7],[69,3],[72,8],[70,3],[128,9],[129,3],[130,10],[131,11],[140,12],[71,3],[74,13],[75,13],[77,14],[78,15],[79,16],[80,17],[81,18],[82,19],[83,20],[84,21],[85,22],[86,23],[87,23],[89,24],[88,25],[90,24],[91,26],[92,27],[76,28],[126,3],[93,29],[94,30],[95,31],[127,32],[96,33],[97,34],[98,35],[99,36],[100,37],[101,38],[102,39],[103,40],[104,41],[105,42],[106,42],[107,43],[108,44],[110,45],[109,46],[111,47],[112,48],[113,3],[114,49],[115,50],[116,51],[117,52],[118,53],[119,54],[120,55],[121,56],[122,57],[123,58],[124,59],[125,60],[141,3],[142,3],[143,3],[144,61],[133,3],[139,62],[137,63],[138,64],[48,65],[47,3],[49,3],[52,3],[53,66],[50,67],[51,68],[136,69],[8,3],[9,3],[13,3],[12,3],[2,3],[14,3],[15,3],[16,3],[17,3],[18,3],[19,3],[20,3],[21,3],[3,3],[4,3],[25,3],[22,3],[23,3],[24,3],[26,3],[27,3],[28,3],[5,3],[29,3],[30,3],[31,3],[32,3],[6,3],[36,3],[33,3],[34,3],[35,3],[37,3],[7,3],[38,3],[46,3],[43,3],[44,3],[39,3],[40,3],[41,3],[42,3],[1,3],[45,3],[11,3],[10,3],[57,70],[56,71],[58,72],[55,73],[60,74],[59,71],[61,72],[54,72]],"exportedModulesMap":[[62,1],[65,2],[63,3],[132,3],[135,4],[134,3],[68,5],[64,2],[66,6],[67,2],[73,7],[69,3],[72,8],[70,3],[128,9],[129,3],[130,10],[131,11],[140,12],[71,3],[74,13],[75,13],[77,14],[78,15],[79,16],[80,17],[81,18],[82,19],[83,20],[84,21],[85,22],[86,23],[87,23],[89,24],[88,25],[90,24],[91,26],[92,27],[76,28],[126,3],[93,29],[94,30],[95,31],[127,32],[96,33],[97,34],[98,35],[99,36],[100,37],[101,38],[102,39],[103,40],[104,41],[105,42],[106,42],[107,43],[108,44],[110,45],[109,46],[111,47],[112,48],[113,3],[114,49],[115,50],[116,51],[117,52],[118,53],[119,54],[120,55],[121,56],[122,57],[123,58],[124,59],[125,60],[141,3],[142,3],[143,3],[144,61],[133,3],[139,62],[137,63],[138,64],[48,65],[47,3],[49,3],[52,3],[53,66],[50,67],[51,68],[136,69],[8,3],[9,3],[13,3],[12,3],[2,3],[14,3],[15,3],[16,3],[17,3],[18,3],[19,3],[20,3],[21,3],[3,3],[4,3],[25,3],[22,3],[23,3],[24,3],[26,3],[27,3],[28,3],[5,3],[29,3],[30,3],[31,3],[32,3],[6,3],[36,3],[33,3],[34,3],[35,3],[37,3],[7,3],[38,3],[46,3],[43,3],[44,3],[39,3],[40,3],[41,3],[42,3],[1,3],[45,3],[11,3],[10,3],[57,75],[56,76],[58,76],[55,77],[60,78],[59,76],[61,76],[54,76]],"semanticDiagnosticsPerFile":[62,65,63,132,135,134,68,64,66,67,73,69,72,70,128,129,130,131,140,71,74,75,77,78,79,80,81,82,83,84,85,86,87,89,88,90,91,92,76,126,93,94,95,127,96,97,98,99,100,101,102,103,104,105,106,107,108,110,109,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,141,142,143,144,133,139,137,138,48,47,49,52,53,50,51,136,8,9,13,12,2,14,15,16,17,18,19,20,21,3,4,25,22,23,24,26,27,28,5,29,30,31,32,6,36,33,34,35,37,7,38,46,43,44,39,40,41,42,1,45,11,10,57,56,58,55,60,59,61,54]},"version":"4.9.5"}
|
|
1
|
+
{"program":{"fileNames":["../node_modules/typescript/lib/lib.es5.d.ts","../node_modules/typescript/lib/lib.es2015.d.ts","../node_modules/typescript/lib/lib.es2016.d.ts","../node_modules/typescript/lib/lib.es2017.d.ts","../node_modules/typescript/lib/lib.es2018.d.ts","../node_modules/typescript/lib/lib.es2019.d.ts","../node_modules/typescript/lib/lib.es2020.d.ts","../node_modules/typescript/lib/lib.dom.d.ts","../node_modules/typescript/lib/lib.dom.iterable.d.ts","../node_modules/typescript/lib/lib.webworker.importscripts.d.ts","../node_modules/typescript/lib/lib.scripthost.d.ts","../node_modules/typescript/lib/lib.es2015.core.d.ts","../node_modules/typescript/lib/lib.es2015.collection.d.ts","../node_modules/typescript/lib/lib.es2015.generator.d.ts","../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../node_modules/typescript/lib/lib.es2015.promise.d.ts","../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../node_modules/typescript/lib/lib.es2017.object.d.ts","../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2017.string.d.ts","../node_modules/typescript/lib/lib.es2017.intl.d.ts","../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../node_modules/typescript/lib/lib.es2018.intl.d.ts","../node_modules/typescript/lib/lib.es2018.promise.d.ts","../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../node_modules/typescript/lib/lib.es2019.array.d.ts","../node_modules/typescript/lib/lib.es2019.object.d.ts","../node_modules/typescript/lib/lib.es2019.string.d.ts","../node_modules/typescript/lib/lib.es2019.symbol.d.ts","../node_modules/typescript/lib/lib.es2019.intl.d.ts","../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../node_modules/typescript/lib/lib.es2020.date.d.ts","../node_modules/typescript/lib/lib.es2020.promise.d.ts","../node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2020.string.d.ts","../node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts","../node_modules/typescript/lib/lib.es2020.intl.d.ts","../node_modules/typescript/lib/lib.es2020.number.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.es2020.full.d.ts","../node_modules/jsontokens/lib/cryptoClients/secp256k1.d.ts","../node_modules/jsontokens/lib/cryptoClients/index.d.ts","../node_modules/jsontokens/lib/decode.d.ts","../node_modules/jsontokens/lib/signer.d.ts","../node_modules/jsontokens/lib/verifier.d.ts","../node_modules/jsontokens/lib/errors.d.ts","../node_modules/jsontokens/lib/index.d.ts","../src/types.ts","../src/call/types.ts","../src/call/index.ts","../src/messages/types.ts","../src/messages/index.ts","../src/transactions/types.ts","../src/transactions/sendBtcTransaction.ts","../src/transactions/signTransaction.ts","../src/transactions/index.ts","../src/provider/types.ts","../src/provider/index.ts","../src/addresses/types.ts","../src/addresses/index.ts","../src/index.ts","../node_modules/@babel/types/lib/index.d.ts","../node_modules/@types/babel__generator/index.d.ts","../node_modules/@babel/parser/typings/babel-parser.d.ts","../node_modules/@types/babel__template/index.d.ts","../node_modules/@types/babel__traverse/index.d.ts","../node_modules/@types/babel__core/index.d.ts","../node_modules/@types/eslint/helpers.d.ts","../node_modules/@types/estree/index.d.ts","../node_modules/@types/json-schema/index.d.ts","../node_modules/@types/eslint/index.d.ts","../node_modules/@types/eslint-scope/index.d.ts","../node_modules/@types/node/assert.d.ts","../node_modules/@types/node/assert/strict.d.ts","../node_modules/@types/node/globals.d.ts","../node_modules/@types/node/async_hooks.d.ts","../node_modules/@types/node/buffer.d.ts","../node_modules/@types/node/child_process.d.ts","../node_modules/@types/node/cluster.d.ts","../node_modules/@types/node/console.d.ts","../node_modules/@types/node/constants.d.ts","../node_modules/@types/node/crypto.d.ts","../node_modules/@types/node/dgram.d.ts","../node_modules/@types/node/diagnostics_channel.d.ts","../node_modules/@types/node/dns.d.ts","../node_modules/@types/node/dns/promises.d.ts","../node_modules/@types/node/domain.d.ts","../node_modules/@types/node/dom-events.d.ts","../node_modules/@types/node/events.d.ts","../node_modules/@types/node/fs.d.ts","../node_modules/@types/node/fs/promises.d.ts","../node_modules/@types/node/http.d.ts","../node_modules/@types/node/http2.d.ts","../node_modules/@types/node/https.d.ts","../node_modules/@types/node/inspector.d.ts","../node_modules/@types/node/module.d.ts","../node_modules/@types/node/net.d.ts","../node_modules/@types/node/os.d.ts","../node_modules/@types/node/path.d.ts","../node_modules/@types/node/perf_hooks.d.ts","../node_modules/@types/node/process.d.ts","../node_modules/@types/node/punycode.d.ts","../node_modules/@types/node/querystring.d.ts","../node_modules/@types/node/readline.d.ts","../node_modules/@types/node/readline/promises.d.ts","../node_modules/@types/node/repl.d.ts","../node_modules/@types/node/stream.d.ts","../node_modules/@types/node/stream/promises.d.ts","../node_modules/@types/node/stream/consumers.d.ts","../node_modules/@types/node/stream/web.d.ts","../node_modules/@types/node/string_decoder.d.ts","../node_modules/@types/node/test.d.ts","../node_modules/@types/node/timers.d.ts","../node_modules/@types/node/timers/promises.d.ts","../node_modules/@types/node/tls.d.ts","../node_modules/@types/node/trace_events.d.ts","../node_modules/@types/node/tty.d.ts","../node_modules/@types/node/url.d.ts","../node_modules/@types/node/util.d.ts","../node_modules/@types/node/v8.d.ts","../node_modules/@types/node/vm.d.ts","../node_modules/@types/node/wasi.d.ts","../node_modules/@types/node/worker_threads.d.ts","../node_modules/@types/node/zlib.d.ts","../node_modules/@types/node/globals.global.d.ts","../node_modules/@types/node/index.d.ts","../node_modules/@types/graceful-fs/index.d.ts","../node_modules/@types/istanbul-lib-coverage/index.d.ts","../node_modules/@types/istanbul-lib-report/index.d.ts","../node_modules/@types/istanbul-reports/index.d.ts","../node_modules/@jest/expect-utils/build/index.d.ts","../node_modules/chalk/index.d.ts","../node_modules/@sinclair/typebox/typebox.d.ts","../node_modules/@jest/schemas/build/index.d.ts","../node_modules/pretty-format/build/index.d.ts","../node_modules/jest-diff/build/index.d.ts","../node_modules/jest-matcher-utils/build/index.d.ts","../node_modules/expect/build/index.d.ts","../node_modules/@types/jest/index.d.ts","../node_modules/@types/prettier/index.d.ts","../node_modules/@types/stack-utils/index.d.ts","../node_modules/@types/yargs-parser/index.d.ts","../node_modules/@types/yargs/index.d.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06","4b421cbfb3a38a27c279dec1e9112c3d1da296f77a1a85ddadf7e7a425d45d18","1fc5ab7a764205c68fa10d381b08417795fc73111d6dd16b5b1ed36badb743d9",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"f3d4da15233e593eacb3965cde7960f3fddf5878528d882bcedd5cbaba0193c7","affectsGlobalScope":true},{"version":"7fac8cb5fc820bc2a59ae11ef1c5b38d3832c6d0dfaec5acdb5569137d09a481","affectsGlobalScope":true},{"version":"097a57355ded99c68e6df1b738990448e0bf170e606707df5a7c0481ff2427cd","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"9d57b2b5d15838ed094aa9ff1299eecef40b190722eb619bac4616657a05f951","affectsGlobalScope":true},{"version":"6c51b5dd26a2c31dbf37f00cfc32b2aa6a92e19c995aefb5b97a3a64f1ac99de","affectsGlobalScope":true},{"version":"6e7997ef61de3132e4d4b2250e75343f487903ddf5370e7ce33cf1b9db9a63ed","affectsGlobalScope":true},{"version":"2ad234885a4240522efccd77de6c7d99eecf9b4de0914adb9a35c0c22433f993","affectsGlobalScope":true},{"version":"5e5e095c4470c8bab227dbbc61374878ecead104c74ab9960d3adcccfee23205","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"d7f680a43f8cd12a6b6122c07c54ba40952b0c8aa140dcfcf32eb9e6cb028596","affectsGlobalScope":true},{"version":"3787b83e297de7c315d55d4a7c546ae28e5f6c0a361b7a1dcec1f1f50a54ef11","affectsGlobalScope":true},{"version":"e7e8e1d368290e9295ef18ca23f405cf40d5456fa9f20db6373a61ca45f75f40","affectsGlobalScope":true},{"version":"faf0221ae0465363c842ce6aa8a0cbda5d9296940a8e26c86e04cc4081eea21e","affectsGlobalScope":true},{"version":"06393d13ea207a1bfe08ec8d7be562549c5e2da8983f2ee074e00002629d1871","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"b248e32ca52e8f5571390a4142558ae4f203ae2f94d5bac38a3084d529ef4e58","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"f58c6d0669d1ee04b2fcb0e87fb949b6828602f3f29c7bf6c76a214f16fd50d5","3a2a8aea8ed40b22c8fc1730eb93862fde113acfd8cb3f0b9e70596a6fa31c2a","5ff4838379c5c1437e2171e1c1a69840e4b50462c1ecb23d295b18962fe97d12","cc6a32bcc8e14d286d69736852e8a21258928d0c76cfb77bea3a7b1445d7a712","0db8e0154c0f208e687da06847cd3480f5ffc3467d85418fe8e7d6db624f0a27","d949ff6b0d61f5ee29356b6e64eb5e32359aaf8a42fefd73b0ab0cd22b1344d1","5be1cdd007ba9787a2f6a9786e493f17cac6340cf03eb33c79972b109cf0b8a9","8e8e613e24a88c3a66bee5b174b9a6b8f415db5c51529d5113388ff701d597d2",{"version":"81b70a11eccfd0c832fd285e1bbad14b2486785aa0997cd10f2a03fcdbe72dae","signature":"0047e1d624dca871a61315bde828e648c98d341a5248780f973d99d258335da0"},{"version":"ffa555a8e703b77b3f68fcca798c3e308729b27cc11be012a3cf71d5e4c4d0e8","signature":"12b63b3d6b454a84c259f8709c4f4c3b38fcb6f4a2413971f3278a9c0f2f2199"},{"version":"db429237f35a12314eadad9f7aea58d6c002f27f1f9560b5a5a88515ba5df05e","signature":"3a1cba1ac66eff4e361c8c25377c20efb0d7568ab7ad924e5f42d3eb5da36a7d"},{"version":"acedeee4b1eb42e75cf6f41b00c89ce42c038300249d2ba9697eb082351f9f16","signature":"ab3e8da9c3ffe8172772ebaf73a3e541521f7b95f4b058d1df727b62485500b0"},{"version":"0386cf2504f3ab0508fea2c141df6a4df2b24539d766f8ef5ae6a5482926f3ab","signature":"13e7290908bab8fd634c0608d9840f3bc3186ce21305be1e5adc164f3448602c"},{"version":"e217cbfedd3d2690c71d08a538dec42227b4f78433e0165bd6ff33655aa2e446","signature":"81c384c58958eadcb89ee6e56d0054f028ad6255658e598dd979702f22fe6712"},{"version":"2f749ee8d0066be506ebde4cb648d905e6c0ecd4129cd8b41d2586d92b9aae74","signature":"93e5dc828f6aa2148d43612dd8519275f2dc9f6a527ae178b235708854e0a8c1"},{"version":"a183b4f9c8c6025f96d5897c694308638ad2aaa7eb634dc8b2472d06e8ead681","signature":"82de1bfab0fc1501e2c752afbc3ea75399c86c6347761a6ed50d4c530b962136"},"fca3b18c3b39944d52e2647f11544b0ea9e87a7905746a590359bcbc692f18f8",{"version":"bbaba5e88a29bfad400399c042b849624243a1f1f70e75daa8ea1681717f3df1","signature":"10cece57bec688bc085f18ad1ba34e7b4e2d1ca17dbcc0e8efb4a5cda13bcb1e","affectsGlobalScope":true},{"version":"82e92acaba38b9b06550a8ae1f181b54f8b6bd709eaa9f9b549d0bf4c32bb2bb","signature":"98b07452d8e76b96ab3752ee5736391e40e4859ed45ca9f26782cb378e4c57c1"},{"version":"43b4f3b35f5aa1c86ba2c3a3d45eb22513cf97075de2089f77b96844a619b41a","signature":"84df2045247d3a2154d7a1c8f99e1af00fce8b14da56376022dd8c3fc60e2299"},{"version":"b06492dc0f88b61673a75c24747331c3d2cae307551cfb54cd32f033a4251a4b","signature":"f18eddfcb1bfebac1bb060078f56344271c0d598c39aa3d44899fb45e265ad2a"},"97aa86effb7d2d79e640d9f65345cd440beec5967cf95ee2ae0e73ce19115026","3078727fed04c123165efdb42deeac5dceaa42ac62216ca13cb809dc7e13415f","cc957354aa3c94c9961ebf46282cfde1e81d107fc5785a61f62c67f1dd3ac2eb","b4f76b34637d79cefad486127115fed843762c69512d7101b7096e1293699679","93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9","dae3d1adc67ac3dbd1cd471889301339ec439837b5df565982345be20c8fca9a","b6ddf3a46ccfa4441d8be84d2e9bf3087573c48804196faedbd4a25b60631beb",{"version":"64d4b35c5456adf258d2cf56c341e203a073253f229ef3208fc0d5020253b241","affectsGlobalScope":true},"a1c79f857f5c7754e14c93949dad8cfefcd7df2ecc0dc9dd79a30fd493e28449","f3e604694b624fa3f83f6684185452992088f5efb2cf136b62474aa106d6f1b6","4e75a89a181f3b091173e4c0828dec3fb1c24087d3bb4f37b4a31e0619e8336f","e050a0afcdbb269720a900c85076d18e0c1ab73e580202a2bf6964978181222a","7e771891adaa85b690266bc37bd6eb43bc57eecc4b54693ead36467e7369952a","a69c09dbea52352f479d3e7ac949fde3d17b195abe90b045d619f747b38d6d1a",{"version":"ca72190df0eb9b09d4b600821c8c7b6c9747b75a1c700c4d57dc0bb72abc074c","affectsGlobalScope":true},"11e2d554398d2bd460e7d06b2fa5827a297c8acfbe00b4f894a224ac0862857f",{"version":"fc811ced095f38ad4438bb94a8d665c63bf4943e58a71ada16627add5ad93226","affectsGlobalScope":true},"374ca798f244e464346f14301dc2a8b4b111af1a83b49fffef5906c338a1f922","5a94487653355b56018122d92392beb2e5f4a6c63ba5cef83bbe1c99775ef713",{"version":"d5135ad93b33adcce80b18f8065087934cdc1730d63db58562edcf017e1aad9b","affectsGlobalScope":true},"82408ed3e959ddc60d3e9904481b5a8dc16469928257af22a3f7d1a3bc7fd8c4","5eb881ed2a0d5b17ea36df5cd4c4be500e460c412f270c3170e906bec65580ac","bb9c4ffa5e6290c6980b63c815cdd1625876dadb2efaf77edbe82984be93e55e","489532ff54b714f0e0939947a1c560e516d3ae93d51d639ab02e907a0e950114","f30bb836526d930a74593f7b0f5c1c46d10856415a8f69e5e2fc3db80371e362","14b5aa23c5d0ae1907bc696ac7b6915d88f7d85799cc0dc2dcf98fbce2c5a67c","5c439dafdc09abe4d6c260a96b822fa0ba5be7203c71a63ab1f1423cd9e838ea",{"version":"6b526a5ec4a401ca7c26cfe6a48e641d8f30af76673bad3b06a1b4504594a960","affectsGlobalScope":true},{"version":"816ad2e607a96de5bcac7d437f843f5afd8957f1fa5eefa6bba8e4ed7ca8fd84","affectsGlobalScope":true},"cec36af22f514322f870e81d30675c78df82ae8bf4863f5fd4e4424c040c678d","d903fafe96674bc0b2ac38a5be4a8fc07b14c2548d1cdb165a80ea24c44c0c54","5eec82ac21f84d83586c59a16b9b8502d34505d1393393556682fe7e7fde9ef2","04eb6578a588d6a46f50299b55f30e3a04ef27d0c5a46c57d8fcc211cd530faa","8d3c583a07e0c37e876908c2d5da575019f689df8d9fa4c081d99119d53dba22","2c828a5405191d006115ab34e191b8474bc6c86ffdc401d1a9864b1b6e088a58",{"version":"e630e5528e899219ae319e83bef54bf3bcb91b01d76861ecf881e8e614b167f0","affectsGlobalScope":true},"2c45b35f4850881ab132f80d3cb51e8a359a4d8fafdc5ff2401d260dc27862f4","7c013aa892414a7fdcfd861ae524a668eaa3ede8c7c0acafaf611948122c8d93","b0973c3cbcdc59b37bf477731d468696ecaf442593ec51bab497a613a580fe30",{"version":"4989e92ba5b69b182d2caaea6295af52b7dc73a4f7a2e336a676722884e7139d","affectsGlobalScope":true},{"version":"b3624aed92dab6da8484280d3cb3e2f4130ec3f4ef3f8201c95144ae9e898bb6","affectsGlobalScope":true},"5153a2fd150e46ce57bb3f8db1318d33f6ad3261ed70ceeff92281c0608c74a3","210d54cd652ec0fec8c8916e4af59bb341065576ecda039842f9ffb2e908507c","36b03690b628eab08703d63f04eaa89c5df202e5f1edf3989f13ad389cd2c091","0effadd232a20498b11308058e334d3339cc5bf8c4c858393e38d9d4c0013dcf","25846d43937c672bab7e8195f3d881f93495df712ee901860effc109918938cc","fd93cee2621ff42dabe57b7be402783fd1aa69ece755bcba1e0290547ae60513","1b952304137851e45bc009785de89ada562d9376177c97e37702e39e60c2f1ff","69ee23dd0d215b09907ad30d23f88b7790c93329d1faf31d7835552a10cf7cbf","44b8b584a338b190a59f4f6929d072431950c7bd92ec2694821c11bce180c8a5","23b89798789dffbd437c0c423f5d02d11f9736aea73d6abf16db4f812ff36eda","09326ae5f7e3d49be5cd9ea00eb814770e71870a438faa2efd8bdd9b4db21320",{"version":"970a90f76d4d219ad60819d61f5994514087ba94c985647a3474a5a3d12714ed","affectsGlobalScope":true},"e10177274a35a9d07c825615340b2fcde2f610f53f3fb40269fd196b4288dda6","c4577fb855ca259bdbf3ea663ca73988ce5f84251a92b4aef80a1f4122b6f98e","3c13ef48634e7b5012fcf7e8fce7496352c2d779a7201389ca96a2a81ee4314d","5d0a25ec910fa36595f85a67ac992d7a53dd4064a1ba6aea1c9f14ab73a023f2",{"version":"f0900cd5d00fe1263ff41201fb8073dbeb984397e4af3b8002a5c207a30bdc33","affectsGlobalScope":true},{"version":"ff07a9a03c65732ccc59b3c65bc584173da093bd563a6565411c01f5703bd3cb","affectsGlobalScope":true},"06d7c42d256f0ce6afe1b2b6cfbc97ab391f29dadb00dd0ae8e8f23f5bc916c3","ec4bd1b200670fb567920db572d6701ed42a9641d09c4ff6869768c8f81b404c","e59a892d87e72733e2a9ca21611b9beb52977be2696c7ba4b216cbbb9a48f5aa",{"version":"da26af7362f53d122283bc69fed862b9a9fe27e01bc6a69d1d682e0e5a4df3e6","affectsGlobalScope":true},"8a300fa9b698845a1f9c41ecbe2c5966634582a8e2020d51abcace9b55aa959e",{"version":"ab9b9a36e5284fd8d3bf2f7d5fcbc60052f25f27e4d20954782099282c60d23e","affectsGlobalScope":true},"ed2a670a77a1b80653c5bde2d813b0ab2e92872cc9b2b611ce11050b95139be6","bf88ef4208a770ca39a844b182b3695df536326ea566893fdc5b8418702a331e","8b06ac3faeacb8484d84ddb44571d8f410697f98d7bfa86c0fda60373a9f5215","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","6c1e688f95fcaf53b1e41c0fdadf2c1cfc96fa924eaf7f9fdb60f96deb0a4986","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","db25694be959314fd1e868d72e567746db1db9e2001fae545d12d2a8c1bba1b8","43883cf3635bb1846cbdc6c363787b76227677388c74f7313e3f0edb380840fa","2d47012580f859dae201d2eef898a416bdae719dffc087dfd06aefe3de2f9c8d","3e70a7e67c2cb16f8cd49097360c0309fe9d1e3210ff9222e9dac1f8df9d4fb6","ab68d2a3e3e8767c3fba8f80de099a1cfc18c0de79e42cb02ae66e22dfe14a66","2cec1a31729b9b01e9294c33fc9425d336eff067282809761ad2e74425d6d2a5",{"version":"eb9e147dbb7289f09af3b161483c09a9175c3b222ed587f4a3c0112841e7d6ff","affectsGlobalScope":true},"bc88e4049153bc4dddb4503ed7e624eb141edfa9064b3659d6c86e900fe9e621","b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298","70e9a18da08294f75bf23e46c7d69e67634c0765d355887b9b41f0d959e1426e","ae84439d1ae42b30ced3df38c4285f35b805be40dfc95b0647d0e59c70b11f97"],"options":{"allowUnreachableCode":false,"declaration":true,"esModuleInterop":true,"module":1,"noImplicitAny":true,"outDir":"./","skipLibCheck":true,"sourceMap":true,"strict":true,"target":7,"useUnknownInCatchVariables":false},"fileIdsList":[[68,125],[125],[125,139],[68,69,70,71,72,125],[68,70,125],[75,77,125],[74,75,76,125],[96,125,132],[125,134],[125,135],[125,141,144],[79,125],[82,125],[83,88,116,125],[84,95,96,103,113,124,125],[84,85,95,103,125],[86,125],[87,88,96,104,125],[88,113,121,125],[89,91,95,103,125],[90,125],[91,92,125],[95,125],[93,95,125],[95,96,97,113,124,125],[95,96,97,110,113,116,125],[125,129],[91,98,103,113,124,125],[95,96,98,99,103,113,121,124,125],[98,100,113,121,124,125],[79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131],[95,101,125],[102,124,125],[91,95,103,113,125],[104,125],[105,125],[82,106,125],[107,123,125,129],[108,125],[109,125],[95,110,111,125],[110,112,125,127],[83,95,113,114,115,116,125],[83,113,115,125],[113,114,125],[116,125],[117,125],[95,119,120,125],[119,120,125],[88,103,113,121,125],[122,125],[103,123,125],[83,98,109,124,125],[88,125],[113,125,126],[125,127],[125,128],[83,88,95,97,106,113,124,125,127,129],[113,125,130],[125,148],[125,137,143],[125,141],[125,138,142],[47,125],[48,49,50,51,52,125],[48,49,125],[48,50,125],[125,140],[53,64,65,125],[54,125],[53,55,64,125],[54,56,58,62,64,66,125],[53,57,64,125],[63,125],[56,58,62,66,125],[59,60,61,125],[53,59,64,125],[64,125],[65],[54],[55],[57],[63],[56,58,62,66],[59],[64]],"referencedMap":[[70,1],[68,2],[137,2],[140,3],[139,2],[73,4],[69,1],[71,5],[72,1],[78,6],[74,2],[77,7],[75,2],[133,8],[134,2],[135,9],[136,10],[145,11],[76,2],[79,12],[80,12],[82,13],[83,14],[84,15],[85,16],[86,17],[87,18],[88,19],[89,20],[90,21],[91,22],[92,22],[94,23],[93,24],[95,23],[96,25],[97,26],[81,27],[131,2],[98,28],[99,29],[100,30],[132,31],[101,32],[102,33],[103,34],[104,35],[105,36],[106,37],[107,38],[108,39],[109,40],[110,41],[111,41],[112,42],[113,43],[115,44],[114,45],[116,46],[117,47],[118,2],[119,48],[120,49],[121,50],[122,51],[123,52],[124,53],[125,54],[126,55],[127,56],[128,57],[129,58],[130,59],[146,2],[147,2],[148,2],[149,60],[138,2],[144,61],[142,62],[143,63],[48,64],[47,2],[49,2],[52,2],[53,65],[50,66],[51,67],[141,68],[8,2],[9,2],[13,2],[12,2],[2,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[3,2],[4,2],[25,2],[22,2],[23,2],[24,2],[26,2],[27,2],[28,2],[5,2],[29,2],[30,2],[31,2],[32,2],[6,2],[36,2],[33,2],[34,2],[35,2],[37,2],[7,2],[38,2],[46,2],[43,2],[44,2],[39,2],[40,2],[41,2],[42,2],[1,2],[45,2],[11,2],[10,2],[66,69],[65,70],[56,71],[55,70],[67,72],[58,73],[57,70],[64,74],[63,75],[62,76],[60,77],[61,77],[59,70],[54,78]],"exportedModulesMap":[[70,1],[68,2],[137,2],[140,3],[139,2],[73,4],[69,1],[71,5],[72,1],[78,6],[74,2],[77,7],[75,2],[133,8],[134,2],[135,9],[136,10],[145,11],[76,2],[79,12],[80,12],[82,13],[83,14],[84,15],[85,16],[86,17],[87,18],[88,19],[89,20],[90,21],[91,22],[92,22],[94,23],[93,24],[95,23],[96,25],[97,26],[81,27],[131,2],[98,28],[99,29],[100,30],[132,31],[101,32],[102,33],[103,34],[104,35],[105,36],[106,37],[107,38],[108,39],[109,40],[110,41],[111,41],[112,42],[113,43],[115,44],[114,45],[116,46],[117,47],[118,2],[119,48],[120,49],[121,50],[122,51],[123,52],[124,53],[125,54],[126,55],[127,56],[128,57],[129,58],[130,59],[146,2],[147,2],[148,2],[149,60],[138,2],[144,61],[142,62],[143,63],[48,64],[47,2],[49,2],[52,2],[53,65],[50,66],[51,67],[141,68],[8,2],[9,2],[13,2],[12,2],[2,2],[14,2],[15,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[3,2],[4,2],[25,2],[22,2],[23,2],[24,2],[26,2],[27,2],[28,2],[5,2],[29,2],[30,2],[31,2],[32,2],[6,2],[36,2],[33,2],[34,2],[35,2],[37,2],[7,2],[38,2],[46,2],[43,2],[44,2],[39,2],[40,2],[41,2],[42,2],[1,2],[45,2],[11,2],[10,2],[66,79],[65,80],[56,81],[55,80],[67,72],[58,82],[57,80],[64,83],[63,84],[62,76],[60,85],[61,85],[59,80],[54,86]],"semanticDiagnosticsPerFile":[70,68,137,140,139,73,69,71,72,78,74,77,75,133,134,135,136,145,76,79,80,82,83,84,85,86,87,88,89,90,91,92,94,93,95,96,97,81,131,98,99,100,132,101,102,103,104,105,106,107,108,109,110,111,112,113,115,114,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,146,147,148,149,138,144,142,143,48,47,49,52,53,50,51,141,8,9,13,12,2,14,15,16,17,18,19,20,21,3,4,25,22,23,24,26,27,28,5,29,30,31,32,6,36,33,34,35,37,7,38,46,43,44,39,40,41,42,1,45,11,10,66,65,56,55,67,58,57,64,63,62,60,61,59,54]},"version":"4.9.5"}
|
package/dist/types.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import type { BitcoinProvider } from './provider';
|
|
2
|
+
export declare enum BitcoinNetworkType {
|
|
3
|
+
Mainnet = "Mainnet",
|
|
4
|
+
Testnet = "Testnet"
|
|
5
|
+
}
|
|
6
|
+
export interface BitcoinNetwork {
|
|
7
|
+
type: BitcoinNetworkType;
|
|
8
|
+
address?: string;
|
|
9
|
+
}
|
|
10
|
+
export interface RequestPayload {
|
|
11
|
+
network: BitcoinNetwork;
|
|
12
|
+
}
|
|
13
|
+
export interface RequestOptions<Payload extends RequestPayload, Response> {
|
|
14
|
+
onFinish: (response: Response) => void;
|
|
15
|
+
onCancel: () => void;
|
|
16
|
+
payload: Payload;
|
|
17
|
+
getProvider?: () => Promise<BitcoinProvider | undefined>;
|
|
18
|
+
}
|
package/dist/types.js
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BitcoinNetworkType = void 0;
|
|
4
|
+
var BitcoinNetworkType;
|
|
5
|
+
(function (BitcoinNetworkType) {
|
|
6
|
+
BitcoinNetworkType["Mainnet"] = "Mainnet";
|
|
7
|
+
BitcoinNetworkType["Testnet"] = "Testnet";
|
|
8
|
+
})(BitcoinNetworkType = exports.BitcoinNetworkType || (exports.BitcoinNetworkType = {}));
|
|
9
|
+
//# sourceMappingURL=types.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAEA,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,yCAAmB,CAAA;AACrB,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B"}
|
package/package.json
CHANGED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/address/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2CAAwD;AAExD,0CAAiD;AAG1C,MAAM,UAAU,GAAG,KAAK,EAAE,OAA0B,EAAE,EAAE;IAC7D,MAAM,EAAE,WAAW,GAAG,6BAAkB,EAAE,GAAG,OAAO,CAAC;IACrD,MAAM,QAAQ,GAAG,MAAM,WAAW,EAAE,CAAC;IACrC,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;KAChD;IAED,MAAM,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;IACrC,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;KAClD;IAED,IAAI;QACF,MAAM,OAAO,GAAG,IAAA,iCAAoB,EAAC,OAAO,CAAC,OAA0B,CAAC,CAAC;QACzE,MAAM,eAAe,GAAG,MAAM,QAAQ,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;QACxD,OAAO,CAAC,QAAQ,EAAE,CAAC,eAAe,CAAC,CAAC;KACrC;IAAC,OAAO,KAAK,EAAE;QACd,OAAO,CAAC,KAAK,CAAC,wCAAwC,EAAE,KAAK,CAAC,CAAC;QAC/D,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC;KACtB;AACH,CAAC,CAAC;AApBW,QAAA,UAAU,cAoBrB;AAEF,0CAAwB"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import { BitcoinNetwork, GetBitcoinProviderFunc } from '../provider';
|
|
2
|
-
export declare enum AddressPurposes {
|
|
3
|
-
PAYMENT = "payment",
|
|
4
|
-
ORDINALS = "ordinals"
|
|
5
|
-
}
|
|
6
|
-
export interface Purpose {
|
|
7
|
-
derivation_path?: string;
|
|
8
|
-
purpose: AddressPurposes;
|
|
9
|
-
}
|
|
10
|
-
export interface GetAddressPayload {
|
|
11
|
-
purposes: Array<AddressPurposes>;
|
|
12
|
-
message: string;
|
|
13
|
-
network: BitcoinNetwork;
|
|
14
|
-
}
|
|
15
|
-
export interface Address {
|
|
16
|
-
address: string;
|
|
17
|
-
publicKey: string;
|
|
18
|
-
purpose: AddressPurposes;
|
|
19
|
-
}
|
|
20
|
-
export interface GetAddressResponse {
|
|
21
|
-
addresses: Array<Address>;
|
|
22
|
-
}
|
|
23
|
-
export interface GetAddressOptions {
|
|
24
|
-
getProvider?: GetBitcoinProviderFunc;
|
|
25
|
-
onFinish: (response: GetAddressResponse) => void;
|
|
26
|
-
onCancel: () => void;
|
|
27
|
-
payload: GetAddressPayload;
|
|
28
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.AddressPurposes = void 0;
|
|
4
|
-
var AddressPurposes;
|
|
5
|
-
(function (AddressPurposes) {
|
|
6
|
-
AddressPurposes["PAYMENT"] = "payment";
|
|
7
|
-
AddressPurposes["ORDINALS"] = "ordinals";
|
|
8
|
-
})(AddressPurposes = exports.AddressPurposes || (exports.AddressPurposes = {}));
|
|
9
|
-
//# sourceMappingURL=types.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/address/types.ts"],"names":[],"mappings":";;;AAEA,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,sCAAmB,CAAA;IACnB,wCAAqB,CAAA;AACvB,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B"}
|
package/dist/src/call/index.d.ts
DELETED
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { BitcoinNetwork, GetBitcoinProviderFunc } from '../provider';
|
|
2
|
-
export interface CallWalletPayload {
|
|
3
|
-
method: string;
|
|
4
|
-
network: BitcoinNetwork;
|
|
5
|
-
params?: Array<any>;
|
|
6
|
-
}
|
|
7
|
-
export interface CallWalletOptions {
|
|
8
|
-
getProvider?: GetBitcoinProviderFunc;
|
|
9
|
-
onFinish: (response: Record<string, any>) => void;
|
|
10
|
-
onCancel: () => void;
|
|
11
|
-
payload: CallWalletPayload;
|
|
12
|
-
}
|
|
13
|
-
export declare enum CallMethod {
|
|
14
|
-
SIGN_TRANSACTION = "signTransaction",
|
|
15
|
-
GET_ADDRESS = "getAddress"
|
|
16
|
-
}
|
|
17
|
-
export declare const callWalletPopup: (options: CallWalletOptions) => Promise<void>;
|
package/dist/src/call/index.js
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.callWalletPopup = exports.CallMethod = void 0;
|
|
4
|
-
const jsontokens_1 = require("jsontokens");
|
|
5
|
-
const provider_1 = require("../provider");
|
|
6
|
-
var CallMethod;
|
|
7
|
-
(function (CallMethod) {
|
|
8
|
-
CallMethod["SIGN_TRANSACTION"] = "signTransaction";
|
|
9
|
-
CallMethod["GET_ADDRESS"] = "getAddress";
|
|
10
|
-
})(CallMethod = exports.CallMethod || (exports.CallMethod = {}));
|
|
11
|
-
const callWalletPopup = async (options) => {
|
|
12
|
-
const { getProvider = provider_1.getDefaultProvider } = options;
|
|
13
|
-
const provider = await getProvider();
|
|
14
|
-
if (!provider) {
|
|
15
|
-
throw new Error('No Bitcoin wallet installed');
|
|
16
|
-
}
|
|
17
|
-
const { method } = options.payload;
|
|
18
|
-
if (!method) {
|
|
19
|
-
throw new Error('A wallet method is required');
|
|
20
|
-
}
|
|
21
|
-
const request = (0, jsontokens_1.createUnsecuredToken)(options.payload);
|
|
22
|
-
try {
|
|
23
|
-
const callResponse = await provider.call(request);
|
|
24
|
-
options.onFinish?.(callResponse);
|
|
25
|
-
}
|
|
26
|
-
catch (error) {
|
|
27
|
-
console.error('[Connect] Error during call request', error);
|
|
28
|
-
options.onCancel?.();
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
exports.callWalletPopup = callWalletPopup;
|
|
32
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/call/index.ts"],"names":[],"mappings":";;;AAAA,2CAAwD;AAExD,0CAAyF;AAezF,IAAY,UAGX;AAHD,WAAY,UAAU;IACpB,kDAAoC,CAAA;IACpC,wCAA0B,CAAA;AAC5B,CAAC,EAHW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAGrB;AAEM,MAAM,eAAe,GAAG,KAAK,EAAE,OAA0B,EAAE,EAAE;IAClE,MAAM,EAAE,WAAW,GAAG,6BAAkB,EAAE,GAAG,OAAO,CAAC;IACrD,MAAM,QAAQ,GAAG,MAAM,WAAW,EAAE,CAAC;IACrC,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;KAChD;IAED,MAAM,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;IACnC,IAAI,CAAC,MAAM,EAAE;QACX,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;KAChD;IAED,MAAM,OAAO,GAAG,IAAA,iCAAoB,EAAC,OAAO,CAAC,OAA0B,CAAC,CAAC;IACzE,IAAI;QACF,MAAM,YAAY,GAAG,MAAM,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAClD,OAAO,CAAC,QAAQ,EAAE,CAAC,YAAY,CAAC,CAAC;KAClC;IAAC,OAAO,KAAK,EAAE;QACd,OAAO,CAAC,KAAK,CAAC,qCAAqC,EAAE,KAAK,CAAC,CAAC;QAC5D,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC;KACtB;AACH,CAAC,CAAC;AApBW,QAAA,eAAe,mBAoB1B"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import { GetAddressResponse } from '../address';
|
|
2
|
-
import { SignTransactionResponse } from '../transactions/signTransaction';
|
|
3
|
-
export interface BitcoinNetwork {
|
|
4
|
-
type: 'Mainnet' | 'Testnet';
|
|
5
|
-
address?: string;
|
|
6
|
-
}
|
|
7
|
-
export interface BitcoinProvider {
|
|
8
|
-
connect: (request: string) => Promise<GetAddressResponse>;
|
|
9
|
-
call: (request: string) => Promise<Record<string, any>>;
|
|
10
|
-
signTransaction: (request: string) => Promise<SignTransactionResponse>;
|
|
11
|
-
signMessage: (request: string) => Promise<string>;
|
|
12
|
-
sendBtcTransaction: (request: string) => Promise<string>;
|
|
13
|
-
}
|
|
14
|
-
declare global {
|
|
15
|
-
interface Window {
|
|
16
|
-
BitcoinProvider?: BitcoinProvider;
|
|
17
|
-
}
|
|
18
|
-
}
|
|
19
|
-
export type GetBitcoinProviderFunc = () => Promise<BitcoinProvider | undefined>;
|
|
20
|
-
export declare function getDefaultProvider(): Promise<BitcoinProvider | undefined>;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getDefaultProvider = void 0;
|
|
4
|
-
async function getDefaultProvider() {
|
|
5
|
-
return window.BitcoinProvider;
|
|
6
|
-
}
|
|
7
|
-
exports.getDefaultProvider = getDefaultProvider;
|
|
8
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/provider/index.ts"],"names":[],"mappings":";;;AAwBO,KAAK,UAAU,kBAAkB;IACtC,OAAO,MAAM,CAAC,eAAe,CAAC;AAChC,CAAC;AAFD,gDAEC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/signatures/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,2CAAwD;AAExD,0CAAiD;AAG1C,MAAM,WAAW,GAAG,KAAK,EAAE,OAA2B,EAAE,EAAE;IAC/D,MAAM,EAAE,WAAW,GAAG,6BAAkB,EAAE,GAAG,OAAO,CAAC;IACrD,MAAM,QAAQ,GAAG,MAAM,WAAW,EAAE,CAAC;IACrC,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;KAChD;IAED,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;IAC7C,IAAI,CAAC,OAAO,EAAE;QACZ,MAAM,IAAI,KAAK,CAAC,0CAA0C,CAAC,CAAC;KAC7D;IACD,IAAI,CAAC,OAAO,EAAE;QACZ,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;KACvD;IAED,IAAI;QACF,MAAM,OAAO,GAAG,IAAA,iCAAoB,EAAC,OAAO,CAAC,OAA0B,CAAC,CAAC;QACzE,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,WAAW,CAAC,OAAO,CAAC,CAAC;QACrD,OAAO,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC;KAC9B;IAAC,OAAO,KAAK,EAAE;QACd,OAAO,CAAC,KAAK,CAAC,6CAA6C,EAAE,KAAK,CAAC,CAAC;QACpE,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC;KACtB;AACH,CAAC,CAAC;AAvBW,QAAA,WAAW,eAuBtB;AAEF,0CAAwB"}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { BitcoinNetwork, GetBitcoinProviderFunc } from '../provider';
|
|
2
|
-
export interface SignMessagePayload {
|
|
3
|
-
address: string;
|
|
4
|
-
message: string;
|
|
5
|
-
network: BitcoinNetwork;
|
|
6
|
-
}
|
|
7
|
-
export interface SignMessageOptions {
|
|
8
|
-
getProvider?: GetBitcoinProviderFunc;
|
|
9
|
-
onFinish: (response: string) => void;
|
|
10
|
-
onCancel: () => void;
|
|
11
|
-
payload: SignMessagePayload;
|
|
12
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { BitcoinNetwork, GetBitcoinProviderFunc } from '../provider';
|
|
2
|
-
export interface Recipient {
|
|
3
|
-
address: string;
|
|
4
|
-
amountSats: bigint;
|
|
5
|
-
}
|
|
6
|
-
export interface SendBtcTransactionPayload {
|
|
7
|
-
network: BitcoinNetwork;
|
|
8
|
-
recipients: Recipient[];
|
|
9
|
-
senderAddress: string;
|
|
10
|
-
message?: string;
|
|
11
|
-
}
|
|
12
|
-
export interface SendBtcTransactionOptions {
|
|
13
|
-
getProvider?: GetBitcoinProviderFunc;
|
|
14
|
-
onFinish: (response: string) => void;
|
|
15
|
-
onCancel: () => void;
|
|
16
|
-
payload: SendBtcTransactionPayload;
|
|
17
|
-
}
|
|
18
|
-
export declare const sendBtcTransaction: (options: SendBtcTransactionOptions) => Promise<void>;
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sendBtcTransaction = void 0;
|
|
4
|
-
const jsontokens_1 = require("jsontokens");
|
|
5
|
-
const provider_1 = require("../provider");
|
|
6
|
-
const sendBtcTransaction = async (options) => {
|
|
7
|
-
const { getProvider = provider_1.getDefaultProvider } = options;
|
|
8
|
-
const provider = await getProvider();
|
|
9
|
-
if (!provider) {
|
|
10
|
-
throw new Error('No Bitcoin wallet installed');
|
|
11
|
-
}
|
|
12
|
-
const { recipients, senderAddress } = options.payload;
|
|
13
|
-
if (!recipients || recipients.length === 0) {
|
|
14
|
-
throw new Error('At least one recipient is required');
|
|
15
|
-
}
|
|
16
|
-
if (!senderAddress) {
|
|
17
|
-
throw new Error('The sender address is required');
|
|
18
|
-
}
|
|
19
|
-
try {
|
|
20
|
-
const request = (0, jsontokens_1.createUnsecuredToken)(options.payload);
|
|
21
|
-
const addressResponse = await provider.sendBtcTransaction(request);
|
|
22
|
-
options.onFinish?.(addressResponse);
|
|
23
|
-
}
|
|
24
|
-
catch (error) {
|
|
25
|
-
console.error('[Connect] Error during send BTC transaction request', error);
|
|
26
|
-
options.onCancel?.();
|
|
27
|
-
}
|
|
28
|
-
};
|
|
29
|
-
exports.sendBtcTransaction = sendBtcTransaction;
|
|
30
|
-
//# sourceMappingURL=sendBtcTransaction.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"sendBtcTransaction.js","sourceRoot":"","sources":["../../../src/transactions/sendBtcTransaction.ts"],"names":[],"mappings":";;;AAAA,2CAAwD;AAExD,0CAAyF;AAqBlF,MAAM,kBAAkB,GAAG,KAAK,EAAE,OAAkC,EAAE,EAAE;IAC7E,MAAM,EAAE,WAAW,GAAG,6BAAkB,EAAE,GAAG,OAAO,CAAC;IACrD,MAAM,QAAQ,GAAG,MAAM,WAAW,EAAE,CAAC;IACrC,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;KAChD;IAED,MAAM,EAAE,UAAU,EAAE,aAAa,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;IACtD,IAAI,CAAC,UAAU,IAAI,UAAU,CAAC,MAAM,KAAK,CAAC,EAAE;QAC1C,MAAM,IAAI,KAAK,CAAC,oCAAoC,CAAC,CAAC;KACvD;IACD,IAAI,CAAC,aAAa,EAAE;QAClB,MAAM,IAAI,KAAK,CAAC,gCAAgC,CAAC,CAAC;KACnD;IAED,IAAI;QACF,MAAM,OAAO,GAAG,IAAA,iCAAoB,EAAC,OAAO,CAAC,OAA0B,CAAC,CAAC;QACzE,MAAM,eAAe,GAAG,MAAM,QAAQ,CAAC,kBAAkB,CAAC,OAAO,CAAC,CAAC;QACnE,OAAO,CAAC,QAAQ,EAAE,CAAC,eAAe,CAAC,CAAC;KACrC;IAAC,OAAO,KAAK,EAAE;QACd,OAAO,CAAC,KAAK,CAAC,qDAAqD,EAAE,KAAK,CAAC,CAAC;QAC5E,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC;KACtB;AACH,CAAC,CAAC;AAvBW,QAAA,kBAAkB,sBAuB7B"}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { BitcoinNetwork, GetBitcoinProviderFunc } from '../provider';
|
|
2
|
-
export interface InputToSign {
|
|
3
|
-
address: string;
|
|
4
|
-
signingIndexes: Array<number>;
|
|
5
|
-
sigHash?: number;
|
|
6
|
-
}
|
|
7
|
-
export interface SignTransactionPayload {
|
|
8
|
-
network: BitcoinNetwork;
|
|
9
|
-
message: string;
|
|
10
|
-
psbtBase64: string;
|
|
11
|
-
broadcast?: boolean;
|
|
12
|
-
inputsToSign: InputToSign[];
|
|
13
|
-
}
|
|
14
|
-
export interface SignTransactionOptions {
|
|
15
|
-
getProvider?: GetBitcoinProviderFunc;
|
|
16
|
-
onFinish: (response: any) => void;
|
|
17
|
-
onCancel: () => void;
|
|
18
|
-
payload: SignTransactionPayload;
|
|
19
|
-
}
|
|
20
|
-
export interface SignTransactionResponse {
|
|
21
|
-
psbtBase64: string;
|
|
22
|
-
txId?: string;
|
|
23
|
-
}
|
|
24
|
-
export declare const signTransaction: (options: SignTransactionOptions) => Promise<void>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"signTransaction.js","sourceRoot":"","sources":["../../../src/transactions/signTransaction.ts"],"names":[],"mappings":";;;AAAA,2CAAwD;AAExD,0CAAyF;AA4BlF,MAAM,eAAe,GAAG,KAAK,EAAE,OAA+B,EAAE,EAAE;IACvE,MAAM,EAAE,WAAW,GAAG,6BAAkB,EAAE,GAAG,OAAO,CAAC;IACrD,MAAM,QAAQ,GAAG,MAAM,WAAW,EAAE,CAAC;IACrC,IAAI,CAAC,QAAQ,EAAE;QACb,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;KAChD;IAED,MAAM,EAAE,UAAU,EAAE,YAAY,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;IACrD,IAAI,CAAC,UAAU,EAAE;QACf,MAAM,IAAI,KAAK,CAAC,6DAA6D,CAAC,CAAC;KAChF;IACD,IAAI,CAAC,YAAY,EAAE;QACjB,MAAM,IAAI,KAAK,CAAC,uEAAuE,CAAC,CAAC;KAC1F;IAED,IAAI;QACF,MAAM,OAAO,GAAG,IAAA,iCAAoB,EAAC,OAAO,CAAC,OAA0B,CAAC,CAAC;QACzE,MAAM,eAAe,GAAG,MAAM,QAAQ,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC;QAChE,OAAO,CAAC,QAAQ,EAAE,CAAC,eAAe,CAAC,CAAC;KACrC;IAAC,OAAO,KAAK,EAAE;QACd,OAAO,CAAC,KAAK,CAAC,iDAAiD,EAAE,KAAK,CAAC,CAAC;QACxE,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC;KACtB;AACH,CAAC,CAAC;AAvBW,QAAA,eAAe,mBAuB1B"}
|
|
File without changes
|
|
File without changes
|