@sats-connect/core 0.0.2-2bfa1ee → 0.0.2
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/README.md +0 -1
- package/dist/index.d.mts +609 -0
- package/dist/index.mjs +596 -0
- package/package.json +6 -3
- package/dist/adapters/BaseAdapter.d.ts +0 -9
- package/dist/adapters/BaseAdapter.js +0 -17
- package/dist/adapters/BaseAdapter.js.map +0 -1
- package/dist/adapters/index.d.ts +0 -6
- package/dist/adapters/index.js +0 -43
- package/dist/adapters/index.js.map +0 -1
- package/dist/adapters/satsConnectAdapter.d.ts +0 -7
- package/dist/adapters/satsConnectAdapter.js +0 -7
- package/dist/adapters/satsConnectAdapter.js.map +0 -1
- package/dist/adapters/unisat.d.ts +0 -38
- package/dist/adapters/unisat.js +0 -164
- package/dist/adapters/unisat.js.map +0 -1
- package/dist/adapters/xverse.d.ts +0 -8
- package/dist/adapters/xverse.js +0 -14
- package/dist/adapters/xverse.js.map +0 -1
- package/dist/addresses/index.d.ts +0 -3
- package/dist/addresses/index.js +0 -38
- package/dist/addresses/index.js.map +0 -1
- package/dist/addresses/types.d.ts +0 -28
- package/dist/addresses/types.js +0 -19
- package/dist/addresses/types.js.map +0 -1
- package/dist/capabilities/index.d.ts +0 -3
- package/dist/capabilities/index.js +0 -70
- package/dist/capabilities/index.js.map +0 -1
- package/dist/capabilities/types.d.ts +0 -6
- package/dist/capabilities/types.js +0 -3
- package/dist/capabilities/types.js.map +0 -1
- package/dist/index.d.ts +0 -10
- package/dist/index.js +0 -27
- package/dist/index.js.map +0 -1
- package/dist/inscriptions/createInscription.d.ts +0 -2
- package/dist/inscriptions/createInscription.js +0 -22
- package/dist/inscriptions/createInscription.js.map +0 -1
- package/dist/inscriptions/createRepeatInscriptions.d.ts +0 -2
- package/dist/inscriptions/createRepeatInscriptions.js +0 -22
- package/dist/inscriptions/createRepeatInscriptions.js.map +0 -1
- package/dist/inscriptions/index.d.ts +0 -3
- package/dist/inscriptions/index.js +0 -20
- package/dist/inscriptions/index.js.map +0 -1
- package/dist/inscriptions/types.d.ts +0 -21
- package/dist/inscriptions/types.js +0 -3
- package/dist/inscriptions/types.js.map +0 -1
- package/dist/inscriptions/utils.d.ts +0 -2
- package/dist/inscriptions/utils.js +0 -26
- package/dist/inscriptions/utils.js.map +0 -1
- package/dist/messages/index.d.ts +0 -3
- package/dist/messages/index.js +0 -41
- package/dist/messages/index.js.map +0 -1
- package/dist/messages/types.d.ts +0 -7
- package/dist/messages/types.js +0 -3
- package/dist/messages/types.js.map +0 -1
- package/dist/provider/index.d.ts +0 -10
- package/dist/provider/index.js +0 -74
- package/dist/provider/index.js.map +0 -1
- package/dist/provider/types.d.ts +0 -46
- package/dist/provider/types.js +0 -3
- package/dist/provider/types.js.map +0 -1
- package/dist/request/index.d.ts +0 -4
- package/dist/request/index.js +0 -47
- package/dist/request/index.js.map +0 -1
- package/dist/request/types/btcMethods.d.ts +0 -127
- package/dist/request/types/btcMethods.js +0 -6
- package/dist/request/types/btcMethods.js.map +0 -1
- package/dist/request/types/index.d.ts +0 -27
- package/dist/request/types/index.js +0 -19
- package/dist/request/types/index.js.map +0 -1
- package/dist/request/types/stxMethods.d.ts +0 -181
- package/dist/request/types/stxMethods.js +0 -3
- package/dist/request/types/stxMethods.js.map +0 -1
- package/dist/transactions/index.d.ts +0 -4
- package/dist/transactions/index.js +0 -21
- package/dist/transactions/index.js.map +0 -1
- package/dist/transactions/sendBtcTransaction.d.ts +0 -2
- package/dist/transactions/sendBtcTransaction.js +0 -45
- package/dist/transactions/sendBtcTransaction.js.map +0 -1
- package/dist/transactions/signMultipleTransactions.d.ts +0 -2
- package/dist/transactions/signMultipleTransactions.js +0 -26
- package/dist/transactions/signMultipleTransactions.js.map +0 -1
- package/dist/transactions/signTransaction.d.ts +0 -2
- package/dist/transactions/signTransaction.js +0 -26
- package/dist/transactions/signTransaction.js.map +0 -1
- package/dist/transactions/types.d.ts +0 -46
- package/dist/transactions/types.js +0 -3
- package/dist/transactions/types.js.map +0 -1
- package/dist/tsconfig.tsbuildinfo +0 -1
- package/dist/types.d.ts +0 -87
- package/dist/types.js +0 -46
- package/dist/types.js.map +0 -1
- package/dist/ui/index.d.ts +0 -5
- package/dist/ui/index.js +0 -27
- package/dist/ui/index.js.map +0 -1
|
@@ -1,181 +0,0 @@
|
|
|
1
|
-
import { MethodParamsAndResult } from '../../types';
|
|
2
|
-
interface Pubkey {
|
|
3
|
-
/**
|
|
4
|
-
* When sending a transfer STX request to a wallet, users can generally
|
|
5
|
-
* choose from which accout they want to send the STX tokens from. In
|
|
6
|
-
* cases where applications want the transfer to be made from a specific
|
|
7
|
-
* account, they can provide the `pubkey` of the address they'd like the
|
|
8
|
-
* transfer to be made from. It is up to wallet providers to handle this
|
|
9
|
-
* field as they see fit.
|
|
10
|
-
*/
|
|
11
|
-
pubkey: string;
|
|
12
|
-
}
|
|
13
|
-
interface Address {
|
|
14
|
-
/**
|
|
15
|
-
* A Crockford base-32 encoded Stacks address.
|
|
16
|
-
*/
|
|
17
|
-
address: string;
|
|
18
|
-
}
|
|
19
|
-
interface PostConditions {
|
|
20
|
-
/**
|
|
21
|
-
* A hex-encoded string representing the post conditions.
|
|
22
|
-
*
|
|
23
|
-
* A post condition may be converted to it's hex representation using the `serializePostCondition` helper from the `@stacks/transactions` package,
|
|
24
|
-
*
|
|
25
|
-
* ```js
|
|
26
|
-
* import { serializePostCondition } from '@stacks/transactions';
|
|
27
|
-
*
|
|
28
|
-
* const postCondition = somePostCondition;
|
|
29
|
-
* const hexPostCondition = serializePostCondition(postCondition).toString('hex');
|
|
30
|
-
* ```
|
|
31
|
-
*/
|
|
32
|
-
postConditions: Array<string>;
|
|
33
|
-
}
|
|
34
|
-
interface PostConditionMode {
|
|
35
|
-
/**
|
|
36
|
-
* The mode of the post conditions.
|
|
37
|
-
*/
|
|
38
|
-
postConditionMode: number;
|
|
39
|
-
}
|
|
40
|
-
interface ParameterFormatVersion {
|
|
41
|
-
/**
|
|
42
|
-
* Version of parameter format.
|
|
43
|
-
*/
|
|
44
|
-
version: string;
|
|
45
|
-
}
|
|
46
|
-
interface Recipient {
|
|
47
|
-
/**
|
|
48
|
-
* The recipeint's Crockford base-32 encoded Stacks address.
|
|
49
|
-
*/
|
|
50
|
-
recipient: string;
|
|
51
|
-
}
|
|
52
|
-
interface Amount {
|
|
53
|
-
/**
|
|
54
|
-
* Amount of STX tokens to transfer in microstacks as a string. Anything
|
|
55
|
-
* parseable by `BigInt` is acceptable.
|
|
56
|
-
*
|
|
57
|
-
* Example,
|
|
58
|
-
*
|
|
59
|
-
* ```js
|
|
60
|
-
* const amount1 = 1234;
|
|
61
|
-
* const amount2 = 1234n;
|
|
62
|
-
* const amount3 = '1234';
|
|
63
|
-
* ```
|
|
64
|
-
*/
|
|
65
|
-
amount: number | string;
|
|
66
|
-
}
|
|
67
|
-
interface Memo {
|
|
68
|
-
/**
|
|
69
|
-
* A string representing the memo.
|
|
70
|
-
*/
|
|
71
|
-
memo: string;
|
|
72
|
-
}
|
|
73
|
-
interface TxId {
|
|
74
|
-
/**
|
|
75
|
-
* The ID of the transaction.
|
|
76
|
-
*/
|
|
77
|
-
txid: string;
|
|
78
|
-
}
|
|
79
|
-
interface Transaction {
|
|
80
|
-
/**
|
|
81
|
-
* A Stacks transaction as a hex-encoded string.
|
|
82
|
-
*/
|
|
83
|
-
transaction: string;
|
|
84
|
-
}
|
|
85
|
-
interface Message {
|
|
86
|
-
/**
|
|
87
|
-
* Message payload to be signed.
|
|
88
|
-
*/
|
|
89
|
-
message: string;
|
|
90
|
-
}
|
|
91
|
-
interface Signature {
|
|
92
|
-
/**
|
|
93
|
-
* Signature of the message.
|
|
94
|
-
*/
|
|
95
|
-
signature: string;
|
|
96
|
-
}
|
|
97
|
-
interface PublicKey {
|
|
98
|
-
/**
|
|
99
|
-
* Public key as hex-encoded string.
|
|
100
|
-
*/
|
|
101
|
-
publicKey: string;
|
|
102
|
-
}
|
|
103
|
-
interface Domain {
|
|
104
|
-
/**
|
|
105
|
-
* The domain to be signed.
|
|
106
|
-
*/
|
|
107
|
-
domain: string;
|
|
108
|
-
}
|
|
109
|
-
export interface CallContractParams {
|
|
110
|
-
/**
|
|
111
|
-
* The contract's Crockford base-32 encoded Stacks address and name.
|
|
112
|
-
*
|
|
113
|
-
* E.g. `"SPKE...GD5C.my-contract"`
|
|
114
|
-
*/
|
|
115
|
-
contract: string;
|
|
116
|
-
/**
|
|
117
|
-
* The name of the function to call.
|
|
118
|
-
*
|
|
119
|
-
* Note: spec changes ongoing,
|
|
120
|
-
* https://github.com/stacksgov/sips/pull/166#pullrequestreview-1914236999
|
|
121
|
-
*/
|
|
122
|
-
functionName: string;
|
|
123
|
-
/**
|
|
124
|
-
* The function's arguments. The arguments are expected to be hex-encoded
|
|
125
|
-
* strings of Clarity values.
|
|
126
|
-
*
|
|
127
|
-
* To convert Clarity values to their hex representation, the `cvToString`
|
|
128
|
-
* helper from the `@stacks/transactions` package may be helpful.
|
|
129
|
-
*
|
|
130
|
-
* ```js
|
|
131
|
-
* import { cvToString } from '@stacks/transactions';
|
|
132
|
-
*
|
|
133
|
-
* const functionArgs = [someClarityValue1, someClarityValue2];
|
|
134
|
-
* const hexArgs = functionArgs.map(cvToString);
|
|
135
|
-
* ```
|
|
136
|
-
*/
|
|
137
|
-
arguments?: Array<string>;
|
|
138
|
-
}
|
|
139
|
-
export type CallContractResult = TxId & Transaction;
|
|
140
|
-
export type StxCallContract = MethodParamsAndResult<CallContractParams, CallContractResult>;
|
|
141
|
-
export type TransferStxParams = Amount & Recipient & Partial<Memo> & Partial<ParameterFormatVersion> & Partial<PostConditionMode> & Partial<PostConditions> & Partial<Pubkey>;
|
|
142
|
-
export type TransferStxResult = TxId & Transaction;
|
|
143
|
-
export type StxTransferStx = MethodParamsAndResult<TransferStxParams, TransferStxResult>;
|
|
144
|
-
export type SignStxMessageParams = Message & Partial<Pubkey> & Partial<ParameterFormatVersion>;
|
|
145
|
-
export type SignStxMessageResult = Signature & PublicKey;
|
|
146
|
-
export type StxSignStxMessage = MethodParamsAndResult<SignStxMessageParams, SignStxMessageResult>;
|
|
147
|
-
type SignStructuredMessageParams = Domain & Message & Partial<ParameterFormatVersion> & Partial<Pubkey>;
|
|
148
|
-
export type SignStructuredMessageResult = Signature & PublicKey;
|
|
149
|
-
export type StxSignStructuredMessage = MethodParamsAndResult<SignStructuredMessageParams, SignStructuredMessageResult>;
|
|
150
|
-
export interface DeployContractParams {
|
|
151
|
-
/**
|
|
152
|
-
* Name of the contract.
|
|
153
|
-
*/
|
|
154
|
-
name: string;
|
|
155
|
-
/**
|
|
156
|
-
* The code of the Clarity contract.
|
|
157
|
-
*/
|
|
158
|
-
clarityCode: string;
|
|
159
|
-
/**
|
|
160
|
-
* The version of the Clarity contract.
|
|
161
|
-
*/
|
|
162
|
-
clarityVersion?: string;
|
|
163
|
-
}
|
|
164
|
-
export type DeployContractResult = TxId & Transaction;
|
|
165
|
-
export type StxDeployContract = MethodParamsAndResult<DeployContractParams, DeployContractResult>;
|
|
166
|
-
export type GetAccountsResult = {
|
|
167
|
-
addresses: Array<Address & PublicKey & {
|
|
168
|
-
gaiaHubUrl: string;
|
|
169
|
-
gaiaAppKey: string;
|
|
170
|
-
}>;
|
|
171
|
-
};
|
|
172
|
-
export type StxGetAccounts = MethodParamsAndResult<{}, GetAccountsResult>;
|
|
173
|
-
export type GetAddressesParams = undefined | null;
|
|
174
|
-
export type GetAddressesResult = {
|
|
175
|
-
addresses: Array<Address & PublicKey>;
|
|
176
|
-
};
|
|
177
|
-
export type StxGetAddresses = MethodParamsAndResult<GetAddressesParams, GetAddressesResult>;
|
|
178
|
-
export type SignTransactionParams = Transaction & Partial<Pubkey>;
|
|
179
|
-
export type SignTransactionResult = Transaction;
|
|
180
|
-
export type StxSignTransaction = MethodParamsAndResult<SignTransactionParams, SignTransactionResult>;
|
|
181
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"stxMethods.js","sourceRoot":"","sources":["../../../src/request/types/stxMethods.ts"],"names":[],"mappings":""}
|
|
@@ -1,21 +0,0 @@
|
|
|
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("./signMultipleTransactions"), exports);
|
|
20
|
-
__exportStar(require("./types"), exports);
|
|
21
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/transactions/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,oDAAkC;AAClC,6DAA2C;AAC3C,0CAAwB"}
|
|
@@ -1,45 +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 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 provider = await (0, provider_1.getProviderOrThrow)(options.getProvider);
|
|
17
|
-
const { recipients, senderAddress, network, message } = options.payload;
|
|
18
|
-
if (!recipients || recipients.length === 0) {
|
|
19
|
-
throw new Error('At least one recipient is required');
|
|
20
|
-
}
|
|
21
|
-
if (recipients.some((item) => typeof item.address !== 'string' || typeof item.amountSats !== 'bigint')) {
|
|
22
|
-
throw new Error('Incorrect recipient format');
|
|
23
|
-
}
|
|
24
|
-
if (!senderAddress) {
|
|
25
|
-
throw new Error('The sender address is required');
|
|
26
|
-
}
|
|
27
|
-
try {
|
|
28
|
-
const serializedRecipients = serializer(recipients);
|
|
29
|
-
const serializedPayload = {
|
|
30
|
-
network,
|
|
31
|
-
senderAddress,
|
|
32
|
-
message,
|
|
33
|
-
recipients: serializedRecipients,
|
|
34
|
-
};
|
|
35
|
-
const request = (0, jsontokens_1.createUnsecuredToken)(serializedPayload);
|
|
36
|
-
const response = await provider.sendBtcTransaction(request);
|
|
37
|
-
options.onFinish?.(response);
|
|
38
|
-
}
|
|
39
|
-
catch (error) {
|
|
40
|
-
console.error('[Connect] Error during send BTC transaction request', error);
|
|
41
|
-
options.onCancel?.();
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
exports.sendBtcTransaction = sendBtcTransaction;
|
|
45
|
-
//# sourceMappingURL=sendBtcTransaction.js.map
|
|
@@ -1 +0,0 @@
|
|
|
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,QAAQ,GAAG,MAAM,IAAA,6BAAkB,EAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IAE/D,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;AAjCW,QAAA,kBAAkB,sBAiC7B"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.signMultipleTransactions = void 0;
|
|
4
|
-
const jsontokens_1 = require("jsontokens");
|
|
5
|
-
const provider_1 = require("../provider");
|
|
6
|
-
const signMultipleTransactions = async (options) => {
|
|
7
|
-
const provider = await (0, provider_1.getProviderOrThrow)(options.getProvider);
|
|
8
|
-
const { psbts } = options.payload;
|
|
9
|
-
if (!psbts || !psbts.length) {
|
|
10
|
-
throw new Error('psbts array is required');
|
|
11
|
-
}
|
|
12
|
-
if (psbts.length > 100) {
|
|
13
|
-
throw new Error('psbts array must contain less than 100 psbts');
|
|
14
|
-
}
|
|
15
|
-
try {
|
|
16
|
-
const request = (0, jsontokens_1.createUnsecuredToken)(options.payload);
|
|
17
|
-
const response = await provider.signMultipleTransactions(request);
|
|
18
|
-
options.onFinish?.(response);
|
|
19
|
-
}
|
|
20
|
-
catch (error) {
|
|
21
|
-
console.error('[Connect] Error during sign Multiple transactions request', error);
|
|
22
|
-
options.onCancel?.();
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
exports.signMultipleTransactions = signMultipleTransactions;
|
|
26
|
-
//# sourceMappingURL=signMultipleTransactions.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"signMultipleTransactions.js","sourceRoot":"","sources":["../../src/transactions/signMultipleTransactions.ts"],"names":[],"mappings":";;;AACA,2CAAkD;AAClD,0CAAiD;AAG1C,MAAM,wBAAwB,GAAG,KAAK,EAAE,OAAuC,EAAE,EAAE;IACxF,MAAM,QAAQ,GAAG,MAAM,IAAA,6BAAkB,EAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IAE/D,MAAM,EAAE,KAAK,EAAE,GAAG,OAAO,CAAC,OAAO,CAAC;IAClC,IAAI,CAAC,KAAK,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE;QAC3B,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,CAAC;KAC5C;IAED,IAAI,KAAK,CAAC,MAAM,GAAG,GAAG,EAAE;QACtB,MAAM,IAAI,KAAK,CAAC,8CAA8C,CAAC,CAAC;KACjE;IAED,IAAI;QACF,MAAM,OAAO,GAAG,IAAA,iCAAoB,EAAC,OAAO,CAAC,OAA0B,CAAC,CAAC;QACzE,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,wBAAwB,CAAC,OAAO,CAAC,CAAC;QAClE,OAAO,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,CAAC;KAC9B;IAAC,OAAO,KAAK,EAAE;QACd,OAAO,CAAC,KAAK,CAAC,2DAA2D,EAAE,KAAK,CAAC,CAAC;QAClF,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC;KACtB;AACH,CAAC,CAAC;AApBW,QAAA,wBAAwB,4BAoBnC"}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.signTransaction = void 0;
|
|
4
|
-
const jsontokens_1 = require("jsontokens");
|
|
5
|
-
const provider_1 = require("../provider");
|
|
6
|
-
const signTransaction = async (options) => {
|
|
7
|
-
const provider = await (0, provider_1.getProviderOrThrow)(options.getProvider);
|
|
8
|
-
const { psbtBase64, inputsToSign } = options.payload;
|
|
9
|
-
if (!psbtBase64) {
|
|
10
|
-
throw new Error('A value for psbtBase64 representing the tx hash is required');
|
|
11
|
-
}
|
|
12
|
-
if (!inputsToSign) {
|
|
13
|
-
throw new Error('An array specifying the inputs to be signed by the wallet is required');
|
|
14
|
-
}
|
|
15
|
-
try {
|
|
16
|
-
const request = (0, jsontokens_1.createUnsecuredToken)(options.payload);
|
|
17
|
-
const response = await provider.signTransaction(request);
|
|
18
|
-
options.onFinish?.(response);
|
|
19
|
-
}
|
|
20
|
-
catch (error) {
|
|
21
|
-
console.error('[Connect] Error during sign transaction request', error);
|
|
22
|
-
options.onCancel?.();
|
|
23
|
-
}
|
|
24
|
-
};
|
|
25
|
-
exports.signTransaction = signTransaction;
|
|
26
|
-
//# sourceMappingURL=signTransaction.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"signTransaction.js","sourceRoot":"","sources":["../../src/transactions/signTransaction.ts"],"names":[],"mappings":";;;AACA,2CAAkD;AAClD,0CAAiD;AAG1C,MAAM,eAAe,GAAG,KAAK,EAAE,OAA+B,EAAE,EAAE;IACvE,MAAM,QAAQ,GAAG,MAAM,IAAA,6BAAkB,EAAC,OAAO,CAAC,WAAW,CAAC,CAAC;IAE/D,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;AAnBW,QAAA,eAAe,mBAmB1B"}
|
|
@@ -1,46 +0,0 @@
|
|
|
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 type PsbtPayload = {
|
|
25
|
-
psbtBase64: string;
|
|
26
|
-
inputsToSign: InputToSign[];
|
|
27
|
-
broadcast?: boolean;
|
|
28
|
-
};
|
|
29
|
-
export type SignMultiplePsbtPayload = {
|
|
30
|
-
psbtBase64: string;
|
|
31
|
-
inputsToSign: InputToSign[];
|
|
32
|
-
};
|
|
33
|
-
export interface SignTransactionPayload extends RequestPayload, PsbtPayload {
|
|
34
|
-
message: string;
|
|
35
|
-
}
|
|
36
|
-
export interface SignTransactionResponse {
|
|
37
|
-
psbtBase64: string;
|
|
38
|
-
txId?: string;
|
|
39
|
-
}
|
|
40
|
-
export type SignTransactionOptions = RequestOptions<SignTransactionPayload, SignTransactionResponse>;
|
|
41
|
-
export interface SignMultipleTransactionsPayload extends RequestPayload {
|
|
42
|
-
message: string;
|
|
43
|
-
psbts: SignMultiplePsbtPayload[];
|
|
44
|
-
}
|
|
45
|
-
export type SignMultipleTransactionsResponse = SignTransactionResponse[];
|
|
46
|
-
export type SignMultipleTransactionOptions = RequestOptions<SignMultipleTransactionsPayload, SignMultipleTransactionsResponse>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/transactions/types.ts"],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
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.es2021.d.ts","../node_modules/typescript/lib/lib.es2022.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.es2021.promise.d.ts","../node_modules/typescript/lib/lib.es2021.string.d.ts","../node_modules/typescript/lib/lib.es2021.weakref.d.ts","../node_modules/typescript/lib/lib.es2021.intl.d.ts","../node_modules/typescript/lib/lib.es2022.array.d.ts","../node_modules/typescript/lib/lib.es2022.error.d.ts","../node_modules/typescript/lib/lib.es2022.intl.d.ts","../node_modules/typescript/lib/lib.es2022.object.d.ts","../node_modules/typescript/lib/lib.es2022.sharedmemory.d.ts","../node_modules/typescript/lib/lib.es2022.string.d.ts","../node_modules/typescript/lib/lib.esnext.intl.d.ts","../node_modules/typescript/lib/lib.es2022.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/addresses/types.ts","../src/addresses/index.ts","../src/capabilities/types.ts","../src/capabilities/index.ts","../src/inscriptions/types.ts","../src/inscriptions/utils.ts","../src/inscriptions/createInscription.ts","../src/inscriptions/createRepeatInscriptions.ts","../src/inscriptions/index.ts","../src/messages/types.ts","../src/messages/index.ts","../src/transactions/types.ts","../src/transactions/sendBtcTransaction.ts","../src/transactions/signTransaction.ts","../src/transactions/signMultipleTransactions.ts","../src/transactions/index.ts","../src/provider/types.ts","../node_modules/@types/lodash/common/common.d.ts","../node_modules/@types/lodash/common/array.d.ts","../node_modules/@types/lodash/common/collection.d.ts","../node_modules/@types/lodash/common/date.d.ts","../node_modules/@types/lodash/common/function.d.ts","../node_modules/@types/lodash/common/lang.d.ts","../node_modules/@types/lodash/common/math.d.ts","../node_modules/@types/lodash/common/number.d.ts","../node_modules/@types/lodash/common/object.d.ts","../node_modules/@types/lodash/common/seq.d.ts","../node_modules/@types/lodash/common/string.d.ts","../node_modules/@types/lodash/common/util.d.ts","../node_modules/@types/lodash/index.d.ts","../node_modules/@types/lodash.omit/index.d.ts","../src/provider/index.ts","../src/request/types/btcMethods.ts","../src/request/types/stxMethods.ts","../src/request/types/index.ts","../src/request/index.ts","../src/adapters/satsConnectAdapter.ts","../src/adapters/xverse.ts","../node_modules/buffer/index.d.ts","../node_modules/bitcoin-address-validation/lib/index.d.ts","../src/adapters/unisat.ts","../src/adapters/BaseAdapter.ts","../src/adapters/index.ts","../src/ui/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","746d62152361558ea6d6115cf0da4dd10ede041d14882ede3568bce5dc4b4f1f","d11a03592451da2d1065e09e61f4e2a9bf68f780f4f6623c18b57816a9679d17",{"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":"6c55633c733c8378db65ac3da7a767c3cf2cf3057f0565a9124a16a3a2019e87","affectsGlobalScope":true},{"version":"fb4416144c1bf0323ccbc9afb0ab289c07312214e8820ad17d709498c865a3fe","affectsGlobalScope":true},{"version":"5b0ca94ec819d68d33da516306c15297acec88efeb0ae9e2b39f71dbd9685ef7","affectsGlobalScope":true},{"version":"34c839eaaa6d78c8674ae2c37af2236dee6831b13db7b4ef4df3ec889a04d4f2","affectsGlobalScope":true},{"version":"34478567f8a80171f88f2f30808beb7da15eac0538ae91282dd33dce928d98ed","affectsGlobalScope":true},{"version":"ab7d58e6161a550ff92e5aff755dc37fe896245348332cd5f1e1203479fe0ed1","affectsGlobalScope":true},{"version":"6bda95ea27a59a276e46043b7065b55bd4b316c25e70e29b572958fa77565d43","affectsGlobalScope":true},{"version":"aedb8de1abb2ff1095c153854a6df7deae4a5709c37297f9d6e9948b6806fa66","affectsGlobalScope":true},{"version":"a4da0551fd39b90ca7ce5f68fb55d4dc0c1396d589b612e1902f68ee090aaada","affectsGlobalScope":true},{"version":"11ffe3c281f375fff9ffdde8bbec7669b4dd671905509079f866f2354a788064","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"2c339adcd35b01e3115c7ebe980b935b30093ac2dbe46dff36fed112e462afd2","3a2a8aea8ed40b22c8fc1730eb93862fde113acfd8cb3f0b9e70596a6fa31c2a","5ff4838379c5c1437e2171e1c1a69840e4b50462c1ecb23d295b18962fe97d12","cc6a32bcc8e14d286d69736852e8a21258928d0c76cfb77bea3a7b1445d7a712","0db8e0154c0f208e687da06847cd3480f5ffc3467d85418fe8e7d6db624f0a27","d949ff6b0d61f5ee29356b6e64eb5e32359aaf8a42fefd73b0ab0cd22b1344d1","5be1cdd007ba9787a2f6a9786e493f17cac6340cf03eb33c79972b109cf0b8a9","8e8e613e24a88c3a66bee5b174b9a6b8f415db5c51529d5113388ff701d597d2",{"version":"5d0bf73f906a7f6058e476200e0ba2d2b96508b357cfe8fafd3df47c163cc24d","signature":"ed7eaa53fe7545be8d6104dc2d4e5bb0563ab8575712666b6ff600091037fdd1"},{"version":"d1ce0e5919925a5003149b7aca687c649ffad21ddd3749a0e117bb77e725dafa","signature":"c037754cac4e19d265a0e2bdf1cbf07165f8c56f1d6ca6d5cde18642e71a7890"},{"version":"6b02182f11047211260d8bd901341d402ebf94fa2e510884fa6b38ee759f122f","signature":"f18eddfcb1bfebac1bb060078f56344271c0d598c39aa3d44899fb45e265ad2a"},{"version":"92f9fa270b167726d3f6eb34bdaf2e3d4f2ac5e9b323804eb33981521454e0ba","signature":"0471144936db46afd82d5a4bf404f5d1660ce83e0affff584758bc3354c493a9"},{"version":"95b53ad06dbaef8fd6aba4705be7470fb1114fc89c5d2478e9826f75f629224f","signature":"eed170083d896e2a89be2a592f392743c0ce9f2b8eb26c183f5a41a37b927607"},{"version":"8d3bdc6ae443a959959af9904234e514f3b0a248e0314d08cf51c4786e073cac","signature":"2edb42f5659928bb2a7fcd56fdcf7d3f193f37417e6777062bcf3749a7519209"},{"version":"e054d5babf41ac08b7e14b62bb9317bca81fcdb4856bf958cbc010bf6d1529e7","signature":"7688ea3da3d14c94ff880d6cc6182fe6cf981a471dc07c362640cf8b19d88be7"},{"version":"d81f70752f24b82e06c70be28e2a8215a9a3b784bbc3cea81d8bdec68cff7549","signature":"737aa7d3bd34d23f7c555f9c4a4c8603fccc0491673ceed445a2708c2fb834f9"},{"version":"1a1d805f7c841889c03280a7c2187bb513da5d6b6055d895fec1c1dfb2914129","signature":"ee9ff637acf11bb0d80993c555cf9ad61415774c93b60763a7c384f22f13fca2"},"6e6b3fb4175557da62ff767b37311b92db7295deaa5d95d5243cc424a390ecdf",{"version":"acedeee4b1eb42e75cf6f41b00c89ce42c038300249d2ba9697eb082351f9f16","signature":"ab3e8da9c3ffe8172772ebaf73a3e541521f7b95f4b058d1df727b62485500b0"},{"version":"d06d5083f2369cde089e4549c8f7ea47b9b01a9438e459fa03352249dd47d4d9","signature":"13e7290908bab8fd634c0608d9840f3bc3186ce21305be1e5adc164f3448602c"},{"version":"edf7c34fe6473c4e2bb854b82312d259ca64fc47d05afcc9f432fb35c94ad973","signature":"133a6846636c61d20125e7bf52d33de108dc0778621150c75cfdbfcc88928504"},{"version":"4d2996a11a8bf17d08ce230cef4519e96da5b1bd10f7e7a74149db9ca52f7732","signature":"93e5dc828f6aa2148d43612dd8519275f2dc9f6a527ae178b235708854e0a8c1"},{"version":"7563645d638f8bce31850c847df5b9527343be3d8a445699fb8ccef948c066da","signature":"82de1bfab0fc1501e2c752afbc3ea75399c86c6347761a6ed50d4c530b962136"},{"version":"1eb59ea267b68f8a1b85bf97a17fc6273b8bb403e6c3f7dba59015ea32a4eee2","signature":"fc95bcb09007085aedd92334a7fd0c54afd11b15aa270d6cb9a41e990ea34f2e"},"2e4363aeb18a32d013c7b3ee12763cc1a2869d4b76aaf8002dcc7b91a2410742",{"version":"80b6ebe0a6a7d10aff553b21dc1fea15f1489d70d4e50e08df15b75e5e9d8d4a","signature":"1b6c5fa17caff7a165191327a6374a9822ff29474cfe97ebbfc105b77bd297e3","affectsGlobalScope":true},"b8442e9db28157344d1bc5d8a5a256f1692de213f0c0ddeb84359834015a008c","458111fc89d11d2151277c822dfdc1a28fa5b6b2493cf942e37d4cd0a6ee5f22","da2b6356b84a40111aaecb18304ea4e4fcb43d70efb1c13ca7d7a906445ee0d3","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","febf0b2de54781102b00f61653b21377390a048fbf5262718c91860d11ff34a6","6f294731b495c65ecf46a5694f0082954b961cf05463bea823f8014098eaffa0","0aaef8cded245bf5036a7a40b65622dd6c4da71f7a35343112edbe112b348a1e","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","68a0d0c508e1b6d8d23a519a8a0a3303dc5baa4849ca049f21e5bad41945e3fc","3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","b03afe4bec768ae333582915146f48b161e567a81b5ebc31c4d78af089770ac9","df996e25faa505f85aeb294d15ebe61b399cf1d1e49959cdfaf2cc0815c203f9","4f6a12044ee6f458db11964153830abbc499e73d065c51c329ec97407f4b13dd","ce17fb19e3a799f02f0eb50d5435840476d9616ac4fd76d0ce3c8ac67546ad83",{"version":"f0d40242de104832197d1e1421dbe7ed8546e4a1bc9d566a62c4178643e09ebb","signature":"667c233077eeba6be73f3ffc7540e86a478f877ec8970a8d44a02e882f898578"},{"version":"ab5d336bd09edadb6ce91fdb739d103ca1415d48e969bf62acc9823ecb21ffcd","signature":"d42813059645d71dcea5d7599fb673f8091708cc02e4318e00ba51a0594f7fd1"},{"version":"0bd1994680ad49343372e8bacf65027ef81aaf48d16598a3189d06c3bf490f49","signature":"7e8ec583119ca7a603059e7271ed3c46a20b27dda72d7ffbd45d92b4eae2c5aa"},{"version":"21b4851d6cb5e95c1361dac7bc34ab3227d7f6de421f237053dca3b9d6a7e597","signature":"b59ece19fba8cf9741c9447c690a3de15f3f88e8bfd9e70fa765ed78f00f2c05"},{"version":"5d1d8434e2160ae34a6aed350868903470990a6daf86a7760a77305a56a77074","signature":"756579a8a6274385f8e691383848af85c75b746cef694a48897efb23409e19e9"},{"version":"cd35dd9040b381cc401f7915464049e137f4b2e8af99bdc8d4ac32da2677b417","signature":"f1ac11a824e2a6fd58983d92325cfd66494baeb59c82ec3ca3a390f7610851be"},{"version":"5c0e3a0a413e07a91f9177f195da8db4168e32e19a476ab0f779fc0ffa627a8d","signature":"5b44dd9acb91890f996898a6547604e72a27573c4fbb4d4f1170068d33528226"},"4967529644e391115ca5592184d4b63980569adf60ee685f968fd59ab1557188","00451551ce20248b901965d35cda539e19b049c79cf9e0922d2a171ba7debcb9",{"version":"4bc4be451116b917c320e5d6d522608d6cd19cc6e1abded27a722b53910588dc","signature":"0bf342fa7f7b9205f579a38c8eeade559e4297577230007b37217f409af5d1ab","affectsGlobalScope":true},{"version":"7a63aa1c38eabe8297b081c863a6d6c121377b6af339c0f9ab30c37f3abd39b9","signature":"a744d65d1123f46d9e9c3198ae1804f516f1163abe86c175d36eec7161c058dd"},{"version":"9da16586cd52b3fb1b42d48fc0317c9adb91bcdba67012b5eed696d215893f54","signature":"4346eebd59d07deb3b0d9fc13af4428e23ca63c911f871b49bcf36a817aa10a2"},{"version":"67c97ff9a3d1857aa35e01f5cd045865015b40db7ffb1dc228af4723da7dbe3f","signature":"36c41e42454951bf08937416fb08f8d10eab43dca75a286f6ef044556a7c3692"},"2f1b37e42c318b8e0863fa0256b771e6d600843319cff3fa498523eb1b00553a","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":9,"useUnknownInCatchVariables":false},"fileIdsList":[[112,169],[169],[169,183],[112,113,114,115,116,169],[112,114,169],[119,121,169],[118,119,120,169],[140,169,176],[169,178],[169,179],[169,185,188],[96,169],[84,86,87,88,89,90,91,92,93,94,95,96,169],[84,85,87,88,89,90,91,92,93,94,95,96,169],[85,86,87,88,89,90,91,92,93,94,95,96,169],[84,85,86,88,89,90,91,92,93,94,95,96,169],[84,85,86,87,89,90,91,92,93,94,95,96,169],[84,85,86,87,88,90,91,92,93,94,95,96,169],[84,85,86,87,88,89,91,92,93,94,95,96,169],[84,85,86,87,88,89,90,92,93,94,95,96,169],[84,85,86,87,88,89,90,91,93,94,95,96,169],[84,85,86,87,88,89,90,91,92,94,95,96,169],[84,85,86,87,88,89,90,91,92,93,95,96,169],[84,85,86,87,88,89,90,91,92,93,94,96,169],[84,85,86,87,88,89,90,91,92,93,94,95,169],[123,169],[126,169],[127,132,160,169],[128,139,140,147,157,168,169],[128,129,139,147,169],[130,169],[131,132,140,148,169],[132,157,165,169],[133,135,139,147,169],[134,169],[135,136,169],[139,169],[137,139,169],[139,140,141,157,168,169],[139,140,141,154,157,160,169],[169,173],[135,142,147,157,168,169],[139,140,142,143,147,157,165,168,169],[142,144,157,165,168,169],[123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175],[139,145,169],[146,168,169],[135,139,147,157,169],[148,169],[149,169],[126,150,169],[151,167,169,173],[152,169],[153,169],[139,154,155,169],[154,156,169,171],[127,139,157,158,159,160,169],[127,157,159,169],[157,158,169],[160,169],[161,169],[139,163,164,169],[163,164,169],[132,147,157,165,169],[166,169],[147,167,169],[127,142,153,168,169],[132,169],[157,169,170],[169,171],[169,172],[127,132,139,141,150,157,168,169,171,173],[157,169,174],[169,192],[169,181,187],[169,185],[169,182,186],[59,169],[60,61,62,63,64,169],[60,61,169],[60,62,169],[169,184],[66,102,103,169],[98,103,104,107,108,169],[66,102,169],[66,68,102,103,106,109,127,169],[66,102,103,109,169],[65,67,98,169],[66,169],[65,69,98,169],[66,98,169],[66,68,70,75,77,82,98,102,109,110,169],[65,71,72,98,169],[71,73,74,169],[71,169],[65,76,98,169],[83,97,109,169],[66,68,70,75,77,82,102,169],[66,98,101,169],[66,68,169],[99,100,169],[78,79,80,81,169],[65,78,98,169],[98,102,169],[98,109,169],[66,102,103],[98,103,108],[66,102],[67],[66],[69],[66,98],[71],[76],[83],[66,68,70,75,77,82,102],[66,101],[66,68],[99,100],[78],[98,102],[98]],"referencedMap":[[114,1],[112,2],[181,2],[184,3],[183,2],[117,4],[113,1],[115,5],[116,1],[122,6],[118,2],[121,7],[119,2],[177,8],[178,2],[179,9],[180,10],[189,11],[120,2],[97,12],[85,13],[86,14],[84,15],[87,16],[88,17],[89,18],[90,19],[91,20],[92,21],[93,22],[94,23],[95,24],[96,25],[123,26],[124,26],[126,27],[127,28],[128,29],[129,30],[130,31],[131,32],[132,33],[133,34],[134,35],[135,36],[136,36],[138,37],[137,38],[139,37],[140,39],[141,40],[125,41],[175,2],[142,42],[143,43],[144,44],[176,45],[145,46],[146,47],[147,48],[148,49],[149,50],[150,51],[151,52],[152,53],[153,54],[154,55],[155,55],[156,56],[157,57],[159,58],[158,59],[160,60],[161,61],[162,2],[163,62],[164,63],[165,64],[166,65],[167,66],[168,67],[169,68],[170,69],[171,70],[172,71],[173,72],[174,73],[190,2],[191,2],[192,2],[193,74],[106,2],[105,2],[182,2],[188,75],[186,76],[187,77],[60,78],[59,2],[61,2],[64,2],[65,79],[62,80],[63,81],[185,82],[10,2],[11,2],[15,2],[14,2],[2,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[22,2],[23,2],[3,2],[4,2],[27,2],[24,2],[25,2],[26,2],[28,2],[29,2],[30,2],[5,2],[31,2],[32,2],[33,2],[34,2],[6,2],[38,2],[35,2],[36,2],[37,2],[39,2],[7,2],[40,2],[45,2],[46,2],[41,2],[42,2],[43,2],[44,2],[8,2],[50,2],[47,2],[48,2],[49,2],[51,2],[9,2],[52,2],[58,2],[53,2],[54,2],[55,2],[56,2],[1,2],[57,2],[13,2],[12,2],[108,83],[109,84],[103,85],[107,86],[104,87],[68,88],[67,89],[70,90],[69,91],[111,92],[73,93],[74,93],[75,94],[71,89],[72,95],[77,96],[76,89],[98,97],[83,98],[102,99],[99,100],[101,101],[100,89],[82,102],[79,103],[81,103],[80,103],[78,89],[66,104],[110,105]],"exportedModulesMap":[[114,1],[112,2],[181,2],[184,3],[183,2],[117,4],[113,1],[115,5],[116,1],[122,6],[118,2],[121,7],[119,2],[177,8],[178,2],[179,9],[180,10],[189,11],[120,2],[97,12],[85,13],[86,14],[84,15],[87,16],[88,17],[89,18],[90,19],[91,20],[92,21],[93,22],[94,23],[95,24],[96,25],[123,26],[124,26],[126,27],[127,28],[128,29],[129,30],[130,31],[131,32],[132,33],[133,34],[134,35],[135,36],[136,36],[138,37],[137,38],[139,37],[140,39],[141,40],[125,41],[175,2],[142,42],[143,43],[144,44],[176,45],[145,46],[146,47],[147,48],[148,49],[149,50],[150,51],[151,52],[152,53],[153,54],[154,55],[155,55],[156,56],[157,57],[159,58],[158,59],[160,60],[161,61],[162,2],[163,62],[164,63],[165,64],[166,65],[167,66],[168,67],[169,68],[170,69],[171,70],[172,71],[173,72],[174,73],[190,2],[191,2],[192,2],[193,74],[106,2],[105,2],[182,2],[188,75],[186,76],[187,77],[60,78],[59,2],[61,2],[64,2],[65,79],[62,80],[63,81],[185,82],[10,2],[11,2],[15,2],[14,2],[2,2],[16,2],[17,2],[18,2],[19,2],[20,2],[21,2],[22,2],[23,2],[3,2],[4,2],[27,2],[24,2],[25,2],[26,2],[28,2],[29,2],[30,2],[5,2],[31,2],[32,2],[33,2],[34,2],[6,2],[38,2],[35,2],[36,2],[37,2],[39,2],[7,2],[40,2],[45,2],[46,2],[41,2],[42,2],[43,2],[44,2],[8,2],[50,2],[47,2],[48,2],[49,2],[51,2],[9,2],[52,2],[58,2],[53,2],[54,2],[55,2],[56,2],[1,2],[57,2],[13,2],[12,2],[108,106],[109,107],[103,108],[107,106],[104,106],[68,109],[67,110],[70,111],[69,112],[111,92],[73,113],[74,113],[75,94],[71,110],[72,113],[77,114],[76,110],[98,115],[83,116],[102,117],[99,118],[101,119],[100,110],[82,102],[79,120],[81,120],[80,120],[78,110],[66,121],[110,122]],"semanticDiagnosticsPerFile":[114,112,181,184,183,117,113,115,116,122,118,121,119,177,178,179,180,189,120,97,85,86,84,87,88,89,90,91,92,93,94,95,96,123,124,126,127,128,129,130,131,132,133,134,135,136,138,137,139,140,141,125,175,142,143,144,176,145,146,147,148,149,150,151,152,153,154,155,156,157,159,158,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,190,191,192,193,106,105,182,188,186,187,60,59,61,64,65,62,63,185,10,11,15,14,2,16,17,18,19,20,21,22,23,3,4,27,24,25,26,28,29,30,5,31,32,33,34,6,38,35,36,37,39,7,40,45,46,41,42,43,44,8,50,47,48,49,51,9,52,58,53,54,55,56,1,57,13,12,108,109,103,107,104,68,67,70,69,111,73,74,75,71,72,77,76,98,83,102,99,101,100,82,79,81,80,78,66,110]},"version":"4.9.5"}
|
package/dist/types.d.ts
DELETED
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import type { BitcoinProvider } from './provider';
|
|
2
|
-
import { Requests, Return } from './request';
|
|
3
|
-
export declare enum BitcoinNetworkType {
|
|
4
|
-
Mainnet = "Mainnet",
|
|
5
|
-
Testnet = "Testnet"
|
|
6
|
-
}
|
|
7
|
-
export interface BitcoinNetwork {
|
|
8
|
-
type: BitcoinNetworkType;
|
|
9
|
-
address?: string;
|
|
10
|
-
}
|
|
11
|
-
export interface RequestPayload {
|
|
12
|
-
network: BitcoinNetwork;
|
|
13
|
-
}
|
|
14
|
-
export interface RequestOptions<Payload extends RequestPayload, Response> {
|
|
15
|
-
onFinish: (response: Response) => void;
|
|
16
|
-
onCancel: () => void;
|
|
17
|
-
payload: Payload;
|
|
18
|
-
getProvider?: () => Promise<BitcoinProvider | undefined>;
|
|
19
|
-
}
|
|
20
|
-
export type RpcId = string | null;
|
|
21
|
-
export interface RpcBase {
|
|
22
|
-
jsonrpc: '2.0';
|
|
23
|
-
id: RpcId;
|
|
24
|
-
}
|
|
25
|
-
export interface RpcRequest<T extends string, U> extends RpcBase {
|
|
26
|
-
method: T;
|
|
27
|
-
params: U;
|
|
28
|
-
}
|
|
29
|
-
export interface MethodParamsAndResult<TParams, TResult> {
|
|
30
|
-
params: TParams;
|
|
31
|
-
result: TResult;
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* @enum {number} RpcErrorCode
|
|
35
|
-
* @description JSON-RPC error codes
|
|
36
|
-
* @see https://www.jsonrpc.org/specification#error_object
|
|
37
|
-
*/
|
|
38
|
-
export declare enum RpcErrorCode {
|
|
39
|
-
/**
|
|
40
|
-
* Parse error Invalid JSON
|
|
41
|
-
**/
|
|
42
|
-
PARSE_ERROR = -32700,
|
|
43
|
-
/**
|
|
44
|
-
* The JSON sent is not a valid Request object.
|
|
45
|
-
**/
|
|
46
|
-
INVALID_REQUEST = -32600,
|
|
47
|
-
/**
|
|
48
|
-
* The method does not exist/is not available.
|
|
49
|
-
**/
|
|
50
|
-
METHOD_NOT_FOUND = -32601,
|
|
51
|
-
/**
|
|
52
|
-
* Invalid method parameter(s).
|
|
53
|
-
*/
|
|
54
|
-
INVALID_PARAMS = -32602,
|
|
55
|
-
/**
|
|
56
|
-
* Internal JSON-RPC error.
|
|
57
|
-
* This is a generic error, used when the server encounters an error in performing the request.
|
|
58
|
-
**/
|
|
59
|
-
INTERNAL_ERROR = -32603,
|
|
60
|
-
/**
|
|
61
|
-
* user rejected/canceled the request
|
|
62
|
-
*/
|
|
63
|
-
USER_REJECTION = -32000,
|
|
64
|
-
/**
|
|
65
|
-
* method is not supported for the address provided
|
|
66
|
-
*/
|
|
67
|
-
METHOD_NOT_SUPPORTED = -32001
|
|
68
|
-
}
|
|
69
|
-
export interface RpcError {
|
|
70
|
-
code: number | RpcErrorCode;
|
|
71
|
-
message: string;
|
|
72
|
-
data?: any;
|
|
73
|
-
}
|
|
74
|
-
export interface RpcErrorResponse<TError extends RpcError = RpcError> extends RpcBase {
|
|
75
|
-
error: TError;
|
|
76
|
-
}
|
|
77
|
-
export interface RpcSuccessResponse<Method extends keyof Requests> extends RpcBase {
|
|
78
|
-
result: Return<Method>;
|
|
79
|
-
}
|
|
80
|
-
export type RpcResponse<Method extends keyof Requests> = RpcSuccessResponse<Method> | RpcErrorResponse;
|
|
81
|
-
export type RpcResult<Method extends keyof Requests> = {
|
|
82
|
-
result: RpcSuccessResponse<Method>['result'];
|
|
83
|
-
status: 'success';
|
|
84
|
-
} | {
|
|
85
|
-
error: RpcErrorResponse['error'];
|
|
86
|
-
status: 'error';
|
|
87
|
-
};
|
package/dist/types.js
DELETED
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.RpcErrorCode = 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
|
-
/**
|
|
10
|
-
* @enum {number} RpcErrorCode
|
|
11
|
-
* @description JSON-RPC error codes
|
|
12
|
-
* @see https://www.jsonrpc.org/specification#error_object
|
|
13
|
-
*/
|
|
14
|
-
var RpcErrorCode;
|
|
15
|
-
(function (RpcErrorCode) {
|
|
16
|
-
/**
|
|
17
|
-
* Parse error Invalid JSON
|
|
18
|
-
**/
|
|
19
|
-
RpcErrorCode[RpcErrorCode["PARSE_ERROR"] = -32700] = "PARSE_ERROR";
|
|
20
|
-
/**
|
|
21
|
-
* The JSON sent is not a valid Request object.
|
|
22
|
-
**/
|
|
23
|
-
RpcErrorCode[RpcErrorCode["INVALID_REQUEST"] = -32600] = "INVALID_REQUEST";
|
|
24
|
-
/**
|
|
25
|
-
* The method does not exist/is not available.
|
|
26
|
-
**/
|
|
27
|
-
RpcErrorCode[RpcErrorCode["METHOD_NOT_FOUND"] = -32601] = "METHOD_NOT_FOUND";
|
|
28
|
-
/**
|
|
29
|
-
* Invalid method parameter(s).
|
|
30
|
-
*/
|
|
31
|
-
RpcErrorCode[RpcErrorCode["INVALID_PARAMS"] = -32602] = "INVALID_PARAMS";
|
|
32
|
-
/**
|
|
33
|
-
* Internal JSON-RPC error.
|
|
34
|
-
* This is a generic error, used when the server encounters an error in performing the request.
|
|
35
|
-
**/
|
|
36
|
-
RpcErrorCode[RpcErrorCode["INTERNAL_ERROR"] = -32603] = "INTERNAL_ERROR";
|
|
37
|
-
/**
|
|
38
|
-
* user rejected/canceled the request
|
|
39
|
-
*/
|
|
40
|
-
RpcErrorCode[RpcErrorCode["USER_REJECTION"] = -32000] = "USER_REJECTION";
|
|
41
|
-
/**
|
|
42
|
-
* method is not supported for the address provided
|
|
43
|
-
*/
|
|
44
|
-
RpcErrorCode[RpcErrorCode["METHOD_NOT_SUPPORTED"] = -32001] = "METHOD_NOT_SUPPORTED";
|
|
45
|
-
})(RpcErrorCode = exports.RpcErrorCode || (exports.RpcErrorCode = {}));
|
|
46
|
-
//# sourceMappingURL=types.js.map
|
package/dist/types.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAGA,IAAY,kBAGX;AAHD,WAAY,kBAAkB;IAC5B,yCAAmB,CAAA;IACnB,yCAAmB,CAAA;AACrB,CAAC,EAHW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAG7B;AAoCD;;;;GAIG;AACH,IAAY,YA8BX;AA9BD,WAAY,YAAY;IACtB;;QAEI;IACJ,kEAAoB,CAAA;IACpB;;QAEI;IACJ,0EAAwB,CAAA;IACxB;;QAEI;IACJ,4EAAyB,CAAA;IACzB;;OAEG;IACH,wEAAuB,CAAA;IACvB;;;QAGI;IACJ,wEAAuB,CAAA;IACvB;;OAEG;IACH,wEAAuB,CAAA;IACvB;;OAEG;IACH,oFAA6B,CAAA;AAC/B,CAAC,EA9BW,YAAY,GAAZ,oBAAY,KAAZ,oBAAY,QA8BvB"}
|