@ckb-ccc/xverse 1.0.33 → 1.1.0
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/CHANGELOG.md +13 -0
- package/dist/advanced.d.mts +2 -0
- package/dist/advanced.mjs +1 -0
- package/dist/advancedBarrel-C-ThB6-A.d.mts +481 -0
- package/dist/advancedBarrel-C-ThB6-A.d.mts.map +1 -0
- package/dist/advancedBarrel-DIYsVxWE.mjs +2 -0
- package/dist/advancedBarrel-DIYsVxWE.mjs.map +1 -0
- package/dist/advancedBarrel.d.mts +2 -0
- package/dist/advancedBarrel.mjs +1 -0
- package/dist/barrel.d.mts +101 -0
- package/dist/barrel.d.mts.map +1 -0
- package/dist/barrel.mjs +2 -0
- package/dist/barrel.mjs.map +1 -0
- package/dist/index.d.mts +2 -0
- package/dist/index.mjs +1 -0
- package/dist/rolldown-runtime-DK3Fl9T5.mjs +1 -0
- package/dist.commonjs/advanced.d.ts +2 -2
- package/dist.commonjs/advanced.js +1 -37
- package/dist.commonjs/advancedBarrel-BCHIO_V8.d.ts +483 -0
- package/dist.commonjs/advancedBarrel-BCHIO_V8.d.ts.map +1 -0
- package/dist.commonjs/advancedBarrel-DA4O2d7u.js +2 -0
- package/dist.commonjs/advancedBarrel-DA4O2d7u.js.map +1 -0
- package/dist.commonjs/advancedBarrel.d.ts +2 -2
- package/dist.commonjs/advancedBarrel.js +1 -17
- package/dist.commonjs/barrel.d.ts +100 -2
- package/dist.commonjs/barrel.d.ts.map +1 -1
- package/dist.commonjs/barrel.js +2 -18
- package/dist.commonjs/barrel.js.map +1 -0
- package/dist.commonjs/index.d.ts +2 -2
- package/dist.commonjs/index.js +1 -37
- package/package.json +28 -31
- package/src/sat-connect-core/types.advanced.ts +6 -4
- package/src/signer.ts +2 -1
- package/tsdown.config.mts +43 -0
- package/dist/advanced.d.ts +0 -2
- package/dist/advanced.d.ts.map +0 -1
- package/dist/advanced.js +0 -1
- package/dist/advancedBarrel.d.ts +0 -2
- package/dist/advancedBarrel.d.ts.map +0 -1
- package/dist/advancedBarrel.js +0 -1
- package/dist/barrel.d.ts +0 -3
- package/dist/barrel.d.ts.map +0 -1
- package/dist/barrel.js +0 -2
- package/dist/index.d.ts +0 -2
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -1
- package/dist/sat-connect-core/advanced.d.ts +0 -5
- package/dist/sat-connect-core/advanced.d.ts.map +0 -1
- package/dist/sat-connect-core/advanced.js +0 -4
- package/dist/sat-connect-core/btcMethods.advanced.d.ts +0 -280
- package/dist/sat-connect-core/btcMethods.advanced.d.ts.map +0 -1
- package/dist/sat-connect-core/btcMethods.advanced.js +0 -179
- package/dist/sat-connect-core/provider.advanced.d.ts +0 -48
- package/dist/sat-connect-core/provider.advanced.d.ts.map +0 -1
- package/dist/sat-connect-core/provider.advanced.js +0 -21
- package/dist/sat-connect-core/requests.advanced.d.ts +0 -21
- package/dist/sat-connect-core/requests.advanced.d.ts.map +0 -1
- package/dist/sat-connect-core/requests.advanced.js +0 -1
- package/dist/sat-connect-core/types.advanced.d.ts +0 -124
- package/dist/sat-connect-core/types.advanced.d.ts.map +0 -1
- package/dist/sat-connect-core/types.advanced.js +0 -80
- package/dist/sat-connect-core/walletMethods.advanced.d.ts +0 -36
- package/dist/sat-connect-core/walletMethods.advanced.d.ts.map +0 -1
- package/dist/sat-connect-core/walletMethods.advanced.js +0 -37
- package/dist/signer.d.ts +0 -81
- package/dist/signer.d.ts.map +0 -1
- package/dist/signer.js +0 -225
- package/dist/signersFactory.d.ts +0 -13
- package/dist/signersFactory.d.ts.map +0 -1
- package/dist/signersFactory.js +0 -33
- package/dist.commonjs/advanced.d.ts.map +0 -1
- package/dist.commonjs/advancedBarrel.d.ts.map +0 -1
- package/dist.commonjs/index.d.ts.map +0 -1
- package/dist.commonjs/sat-connect-core/advanced.d.ts +0 -5
- package/dist.commonjs/sat-connect-core/advanced.d.ts.map +0 -1
- package/dist.commonjs/sat-connect-core/advanced.js +0 -20
- package/dist.commonjs/sat-connect-core/btcMethods.advanced.d.ts +0 -280
- package/dist.commonjs/sat-connect-core/btcMethods.advanced.d.ts.map +0 -1
- package/dist.commonjs/sat-connect-core/btcMethods.advanced.js +0 -215
- package/dist.commonjs/sat-connect-core/provider.advanced.d.ts +0 -48
- package/dist.commonjs/sat-connect-core/provider.advanced.d.ts.map +0 -1
- package/dist.commonjs/sat-connect-core/provider.advanced.js +0 -57
- package/dist.commonjs/sat-connect-core/requests.advanced.d.ts +0 -21
- package/dist.commonjs/sat-connect-core/requests.advanced.d.ts.map +0 -1
- package/dist.commonjs/sat-connect-core/requests.advanced.js +0 -2
- package/dist.commonjs/sat-connect-core/types.advanced.d.ts +0 -124
- package/dist.commonjs/sat-connect-core/types.advanced.d.ts.map +0 -1
- package/dist.commonjs/sat-connect-core/types.advanced.js +0 -116
- package/dist.commonjs/sat-connect-core/walletMethods.advanced.d.ts +0 -36
- package/dist.commonjs/sat-connect-core/walletMethods.advanced.d.ts.map +0 -1
- package/dist.commonjs/sat-connect-core/walletMethods.advanced.js +0 -73
- package/dist.commonjs/signer.d.ts +0 -81
- package/dist.commonjs/signer.d.ts.map +0 -1
- package/dist.commonjs/signer.js +0 -262
- package/dist.commonjs/signersFactory.d.ts +0 -13
- package/dist.commonjs/signersFactory.d.ts.map +0 -1
- package/dist.commonjs/signersFactory.js +0 -36
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @ckb-ccc/xverse
|
|
2
2
|
|
|
3
|
+
## 1.1.0
|
|
4
|
+
### Minor Changes
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
- [#381](https://github.com/ckb-devrel/ccc/pull/381) [`46cc045`](https://github.com/ckb-devrel/ccc/commit/46cc045a3eefe9ba6625482dc7f740a0c59c99d4) Thanks [@Hanssen0](https://github.com/Hanssen0)! - chore: bump packages
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [[`46cc045`](https://github.com/ckb-devrel/ccc/commit/46cc045a3eefe9ba6625482dc7f740a0c59c99d4)]:
|
|
14
|
+
- @ckb-ccc/core@1.14.0
|
|
15
|
+
|
|
3
16
|
## 1.0.33
|
|
4
17
|
### Patch Changes
|
|
5
18
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{t as e}from"./advancedBarrel-DIYsVxWE.mjs";export{e as XverseA};
|
|
@@ -0,0 +1,481 @@
|
|
|
1
|
+
import * as v from "valibot";
|
|
2
|
+
|
|
3
|
+
//#region src/sat-connect-core/walletMethods.advanced.d.ts
|
|
4
|
+
declare const requestPermissionsParamsSchema: v.UndefinedSchema<undefined>;
|
|
5
|
+
declare const requestPermissionsResultSchema: v.LiteralSchema<true, undefined>;
|
|
6
|
+
type RequestPermissions = MethodParamsAndResult<v.InferOutput<typeof requestPermissionsParamsSchema>, v.InferOutput<typeof requestPermissionsResultSchema>>;
|
|
7
|
+
declare const renouncePermissionsParamsSchema: v.UndefinedSchema<undefined>;
|
|
8
|
+
declare const renouncePermissionsResultSchema: v.LiteralSchema<true, undefined>;
|
|
9
|
+
type RenouncePermissions = MethodParamsAndResult<v.InferOutput<typeof renouncePermissionsParamsSchema>, v.InferOutput<typeof renouncePermissionsResultSchema>>;
|
|
10
|
+
declare const getWalletTypeParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
11
|
+
declare const getWalletTypeResultSchema: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
|
|
12
|
+
type GetWalletType = MethodParamsAndResult<v.InferOutput<typeof getWalletTypeParamsSchema>, v.InferOutput<typeof getWalletTypeResultSchema>>;
|
|
13
|
+
//#endregion
|
|
14
|
+
//#region src/sat-connect-core/requests.advanced.d.ts
|
|
15
|
+
interface BtcRequests {
|
|
16
|
+
getInfo: GetInfo;
|
|
17
|
+
getAddresses: GetAddresses;
|
|
18
|
+
getAccounts: GetAccounts;
|
|
19
|
+
getBalance: GetBalance;
|
|
20
|
+
signMessage: SignMessage;
|
|
21
|
+
sendTransfer: SendTransfer;
|
|
22
|
+
signPsbt: SignPsbt;
|
|
23
|
+
}
|
|
24
|
+
type BtcRequestMethod = keyof BtcRequests;
|
|
25
|
+
interface WalletRequests {
|
|
26
|
+
wallet_requestPermissions: RequestPermissions;
|
|
27
|
+
wallet_renouncePermissions: RenouncePermissions;
|
|
28
|
+
wallet_getWalletType: GetWalletType;
|
|
29
|
+
}
|
|
30
|
+
type Requests = BtcRequests & WalletRequests;
|
|
31
|
+
type Return<Method> = Method extends keyof Requests ? Requests[Method]["result"] : never;
|
|
32
|
+
type Params<Method> = Method extends keyof Requests ? Requests[Method]["params"] : never;
|
|
33
|
+
//#endregion
|
|
34
|
+
//#region src/sat-connect-core/provider.advanced.d.ts
|
|
35
|
+
declare const accountChangeEventName = "accountChange";
|
|
36
|
+
declare const accountChangeSchema: v.ObjectSchema<{
|
|
37
|
+
readonly type: v.LiteralSchema<"accountChange", undefined>;
|
|
38
|
+
}, undefined>;
|
|
39
|
+
type AccountChangeEvent = v.InferOutput<typeof accountChangeSchema>;
|
|
40
|
+
declare const networkChangeEventName = "networkChange";
|
|
41
|
+
declare const networkChangeSchema: v.ObjectSchema<{
|
|
42
|
+
readonly type: v.LiteralSchema<"networkChange", undefined>;
|
|
43
|
+
}, undefined>;
|
|
44
|
+
type NetworkChangeEvent = v.InferOutput<typeof networkChangeSchema>;
|
|
45
|
+
declare const disconnectEventName = "disconnect";
|
|
46
|
+
declare const disconnectSchema: v.ObjectSchema<{
|
|
47
|
+
readonly type: v.LiteralSchema<"disconnect", undefined>;
|
|
48
|
+
}, undefined>;
|
|
49
|
+
type DisconnectEvent = v.InferOutput<typeof disconnectSchema>;
|
|
50
|
+
declare const walletEventSchema: v.VariantSchema<"type", [v.ObjectSchema<{
|
|
51
|
+
readonly type: v.LiteralSchema<"accountChange", undefined>;
|
|
52
|
+
}, undefined>, v.ObjectSchema<{
|
|
53
|
+
readonly type: v.LiteralSchema<"networkChange", undefined>;
|
|
54
|
+
}, undefined>, v.ObjectSchema<{
|
|
55
|
+
readonly type: v.LiteralSchema<"disconnect", undefined>;
|
|
56
|
+
}, undefined>], undefined>;
|
|
57
|
+
type WalletEvent = v.InferOutput<typeof walletEventSchema>;
|
|
58
|
+
type AddListener = <const WalletEventName extends WalletEvent["type"]>(eventName: WalletEventName, cb: (event: Extract<WalletEvent, {
|
|
59
|
+
type: WalletEventName;
|
|
60
|
+
}>) => void) => () => void;
|
|
61
|
+
/**
|
|
62
|
+
* Interface representing a provider for interacting with accounts and signing messages.
|
|
63
|
+
*/
|
|
64
|
+
interface BtcProvider {
|
|
65
|
+
request: <Method extends keyof Requests>(method: Method, options: Params<Method>, providerId?: string) => Promise<RpcResponse<Method>>;
|
|
66
|
+
addListener: AddListener;
|
|
67
|
+
}
|
|
68
|
+
interface Provider {
|
|
69
|
+
id: string;
|
|
70
|
+
name: string;
|
|
71
|
+
icon: string;
|
|
72
|
+
webUrl?: string;
|
|
73
|
+
chromeWebStoreUrl?: string;
|
|
74
|
+
mozillaAddOnsUrl?: string;
|
|
75
|
+
googlePlayStoreUrl?: string;
|
|
76
|
+
iOSAppStoreUrl?: string;
|
|
77
|
+
methods?: string[];
|
|
78
|
+
}
|
|
79
|
+
//#endregion
|
|
80
|
+
//#region src/sat-connect-core/types.advanced.d.ts
|
|
81
|
+
declare enum BitcoinNetworkType {
|
|
82
|
+
Mainnet = "Mainnet",
|
|
83
|
+
Testnet = "Testnet",
|
|
84
|
+
Signet = "Signet"
|
|
85
|
+
}
|
|
86
|
+
interface BitcoinNetwork {
|
|
87
|
+
type: BitcoinNetworkType;
|
|
88
|
+
address?: string;
|
|
89
|
+
}
|
|
90
|
+
interface RequestPayload {
|
|
91
|
+
network: BitcoinNetwork;
|
|
92
|
+
}
|
|
93
|
+
interface RequestOptions<Payload extends RequestPayload, Response> {
|
|
94
|
+
onFinish: (response: Response) => void;
|
|
95
|
+
onCancel: () => void;
|
|
96
|
+
payload: Payload;
|
|
97
|
+
getProvider?: () => Promise<BtcProvider | undefined>;
|
|
98
|
+
}
|
|
99
|
+
declare const RpcIdSchema: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
100
|
+
type RpcId = v.InferOutput<typeof RpcIdSchema>;
|
|
101
|
+
declare const rpcRequestMessageSchema: v.ObjectSchema<{
|
|
102
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
103
|
+
readonly method: v.StringSchema<undefined>;
|
|
104
|
+
readonly params: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.UnknownSchema, undefined>, v.LooseObjectSchema<{}, undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
105
|
+
readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
106
|
+
}, undefined>;
|
|
107
|
+
type RpcRequestMessage = v.InferOutput<typeof rpcRequestMessageSchema>;
|
|
108
|
+
interface RpcBase {
|
|
109
|
+
jsonrpc: "2.0";
|
|
110
|
+
id: RpcId;
|
|
111
|
+
}
|
|
112
|
+
interface RpcRequest<T extends string, U> extends RpcBase {
|
|
113
|
+
method: T;
|
|
114
|
+
params: U;
|
|
115
|
+
}
|
|
116
|
+
interface MethodParamsAndResult<TParams, TResult> {
|
|
117
|
+
params: TParams;
|
|
118
|
+
result: TResult;
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* @enum {number} RpcErrorCode
|
|
122
|
+
* @description JSON-RPC error codes
|
|
123
|
+
* @see https://www.jsonrpc.org/specification#error_object
|
|
124
|
+
*/
|
|
125
|
+
declare enum RpcErrorCode {
|
|
126
|
+
/**
|
|
127
|
+
* Parse error Invalid JSON
|
|
128
|
+
**/
|
|
129
|
+
PARSE_ERROR = -32700,
|
|
130
|
+
/**
|
|
131
|
+
* The JSON sent is not a valid Request object.
|
|
132
|
+
**/
|
|
133
|
+
INVALID_REQUEST = -32600,
|
|
134
|
+
/**
|
|
135
|
+
* The method does not exist/is not available.
|
|
136
|
+
**/
|
|
137
|
+
METHOD_NOT_FOUND = -32601,
|
|
138
|
+
/**
|
|
139
|
+
* Invalid method parameter(s).
|
|
140
|
+
*/
|
|
141
|
+
INVALID_PARAMS = -32602,
|
|
142
|
+
/**
|
|
143
|
+
* Internal JSON-RPC error.
|
|
144
|
+
* This is a generic error, used when the server encounters an error in performing the request.
|
|
145
|
+
**/
|
|
146
|
+
INTERNAL_ERROR = -32603,
|
|
147
|
+
/**
|
|
148
|
+
* user rejected/canceled the request
|
|
149
|
+
*/
|
|
150
|
+
USER_REJECTION = -32000,
|
|
151
|
+
/**
|
|
152
|
+
* method is not supported for the address provided
|
|
153
|
+
*/
|
|
154
|
+
METHOD_NOT_SUPPORTED = -32001,
|
|
155
|
+
/**
|
|
156
|
+
* The client does not have permission to access the requested resource.
|
|
157
|
+
*/
|
|
158
|
+
ACCESS_DENIED = -32002
|
|
159
|
+
}
|
|
160
|
+
declare const rpcSuccessResponseMessageSchema: v.ObjectSchema<{
|
|
161
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
162
|
+
readonly result: v.NonOptionalSchema<v.UnknownSchema, undefined>;
|
|
163
|
+
readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
164
|
+
}, undefined>;
|
|
165
|
+
type RpcSuccessResponseMessage = v.InferOutput<typeof rpcSuccessResponseMessageSchema>;
|
|
166
|
+
declare const rpcErrorResponseMessageSchema: v.ObjectSchema<{
|
|
167
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
168
|
+
readonly error: v.NonOptionalSchema<v.UnknownSchema, undefined>;
|
|
169
|
+
readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
170
|
+
}, undefined>;
|
|
171
|
+
type RpcErrorResponseMessage = v.InferOutput<typeof rpcErrorResponseMessageSchema>;
|
|
172
|
+
declare const rpcResponseMessageSchema: v.UnionSchema<[v.ObjectSchema<{
|
|
173
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
174
|
+
readonly result: v.NonOptionalSchema<v.UnknownSchema, undefined>;
|
|
175
|
+
readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
176
|
+
}, undefined>, v.ObjectSchema<{
|
|
177
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
178
|
+
readonly error: v.NonOptionalSchema<v.UnknownSchema, undefined>;
|
|
179
|
+
readonly id: v.OptionalSchema<v.UnionSchema<[v.StringSchema<undefined>, v.NumberSchema<undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
180
|
+
}, undefined>], undefined>;
|
|
181
|
+
type RpcResponseMessage = v.InferOutput<typeof rpcResponseMessageSchema>;
|
|
182
|
+
interface RpcError {
|
|
183
|
+
code: number | RpcErrorCode;
|
|
184
|
+
message: string;
|
|
185
|
+
data?: any;
|
|
186
|
+
}
|
|
187
|
+
interface RpcErrorResponse<TError extends RpcError = RpcError> extends RpcBase {
|
|
188
|
+
error: TError;
|
|
189
|
+
}
|
|
190
|
+
interface RpcSuccessResponse<Method extends keyof Requests> extends RpcBase {
|
|
191
|
+
result: Return<Method>;
|
|
192
|
+
}
|
|
193
|
+
type RpcResponse<Method extends keyof Requests> = RpcSuccessResponse<Method> | RpcErrorResponse;
|
|
194
|
+
type RpcResult<Method extends keyof Requests> = {
|
|
195
|
+
result: RpcSuccessResponse<Method>["result"];
|
|
196
|
+
status: "success";
|
|
197
|
+
} | {
|
|
198
|
+
error: RpcErrorResponse["error"];
|
|
199
|
+
status: "error";
|
|
200
|
+
};
|
|
201
|
+
//#endregion
|
|
202
|
+
//#region src/sat-connect-core/btcMethods.advanced.d.ts
|
|
203
|
+
declare enum AddressPurpose {
|
|
204
|
+
Ordinals = "ordinals",
|
|
205
|
+
Payment = "payment",
|
|
206
|
+
Stacks = "stacks"
|
|
207
|
+
}
|
|
208
|
+
declare enum AddressType {
|
|
209
|
+
p2pkh = "p2pkh",
|
|
210
|
+
p2sh = "p2sh",
|
|
211
|
+
p2wpkh = "p2wpkh",
|
|
212
|
+
p2wsh = "p2wsh",
|
|
213
|
+
p2tr = "p2tr",
|
|
214
|
+
stacks = "stacks"
|
|
215
|
+
}
|
|
216
|
+
declare const addressSchema: v.ObjectSchema<{
|
|
217
|
+
readonly address: v.StringSchema<undefined>;
|
|
218
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
219
|
+
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
220
|
+
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
221
|
+
}, undefined>;
|
|
222
|
+
type Address = v.InferOutput<typeof addressSchema>;
|
|
223
|
+
declare const getInfoMethodName = "getInfo";
|
|
224
|
+
declare const getInfoParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
225
|
+
type GetInfoParams = v.InferOutput<typeof getInfoParamsSchema>;
|
|
226
|
+
declare const getInfoResultSchema: v.ObjectSchema<{
|
|
227
|
+
/**
|
|
228
|
+
* Version of the wallet.
|
|
229
|
+
*/
|
|
230
|
+
readonly version: v.StringSchema<undefined>;
|
|
231
|
+
/**
|
|
232
|
+
* [WBIP](https://wbips.netlify.app/wbips/WBIP002) methods supported by the wallet.
|
|
233
|
+
*/
|
|
234
|
+
readonly methods: v.OptionalSchema<v.ArraySchema<v.StringSchema<undefined>, undefined>, undefined>;
|
|
235
|
+
/**
|
|
236
|
+
* List of WBIP standards supported by the wallet. Not currently used.
|
|
237
|
+
*/
|
|
238
|
+
readonly supports: v.ArraySchema<v.StringSchema<undefined>, undefined>;
|
|
239
|
+
}, undefined>;
|
|
240
|
+
type GetInfoResult = v.InferOutput<typeof getInfoResultSchema>;
|
|
241
|
+
declare const getInfoRequestMessageSchema: v.ObjectSchema<{
|
|
242
|
+
readonly method: v.LiteralSchema<"getInfo", undefined>;
|
|
243
|
+
readonly params: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
244
|
+
readonly id: v.StringSchema<undefined>;
|
|
245
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
246
|
+
}, undefined>;
|
|
247
|
+
type GetInfoRequestMessage = v.InferOutput<typeof getInfoRequestMessageSchema>;
|
|
248
|
+
type GetInfo = MethodParamsAndResult<v.InferOutput<typeof getInfoParamsSchema>, v.InferOutput<typeof getInfoResultSchema>>;
|
|
249
|
+
declare const getAddressesMethodName = "getAddresses";
|
|
250
|
+
declare const getAddressesParamsSchema: v.ObjectSchema<{
|
|
251
|
+
/**
|
|
252
|
+
* The purposes for which to generate addresses. See
|
|
253
|
+
* {@linkcode AddressPurpose} for available purposes.
|
|
254
|
+
*/
|
|
255
|
+
readonly purposes: v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>;
|
|
256
|
+
/**
|
|
257
|
+
* A message to be displayed to the user in the request prompt.
|
|
258
|
+
*/
|
|
259
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
260
|
+
}, undefined>;
|
|
261
|
+
type GetAddressesParams = v.InferOutput<typeof getAddressesParamsSchema>;
|
|
262
|
+
declare const getAddressesResultSchema: v.ObjectSchema<{
|
|
263
|
+
/**
|
|
264
|
+
* The addresses generated for the given purposes.
|
|
265
|
+
*/
|
|
266
|
+
readonly addresses: v.ArraySchema<v.ObjectSchema<{
|
|
267
|
+
readonly address: v.StringSchema<undefined>;
|
|
268
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
269
|
+
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
270
|
+
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
271
|
+
}, undefined>, undefined>;
|
|
272
|
+
}, undefined>;
|
|
273
|
+
type GetAddressesResult = v.InferOutput<typeof getAddressesResultSchema>;
|
|
274
|
+
declare const getAddressesRequestMessageSchema: v.ObjectSchema<{
|
|
275
|
+
readonly method: v.LiteralSchema<"getAddresses", undefined>;
|
|
276
|
+
readonly params: v.ObjectSchema<{
|
|
277
|
+
/**
|
|
278
|
+
* The purposes for which to generate addresses. See
|
|
279
|
+
* {@linkcode AddressPurpose} for available purposes.
|
|
280
|
+
*/
|
|
281
|
+
readonly purposes: v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>;
|
|
282
|
+
/**
|
|
283
|
+
* A message to be displayed to the user in the request prompt.
|
|
284
|
+
*/
|
|
285
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
286
|
+
}, undefined>;
|
|
287
|
+
readonly id: v.StringSchema<undefined>;
|
|
288
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
289
|
+
}, undefined>;
|
|
290
|
+
type GetAddressesRequestMessage = v.InferOutput<typeof getAddressesRequestMessageSchema>;
|
|
291
|
+
type GetAddresses = MethodParamsAndResult<v.InferOutput<typeof getAddressesParamsSchema>, v.InferOutput<typeof getAddressesResultSchema>>;
|
|
292
|
+
declare const signMessageMethodName = "signMessage";
|
|
293
|
+
declare enum MessageSigningProtocols {
|
|
294
|
+
ECDSA = "ECDSA",
|
|
295
|
+
BIP322 = "BIP322"
|
|
296
|
+
}
|
|
297
|
+
declare const signMessageParamsSchema: v.ObjectSchema<{
|
|
298
|
+
/**
|
|
299
|
+
* The address used for signing.
|
|
300
|
+
**/
|
|
301
|
+
readonly address: v.StringSchema<undefined>;
|
|
302
|
+
/**
|
|
303
|
+
* The message to sign.
|
|
304
|
+
**/
|
|
305
|
+
readonly message: v.StringSchema<undefined>;
|
|
306
|
+
/**
|
|
307
|
+
* The protocol to use for signing the message.
|
|
308
|
+
*/
|
|
309
|
+
readonly protocol: v.OptionalSchema<v.EnumSchema<typeof MessageSigningProtocols, undefined>, undefined>;
|
|
310
|
+
}, undefined>;
|
|
311
|
+
type SignMessageParams = v.InferOutput<typeof signMessageParamsSchema>;
|
|
312
|
+
declare const signMessageResultSchema: v.ObjectSchema<{
|
|
313
|
+
/**
|
|
314
|
+
* The signature of the message.
|
|
315
|
+
*/
|
|
316
|
+
readonly signature: v.StringSchema<undefined>;
|
|
317
|
+
/**
|
|
318
|
+
* hash of the message.
|
|
319
|
+
*/
|
|
320
|
+
readonly messageHash: v.StringSchema<undefined>;
|
|
321
|
+
/**
|
|
322
|
+
* The address used for signing.
|
|
323
|
+
*/
|
|
324
|
+
readonly address: v.StringSchema<undefined>;
|
|
325
|
+
/**
|
|
326
|
+
* The protocol to use for signing the message.
|
|
327
|
+
*/
|
|
328
|
+
readonly protocol: v.EnumSchema<typeof MessageSigningProtocols, undefined>;
|
|
329
|
+
}, undefined>;
|
|
330
|
+
type SignMessageResult = v.InferOutput<typeof signMessageResultSchema>;
|
|
331
|
+
declare const signMessageRequestMessageSchema: v.ObjectSchema<{
|
|
332
|
+
readonly method: v.LiteralSchema<"signMessage", undefined>;
|
|
333
|
+
readonly params: v.ObjectSchema<{
|
|
334
|
+
/**
|
|
335
|
+
* The address used for signing.
|
|
336
|
+
**/
|
|
337
|
+
readonly address: v.StringSchema<undefined>;
|
|
338
|
+
/**
|
|
339
|
+
* The message to sign.
|
|
340
|
+
**/
|
|
341
|
+
readonly message: v.StringSchema<undefined>;
|
|
342
|
+
/**
|
|
343
|
+
* The protocol to use for signing the message.
|
|
344
|
+
*/
|
|
345
|
+
readonly protocol: v.OptionalSchema<v.EnumSchema<typeof MessageSigningProtocols, undefined>, undefined>;
|
|
346
|
+
}, undefined>;
|
|
347
|
+
readonly id: v.StringSchema<undefined>;
|
|
348
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
349
|
+
}, undefined>;
|
|
350
|
+
type SignMessageRequestMessage = v.InferOutput<typeof signMessageRequestMessageSchema>;
|
|
351
|
+
type SignMessage = MethodParamsAndResult<v.InferOutput<typeof signMessageParamsSchema>, v.InferOutput<typeof signMessageResultSchema>>;
|
|
352
|
+
type Recipient = {
|
|
353
|
+
/**
|
|
354
|
+
* The recipient's address.
|
|
355
|
+
**/
|
|
356
|
+
address: string;
|
|
357
|
+
/**
|
|
358
|
+
* The amount to send to the recipient in satoshis.
|
|
359
|
+
*/
|
|
360
|
+
amount: number;
|
|
361
|
+
};
|
|
362
|
+
type SendTransferParams = {
|
|
363
|
+
/**
|
|
364
|
+
* Array of recipients to send to.
|
|
365
|
+
* The amount to send to each recipient is in satoshis.
|
|
366
|
+
*/
|
|
367
|
+
recipients: Array<Recipient>;
|
|
368
|
+
};
|
|
369
|
+
type SendTransferResult = {
|
|
370
|
+
/**
|
|
371
|
+
* The transaction id as a hex-encoded string.
|
|
372
|
+
*/
|
|
373
|
+
txid: string;
|
|
374
|
+
};
|
|
375
|
+
type SendTransfer = MethodParamsAndResult<SendTransferParams, SendTransferResult>;
|
|
376
|
+
type SignPsbtParams = {
|
|
377
|
+
/**
|
|
378
|
+
* The base64 encoded PSBT to sign.
|
|
379
|
+
*/
|
|
380
|
+
psbt: string;
|
|
381
|
+
/**
|
|
382
|
+
* The inputs to sign.
|
|
383
|
+
* The key is the address and the value is an array of indexes of the inputs to sign.
|
|
384
|
+
*/
|
|
385
|
+
signInputs: Record<string, number[]>;
|
|
386
|
+
/**
|
|
387
|
+
* the sigHash type to use for signing.
|
|
388
|
+
* will default to the sighash type of the input if not provided.
|
|
389
|
+
**/
|
|
390
|
+
allowedSignHash?: number;
|
|
391
|
+
/**
|
|
392
|
+
* Whether to broadcast the transaction after signing.
|
|
393
|
+
**/
|
|
394
|
+
broadcast?: boolean;
|
|
395
|
+
};
|
|
396
|
+
type SignPsbtResult = {
|
|
397
|
+
/**
|
|
398
|
+
* The base64 encoded PSBT after signing.
|
|
399
|
+
*/
|
|
400
|
+
psbt: string;
|
|
401
|
+
/**
|
|
402
|
+
* The transaction id as a hex-encoded string.
|
|
403
|
+
* This is only returned if the transaction was broadcast.
|
|
404
|
+
**/
|
|
405
|
+
txid?: string;
|
|
406
|
+
};
|
|
407
|
+
type SignPsbt = MethodParamsAndResult<SignPsbtParams, SignPsbtResult>;
|
|
408
|
+
declare const getAccountsMethodName = "getAccounts";
|
|
409
|
+
declare const getAccountsParamsSchema: v.ObjectSchema<{
|
|
410
|
+
/**
|
|
411
|
+
* The purposes for which to generate addresses. See
|
|
412
|
+
* {@linkcode AddressPurpose} for available purposes.
|
|
413
|
+
*/
|
|
414
|
+
readonly purposes: v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>;
|
|
415
|
+
/**
|
|
416
|
+
* A message to be displayed to the user in the request prompt.
|
|
417
|
+
*/
|
|
418
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
419
|
+
}, undefined>;
|
|
420
|
+
type GetAccountsParams = v.InferOutput<typeof getAccountsParamsSchema>;
|
|
421
|
+
declare const getAccountsResultSchema: v.ArraySchema<v.ObjectSchema<{
|
|
422
|
+
readonly walletType: v.PicklistSchema<readonly ["software", "ledger"], undefined>;
|
|
423
|
+
readonly address: v.StringSchema<undefined>;
|
|
424
|
+
readonly publicKey: v.StringSchema<undefined>;
|
|
425
|
+
readonly purpose: v.EnumSchema<typeof AddressPurpose, undefined>;
|
|
426
|
+
readonly addressType: v.EnumSchema<typeof AddressType, undefined>;
|
|
427
|
+
}, undefined>, undefined>;
|
|
428
|
+
type GetAccountsResult = v.InferOutput<typeof getAccountsResultSchema>;
|
|
429
|
+
declare const getAccountsRequestMessageSchema: v.ObjectSchema<{
|
|
430
|
+
readonly method: v.LiteralSchema<"getAccounts", undefined>;
|
|
431
|
+
readonly params: v.ObjectSchema<{
|
|
432
|
+
/**
|
|
433
|
+
* The purposes for which to generate addresses. See
|
|
434
|
+
* {@linkcode AddressPurpose} for available purposes.
|
|
435
|
+
*/
|
|
436
|
+
readonly purposes: v.ArraySchema<v.EnumSchema<typeof AddressPurpose, undefined>, undefined>;
|
|
437
|
+
/**
|
|
438
|
+
* A message to be displayed to the user in the request prompt.
|
|
439
|
+
*/
|
|
440
|
+
readonly message: v.OptionalSchema<v.StringSchema<undefined>, undefined>;
|
|
441
|
+
}, undefined>;
|
|
442
|
+
readonly id: v.StringSchema<undefined>;
|
|
443
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
444
|
+
}, undefined>;
|
|
445
|
+
type GetAccountsRequestMessage = v.InferOutput<typeof getAccountsRequestMessageSchema>;
|
|
446
|
+
type GetAccounts = MethodParamsAndResult<v.InferOutput<typeof getAccountsParamsSchema>, v.InferOutput<typeof getAccountsResultSchema>>;
|
|
447
|
+
declare const getBalanceMethodName = "getBalance";
|
|
448
|
+
declare const getBalanceParamsSchema: v.NullishSchema<v.NullSchema<undefined>, undefined>;
|
|
449
|
+
declare const getBalanceResultSchema: v.ObjectSchema<{
|
|
450
|
+
/**
|
|
451
|
+
* The confirmed balance of the wallet in sats. Using a string due to chrome
|
|
452
|
+
* messages not supporting bigint
|
|
453
|
+
* (https://issues.chromium.org/issues/40116184).
|
|
454
|
+
*/
|
|
455
|
+
readonly confirmed: v.StringSchema<undefined>;
|
|
456
|
+
/**
|
|
457
|
+
* The unconfirmed balance of the wallet in sats. Using a string due to chrome
|
|
458
|
+
* messages not supporting bigint
|
|
459
|
+
* (https://issues.chromium.org/issues/40116184).
|
|
460
|
+
*/
|
|
461
|
+
readonly unconfirmed: v.StringSchema<undefined>;
|
|
462
|
+
/**
|
|
463
|
+
* The total balance (both confirmed and unconfrimed UTXOs) of the wallet in
|
|
464
|
+
* sats. Using a string due to chrome messages not supporting bigint
|
|
465
|
+
* (https://issues.chromium.org/issues/40116184).
|
|
466
|
+
*/
|
|
467
|
+
readonly total: v.StringSchema<undefined>;
|
|
468
|
+
}, undefined>;
|
|
469
|
+
declare const getBalanceRequestMessageSchema: v.ObjectSchema<{
|
|
470
|
+
readonly method: v.LiteralSchema<"getBalance", undefined>;
|
|
471
|
+
readonly id: v.StringSchema<undefined>;
|
|
472
|
+
readonly jsonrpc: v.LiteralSchema<"2.0", undefined>;
|
|
473
|
+
readonly params: v.OptionalSchema<v.UnionSchema<[v.ArraySchema<v.UnknownSchema, undefined>, v.LooseObjectSchema<{}, undefined>, v.NullSchema<undefined>], undefined>, undefined>;
|
|
474
|
+
}, undefined>;
|
|
475
|
+
type GetBalance = MethodParamsAndResult<v.InferOutput<typeof getBalanceParamsSchema>, v.InferOutput<typeof getBalanceResultSchema>>;
|
|
476
|
+
declare namespace advancedBarrel_d_exports {
|
|
477
|
+
export { AccountChangeEvent, AddListener, Address, AddressPurpose, AddressType, BitcoinNetwork, BitcoinNetworkType, BtcProvider, BtcRequestMethod, BtcRequests, DisconnectEvent, GetAccounts, GetAccountsParams, GetAccountsRequestMessage, GetAccountsResult, GetAddresses, GetAddressesParams, GetAddressesRequestMessage, GetAddressesResult, GetBalance, GetInfo, GetInfoParams, GetInfoRequestMessage, GetInfoResult, MessageSigningProtocols, MethodParamsAndResult, NetworkChangeEvent, Params, Provider, RequestOptions, RequestPayload, Requests, Return, RpcBase, RpcError, RpcErrorCode, RpcErrorResponse, RpcErrorResponseMessage, RpcId, RpcIdSchema, RpcRequest, RpcRequestMessage, RpcResponse, RpcResponseMessage, RpcResult, RpcSuccessResponse, RpcSuccessResponseMessage, SendTransfer, SendTransferParams, SignMessage, SignMessageParams, SignMessageRequestMessage, SignMessageResult, SignPsbt, SignPsbtParams, SignPsbtResult, WalletEvent, WalletRequests, accountChangeEventName, accountChangeSchema, addressSchema, disconnectEventName, disconnectSchema, getAccountsMethodName, getAccountsParamsSchema, getAccountsRequestMessageSchema, getAccountsResultSchema, getAddressesMethodName, getAddressesParamsSchema, getAddressesRequestMessageSchema, getAddressesResultSchema, getBalanceMethodName, getBalanceParamsSchema, getBalanceRequestMessageSchema, getBalanceResultSchema, getInfoMethodName, getInfoParamsSchema, getInfoRequestMessageSchema, getInfoResultSchema, networkChangeEventName, networkChangeSchema, rpcErrorResponseMessageSchema, rpcRequestMessageSchema, rpcResponseMessageSchema, rpcSuccessResponseMessageSchema, signMessageMethodName, signMessageParamsSchema, signMessageRequestMessageSchema, signMessageResultSchema, walletEventSchema };
|
|
478
|
+
}
|
|
479
|
+
//#endregion
|
|
480
|
+
export { RequestPayload as $, getAccountsParamsSchema as A, networkChangeSchema as At, getBalanceResultSchema as B, SignMessageRequestMessage as C, Provider as Ct, SignPsbtResult as D, disconnectEventName as Dt, SignPsbtParams as E, accountChangeSchema as Et, getAddressesRequestMessageSchema as F, Requests as Ft, signMessageMethodName as G, getInfoParamsSchema as H, getAddressesResultSchema as I, Return as It, signMessageResultSchema as J, signMessageParamsSchema as K, getBalanceMethodName as L, WalletRequests as Lt, getAccountsResultSchema as M, BtcRequestMethod as Mt, getAddressesMethodName as N, BtcRequests as Nt, addressSchema as O, disconnectSchema as Ot, getAddressesParamsSchema as P, Params as Pt, RequestOptions as Q, getBalanceParamsSchema as R, SignMessageParams as S, NetworkChangeEvent as St, SignPsbt as T, accountChangeEventName as Tt, getInfoRequestMessageSchema as U, getInfoMethodName as V, getInfoResultSchema as W, BitcoinNetworkType as X, BitcoinNetwork as Y, MethodParamsAndResult as Z, GetInfoResult as _, rpcSuccessResponseMessageSchema as _t, GetAccounts as a, RpcId as at, SendTransferParams as b, BtcProvider as bt, GetAccountsResult as c, RpcRequestMessage as ct, GetAddressesRequestMessage as d, RpcResult as dt, RpcBase as et, GetAddressesResult as f, RpcSuccessResponse as ft, GetInfoRequestMessage as g, rpcResponseMessageSchema as gt, GetInfoParams as h, rpcRequestMessageSchema as ht, AddressType as i, RpcErrorResponseMessage as it, getAccountsRequestMessageSchema as j, walletEventSchema as jt, getAccountsMethodName as k, networkChangeEventName as kt, GetAddresses as l, RpcResponse as lt, GetInfo as m, rpcErrorResponseMessageSchema as mt, Address as n, RpcErrorCode as nt, GetAccountsParams as o, RpcIdSchema as ot, GetBalance as p, RpcSuccessResponseMessage as pt, signMessageRequestMessageSchema as q, AddressPurpose as r, RpcErrorResponse as rt, GetAccountsRequestMessage as s, RpcRequest as st, advancedBarrel_d_exports as t, RpcError as tt, GetAddressesParams as u, RpcResponseMessage as ut, MessageSigningProtocols as v, AccountChangeEvent as vt, SignMessageResult as w, WalletEvent as wt, SignMessage as x, DisconnectEvent as xt, SendTransfer as y, AddListener as yt, getBalanceRequestMessageSchema as z };
|
|
481
|
+
//# sourceMappingURL=advancedBarrel-C-ThB6-A.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"advancedBarrel-C-ThB6-A.d.mts","names":[],"sources":["../src/sat-connect-core/walletMethods.advanced.ts","../src/sat-connect-core/requests.advanced.ts","../src/sat-connect-core/provider.advanced.ts","../src/sat-connect-core/types.advanced.ts","../src/sat-connect-core/btcMethods.advanced.ts","../src/advancedBarrel.ts"],"mappings":";;;cAaa,8BAAA,EAA8B,CAAA,CAAA,eAAA;AAAA,cAC9B,8BAAA,EAA8B,CAAA,CAAA,aAAA;AAAA,KAS/B,kBAAA,GAAqB,qBAAA,CAC/B,CAAA,CAAE,WAAA,QAAmB,8BAAA,GACrB,CAAA,CAAE,WAAA,QAAmB,8BAAA;AAAA,cAIV,+BAAA,EAA+B,CAAA,CAAA,eAAA;AAAA,cAC/B,+BAAA,EAA+B,CAAA,CAAA,aAAA;AAAA,KAShC,mBAAA,GAAsB,qBAAA,CAChC,CAAA,CAAE,WAAA,QAAmB,+BAAA,GACrB,CAAA,CAAE,WAAA,QAAmB,+BAAA;AAAA,cAIV,yBAAA,EAAyB,CAAA,CAAA,aAAA,CAAA,CAAA,CAAA,UAAA;AAAA,cACzB,yBAAA,EAAyB,CAAA,CAAA,cAAA;AAAA,KAQ1B,aAAA,GAAgB,qBAAA,CAC1B,CAAA,CAAE,WAAA,QAAmB,yBAAA,GACrB,CAAA,CAAE,WAAA,QAAmB,yBAAA;;;UCzCN,WAAA;EACf,OAAA,EAAS,OAAA;EACT,YAA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AAA,EAA+B,CAAA,CAAA,YAAA;EAAA;;IF7OT;;;AAAsC;IAAtC;IAGH;;;IAAA;;;;;KEkPpB,yBAAA,GAA4B,CAAA,CAAE,WAAW,QAC5C,+BAAA;AAAA,KAEG,WAAA,GAAc,qBAAA,CACxB,CAAA,CAAE,WAAA,QAAmB,uBAAA,GACrB,CAAA,CAAE,WAAA,QAAmB,uBAAA;AAAA,cAGV,oBAAA;AAAA,cACA,sBAAA,EAAsB,CAAA,CAAA,aAAA,CAAA,CAAA,CAAA,UAAA;AAAA,cACtB,sBAAA,EAAsB,CAAA,CAAA,YAAA;;;AFxPnC;;;;EAA8B;;;;AAAqC;EAArC;EAM5B;;;;;EAAA;;cEwQW,8BAAA,EAA8B,CAAA,CAAA,YAAA;EAAA;;;;;KAO/B,UAAA,GAAa,qBAAA,CACvB,CAAA,CAAE,WAAA,QAAmB,sBAAA,GACrB,CAAA,CAAE,WAAA,QAAmB,sBAAA;AAAA"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{t as e}from"./rolldown-runtime-DK3Fl9T5.mjs";import*as t from"valibot";let n=function(e){return e.Mainnet=`Mainnet`,e.Testnet=`Testnet`,e.Signet=`Signet`,e}({});const r=t.optional(t.union([t.string(),t.number(),t.null()])),i=t.object({jsonrpc:t.literal(`2.0`),method:t.string(),params:t.optional(t.union([t.array(t.unknown()),t.looseObject({}),t.null()])),id:r});let a=function(e){return e[e.PARSE_ERROR=-32700]=`PARSE_ERROR`,e[e.INVALID_REQUEST=-32600]=`INVALID_REQUEST`,e[e.METHOD_NOT_FOUND=-32601]=`METHOD_NOT_FOUND`,e[e.INVALID_PARAMS=-32602]=`INVALID_PARAMS`,e[e.INTERNAL_ERROR=-32603]=`INTERNAL_ERROR`,e[e.USER_REJECTION=-32e3]=`USER_REJECTION`,e[e.METHOD_NOT_SUPPORTED=-32001]=`METHOD_NOT_SUPPORTED`,e[e.ACCESS_DENIED=-32002]=`ACCESS_DENIED`,e}({});const o=t.object({jsonrpc:t.literal(`2.0`),result:t.nonOptional(t.unknown()),id:r}),s=t.object({jsonrpc:t.literal(`2.0`),error:t.nonOptional(t.unknown()),id:r}),c=t.union([o,s]),l=t.picklist([`software`,`ledger`]),u=t.undefined();t.literal(!0),t.object({...i.entries,...t.object({method:t.literal(`wallet_requestPermissions`),params:u,id:t.string()}).entries});const d=t.undefined();t.literal(!0),t.object({...i.entries,...t.object({method:t.literal(`wallet_renouncePermissions`),params:d,id:t.string()}).entries}),t.nullish(t.null()),t.object({...i.entries,...t.object({method:t.literal(`wallet_getWalletType`),id:t.string()}).entries});let f=function(e){return e.Ordinals=`ordinals`,e.Payment=`payment`,e.Stacks=`stacks`,e}({}),p=function(e){return e.p2pkh=`p2pkh`,e.p2sh=`p2sh`,e.p2wpkh=`p2wpkh`,e.p2wsh=`p2wsh`,e.p2tr=`p2tr`,e.stacks=`stacks`,e}({});const m=t.object({address:t.string(),publicKey:t.string(),purpose:t.enum(f),addressType:t.enum(p)}),h=`getInfo`,g=t.nullish(t.null()),_=t.object({version:t.string(),methods:t.optional(t.array(t.string())),supports:t.array(t.string())}),v=t.object({...i.entries,...t.object({method:t.literal(h),params:g,id:t.string()}).entries}),y=`getAddresses`,b=t.object({purposes:t.array(t.enum(f)),message:t.optional(t.string())}),x=t.object({addresses:t.array(m)}),S=t.object({...i.entries,...t.object({method:t.literal(y),params:b,id:t.string()}).entries}),C=`signMessage`;let w=function(e){return e.ECDSA=`ECDSA`,e.BIP322=`BIP322`,e}({});const T=t.object({address:t.string(),message:t.string(),protocol:t.optional(t.enum(w))}),E=t.object({signature:t.string(),messageHash:t.string(),address:t.string(),protocol:t.enum(w)}),D=t.object({...i.entries,...t.object({method:t.literal(C),params:T,id:t.string()}).entries}),O=`getAccounts`,k=t.object({purposes:t.array(t.enum(f)),message:t.optional(t.string())}),A=t.array(t.object({...m.entries,...t.object({walletType:l}).entries})),j=t.object({...i.entries,...t.object({method:t.literal(O),params:k,id:t.string()}).entries}),M=`getBalance`,N=t.nullish(t.null()),P=t.object({confirmed:t.string(),unconfirmed:t.string(),total:t.string()}),F=t.object({...i.entries,...t.object({method:t.literal(M),id:t.string()}).entries}),I=`accountChange`,L=t.object({type:t.literal(I)}),R=`networkChange`,z=t.object({type:t.literal(R)}),B=`disconnect`,V=t.object({type:t.literal(B)}),H=t.variant(`type`,[L,z,V]);var U=e({AddressPurpose:()=>f,AddressType:()=>p,BitcoinNetworkType:()=>n,MessageSigningProtocols:()=>w,RpcErrorCode:()=>a,RpcIdSchema:()=>r,accountChangeEventName:()=>I,accountChangeSchema:()=>L,addressSchema:()=>m,disconnectEventName:()=>B,disconnectSchema:()=>V,getAccountsMethodName:()=>O,getAccountsParamsSchema:()=>k,getAccountsRequestMessageSchema:()=>j,getAccountsResultSchema:()=>A,getAddressesMethodName:()=>y,getAddressesParamsSchema:()=>b,getAddressesRequestMessageSchema:()=>S,getAddressesResultSchema:()=>x,getBalanceMethodName:()=>M,getBalanceParamsSchema:()=>N,getBalanceRequestMessageSchema:()=>F,getBalanceResultSchema:()=>P,getInfoMethodName:()=>h,getInfoParamsSchema:()=>g,getInfoRequestMessageSchema:()=>v,getInfoResultSchema:()=>_,networkChangeEventName:()=>R,networkChangeSchema:()=>z,rpcErrorResponseMessageSchema:()=>s,rpcRequestMessageSchema:()=>i,rpcResponseMessageSchema:()=>c,rpcSuccessResponseMessageSchema:()=>o,signMessageMethodName:()=>C,signMessageParamsSchema:()=>T,signMessageRequestMessageSchema:()=>D,signMessageResultSchema:()=>E,walletEventSchema:()=>H});export{T as A,F as C,v as D,g as E,r as F,s as I,i as L,E as M,n as N,_ as O,a as P,c as R,N as S,h as T,y as _,V as a,x as b,H as c,w as d,m as f,A as g,j as h,B as i,D as j,C as k,f as l,k as m,I as n,R as o,O as p,L as r,z as s,U as t,p as u,b as v,P as w,M as x,S as y,o as z};
|
|
2
|
+
//# sourceMappingURL=advancedBarrel-DIYsVxWE.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"advancedBarrel-DIYsVxWE.mjs","names":[],"sources":["../src/sat-connect-core/types.advanced.ts","../src/sat-connect-core/walletMethods.advanced.ts","../src/sat-connect-core/btcMethods.advanced.ts","../src/sat-connect-core/provider.advanced.ts","../src/advancedBarrel.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-explicit-any */\n// From https://github.com/secretkeylabs/sats-connect-core/\n\nimport * as v from \"valibot\";\nimport type { BtcProvider } from \"./provider.advanced.js\";\nimport type { Requests, Return } from \"./requests.advanced.js\";\n\nexport enum BitcoinNetworkType {\n Mainnet = \"Mainnet\",\n Testnet = \"Testnet\",\n Signet = \"Signet\",\n}\n\nexport interface BitcoinNetwork {\n type: BitcoinNetworkType;\n address?: string;\n}\n\nexport interface RequestPayload {\n network: BitcoinNetwork;\n}\n\nexport interface RequestOptions<Payload extends RequestPayload, Response> {\n onFinish: (response: Response) => void;\n onCancel: () => void;\n payload: Payload;\n getProvider?: () => Promise<BtcProvider | undefined>;\n}\n\n// RPC Request and Response types\n\nexport const RpcIdSchema = v.optional(\n v.union([v.string(), v.number(), v.null()]),\n);\nexport type RpcId = v.InferOutput<typeof RpcIdSchema>;\nexport const rpcRequestMessageSchema = v.object({\n jsonrpc: v.literal(\"2.0\"),\n method: v.string(),\n params: v.optional(\n v.union([\n v.array(v.unknown()),\n v.looseObject({}),\n // Note: This is to support current incorrect usage of RPC 2.0. Params need\n // to be either an array or an object when provided. Changing this now would\n // be a breaking change, so accepting null values for now. Tracking in\n // https://linear.app/xverseapp/issue/ENG-4538.\n v.null(),\n ]),\n ),\n id: RpcIdSchema,\n});\nexport type RpcRequestMessage = v.InferOutput<typeof rpcRequestMessageSchema>;\n\nexport interface RpcBase {\n jsonrpc: \"2.0\";\n id: RpcId;\n}\nexport interface RpcRequest<T extends string, U> extends RpcBase {\n method: T;\n params: U;\n}\n\nexport interface MethodParamsAndResult<TParams, TResult> {\n params: TParams;\n result: TResult;\n}\n\n/**\n * @enum {number} RpcErrorCode\n * @description JSON-RPC error codes\n * @see https://www.jsonrpc.org/specification#error_object\n */\nexport enum RpcErrorCode {\n /**\n * Parse error Invalid JSON\n **/\n PARSE_ERROR = -32700,\n /**\n * The JSON sent is not a valid Request object.\n **/\n INVALID_REQUEST = -32600,\n /**\n * The method does not exist/is not available.\n **/\n METHOD_NOT_FOUND = -32601,\n /**\n * Invalid method parameter(s).\n */\n INVALID_PARAMS = -32602,\n /**\n * Internal JSON-RPC error.\n * This is a generic error, used when the server encounters an error in performing the request.\n **/\n INTERNAL_ERROR = -32603,\n /**\n * user rejected/canceled the request\n */\n USER_REJECTION = -32000,\n /**\n * method is not supported for the address provided\n */\n METHOD_NOT_SUPPORTED = -32001,\n /**\n * The client does not have permission to access the requested resource.\n */\n ACCESS_DENIED = -32002,\n}\n\nexport const rpcSuccessResponseMessageSchema = v.object({\n jsonrpc: v.literal(\"2.0\"),\n result: v.nonOptional(v.unknown()),\n id: RpcIdSchema,\n});\nexport type RpcSuccessResponseMessage = v.InferOutput<\n typeof rpcSuccessResponseMessageSchema\n>;\n\nexport const rpcErrorResponseMessageSchema = v.object({\n jsonrpc: v.literal(\"2.0\"),\n error: v.nonOptional(v.unknown()),\n id: RpcIdSchema,\n});\nexport type RpcErrorResponseMessage = v.InferOutput<\n typeof rpcErrorResponseMessageSchema\n>;\nexport const rpcResponseMessageSchema = v.union([\n rpcSuccessResponseMessageSchema,\n rpcErrorResponseMessageSchema,\n]);\nexport type RpcResponseMessage = v.InferOutput<typeof rpcResponseMessageSchema>;\n\nexport interface RpcError {\n code: number | RpcErrorCode;\n message: string;\n data?: any;\n}\n\nexport interface RpcErrorResponse<\n TError extends RpcError = RpcError,\n> extends RpcBase {\n error: TError;\n}\n\nexport interface RpcSuccessResponse<\n Method extends keyof Requests,\n> extends RpcBase {\n result: Return<Method>;\n}\n\nexport type RpcResponse<Method extends keyof Requests> =\n | RpcSuccessResponse<Method>\n | RpcErrorResponse;\n\nexport type RpcResult<Method extends keyof Requests> =\n | {\n result: RpcSuccessResponse<Method>[\"result\"];\n status: \"success\";\n }\n | {\n error: RpcErrorResponse[\"error\"];\n status: \"error\";\n };\n","// From https://github.com/secretkeylabs/sats-connect-core/\n\nimport * as v from \"valibot\";\nimport {\n MethodParamsAndResult,\n rpcRequestMessageSchema,\n} from \"./types.advanced.js\";\n\nexport const walletTypes = [\"software\", \"ledger\"] as const;\nexport const walletTypeSchema = v.picklist(walletTypes);\nexport type WalletType = v.InferOutput<typeof walletTypeSchema>;\n\nexport const requestPermissionsMethodName = \"wallet_requestPermissions\";\nexport const requestPermissionsParamsSchema = v.undefined();\nexport const requestPermissionsResultSchema = v.literal(true);\nexport const requestPermissionsRequestMessageSchema = v.object({\n ...rpcRequestMessageSchema.entries,\n ...v.object({\n method: v.literal(requestPermissionsMethodName),\n params: requestPermissionsParamsSchema,\n id: v.string(),\n }).entries,\n});\nexport type RequestPermissions = MethodParamsAndResult<\n v.InferOutput<typeof requestPermissionsParamsSchema>,\n v.InferOutput<typeof requestPermissionsResultSchema>\n>;\n\nexport const renouncePermissionsMethodName = \"wallet_renouncePermissions\";\nexport const renouncePermissionsParamsSchema = v.undefined();\nexport const renouncePermissionsResultSchema = v.literal(true);\nexport const renouncePermissionsRequestMessageSchema = v.object({\n ...rpcRequestMessageSchema.entries,\n ...v.object({\n method: v.literal(renouncePermissionsMethodName),\n params: renouncePermissionsParamsSchema,\n id: v.string(),\n }).entries,\n});\nexport type RenouncePermissions = MethodParamsAndResult<\n v.InferOutput<typeof renouncePermissionsParamsSchema>,\n v.InferOutput<typeof renouncePermissionsResultSchema>\n>;\n\nexport const getWalletTypeMethodName = \"wallet_getWalletType\";\nexport const getWalletTypeParamsSchema = v.nullish(v.null());\nexport const getWalletTypeResultSchema = walletTypeSchema;\nexport const getWalletTypeRequestMessageSchema = v.object({\n ...rpcRequestMessageSchema.entries,\n ...v.object({\n method: v.literal(getWalletTypeMethodName),\n id: v.string(),\n }).entries,\n});\nexport type GetWalletType = MethodParamsAndResult<\n v.InferOutput<typeof getWalletTypeParamsSchema>,\n v.InferOutput<typeof getWalletTypeResultSchema>\n>;\n","// From https://github.com/secretkeylabs/sats-connect-core/\n\n/**\n * Represents the types and interfaces related to BTC methods.\n */\n\nimport * as v from \"valibot\";\nimport {\n MethodParamsAndResult,\n rpcRequestMessageSchema,\n} from \"./types.advanced.js\";\nimport { walletTypeSchema } from \"./walletMethods.advanced.js\";\n\nexport enum AddressPurpose {\n Ordinals = \"ordinals\",\n Payment = \"payment\",\n Stacks = \"stacks\",\n}\n\nexport enum AddressType {\n p2pkh = \"p2pkh\",\n p2sh = \"p2sh\",\n p2wpkh = \"p2wpkh\",\n p2wsh = \"p2wsh\",\n p2tr = \"p2tr\",\n stacks = \"stacks\",\n}\n\nexport const addressSchema = v.object({\n address: v.string(),\n publicKey: v.string(),\n purpose: v.enum(AddressPurpose),\n addressType: v.enum(AddressType),\n});\nexport type Address = v.InferOutput<typeof addressSchema>;\n\nexport const getInfoMethodName = \"getInfo\";\nexport const getInfoParamsSchema = v.nullish(v.null());\nexport type GetInfoParams = v.InferOutput<typeof getInfoParamsSchema>;\nexport const getInfoResultSchema = v.object({\n /**\n * Version of the wallet.\n */\n version: v.string(),\n\n /**\n * [WBIP](https://wbips.netlify.app/wbips/WBIP002) methods supported by the wallet.\n */\n methods: v.optional(v.array(v.string())),\n\n /**\n * List of WBIP standards supported by the wallet. Not currently used.\n */\n supports: v.array(v.string()),\n});\nexport type GetInfoResult = v.InferOutput<typeof getInfoResultSchema>;\nexport const getInfoRequestMessageSchema = v.object({\n ...rpcRequestMessageSchema.entries,\n ...v.object({\n method: v.literal(getInfoMethodName),\n params: getInfoParamsSchema,\n id: v.string(),\n }).entries,\n});\nexport type GetInfoRequestMessage = v.InferOutput<\n typeof getInfoRequestMessageSchema\n>;\nexport type GetInfo = MethodParamsAndResult<\n v.InferOutput<typeof getInfoParamsSchema>,\n v.InferOutput<typeof getInfoResultSchema>\n>;\n\nexport const getAddressesMethodName = \"getAddresses\";\nexport const getAddressesParamsSchema = v.object({\n /**\n * The purposes for which to generate addresses. See\n * {@linkcode AddressPurpose} for available purposes.\n */\n purposes: v.array(v.enum(AddressPurpose)),\n /**\n * A message to be displayed to the user in the request prompt.\n */\n message: v.optional(v.string()),\n});\nexport type GetAddressesParams = v.InferOutput<typeof getAddressesParamsSchema>;\nexport const getAddressesResultSchema = v.object({\n /**\n * The addresses generated for the given purposes.\n */\n addresses: v.array(addressSchema),\n});\nexport type GetAddressesResult = v.InferOutput<typeof getAddressesResultSchema>;\nexport const getAddressesRequestMessageSchema = v.object({\n ...rpcRequestMessageSchema.entries,\n ...v.object({\n method: v.literal(getAddressesMethodName),\n params: getAddressesParamsSchema,\n id: v.string(),\n }).entries,\n});\nexport type GetAddressesRequestMessage = v.InferOutput<\n typeof getAddressesRequestMessageSchema\n>;\nexport type GetAddresses = MethodParamsAndResult<\n v.InferOutput<typeof getAddressesParamsSchema>,\n v.InferOutput<typeof getAddressesResultSchema>\n>;\n\nexport const signMessageMethodName = \"signMessage\";\n\nexport enum MessageSigningProtocols {\n ECDSA = \"ECDSA\",\n BIP322 = \"BIP322\",\n}\n\nexport const signMessageParamsSchema = v.object({\n /**\n * The address used for signing.\n **/\n address: v.string(),\n /**\n * The message to sign.\n **/\n message: v.string(),\n /**\n * The protocol to use for signing the message.\n */\n protocol: v.optional(v.enum(MessageSigningProtocols)),\n});\nexport type SignMessageParams = v.InferOutput<typeof signMessageParamsSchema>;\nexport const signMessageResultSchema = v.object({\n /**\n * The signature of the message.\n */\n signature: v.string(),\n /**\n * hash of the message.\n */\n messageHash: v.string(),\n /**\n * The address used for signing.\n */\n address: v.string(),\n /**\n * The protocol to use for signing the message.\n */\n protocol: v.enum(MessageSigningProtocols),\n});\nexport type SignMessageResult = v.InferOutput<typeof signMessageResultSchema>;\nexport const signMessageRequestMessageSchema = v.object({\n ...rpcRequestMessageSchema.entries,\n ...v.object({\n method: v.literal(signMessageMethodName),\n params: signMessageParamsSchema,\n id: v.string(),\n }).entries,\n});\nexport type SignMessageRequestMessage = v.InferOutput<\n typeof signMessageRequestMessageSchema\n>;\nexport type SignMessage = MethodParamsAndResult<\n v.InferOutput<typeof signMessageParamsSchema>,\n v.InferOutput<typeof signMessageResultSchema>\n>;\n\ntype Recipient = {\n /**\n * The recipient's address.\n **/\n address: string;\n /**\n * The amount to send to the recipient in satoshis.\n */\n amount: number;\n};\n\nexport type SendTransferParams = {\n /**\n * Array of recipients to send to.\n * The amount to send to each recipient is in satoshis.\n */\n recipients: Array<Recipient>;\n};\ntype SendTransferResult = {\n /**\n * The transaction id as a hex-encoded string.\n */\n txid: string;\n};\n\nexport type SendTransfer = MethodParamsAndResult<\n SendTransferParams,\n SendTransferResult\n>;\n\nexport type SignPsbtParams = {\n /**\n * The base64 encoded PSBT to sign.\n */\n psbt: string;\n /**\n * The inputs to sign.\n * The key is the address and the value is an array of indexes of the inputs to sign.\n */\n signInputs: Record<string, number[]>;\n /**\n * the sigHash type to use for signing.\n * will default to the sighash type of the input if not provided.\n **/\n allowedSignHash?: number;\n /**\n * Whether to broadcast the transaction after signing.\n **/\n broadcast?: boolean;\n};\n\nexport type SignPsbtResult = {\n /**\n * The base64 encoded PSBT after signing.\n */\n psbt: string;\n /**\n * The transaction id as a hex-encoded string.\n * This is only returned if the transaction was broadcast.\n **/\n txid?: string;\n};\n\nexport type SignPsbt = MethodParamsAndResult<SignPsbtParams, SignPsbtResult>;\n\nexport const getAccountsMethodName = \"getAccounts\";\nexport const getAccountsParamsSchema = v.object({\n /**\n * The purposes for which to generate addresses. See\n * {@linkcode AddressPurpose} for available purposes.\n */\n purposes: v.array(v.enum(AddressPurpose)),\n /**\n * A message to be displayed to the user in the request prompt.\n */\n message: v.optional(v.string()),\n});\nexport type GetAccountsParams = v.InferOutput<typeof getAccountsParamsSchema>;\n\nexport const getAccountsResultSchema = v.array(\n v.object({\n ...addressSchema.entries,\n ...v.object({\n walletType: walletTypeSchema,\n }).entries,\n }),\n);\nexport type GetAccountsResult = v.InferOutput<typeof getAccountsResultSchema>;\nexport const getAccountsRequestMessageSchema = v.object({\n ...rpcRequestMessageSchema.entries,\n ...v.object({\n method: v.literal(getAccountsMethodName),\n params: getAccountsParamsSchema,\n id: v.string(),\n }).entries,\n});\nexport type GetAccountsRequestMessage = v.InferOutput<\n typeof getAccountsRequestMessageSchema\n>;\nexport type GetAccounts = MethodParamsAndResult<\n v.InferOutput<typeof getAccountsParamsSchema>,\n v.InferOutput<typeof getAccountsResultSchema>\n>;\n\nexport const getBalanceMethodName = \"getBalance\";\nexport const getBalanceParamsSchema = v.nullish(v.null());\nexport const getBalanceResultSchema = v.object({\n /**\n * The confirmed balance of the wallet in sats. Using a string due to chrome\n * messages not supporting bigint\n * (https://issues.chromium.org/issues/40116184).\n */\n confirmed: v.string(),\n\n /**\n * The unconfirmed balance of the wallet in sats. Using a string due to chrome\n * messages not supporting bigint\n * (https://issues.chromium.org/issues/40116184).\n */\n unconfirmed: v.string(),\n\n /**\n * The total balance (both confirmed and unconfrimed UTXOs) of the wallet in\n * sats. Using a string due to chrome messages not supporting bigint\n * (https://issues.chromium.org/issues/40116184).\n */\n total: v.string(),\n});\nexport const getBalanceRequestMessageSchema = v.object({\n ...rpcRequestMessageSchema.entries,\n ...v.object({\n method: v.literal(getBalanceMethodName),\n id: v.string(),\n }).entries,\n});\nexport type GetBalance = MethodParamsAndResult<\n v.InferOutput<typeof getBalanceParamsSchema>,\n v.InferOutput<typeof getBalanceResultSchema>\n>;\n","import * as v from \"valibot\";\nimport { Params, Requests } from \"./requests.advanced.js\";\nimport { RpcResponse } from \"./types.advanced.js\";\n\n// accountChange\nexport const accountChangeEventName = \"accountChange\";\nexport const accountChangeSchema = v.object({\n type: v.literal(accountChangeEventName),\n});\nexport type AccountChangeEvent = v.InferOutput<typeof accountChangeSchema>;\n\n// networkChange\nexport const networkChangeEventName = \"networkChange\";\nexport const networkChangeSchema = v.object({\n type: v.literal(networkChangeEventName),\n});\nexport type NetworkChangeEvent = v.InferOutput<typeof networkChangeSchema>;\n\n// disconnect\nexport const disconnectEventName = \"disconnect\";\nexport const disconnectSchema = v.object({\n type: v.literal(disconnectEventName),\n});\nexport type DisconnectEvent = v.InferOutput<typeof disconnectSchema>;\n\nexport const walletEventSchema = v.variant(\"type\", [\n accountChangeSchema,\n networkChangeSchema,\n disconnectSchema,\n]);\n\nexport type WalletEvent = v.InferOutput<typeof walletEventSchema>;\nexport type AddListener = <const WalletEventName extends WalletEvent[\"type\"]>(\n eventName: WalletEventName,\n cb: (event: Extract<WalletEvent, { type: WalletEventName }>) => void,\n) => () => void;\n\n/**\n * Interface representing a provider for interacting with accounts and signing messages.\n */\nexport interface BtcProvider {\n request: <Method extends keyof Requests>(\n method: Method,\n options: Params<Method>,\n providerId?: string,\n ) => Promise<RpcResponse<Method>>;\n\n addListener: AddListener;\n}\n\nexport interface Provider {\n id: string;\n name: string;\n icon: string;\n webUrl?: string;\n chromeWebStoreUrl?: string;\n mozillaAddOnsUrl?: string;\n googlePlayStoreUrl?: string;\n iOSAppStoreUrl?: string;\n methods?: string[];\n}\n","export * from \"./sat-connect-core/advanced.js\";\n"],"mappings":"8EAOA,IAAY,EAAL,SAAA,EAAA,OACL,GAAA,QAAA,UACA,EAAA,QAAA,UACA,EAAA,OAAA,UACF,EAAA,CAAA,CAAA,EAoBA,MAAa,EAAc,EAAE,SAC3B,EAAE,MAAM,CAAC,EAAE,OAAO,EAAG,EAAE,OAAO,EAAG,EAAE,KAAK,CAAC,CAAC,CAC5C,EAEa,EAA0B,EAAE,OAAO,CAC9C,QAAS,EAAE,QAAQ,KAAK,EACxB,OAAQ,EAAE,OAAO,EACjB,OAAQ,EAAE,SACR,EAAE,MAAM,CACN,EAAE,MAAM,EAAE,QAAQ,CAAC,EACnB,EAAE,YAAY,CAAC,CAAC,EAKhB,EAAE,KAAK,CACT,CAAC,CACH,EACA,GAAI,CACN,CAAC,EAsBD,IAAY,EAAL,SAAA,EAAA,OAIL,GAAA,EAAA,YAAA,QAAA,cAIA,EAAA,E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OAAO,CACf,CAAC,CAAC,CAAC,OACL,CAAC,ECtSY,EAAyB,gBACzB,EAAsB,EAAE,OAAO,CAC1C,KAAM,EAAE,QAAQ,CAAsB,CACxC,CAAC,EAIY,EAAyB,gBACzB,EAAsB,EAAE,OAAO,CAC1C,KAAM,EAAE,QAAQ,CAAsB,CACxC,CAAC,EAIY,EAAsB,aACtB,EAAmB,EAAE,OAAO,CACvC,KAAM,EAAE,QAAQ,CAAmB,CACrC,CAAC,EAGY,EAAoB,EAAE,QAAQ,OAAQ,CACjD,EACA,EACA,CACF,CAAC"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { $ as RequestPayload, A as getAccountsParamsSchema, At as networkChangeSchema, B as getBalanceResultSchema, C as SignMessageRequestMessage, Ct as Provider, D as SignPsbtResult, Dt as disconnectEventName, E as SignPsbtParams, Et as accountChangeSchema, F as getAddressesRequestMessageSchema, Ft as Requests, G as signMessageMethodName, H as getInfoParamsSchema, I as getAddressesResultSchema, It as Return, J as signMessageResultSchema, K as signMessageParamsSchema, L as getBalanceMethodName, Lt as WalletRequests, M as getAccountsResultSchema, Mt as BtcRequestMethod, N as getAddressesMethodName, Nt as BtcRequests, O as addressSchema, Ot as disconnectSchema, P as getAddressesParamsSchema, Pt as Params, Q as RequestOptions, R as getBalanceParamsSchema, S as SignMessageParams, St as NetworkChangeEvent, T as SignPsbt, Tt as accountChangeEventName, U as getInfoRequestMessageSchema, V as getInfoMethodName, W as getInfoResultSchema, X as BitcoinNetworkType, Y as BitcoinNetwork, Z as MethodParamsAndResult, _ as GetInfoResult, _t as rpcSuccessResponseMessageSchema, a as GetAccounts, at as RpcId, b as SendTransferParams, bt as BtcProvider, c as GetAccountsResult, ct as RpcRequestMessage, d as GetAddressesRequestMessage, dt as RpcResult, et as RpcBase, f as GetAddressesResult, ft as RpcSuccessResponse, g as GetInfoRequestMessage, gt as rpcResponseMessageSchema, h as GetInfoParams, ht as rpcRequestMessageSchema, i as AddressType, it as RpcErrorResponseMessage, j as getAccountsRequestMessageSchema, jt as walletEventSchema, k as getAccountsMethodName, kt as networkChangeEventName, l as GetAddresses, lt as RpcResponse, m as GetInfo, mt as rpcErrorResponseMessageSchema, n as Address, nt as RpcErrorCode, o as GetAccountsParams, ot as RpcIdSchema, p as GetBalance, pt as RpcSuccessResponseMessage, q as signMessageRequestMessageSchema, r as AddressPurpose, rt as RpcErrorResponse, s as GetAccountsRequestMessage, st as RpcRequest, tt as RpcError, u as GetAddressesParams, ut as RpcResponseMessage, v as MessageSigningProtocols, vt as AccountChangeEvent, w as SignMessageResult, wt as WalletEvent, x as SignMessage, xt as DisconnectEvent, y as SendTransfer, yt as AddListener, z as getBalanceRequestMessageSchema } from "./advancedBarrel-C-ThB6-A.mjs";
|
|
2
|
+
export { AccountChangeEvent, AddListener, Address, AddressPurpose, AddressType, BitcoinNetwork, BitcoinNetworkType, BtcProvider, BtcRequestMethod, BtcRequests, DisconnectEvent, GetAccounts, GetAccountsParams, GetAccountsRequestMessage, GetAccountsResult, GetAddresses, GetAddressesParams, GetAddressesRequestMessage, GetAddressesResult, GetBalance, GetInfo, GetInfoParams, GetInfoRequestMessage, GetInfoResult, MessageSigningProtocols, MethodParamsAndResult, NetworkChangeEvent, Params, Provider, RequestOptions, RequestPayload, Requests, Return, RpcBase, RpcError, RpcErrorCode, RpcErrorResponse, RpcErrorResponseMessage, RpcId, RpcIdSchema, RpcRequest, RpcRequestMessage, RpcResponse, RpcResponseMessage, RpcResult, RpcSuccessResponse, RpcSuccessResponseMessage, SendTransfer, SendTransferParams, SignMessage, SignMessageParams, SignMessageRequestMessage, SignMessageResult, SignPsbt, SignPsbtParams, SignPsbtResult, WalletEvent, WalletRequests, accountChangeEventName, accountChangeSchema, addressSchema, disconnectEventName, disconnectSchema, getAccountsMethodName, getAccountsParamsSchema, getAccountsRequestMessageSchema, getAccountsResultSchema, getAddressesMethodName, getAddressesParamsSchema, getAddressesRequestMessageSchema, getAddressesResultSchema, getBalanceMethodName, getBalanceParamsSchema, getBalanceRequestMessageSchema, getBalanceResultSchema, getInfoMethodName, getInfoParamsSchema, getInfoRequestMessageSchema, getInfoResultSchema, networkChangeEventName, networkChangeSchema, rpcErrorResponseMessageSchema, rpcRequestMessageSchema, rpcResponseMessageSchema, rpcSuccessResponseMessageSchema, signMessageMethodName, signMessageParamsSchema, signMessageRequestMessageSchema, signMessageResultSchema, walletEventSchema };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{A as e,C as t,D as n,E as r,F as i,I as a,L as o,M as s,N as c,O as l,P as u,R as d,S as f,T as p,_ as m,a as h,b as g,c as _,d as v,f as y,g as b,h as x,i as S,j as C,k as w,l as T,m as E,n as D,o as O,p as k,r as A,s as j,u as M,v as N,w as P,x as F,y as I,z as L}from"./advancedBarrel-DIYsVxWE.mjs";export{T as AddressPurpose,M as AddressType,c as BitcoinNetworkType,v as MessageSigningProtocols,u as RpcErrorCode,i as RpcIdSchema,D as accountChangeEventName,A as accountChangeSchema,y as addressSchema,S as disconnectEventName,h as disconnectSchema,k as getAccountsMethodName,E as getAccountsParamsSchema,x as getAccountsRequestMessageSchema,b as getAccountsResultSchema,m as getAddressesMethodName,N as getAddressesParamsSchema,I as getAddressesRequestMessageSchema,g as getAddressesResultSchema,F as getBalanceMethodName,f as getBalanceParamsSchema,t as getBalanceRequestMessageSchema,P as getBalanceResultSchema,p as getInfoMethodName,r as getInfoParamsSchema,n as getInfoRequestMessageSchema,l as getInfoResultSchema,O as networkChangeEventName,j as networkChangeSchema,a as rpcErrorResponseMessageSchema,o as rpcRequestMessageSchema,d as rpcResponseMessageSchema,L as rpcSuccessResponseMessageSchema,w as signMessageMethodName,e as signMessageParamsSchema,C as signMessageRequestMessageSchema,s as signMessageResultSchema,_ as walletEventSchema};
|