@moon-x/react-sdk 0.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/README.md +241 -0
- package/dist/assets/Sons-Black.ttf +0 -0
- package/dist/assets/Sons-Bold.ttf +0 -0
- package/dist/assets/Sons-Extrabold.ttf +0 -0
- package/dist/assets/Sons-Light.ttf +0 -0
- package/dist/assets/Sons-Medium.ttf +0 -0
- package/dist/assets/Sons-Regular.ttf +0 -0
- package/dist/assets/Sons-Semibold.ttf +0 -0
- package/dist/assets/Sons-Thin.ttf +0 -0
- package/dist/base-wallet-CzJLpndu.d.mts +119 -0
- package/dist/base-wallet-CzJLpndu.d.ts +119 -0
- package/dist/chunk-73TEXNFX.js +1018 -0
- package/dist/chunk-7BCQAHO6.mjs +1561 -0
- package/dist/chunk-CDSNBPXB.js +1988 -0
- package/dist/chunk-MYWXMCMO.mjs +662 -0
- package/dist/chunk-PCEN5CH6.mjs +169 -0
- package/dist/chunk-SPXMMQ7Z.js +248 -0
- package/dist/ethereum-BRGKpUFH.d.ts +311 -0
- package/dist/ethereum-DobH9IQl.d.mts +311 -0
- package/dist/index.css +169 -0
- package/dist/index.d.mts +298 -0
- package/dist/index.d.ts +298 -0
- package/dist/index.js +24365 -0
- package/dist/index.mjs +18194 -0
- package/dist/solana-CzXRbze_.d.mts +236 -0
- package/dist/solana-D7BgQ4c0.d.ts +236 -0
- package/dist/style.css +169 -0
- package/dist/wallets/ethereum.d.mts +4 -0
- package/dist/wallets/ethereum.d.ts +4 -0
- package/dist/wallets/ethereum.js +21 -0
- package/dist/wallets/ethereum.mjs +4 -0
- package/dist/wallets/solana.d.mts +4 -0
- package/dist/wallets/solana.d.ts +4 -0
- package/dist/wallets/solana.js +17 -0
- package/dist/wallets/solana.mjs +4 -0
- package/package.json +70 -0
|
@@ -0,0 +1,1018 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
function _array_like_to_array(arr, len) {
|
|
3
|
+
if (len == null || len > arr.length) len = arr.length;
|
|
4
|
+
for(var i = 0, arr2 = new Array(len); i < len; i++)arr2[i] = arr[i];
|
|
5
|
+
return arr2;
|
|
6
|
+
}
|
|
7
|
+
function _array_without_holes(arr) {
|
|
8
|
+
if (Array.isArray(arr)) return _array_like_to_array(arr);
|
|
9
|
+
}
|
|
10
|
+
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
11
|
+
try {
|
|
12
|
+
var info = gen[key](arg);
|
|
13
|
+
var value = info.value;
|
|
14
|
+
} catch (error) {
|
|
15
|
+
reject(error);
|
|
16
|
+
return;
|
|
17
|
+
}
|
|
18
|
+
if (info.done) {
|
|
19
|
+
resolve(value);
|
|
20
|
+
} else {
|
|
21
|
+
Promise.resolve(value).then(_next, _throw);
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
function _async_to_generator(fn) {
|
|
25
|
+
return function() {
|
|
26
|
+
var self = this, args = arguments;
|
|
27
|
+
return new Promise(function(resolve, reject) {
|
|
28
|
+
var gen = fn.apply(self, args);
|
|
29
|
+
function _next(value) {
|
|
30
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "next", value);
|
|
31
|
+
}
|
|
32
|
+
function _throw(err) {
|
|
33
|
+
asyncGeneratorStep(gen, resolve, reject, _next, _throw, "throw", err);
|
|
34
|
+
}
|
|
35
|
+
_next(undefined);
|
|
36
|
+
});
|
|
37
|
+
};
|
|
38
|
+
}
|
|
39
|
+
function _define_property(obj, key, value) {
|
|
40
|
+
if (key in obj) {
|
|
41
|
+
Object.defineProperty(obj, key, {
|
|
42
|
+
value: value,
|
|
43
|
+
enumerable: true,
|
|
44
|
+
configurable: true,
|
|
45
|
+
writable: true
|
|
46
|
+
});
|
|
47
|
+
} else {
|
|
48
|
+
obj[key] = value;
|
|
49
|
+
}
|
|
50
|
+
return obj;
|
|
51
|
+
}
|
|
52
|
+
function _instanceof(left, right) {
|
|
53
|
+
"@swc/helpers - instanceof";
|
|
54
|
+
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
55
|
+
return !!right[Symbol.hasInstance](left);
|
|
56
|
+
} else {
|
|
57
|
+
return left instanceof right;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
function _iterable_to_array(iter) {
|
|
61
|
+
if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter);
|
|
62
|
+
}
|
|
63
|
+
function _non_iterable_spread() {
|
|
64
|
+
throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
65
|
+
}
|
|
66
|
+
function _object_spread(target) {
|
|
67
|
+
for(var i = 1; i < arguments.length; i++){
|
|
68
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
69
|
+
var ownKeys = Object.keys(source);
|
|
70
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
71
|
+
ownKeys = ownKeys.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
72
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
73
|
+
}));
|
|
74
|
+
}
|
|
75
|
+
ownKeys.forEach(function(key) {
|
|
76
|
+
_define_property(target, key, source[key]);
|
|
77
|
+
});
|
|
78
|
+
}
|
|
79
|
+
return target;
|
|
80
|
+
}
|
|
81
|
+
function ownKeys(object, enumerableOnly) {
|
|
82
|
+
var keys = Object.keys(object);
|
|
83
|
+
if (Object.getOwnPropertySymbols) {
|
|
84
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
85
|
+
if (enumerableOnly) {
|
|
86
|
+
symbols = symbols.filter(function(sym) {
|
|
87
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
88
|
+
});
|
|
89
|
+
}
|
|
90
|
+
keys.push.apply(keys, symbols);
|
|
91
|
+
}
|
|
92
|
+
return keys;
|
|
93
|
+
}
|
|
94
|
+
function _object_spread_props(target, source) {
|
|
95
|
+
source = source != null ? source : {};
|
|
96
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
97
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
98
|
+
} else {
|
|
99
|
+
ownKeys(Object(source)).forEach(function(key) {
|
|
100
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
101
|
+
});
|
|
102
|
+
}
|
|
103
|
+
return target;
|
|
104
|
+
}
|
|
105
|
+
function _to_consumable_array(arr) {
|
|
106
|
+
return _array_without_holes(arr) || _iterable_to_array(arr) || _unsupported_iterable_to_array(arr) || _non_iterable_spread();
|
|
107
|
+
}
|
|
108
|
+
function _unsupported_iterable_to_array(o, minLen) {
|
|
109
|
+
if (!o) return;
|
|
110
|
+
if (typeof o === "string") return _array_like_to_array(o, minLen);
|
|
111
|
+
var n = Object.prototype.toString.call(o).slice(8, -1);
|
|
112
|
+
if (n === "Object" && o.constructor) n = o.constructor.name;
|
|
113
|
+
if (n === "Map" || n === "Set") return Array.from(n);
|
|
114
|
+
if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _array_like_to_array(o, minLen);
|
|
115
|
+
}
|
|
116
|
+
function _ts_generator(thisArg, body) {
|
|
117
|
+
var f, y, t, _ = {
|
|
118
|
+
label: 0,
|
|
119
|
+
sent: function() {
|
|
120
|
+
if (t[0] & 1) throw t[1];
|
|
121
|
+
return t[1];
|
|
122
|
+
},
|
|
123
|
+
trys: [],
|
|
124
|
+
ops: []
|
|
125
|
+
}, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype), d = Object.defineProperty;
|
|
126
|
+
return d(g, "next", {
|
|
127
|
+
value: verb(0)
|
|
128
|
+
}), d(g, "throw", {
|
|
129
|
+
value: verb(1)
|
|
130
|
+
}), d(g, "return", {
|
|
131
|
+
value: verb(2)
|
|
132
|
+
}), typeof Symbol === "function" && d(g, Symbol.iterator, {
|
|
133
|
+
value: function() {
|
|
134
|
+
return this;
|
|
135
|
+
}
|
|
136
|
+
}), g;
|
|
137
|
+
function verb(n) {
|
|
138
|
+
return function(v) {
|
|
139
|
+
return step([
|
|
140
|
+
n,
|
|
141
|
+
v
|
|
142
|
+
]);
|
|
143
|
+
};
|
|
144
|
+
}
|
|
145
|
+
function step(op) {
|
|
146
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
147
|
+
while(g && (g = 0, op[0] && (_ = 0)), _)try {
|
|
148
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
149
|
+
if (y = 0, t) op = [
|
|
150
|
+
op[0] & 2,
|
|
151
|
+
t.value
|
|
152
|
+
];
|
|
153
|
+
switch(op[0]){
|
|
154
|
+
case 0:
|
|
155
|
+
case 1:
|
|
156
|
+
t = op;
|
|
157
|
+
break;
|
|
158
|
+
case 4:
|
|
159
|
+
_.label++;
|
|
160
|
+
return {
|
|
161
|
+
value: op[1],
|
|
162
|
+
done: false
|
|
163
|
+
};
|
|
164
|
+
case 5:
|
|
165
|
+
_.label++;
|
|
166
|
+
y = op[1];
|
|
167
|
+
op = [
|
|
168
|
+
0
|
|
169
|
+
];
|
|
170
|
+
continue;
|
|
171
|
+
case 7:
|
|
172
|
+
op = _.ops.pop();
|
|
173
|
+
_.trys.pop();
|
|
174
|
+
continue;
|
|
175
|
+
default:
|
|
176
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
177
|
+
_ = 0;
|
|
178
|
+
continue;
|
|
179
|
+
}
|
|
180
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
181
|
+
_.label = op[1];
|
|
182
|
+
break;
|
|
183
|
+
}
|
|
184
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
185
|
+
_.label = t[1];
|
|
186
|
+
t = op;
|
|
187
|
+
break;
|
|
188
|
+
}
|
|
189
|
+
if (t && _.label < t[2]) {
|
|
190
|
+
_.label = t[2];
|
|
191
|
+
_.ops.push(op);
|
|
192
|
+
break;
|
|
193
|
+
}
|
|
194
|
+
if (t[2]) _.ops.pop();
|
|
195
|
+
_.trys.pop();
|
|
196
|
+
continue;
|
|
197
|
+
}
|
|
198
|
+
op = body.call(thisArg, _);
|
|
199
|
+
} catch (e) {
|
|
200
|
+
op = [
|
|
201
|
+
6,
|
|
202
|
+
e
|
|
203
|
+
];
|
|
204
|
+
y = 0;
|
|
205
|
+
} finally{
|
|
206
|
+
f = t = 0;
|
|
207
|
+
}
|
|
208
|
+
if (op[0] & 5) throw op[1];
|
|
209
|
+
return {
|
|
210
|
+
value: op[0] ? op[1] : void 0,
|
|
211
|
+
done: true
|
|
212
|
+
};
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
Object.defineProperty(exports, "__esModule", {
|
|
216
|
+
value: true
|
|
217
|
+
});
|
|
218
|
+
function _interopRequireWildcard(obj) {
|
|
219
|
+
if (obj && obj.__esModule) {
|
|
220
|
+
return obj;
|
|
221
|
+
} else {
|
|
222
|
+
var newObj = {};
|
|
223
|
+
if (obj != null) {
|
|
224
|
+
for(var key in obj){
|
|
225
|
+
if (Object.prototype.hasOwnProperty.call(obj, key)) {
|
|
226
|
+
newObj[key] = obj[key];
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
newObj.default = obj;
|
|
231
|
+
return newObj;
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
function _nullishCoalesce(lhs, rhsFn) {
|
|
235
|
+
if (lhs != null) {
|
|
236
|
+
return lhs;
|
|
237
|
+
} else {
|
|
238
|
+
return rhsFn();
|
|
239
|
+
}
|
|
240
|
+
}
|
|
241
|
+
function _optionalChain(ops) {
|
|
242
|
+
var lastAccessLHS = undefined;
|
|
243
|
+
var value = ops[0];
|
|
244
|
+
var i = 1;
|
|
245
|
+
while(i < ops.length){
|
|
246
|
+
var op = ops[i];
|
|
247
|
+
var fn = ops[i + 1];
|
|
248
|
+
i += 2;
|
|
249
|
+
if ((op === 'optionalAccess' || op === 'optionalCall') && value == null) {
|
|
250
|
+
return undefined;
|
|
251
|
+
}
|
|
252
|
+
if (op === 'access' || op === 'optionalAccess') {
|
|
253
|
+
lastAccessLHS = value;
|
|
254
|
+
value = fn(value);
|
|
255
|
+
} else if (op === 'call' || op === 'optionalCall') {
|
|
256
|
+
var _value;
|
|
257
|
+
value = fn(function() {
|
|
258
|
+
for(var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++){
|
|
259
|
+
args[_key] = arguments[_key];
|
|
260
|
+
}
|
|
261
|
+
return (_value = value).call.apply(_value, [
|
|
262
|
+
lastAccessLHS
|
|
263
|
+
].concat(_to_consumable_array(args)));
|
|
264
|
+
});
|
|
265
|
+
lastAccessLHS = undefined;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
return value;
|
|
269
|
+
}
|
|
270
|
+
"use client";
|
|
271
|
+
var _chunkSPXMMQ7Zjs = require('./chunk-SPXMMQ7Z.js');
|
|
272
|
+
// src/wallets/solana.ts
|
|
273
|
+
var solana_exports = {};
|
|
274
|
+
_chunkSPXMMQ7Zjs.__export.call(void 0, solana_exports, {
|
|
275
|
+
useCreateWallet: function useCreateWallet1() {
|
|
276
|
+
return useCreateWallet;
|
|
277
|
+
},
|
|
278
|
+
useExportKey: function useExportKey1() {
|
|
279
|
+
return useExportKey;
|
|
280
|
+
},
|
|
281
|
+
useFundWallet: function useFundWallet1() {
|
|
282
|
+
return useFundWallet;
|
|
283
|
+
},
|
|
284
|
+
useGetBalance: function useGetBalance1() {
|
|
285
|
+
return useGetBalance;
|
|
286
|
+
},
|
|
287
|
+
useGetTokenAccounts: function useGetTokenAccounts1() {
|
|
288
|
+
return useGetTokenAccounts;
|
|
289
|
+
},
|
|
290
|
+
useImportKey: function useImportKey1() {
|
|
291
|
+
return useImportKey;
|
|
292
|
+
},
|
|
293
|
+
useSendTransaction: function useSendTransaction1() {
|
|
294
|
+
return useSendTransaction;
|
|
295
|
+
},
|
|
296
|
+
useSignMessage: function useSignMessage1() {
|
|
297
|
+
return useSignMessage;
|
|
298
|
+
},
|
|
299
|
+
useSignTransaction: function useSignTransaction1() {
|
|
300
|
+
return useSignTransaction;
|
|
301
|
+
},
|
|
302
|
+
useWallets: function useWallets1() {
|
|
303
|
+
return useWallets;
|
|
304
|
+
}
|
|
305
|
+
});
|
|
306
|
+
var _solana = require('@moon-x/core/react/solana');
|
|
307
|
+
var _react = require('@moon-x/core/react');
|
|
308
|
+
// src/wallets/solana/use-fund-wallet.ts
|
|
309
|
+
var useFundWallet = function useFundWallet() {
|
|
310
|
+
var sdk = _chunkSPXMMQ7Zjs.useAuthSDK.call(void 0);
|
|
311
|
+
var fundWallet = function fundWallet(address, options) {
|
|
312
|
+
return _async_to_generator(function() {
|
|
313
|
+
return _ts_generator(this, function(_state) {
|
|
314
|
+
if (!sdk.fundWallet) {
|
|
315
|
+
throw new Error("fundWallet method not available in SDK");
|
|
316
|
+
}
|
|
317
|
+
return [
|
|
318
|
+
2,
|
|
319
|
+
sdk.fundWallet({
|
|
320
|
+
address: address,
|
|
321
|
+
options: options
|
|
322
|
+
})
|
|
323
|
+
];
|
|
324
|
+
});
|
|
325
|
+
})();
|
|
326
|
+
};
|
|
327
|
+
return {
|
|
328
|
+
fundWallet: fundWallet
|
|
329
|
+
};
|
|
330
|
+
};
|
|
331
|
+
// src/wallets/solana.ts
|
|
332
|
+
var useCreateWallet = function useCreateWallet(callbacks) {
|
|
333
|
+
var createWallet = _react.useCreateWallet.call(void 0).createWallet;
|
|
334
|
+
return {
|
|
335
|
+
createWallet: function createWallet1(options) {
|
|
336
|
+
return _async_to_generator(function() {
|
|
337
|
+
var response, error, errorObj;
|
|
338
|
+
return _ts_generator(this, function(_state) {
|
|
339
|
+
switch(_state.label){
|
|
340
|
+
case 0:
|
|
341
|
+
_state.trys.push([
|
|
342
|
+
0,
|
|
343
|
+
2,
|
|
344
|
+
,
|
|
345
|
+
3
|
|
346
|
+
]);
|
|
347
|
+
return [
|
|
348
|
+
4,
|
|
349
|
+
createWallet("solana", options)
|
|
350
|
+
];
|
|
351
|
+
case 1:
|
|
352
|
+
response = _state.sent();
|
|
353
|
+
_optionalChain([
|
|
354
|
+
callbacks,
|
|
355
|
+
'optionalAccess',
|
|
356
|
+
function(_) {
|
|
357
|
+
return _.onSuccess;
|
|
358
|
+
},
|
|
359
|
+
'optionalCall',
|
|
360
|
+
function(_2) {
|
|
361
|
+
return _2(response);
|
|
362
|
+
}
|
|
363
|
+
]);
|
|
364
|
+
return [
|
|
365
|
+
2,
|
|
366
|
+
response
|
|
367
|
+
];
|
|
368
|
+
case 2:
|
|
369
|
+
error = _state.sent();
|
|
370
|
+
errorObj = _instanceof(error, Error) ? error : new Error("Unknown error");
|
|
371
|
+
_optionalChain([
|
|
372
|
+
callbacks,
|
|
373
|
+
'optionalAccess',
|
|
374
|
+
function(_3) {
|
|
375
|
+
return _3.onError;
|
|
376
|
+
},
|
|
377
|
+
'optionalCall',
|
|
378
|
+
function(_4) {
|
|
379
|
+
return _4(errorObj);
|
|
380
|
+
}
|
|
381
|
+
]);
|
|
382
|
+
throw errorObj;
|
|
383
|
+
case 3:
|
|
384
|
+
return [
|
|
385
|
+
2
|
|
386
|
+
];
|
|
387
|
+
}
|
|
388
|
+
});
|
|
389
|
+
})();
|
|
390
|
+
}
|
|
391
|
+
};
|
|
392
|
+
};
|
|
393
|
+
var useWallets = function useWallets() {
|
|
394
|
+
var r = _react.useWallets.call(void 0, "solana");
|
|
395
|
+
return {
|
|
396
|
+
wallets: r.wallets,
|
|
397
|
+
loading: r.loading,
|
|
398
|
+
error: _nullishCoalesce(r.error, function() {
|
|
399
|
+
return void 0;
|
|
400
|
+
}),
|
|
401
|
+
refetch: r.refetch
|
|
402
|
+
};
|
|
403
|
+
};
|
|
404
|
+
var useSignMessage = function useSignMessage() {
|
|
405
|
+
var coreSDK = _chunkSPXMMQ7Zjs.useAuthSDK.call(void 0);
|
|
406
|
+
var shared = _solana.useSignMessage.call(void 0);
|
|
407
|
+
return {
|
|
408
|
+
signMessage: function signMessage(params) {
|
|
409
|
+
return _async_to_generator(function() {
|
|
410
|
+
var showWalletUI, error;
|
|
411
|
+
return _ts_generator(this, function(_state) {
|
|
412
|
+
switch(_state.label){
|
|
413
|
+
case 0:
|
|
414
|
+
_state.trys.push([
|
|
415
|
+
0,
|
|
416
|
+
2,
|
|
417
|
+
,
|
|
418
|
+
3
|
|
419
|
+
]);
|
|
420
|
+
showWalletUI = _chunkSPXMMQ7Zjs.shouldShowWalletUI.call(void 0, _optionalChain([
|
|
421
|
+
params,
|
|
422
|
+
'access',
|
|
423
|
+
function(_5) {
|
|
424
|
+
return _5.options;
|
|
425
|
+
},
|
|
426
|
+
'optionalAccess',
|
|
427
|
+
function(_6) {
|
|
428
|
+
return _6.uiOptions;
|
|
429
|
+
}
|
|
430
|
+
]), _optionalChain([
|
|
431
|
+
coreSDK,
|
|
432
|
+
'access',
|
|
433
|
+
function(_7) {
|
|
434
|
+
return _7.config;
|
|
435
|
+
},
|
|
436
|
+
'optionalAccess',
|
|
437
|
+
function(_8) {
|
|
438
|
+
return _8.signMessageConfig;
|
|
439
|
+
},
|
|
440
|
+
'optionalAccess',
|
|
441
|
+
function(_9) {
|
|
442
|
+
return _9.uiConfig;
|
|
443
|
+
}
|
|
444
|
+
]));
|
|
445
|
+
return [
|
|
446
|
+
4,
|
|
447
|
+
_chunkSPXMMQ7Zjs.dispatchSignOp.call(void 0, {
|
|
448
|
+
params: _object_spread_props(_object_spread({}, params), {
|
|
449
|
+
// Solana's iframe surface takes a string; decode the Uint8Array
|
|
450
|
+
// input on the parent side so the wire shape stays UTF-8 text.
|
|
451
|
+
message: new TextDecoder().decode(params.message)
|
|
452
|
+
}),
|
|
453
|
+
showWalletUI: showWalletUI,
|
|
454
|
+
headless: shared.signMessage,
|
|
455
|
+
withUI: coreSDK.signSolanaMessageWithUI
|
|
456
|
+
})
|
|
457
|
+
];
|
|
458
|
+
case 1:
|
|
459
|
+
return [
|
|
460
|
+
2,
|
|
461
|
+
_state.sent()
|
|
462
|
+
];
|
|
463
|
+
case 2:
|
|
464
|
+
error = _state.sent();
|
|
465
|
+
throw new Error("Sign message failed: ".concat(_instanceof(error, Error) ? error.message : "Unknown error"));
|
|
466
|
+
case 3:
|
|
467
|
+
return [
|
|
468
|
+
2
|
|
469
|
+
];
|
|
470
|
+
}
|
|
471
|
+
});
|
|
472
|
+
})();
|
|
473
|
+
},
|
|
474
|
+
loading: false,
|
|
475
|
+
error: void 0
|
|
476
|
+
};
|
|
477
|
+
};
|
|
478
|
+
var useSignTransaction = function useSignTransaction() {
|
|
479
|
+
var coreSDK = _chunkSPXMMQ7Zjs.useAuthSDK.call(void 0);
|
|
480
|
+
var shared = _solana.useSignTransaction.call(void 0);
|
|
481
|
+
return {
|
|
482
|
+
signTransaction: function signTransaction(params) {
|
|
483
|
+
return _async_to_generator(function() {
|
|
484
|
+
var bs58, transactionString, showWalletUI, error;
|
|
485
|
+
return _ts_generator(this, function(_state) {
|
|
486
|
+
switch(_state.label){
|
|
487
|
+
case 0:
|
|
488
|
+
_state.trys.push([
|
|
489
|
+
0,
|
|
490
|
+
3,
|
|
491
|
+
,
|
|
492
|
+
4
|
|
493
|
+
]);
|
|
494
|
+
return [
|
|
495
|
+
4,
|
|
496
|
+
Promise.resolve().then(function() {
|
|
497
|
+
return _interopRequireWildcard(require("bs58"));
|
|
498
|
+
})
|
|
499
|
+
];
|
|
500
|
+
case 1:
|
|
501
|
+
bs58 = _state.sent();
|
|
502
|
+
transactionString = bs58.default.encode(params.transaction);
|
|
503
|
+
showWalletUI = _chunkSPXMMQ7Zjs.shouldShowWalletUI.call(void 0, _optionalChain([
|
|
504
|
+
params,
|
|
505
|
+
'access',
|
|
506
|
+
function(_10) {
|
|
507
|
+
return _10.options;
|
|
508
|
+
},
|
|
509
|
+
'optionalAccess',
|
|
510
|
+
function(_11) {
|
|
511
|
+
return _11.uiOptions;
|
|
512
|
+
}
|
|
513
|
+
]), _optionalChain([
|
|
514
|
+
coreSDK,
|
|
515
|
+
'access',
|
|
516
|
+
function(_12) {
|
|
517
|
+
return _12.config;
|
|
518
|
+
},
|
|
519
|
+
'optionalAccess',
|
|
520
|
+
function(_13) {
|
|
521
|
+
return _13.signTransactionConfig;
|
|
522
|
+
},
|
|
523
|
+
'optionalAccess',
|
|
524
|
+
function(_14) {
|
|
525
|
+
return _14.uiConfig;
|
|
526
|
+
}
|
|
527
|
+
]));
|
|
528
|
+
return [
|
|
529
|
+
4,
|
|
530
|
+
_chunkSPXMMQ7Zjs.dispatchSignOp.call(void 0, {
|
|
531
|
+
params: _object_spread_props(_object_spread({}, params), {
|
|
532
|
+
transaction: transactionString,
|
|
533
|
+
// Iframe surface needs the standard options shape; the
|
|
534
|
+
// headless path doesn't surface uiOptions but accepts a
|
|
535
|
+
// superset, so passing both is safe.
|
|
536
|
+
options: {
|
|
537
|
+
preflightCommitment: _optionalChain([
|
|
538
|
+
params,
|
|
539
|
+
'access',
|
|
540
|
+
function(_15) {
|
|
541
|
+
return _15.options;
|
|
542
|
+
},
|
|
543
|
+
'optionalAccess',
|
|
544
|
+
function(_16) {
|
|
545
|
+
return _16.preflightCommitment;
|
|
546
|
+
}
|
|
547
|
+
]),
|
|
548
|
+
minContextSlot: _optionalChain([
|
|
549
|
+
params,
|
|
550
|
+
'access',
|
|
551
|
+
function(_17) {
|
|
552
|
+
return _17.options;
|
|
553
|
+
},
|
|
554
|
+
'optionalAccess',
|
|
555
|
+
function(_18) {
|
|
556
|
+
return _18.minContextSlot;
|
|
557
|
+
}
|
|
558
|
+
]),
|
|
559
|
+
uiOptions: _optionalChain([
|
|
560
|
+
params,
|
|
561
|
+
'access',
|
|
562
|
+
function(_19) {
|
|
563
|
+
return _19.options;
|
|
564
|
+
},
|
|
565
|
+
'optionalAccess',
|
|
566
|
+
function(_20) {
|
|
567
|
+
return _20.uiOptions;
|
|
568
|
+
}
|
|
569
|
+
])
|
|
570
|
+
}
|
|
571
|
+
}),
|
|
572
|
+
showWalletUI: showWalletUI,
|
|
573
|
+
headless: shared.signTransaction,
|
|
574
|
+
withUI: coreSDK.signSolanaTransactionWithUI
|
|
575
|
+
})
|
|
576
|
+
];
|
|
577
|
+
case 2:
|
|
578
|
+
return [
|
|
579
|
+
2,
|
|
580
|
+
_state.sent()
|
|
581
|
+
];
|
|
582
|
+
case 3:
|
|
583
|
+
error = _state.sent();
|
|
584
|
+
throw new Error("Sign transaction failed: ".concat(_instanceof(error, Error) ? error.message : "Unknown error"));
|
|
585
|
+
case 4:
|
|
586
|
+
return [
|
|
587
|
+
2
|
|
588
|
+
];
|
|
589
|
+
}
|
|
590
|
+
});
|
|
591
|
+
})();
|
|
592
|
+
},
|
|
593
|
+
loading: false,
|
|
594
|
+
error: void 0
|
|
595
|
+
};
|
|
596
|
+
};
|
|
597
|
+
var useSendTransaction = function useSendTransaction() {
|
|
598
|
+
var coreSDK = _chunkSPXMMQ7Zjs.useAuthSDK.call(void 0);
|
|
599
|
+
var shared = _solana.useSendTransaction.call(void 0);
|
|
600
|
+
return {
|
|
601
|
+
sendTransaction: function sendTransaction(params) {
|
|
602
|
+
return _async_to_generator(function() {
|
|
603
|
+
var chain, rpcConfig, rpcUrl, wsEndpoint, bs58, transactionString, showWalletUI, error;
|
|
604
|
+
return _ts_generator(this, function(_state) {
|
|
605
|
+
switch(_state.label){
|
|
606
|
+
case 0:
|
|
607
|
+
_state.trys.push([
|
|
608
|
+
0,
|
|
609
|
+
3,
|
|
610
|
+
,
|
|
611
|
+
4
|
|
612
|
+
]);
|
|
613
|
+
chain = _nullishCoalesce(params.chain, function() {
|
|
614
|
+
return "solana:mainnet";
|
|
615
|
+
});
|
|
616
|
+
rpcConfig = _optionalChain([
|
|
617
|
+
coreSDK,
|
|
618
|
+
'access',
|
|
619
|
+
function(_21) {
|
|
620
|
+
return _21.config;
|
|
621
|
+
},
|
|
622
|
+
'optionalAccess',
|
|
623
|
+
function(_22) {
|
|
624
|
+
return _22.solana;
|
|
625
|
+
},
|
|
626
|
+
'optionalAccess',
|
|
627
|
+
function(_23) {
|
|
628
|
+
return _23.rpcs;
|
|
629
|
+
},
|
|
630
|
+
'optionalAccess',
|
|
631
|
+
function(_24) {
|
|
632
|
+
return _24[chain];
|
|
633
|
+
}
|
|
634
|
+
]);
|
|
635
|
+
rpcUrl = _optionalChain([
|
|
636
|
+
rpcConfig,
|
|
637
|
+
'optionalAccess',
|
|
638
|
+
function(_25) {
|
|
639
|
+
return _25.rpc;
|
|
640
|
+
}
|
|
641
|
+
]);
|
|
642
|
+
wsEndpoint = _optionalChain([
|
|
643
|
+
rpcConfig,
|
|
644
|
+
'optionalAccess',
|
|
645
|
+
function(_26) {
|
|
646
|
+
return _26.rpcSubscriptions;
|
|
647
|
+
}
|
|
648
|
+
]);
|
|
649
|
+
if (!rpcUrl) {
|
|
650
|
+
throw new Error("No RPC URL configured for chain: ".concat(chain));
|
|
651
|
+
}
|
|
652
|
+
return [
|
|
653
|
+
4,
|
|
654
|
+
Promise.resolve().then(function() {
|
|
655
|
+
return _interopRequireWildcard(require("bs58"));
|
|
656
|
+
})
|
|
657
|
+
];
|
|
658
|
+
case 1:
|
|
659
|
+
bs58 = _state.sent();
|
|
660
|
+
transactionString = bs58.default.encode(params.transaction);
|
|
661
|
+
showWalletUI = _chunkSPXMMQ7Zjs.shouldShowWalletUI.call(void 0, _optionalChain([
|
|
662
|
+
params,
|
|
663
|
+
'access',
|
|
664
|
+
function(_27) {
|
|
665
|
+
return _27.options;
|
|
666
|
+
},
|
|
667
|
+
'optionalAccess',
|
|
668
|
+
function(_28) {
|
|
669
|
+
return _28.uiOptions;
|
|
670
|
+
}
|
|
671
|
+
]), _optionalChain([
|
|
672
|
+
coreSDK,
|
|
673
|
+
'access',
|
|
674
|
+
function(_29) {
|
|
675
|
+
return _29.config;
|
|
676
|
+
},
|
|
677
|
+
'optionalAccess',
|
|
678
|
+
function(_30) {
|
|
679
|
+
return _30.sendTransactionConfig;
|
|
680
|
+
},
|
|
681
|
+
'optionalAccess',
|
|
682
|
+
function(_31) {
|
|
683
|
+
return _31.uiConfig;
|
|
684
|
+
}
|
|
685
|
+
]));
|
|
686
|
+
return [
|
|
687
|
+
4,
|
|
688
|
+
_chunkSPXMMQ7Zjs.dispatchSignOp.call(void 0, {
|
|
689
|
+
params: {
|
|
690
|
+
transaction: transactionString,
|
|
691
|
+
wallet: params.wallet,
|
|
692
|
+
rpcUrl: rpcUrl,
|
|
693
|
+
requireFreshAssertion: params.requireFreshAssertion,
|
|
694
|
+
options: _object_spread_props(_object_spread({}, params.options), {
|
|
695
|
+
wsEndpoint: wsEndpoint
|
|
696
|
+
})
|
|
697
|
+
},
|
|
698
|
+
showWalletUI: showWalletUI,
|
|
699
|
+
headless: shared.sendTransaction,
|
|
700
|
+
withUI: coreSDK.sendSolanaTransactionWithUI
|
|
701
|
+
})
|
|
702
|
+
];
|
|
703
|
+
case 2:
|
|
704
|
+
return [
|
|
705
|
+
2,
|
|
706
|
+
_state.sent()
|
|
707
|
+
];
|
|
708
|
+
case 3:
|
|
709
|
+
error = _state.sent();
|
|
710
|
+
throw new Error("Send transaction failed: ".concat(_instanceof(error, Error) ? error.message : "Unknown error"));
|
|
711
|
+
case 4:
|
|
712
|
+
return [
|
|
713
|
+
2
|
|
714
|
+
];
|
|
715
|
+
}
|
|
716
|
+
});
|
|
717
|
+
})();
|
|
718
|
+
},
|
|
719
|
+
loading: false,
|
|
720
|
+
error: void 0
|
|
721
|
+
};
|
|
722
|
+
};
|
|
723
|
+
var useGetBalance = function useGetBalance() {
|
|
724
|
+
var coreSDK = _chunkSPXMMQ7Zjs.useAuthSDK.call(void 0);
|
|
725
|
+
var shared = _solana.useGetBalance.call(void 0);
|
|
726
|
+
return {
|
|
727
|
+
getBalance: function getBalance(params) {
|
|
728
|
+
return _async_to_generator(function() {
|
|
729
|
+
var chain, rpcConfig, rpcUrl, wsEndpoint, error;
|
|
730
|
+
return _ts_generator(this, function(_state) {
|
|
731
|
+
switch(_state.label){
|
|
732
|
+
case 0:
|
|
733
|
+
_state.trys.push([
|
|
734
|
+
0,
|
|
735
|
+
2,
|
|
736
|
+
,
|
|
737
|
+
3
|
|
738
|
+
]);
|
|
739
|
+
chain = params.chain || "solana:mainnet";
|
|
740
|
+
rpcConfig = _optionalChain([
|
|
741
|
+
coreSDK,
|
|
742
|
+
'access',
|
|
743
|
+
function(_32) {
|
|
744
|
+
return _32.config;
|
|
745
|
+
},
|
|
746
|
+
'optionalAccess',
|
|
747
|
+
function(_33) {
|
|
748
|
+
return _33.solana;
|
|
749
|
+
},
|
|
750
|
+
'optionalAccess',
|
|
751
|
+
function(_34) {
|
|
752
|
+
return _34.rpcs;
|
|
753
|
+
},
|
|
754
|
+
'optionalAccess',
|
|
755
|
+
function(_35) {
|
|
756
|
+
return _35[chain];
|
|
757
|
+
}
|
|
758
|
+
]);
|
|
759
|
+
rpcUrl = _optionalChain([
|
|
760
|
+
rpcConfig,
|
|
761
|
+
'optionalAccess',
|
|
762
|
+
function(_36) {
|
|
763
|
+
return _36.rpc;
|
|
764
|
+
}
|
|
765
|
+
]);
|
|
766
|
+
wsEndpoint = _optionalChain([
|
|
767
|
+
rpcConfig,
|
|
768
|
+
'optionalAccess',
|
|
769
|
+
function(_37) {
|
|
770
|
+
return _37.rpcSubscriptions;
|
|
771
|
+
}
|
|
772
|
+
]);
|
|
773
|
+
if (!rpcUrl) {
|
|
774
|
+
throw new Error("No RPC URL configured for chain: ".concat(params.chain));
|
|
775
|
+
}
|
|
776
|
+
return [
|
|
777
|
+
4,
|
|
778
|
+
shared.getBalance({
|
|
779
|
+
wallet: params.wallet,
|
|
780
|
+
rpcUrl: rpcUrl,
|
|
781
|
+
chain: chain,
|
|
782
|
+
options: _object_spread_props(_object_spread({}, params.options), {
|
|
783
|
+
wsEndpoint: wsEndpoint
|
|
784
|
+
})
|
|
785
|
+
})
|
|
786
|
+
];
|
|
787
|
+
case 1:
|
|
788
|
+
return [
|
|
789
|
+
2,
|
|
790
|
+
_state.sent()
|
|
791
|
+
];
|
|
792
|
+
case 2:
|
|
793
|
+
error = _state.sent();
|
|
794
|
+
throw new Error("Get balance failed: ".concat(_instanceof(error, Error) ? error.message : "Unknown error"));
|
|
795
|
+
case 3:
|
|
796
|
+
return [
|
|
797
|
+
2
|
|
798
|
+
];
|
|
799
|
+
}
|
|
800
|
+
});
|
|
801
|
+
})();
|
|
802
|
+
},
|
|
803
|
+
loading: false,
|
|
804
|
+
error: void 0
|
|
805
|
+
};
|
|
806
|
+
};
|
|
807
|
+
var useGetTokenAccounts = function useGetTokenAccounts() {
|
|
808
|
+
var coreSDK = _chunkSPXMMQ7Zjs.useAuthSDK.call(void 0);
|
|
809
|
+
return {
|
|
810
|
+
getTokenAccounts: function getTokenAccounts(params) {
|
|
811
|
+
return _async_to_generator(function() {
|
|
812
|
+
var chain, rpcConfig, rpcUrl, wsEndpoint, error;
|
|
813
|
+
return _ts_generator(this, function(_state) {
|
|
814
|
+
switch(_state.label){
|
|
815
|
+
case 0:
|
|
816
|
+
_state.trys.push([
|
|
817
|
+
0,
|
|
818
|
+
2,
|
|
819
|
+
,
|
|
820
|
+
3
|
|
821
|
+
]);
|
|
822
|
+
chain = params.chain || "solana:mainnet";
|
|
823
|
+
rpcConfig = _optionalChain([
|
|
824
|
+
coreSDK,
|
|
825
|
+
'access',
|
|
826
|
+
function(_38) {
|
|
827
|
+
return _38.config;
|
|
828
|
+
},
|
|
829
|
+
'optionalAccess',
|
|
830
|
+
function(_39) {
|
|
831
|
+
return _39.solana;
|
|
832
|
+
},
|
|
833
|
+
'optionalAccess',
|
|
834
|
+
function(_40) {
|
|
835
|
+
return _40.rpcs;
|
|
836
|
+
},
|
|
837
|
+
'optionalAccess',
|
|
838
|
+
function(_41) {
|
|
839
|
+
return _41[chain];
|
|
840
|
+
}
|
|
841
|
+
]);
|
|
842
|
+
rpcUrl = _optionalChain([
|
|
843
|
+
rpcConfig,
|
|
844
|
+
'optionalAccess',
|
|
845
|
+
function(_42) {
|
|
846
|
+
return _42.rpc;
|
|
847
|
+
}
|
|
848
|
+
]);
|
|
849
|
+
wsEndpoint = _optionalChain([
|
|
850
|
+
rpcConfig,
|
|
851
|
+
'optionalAccess',
|
|
852
|
+
function(_43) {
|
|
853
|
+
return _43.rpcSubscriptions;
|
|
854
|
+
}
|
|
855
|
+
]);
|
|
856
|
+
if (!rpcUrl) {
|
|
857
|
+
throw new Error("No RPC URL configured for chain: ".concat(params.chain));
|
|
858
|
+
}
|
|
859
|
+
return [
|
|
860
|
+
4,
|
|
861
|
+
coreSDK.getSolanaTokenAccountsByOwner({
|
|
862
|
+
wallet: params.wallet,
|
|
863
|
+
rpcUrl: rpcUrl,
|
|
864
|
+
options: {
|
|
865
|
+
programId: params.programId,
|
|
866
|
+
mint: params.mint,
|
|
867
|
+
commitment: _optionalChain([
|
|
868
|
+
params,
|
|
869
|
+
'access',
|
|
870
|
+
function(_44) {
|
|
871
|
+
return _44.options;
|
|
872
|
+
},
|
|
873
|
+
'optionalAccess',
|
|
874
|
+
function(_45) {
|
|
875
|
+
return _45.commitment;
|
|
876
|
+
}
|
|
877
|
+
]),
|
|
878
|
+
minContextSlot: _optionalChain([
|
|
879
|
+
params,
|
|
880
|
+
'access',
|
|
881
|
+
function(_46) {
|
|
882
|
+
return _46.options;
|
|
883
|
+
},
|
|
884
|
+
'optionalAccess',
|
|
885
|
+
function(_47) {
|
|
886
|
+
return _47.minContextSlot;
|
|
887
|
+
}
|
|
888
|
+
]),
|
|
889
|
+
dataSlice: _optionalChain([
|
|
890
|
+
params,
|
|
891
|
+
'access',
|
|
892
|
+
function(_48) {
|
|
893
|
+
return _48.options;
|
|
894
|
+
},
|
|
895
|
+
'optionalAccess',
|
|
896
|
+
function(_49) {
|
|
897
|
+
return _49.dataSlice;
|
|
898
|
+
}
|
|
899
|
+
]),
|
|
900
|
+
wsEndpoint: wsEndpoint,
|
|
901
|
+
encoding: _optionalChain([
|
|
902
|
+
params,
|
|
903
|
+
'access',
|
|
904
|
+
function(_50) {
|
|
905
|
+
return _50.options;
|
|
906
|
+
},
|
|
907
|
+
'optionalAccess',
|
|
908
|
+
function(_51) {
|
|
909
|
+
return _51.encoding;
|
|
910
|
+
}
|
|
911
|
+
])
|
|
912
|
+
}
|
|
913
|
+
})
|
|
914
|
+
];
|
|
915
|
+
case 1:
|
|
916
|
+
return [
|
|
917
|
+
2,
|
|
918
|
+
_state.sent()
|
|
919
|
+
];
|
|
920
|
+
case 2:
|
|
921
|
+
error = _state.sent();
|
|
922
|
+
throw new Error("Get token accounts failed: ".concat(_instanceof(error, Error) ? error.message : "Unknown error"));
|
|
923
|
+
case 3:
|
|
924
|
+
return [
|
|
925
|
+
2
|
|
926
|
+
];
|
|
927
|
+
}
|
|
928
|
+
});
|
|
929
|
+
})();
|
|
930
|
+
},
|
|
931
|
+
loading: false,
|
|
932
|
+
error: void 0
|
|
933
|
+
};
|
|
934
|
+
};
|
|
935
|
+
var useExportKey = function useExportKey() {
|
|
936
|
+
var coreSDK = _chunkSPXMMQ7Zjs.useAuthSDK.call(void 0);
|
|
937
|
+
return {
|
|
938
|
+
exportKey: function exportKey(param) {
|
|
939
|
+
var wallet = param.wallet;
|
|
940
|
+
return _async_to_generator(function() {
|
|
941
|
+
return _ts_generator(this, function(_state) {
|
|
942
|
+
return [
|
|
943
|
+
2,
|
|
944
|
+
coreSDK.exportKey(wallet)
|
|
945
|
+
];
|
|
946
|
+
});
|
|
947
|
+
})();
|
|
948
|
+
}
|
|
949
|
+
};
|
|
950
|
+
};
|
|
951
|
+
var useImportKey = function useImportKey() {
|
|
952
|
+
var _react_useImportKey_call = _react.useImportKey.call(void 0), sharedImportKey = _react_useImportKey_call.importKey;
|
|
953
|
+
var coreSDK = _chunkSPXMMQ7Zjs.useAuthSDK.call(void 0);
|
|
954
|
+
return {
|
|
955
|
+
// Both modes are supported: pass `key` for headless (delegates to
|
|
956
|
+
// the shared hook), omit for UI (opens the SDK's ImportWallet modal
|
|
957
|
+
// — modal-driven path stays on coreSDK so the override in
|
|
958
|
+
// create-sdk-instance.ts can dispatch the WithUI flow).
|
|
959
|
+
//
|
|
960
|
+
// Both branches go through SDK methods that return
|
|
961
|
+
// `{ wallet: PublicWallet }` (matching the headless contract); we
|
|
962
|
+
// unwrap to `PublicWallet` here so consumer code can write
|
|
963
|
+
// `const wallet = await importKey(...)` and access
|
|
964
|
+
// `wallet.public_address` directly.
|
|
965
|
+
importKey: function importKey(params) {
|
|
966
|
+
return _async_to_generator(function() {
|
|
967
|
+
var result2, result;
|
|
968
|
+
return _ts_generator(this, function(_state) {
|
|
969
|
+
switch(_state.label){
|
|
970
|
+
case 0:
|
|
971
|
+
if (!(_optionalChain([
|
|
972
|
+
params,
|
|
973
|
+
'optionalAccess',
|
|
974
|
+
function(_52) {
|
|
975
|
+
return _52.key;
|
|
976
|
+
}
|
|
977
|
+
]) !== void 0)) return [
|
|
978
|
+
3,
|
|
979
|
+
2
|
|
980
|
+
];
|
|
981
|
+
return [
|
|
982
|
+
4,
|
|
983
|
+
sharedImportKey("solana", params.key)
|
|
984
|
+
];
|
|
985
|
+
case 1:
|
|
986
|
+
result2 = _state.sent();
|
|
987
|
+
return [
|
|
988
|
+
2,
|
|
989
|
+
result2.wallet
|
|
990
|
+
];
|
|
991
|
+
case 2:
|
|
992
|
+
return [
|
|
993
|
+
4,
|
|
994
|
+
coreSDK.importKey("solana", void 0)
|
|
995
|
+
];
|
|
996
|
+
case 3:
|
|
997
|
+
result = _state.sent();
|
|
998
|
+
return [
|
|
999
|
+
2,
|
|
1000
|
+
result.wallet
|
|
1001
|
+
];
|
|
1002
|
+
}
|
|
1003
|
+
});
|
|
1004
|
+
})();
|
|
1005
|
+
}
|
|
1006
|
+
};
|
|
1007
|
+
};
|
|
1008
|
+
exports.useFundWallet = useFundWallet;
|
|
1009
|
+
exports.useCreateWallet = useCreateWallet;
|
|
1010
|
+
exports.useWallets = useWallets;
|
|
1011
|
+
exports.useSignMessage = useSignMessage;
|
|
1012
|
+
exports.useSignTransaction = useSignTransaction;
|
|
1013
|
+
exports.useSendTransaction = useSendTransaction;
|
|
1014
|
+
exports.useGetBalance = useGetBalance;
|
|
1015
|
+
exports.useGetTokenAccounts = useGetTokenAccounts;
|
|
1016
|
+
exports.useExportKey = useExportKey;
|
|
1017
|
+
exports.useImportKey = useImportKey;
|
|
1018
|
+
exports.solana_exports = solana_exports;
|