@imtbl/sdk 0.0.1-alpha.3 → 0.1.0-alpha
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 +28 -0
- package/dist/checkout_sdk.d.ts +247 -7
- package/dist/checkout_sdk.js +147 -91
- package/dist/checkout_widgets.d.ts +13 -2
- package/dist/checkout_widgets.js +4 -2
- package/dist/{starkex.d.ts → immutablex_client.d.ts} +670 -10
- package/dist/immutablex_client.js +510 -0
- package/dist/index.cjs +2359 -1820
- package/dist/index.d.ts +644 -41
- package/dist/index.js +2344 -1811
- package/dist/passport.d.ts +5 -2
- package/dist/passport.js +33 -8
- package/dist/provider.d.ts +2 -2
- package/dist/provider.js +43 -43
- package/package.json +22 -32
- package/dist/browser/checkout.js +0 -2
- package/dist/starkex.js +0 -58
- /package/dist/{base.d.ts → config.d.ts} +0 -0
- /package/dist/{base.js → config.js} +0 -0
package/dist/checkout_sdk.js
CHANGED
|
@@ -158,7 +158,9 @@ let $4f91c5f280efe242$export$a75605c67ea83a5a;
|
|
|
158
158
|
|
|
159
159
|
|
|
160
160
|
|
|
161
|
-
|
|
161
|
+
/**
|
|
162
|
+
* The different types of errors that can be returned by the checkout process.
|
|
163
|
+
*/ let $a8bc256d81a5e2c1$export$e3dc0620abde7f5a;
|
|
162
164
|
(function(CheckoutErrorType) {
|
|
163
165
|
CheckoutErrorType["PROVIDER_PREFERENCE_ERROR"] = "PROVIDER_PREFERENCE_ERROR";
|
|
164
166
|
CheckoutErrorType["CONNECT_PROVIDER_ERROR"] = "CONNECT_PROVIDER_ERROR";
|
|
@@ -184,12 +186,6 @@ let $a8bc256d81a5e2c1$export$a22d4e0719ee6def;
|
|
|
184
186
|
(function(CheckoutInternalErrorType) {
|
|
185
187
|
CheckoutInternalErrorType["REJECTED_SWITCH_AFTER_ADDING_NETWORK"] = "REJECTED_SWITCH_AFTER_ADDING_NETWORK";
|
|
186
188
|
})($a8bc256d81a5e2c1$export$a22d4e0719ee6def || ($a8bc256d81a5e2c1$export$a22d4e0719ee6def = {}));
|
|
187
|
-
class $a8bc256d81a5e2c1$export$620a0d5f1b58ea1d extends Error {
|
|
188
|
-
constructor(type){
|
|
189
|
-
super("Checkout internal error");
|
|
190
|
-
this.type = type;
|
|
191
|
-
}
|
|
192
|
-
}
|
|
193
189
|
const $a8bc256d81a5e2c1$export$bacc563de539c6c3 = async (fn, customError)=>{
|
|
194
190
|
try {
|
|
195
191
|
return await fn();
|
|
@@ -212,6 +208,70 @@ const $a8bc256d81a5e2c1$export$bacc563de539c6c3 = async (fn, customError)=>{
|
|
|
212
208
|
|
|
213
209
|
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
214
210
|
|
|
211
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
212
|
+
|
|
213
|
+
|
|
214
|
+
|
|
215
|
+
async function $c99672cf2294e839$export$2d040992269b4717(providerPreference) {
|
|
216
|
+
const provider = await $c99672cf2294e839$var$getWalletProviderForPreference(providerPreference);
|
|
217
|
+
if (!provider.provider?.request) throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)("Incompatible provider", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).PROVIDER_REQUEST_MISSING_ERROR, {
|
|
218
|
+
details: `Unsupported provider for ${providerPreference}`
|
|
219
|
+
});
|
|
220
|
+
let accounts = [];
|
|
221
|
+
try {
|
|
222
|
+
accounts = await provider.provider.request({
|
|
223
|
+
method: (0, $4f91c5f280efe242$export$a130407f3423b97d).CHECK_CONNECTION,
|
|
224
|
+
params: []
|
|
225
|
+
});
|
|
226
|
+
} catch (err) {
|
|
227
|
+
throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)(`Check wallet connection request failed`, ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).PROVIDER_REQUEST_FAILED_ERROR, {
|
|
228
|
+
rpcMethod: ($4f91c5f280efe242$export$a130407f3423b97d).CHECK_CONNECTION
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
// accounts[0] will have the active account if connected.
|
|
232
|
+
return {
|
|
233
|
+
isConnected: accounts && accounts.length > 0,
|
|
234
|
+
walletAddress: accounts[0] ?? ""
|
|
235
|
+
};
|
|
236
|
+
}
|
|
237
|
+
async function $c99672cf2294e839$export$fba2f6c3656e07c1(params) {
|
|
238
|
+
const web3Provider = await $c99672cf2294e839$var$getWalletProviderForPreference(params.providerPreference);
|
|
239
|
+
await ($a8bc256d81a5e2c1$export$bacc563de539c6c3)(async ()=>{
|
|
240
|
+
if (!web3Provider || !web3Provider?.provider?.request) throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)("Incompatible provider", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).PROVIDER_REQUEST_MISSING_ERROR, {
|
|
241
|
+
details: `Unsupported provider for ${params.providerPreference}`
|
|
242
|
+
});
|
|
243
|
+
// this makes the request to the wallet to connect i.e request eth accounts ('eth_requestAccounts')
|
|
244
|
+
await web3Provider.provider.request({
|
|
245
|
+
method: ($4f91c5f280efe242$export$a130407f3423b97d).CONNECT,
|
|
246
|
+
params: []
|
|
247
|
+
});
|
|
248
|
+
}, {
|
|
249
|
+
type: ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).USER_REJECTED_REQUEST_ERROR
|
|
250
|
+
});
|
|
251
|
+
return web3Provider;
|
|
252
|
+
}
|
|
253
|
+
async function $c99672cf2294e839$var$getWalletProviderForPreference(providerPreference) {
|
|
254
|
+
let web3Provider = null;
|
|
255
|
+
switch(providerPreference){
|
|
256
|
+
case ($d176a05e966364ba$export$3bfad4d03ada24c4).METAMASK:
|
|
257
|
+
web3Provider = await $c99672cf2294e839$var$getMetaMaskProvider();
|
|
258
|
+
break;
|
|
259
|
+
default:
|
|
260
|
+
throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)("Provider preference is not supported", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).PROVIDER_PREFERENCE_ERROR);
|
|
261
|
+
}
|
|
262
|
+
return web3Provider;
|
|
263
|
+
}
|
|
264
|
+
async function $c99672cf2294e839$var$getMetaMaskProvider() {
|
|
265
|
+
const provider = await ($a8bc256d81a5e2c1$export$bacc563de539c6c3)(async ()=>{
|
|
266
|
+
return await ($7v2Z6$metamaskdetectprovider)();
|
|
267
|
+
}, {
|
|
268
|
+
type: ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).METAMASK_PROVIDER_ERROR
|
|
269
|
+
});
|
|
270
|
+
if (!provider || !provider.request) throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)("No MetaMask provider installed.", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).METAMASK_PROVIDER_ERROR);
|
|
271
|
+
return new (Web3Provider)(provider);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
|
|
215
275
|
var $497c134ecbc8a50f$exports = {};
|
|
216
276
|
$497c134ecbc8a50f$exports = JSON.parse('[{"chainId":1},{"chainId":5},{"chainId":137}]');
|
|
217
277
|
|
|
@@ -237,25 +297,28 @@ async function $de192de6ef100f9f$export$79f13b4cfaaf0d09(provider) {
|
|
|
237
297
|
type: ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).GET_NETWORK_INFO_ERROR
|
|
238
298
|
});
|
|
239
299
|
}
|
|
240
|
-
async function $de192de6ef100f9f$export$b827d9418aeb5dbd(provider, chainId) {
|
|
300
|
+
async function $de192de6ef100f9f$export$b827d9418aeb5dbd(providerPreference, provider, chainId) {
|
|
301
|
+
let currentProvider = provider;
|
|
241
302
|
if (!Object.values(($a47e48dd2c04791b$export$c06e1e7429de6283)).includes(chainId)) throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)(`Chain:${chainId} is not a supported chain`, ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).CHAIN_NOT_SUPPORTED_ERROR);
|
|
242
|
-
if (!
|
|
303
|
+
if (!currentProvider || !currentProvider.provider?.request) throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)("Incompatible provider", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).PROVIDER_REQUEST_MISSING_ERROR, {
|
|
243
304
|
details: `Unsupported provider`
|
|
244
305
|
});
|
|
245
306
|
// WT-1146 - Refer to the README in this folder for explantion on the switch network flow
|
|
246
307
|
try {
|
|
247
|
-
await $de192de6ef100f9f$var$switchNetworkInWallet(
|
|
308
|
+
await $de192de6ef100f9f$var$switchNetworkInWallet(currentProvider, chainId);
|
|
248
309
|
} catch (err) {
|
|
249
310
|
if (err.code === $de192de6ef100f9f$var$UNRECOGNISED_CHAIN_ERROR_CODE) try {
|
|
250
|
-
await $de192de6ef100f9f$var$addNetworkToWallet(
|
|
251
|
-
if ((await provider.getNetwork()).chainId !== chainId) // user didn't actually switch
|
|
252
|
-
throw new (0, $a8bc256d81a5e2c1$export$620a0d5f1b58ea1d)((0, $a8bc256d81a5e2c1$export$a22d4e0719ee6def).REJECTED_SWITCH_AFTER_ADDING_NETWORK);
|
|
311
|
+
await $de192de6ef100f9f$var$addNetworkToWallet(currentProvider, chainId);
|
|
253
312
|
} catch (err) {
|
|
254
|
-
if (err?.type === ($a8bc256d81a5e2c1$export$a22d4e0719ee6def).REJECTED_SWITCH_AFTER_ADDING_NETWORK) throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)("User cancelled switch network request", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).USER_REJECTED_REQUEST_ERROR);
|
|
255
313
|
throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)("User cancelled add network request", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).USER_REJECTED_REQUEST_ERROR);
|
|
256
314
|
}
|
|
257
315
|
else throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)("User cancelled switch network request", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).USER_REJECTED_REQUEST_ERROR);
|
|
258
316
|
}
|
|
317
|
+
currentProvider = await ($c99672cf2294e839$export$fba2f6c3656e07c1)({
|
|
318
|
+
providerPreference: providerPreference
|
|
319
|
+
});
|
|
320
|
+
if ((await currentProvider.getNetwork()).chainId !== chainId) // user didn't actually switch
|
|
321
|
+
throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)("User cancelled switch network request", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).USER_REJECTED_REQUEST_ERROR);
|
|
259
322
|
// we can assume that if the above succeeds then user has successfully
|
|
260
323
|
// switched to the network specified
|
|
261
324
|
const newNetwork = ($a47e48dd2c04791b$export$f61f4aaec62f6be9)[chainId];
|
|
@@ -264,7 +327,8 @@ async function $de192de6ef100f9f$export$b827d9418aeb5dbd(provider, chainId) {
|
|
|
264
327
|
name: newNetwork.chainName,
|
|
265
328
|
chainId: parseInt(newNetwork.chainIdHex, 16),
|
|
266
329
|
nativeCurrency: newNetwork.nativeCurrency
|
|
267
|
-
}
|
|
330
|
+
},
|
|
331
|
+
provider: currentProvider
|
|
268
332
|
};
|
|
269
333
|
}
|
|
270
334
|
async function $de192de6ef100f9f$export$3043f6442a9ef563({ type: type = ($a47e48dd2c04791b$export$1f05a55fe0680cc7).ALL , exclude: exclude }) {
|
|
@@ -404,75 +468,12 @@ const $1564e43dde50bb61$export$fee49741664a4d7e = async (provider, walletAddress
|
|
|
404
468
|
|
|
405
469
|
|
|
406
470
|
|
|
407
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
async function $c99672cf2294e839$export$2d040992269b4717(providerPreference) {
|
|
412
|
-
const provider = await $c99672cf2294e839$var$getWalletProviderForPreference(providerPreference);
|
|
413
|
-
if (!provider.provider?.request) throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)("Incompatible provider", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).PROVIDER_REQUEST_MISSING_ERROR, {
|
|
414
|
-
details: `Unsupported provider for ${providerPreference}`
|
|
415
|
-
});
|
|
416
|
-
let accounts = [];
|
|
417
|
-
try {
|
|
418
|
-
accounts = await provider.provider.request({
|
|
419
|
-
method: (0, $4f91c5f280efe242$export$a130407f3423b97d).CHECK_CONNECTION,
|
|
420
|
-
params: []
|
|
421
|
-
});
|
|
422
|
-
} catch (err) {
|
|
423
|
-
throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)(`Check wallet connection request failed`, ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).PROVIDER_REQUEST_FAILED_ERROR, {
|
|
424
|
-
rpcMethod: ($4f91c5f280efe242$export$a130407f3423b97d).CHECK_CONNECTION
|
|
425
|
-
});
|
|
426
|
-
}
|
|
427
|
-
// accounts[0] will have the active account if connected.
|
|
428
|
-
return {
|
|
429
|
-
isConnected: accounts && accounts.length > 0,
|
|
430
|
-
walletAddress: accounts[0] ?? ""
|
|
431
|
-
};
|
|
432
|
-
}
|
|
433
|
-
async function $c99672cf2294e839$export$fba2f6c3656e07c1(params) {
|
|
434
|
-
const web3Provider = await $c99672cf2294e839$var$getWalletProviderForPreference(params.providerPreference);
|
|
435
|
-
await ($a8bc256d81a5e2c1$export$bacc563de539c6c3)(async ()=>{
|
|
436
|
-
if (!web3Provider || !web3Provider?.provider?.request) throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)("Incompatible provider", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).PROVIDER_REQUEST_MISSING_ERROR, {
|
|
437
|
-
details: `Unsupported provider for ${params.providerPreference}`
|
|
438
|
-
});
|
|
439
|
-
// this makes the request to the wallet to connect i.e request eth accounts ('eth_requestAccounts')
|
|
440
|
-
await web3Provider.provider.request({
|
|
441
|
-
method: ($4f91c5f280efe242$export$a130407f3423b97d).CONNECT,
|
|
442
|
-
params: []
|
|
443
|
-
});
|
|
444
|
-
}, {
|
|
445
|
-
type: ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).USER_REJECTED_REQUEST_ERROR
|
|
446
|
-
});
|
|
447
|
-
return web3Provider;
|
|
448
|
-
}
|
|
449
|
-
async function $c99672cf2294e839$var$getWalletProviderForPreference(providerPreference) {
|
|
450
|
-
let web3Provider = null;
|
|
451
|
-
switch(providerPreference){
|
|
452
|
-
case ($d176a05e966364ba$export$3bfad4d03ada24c4).METAMASK:
|
|
453
|
-
web3Provider = await $c99672cf2294e839$var$getMetaMaskProvider();
|
|
454
|
-
break;
|
|
455
|
-
default:
|
|
456
|
-
throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)("Provider preference is not supported", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).PROVIDER_PREFERENCE_ERROR);
|
|
457
|
-
}
|
|
458
|
-
return web3Provider;
|
|
459
|
-
}
|
|
460
|
-
async function $c99672cf2294e839$var$getMetaMaskProvider() {
|
|
461
|
-
const provider = await ($a8bc256d81a5e2c1$export$bacc563de539c6c3)(async ()=>{
|
|
462
|
-
return await ($7v2Z6$metamaskdetectprovider)();
|
|
463
|
-
}, {
|
|
464
|
-
type: ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).METAMASK_PROVIDER_ERROR
|
|
465
|
-
});
|
|
466
|
-
if (!provider || !provider.request) throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)("No MetaMask provider installed.", ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).METAMASK_PROVIDER_ERROR);
|
|
467
|
-
return new (Web3Provider)(provider);
|
|
468
|
-
}
|
|
469
|
-
|
|
470
471
|
|
|
471
472
|
|
|
472
473
|
|
|
473
474
|
|
|
474
475
|
var $6f3c55a615003cbf$exports = {};
|
|
475
|
-
$6f3c55a615003cbf$exports = JSON.parse('[{"connectionProvider":"metamask","icon":"some-icon-url","name":"MetaMask","description":"complete web3 wallet solution","platform":["
|
|
476
|
+
$6f3c55a615003cbf$exports = JSON.parse('[{"connectionProvider":"metamask","icon":"some-icon-url","name":"MetaMask","description":"complete web3 wallet solution","platform":["desktop"]},{"connectionProvider":"passport","icon":"pp-icon","name":"Passport","description":"Web3 with your email!","platform":["mobile","desktop"]},{"connectionProvider":"gamestop","icon":"gme-icon","name":"GameStop","description":"Never stopping the game!","platform":["mobile"]}]');
|
|
476
477
|
|
|
477
478
|
|
|
478
479
|
async function $5cdde2ffe6360fec$export$a822caa90d7eef09({ type: type = ($4f91c5f280efe242$export$a75605c67ea83a5a).ALL , exclude: exclude }) {
|
|
@@ -511,11 +512,23 @@ const $dbe95599a4661140$export$8e0e7ffc78696d30 = async (params)=>{
|
|
|
511
512
|
|
|
512
513
|
|
|
513
514
|
|
|
515
|
+
|
|
514
516
|
class $a8cb37a3fc8eb863$export$1f60ba4ec72508a0 {
|
|
515
|
-
|
|
517
|
+
/**
|
|
518
|
+
* Check if a wallet is connected to the current application without requesting permission from the wallet and hence triggering a connect popup.
|
|
519
|
+
* @param {CheckConnectionParams} params - The necessary data required to verify a wallet connection status.
|
|
520
|
+
* @returns Wallet connection status details.
|
|
521
|
+
* @throws {@link ErrorType}
|
|
522
|
+
*/ async checkIsWalletConnected(params) {
|
|
516
523
|
return $c99672cf2294e839$export$2d040992269b4717(params.providerPreference);
|
|
517
524
|
}
|
|
518
|
-
|
|
525
|
+
/**
|
|
526
|
+
* Establish a connection with a wallet provider such as MetaMask and returns the provider object and the current network details.
|
|
527
|
+
* @param {ConnectParams} params - The necessary data required to establish a connection with a wallet provider.
|
|
528
|
+
* @returns Wallet provider and current network information.
|
|
529
|
+
* @throws {@link ErrorType}
|
|
530
|
+
*/ async connect(params) {
|
|
531
|
+
this.providerPreference = params.providerPreference;
|
|
519
532
|
const provider = await $c99672cf2294e839$export$fba2f6c3656e07c1(params);
|
|
520
533
|
const networkInfo = await $de192de6ef100f9f$export$79f13b4cfaaf0d09(provider);
|
|
521
534
|
return {
|
|
@@ -523,31 +536,74 @@ class $a8cb37a3fc8eb863$export$1f60ba4ec72508a0 {
|
|
|
523
536
|
network: networkInfo
|
|
524
537
|
};
|
|
525
538
|
}
|
|
526
|
-
|
|
527
|
-
|
|
539
|
+
/**
|
|
540
|
+
* Switch the currently connected wallet to a new network.
|
|
541
|
+
* @param {SwitchNetworkParams} params - The necessary data required to switch network.
|
|
542
|
+
* @returns The new network information.
|
|
543
|
+
* @throws {@link ErrorType}
|
|
544
|
+
*/ async switchNetwork(params) {
|
|
545
|
+
if (!this.providerPreference) throw new ($a8bc256d81a5e2c1$export$b722478a3cbfa3bc)(`connect should be called before switchNetwork to set the provider preference`, ($a8bc256d81a5e2c1$export$e3dc0620abde7f5a).PROVIDER_PREFERENCE_ERROR);
|
|
546
|
+
return await $de192de6ef100f9f$export$b827d9418aeb5dbd(this.providerPreference, params.provider, params.chainId);
|
|
528
547
|
}
|
|
529
|
-
|
|
548
|
+
/**
|
|
549
|
+
* Fetch the balance of the native token of the current connected network or, if a contract address is provided, it will return the balance of that ERC20 token. For example, if the wallet is connected to the Ethereum Mainnet then the function gets the wallet ETH L1 balance.
|
|
550
|
+
* @param {GetBalanceParams} params - The necessary data required to fetch the wallet balance.
|
|
551
|
+
* @returns Native token balance for the given wallet.
|
|
552
|
+
* @throws {@link ErrorType}
|
|
553
|
+
*/ async getBalance(params) {
|
|
530
554
|
if (!params.contractAddress || params.contractAddress === "") return await $1564e43dde50bb61$export$df96cd8d56be0ab1(params.provider, params.walletAddress);
|
|
531
555
|
return await $1564e43dde50bb61$export$60e0fe116a0e6ed0(params.provider, params.walletAddress, params.contractAddress);
|
|
532
556
|
}
|
|
533
|
-
|
|
557
|
+
/**
|
|
558
|
+
* Fetch all available balances (ERC20 & Native) of the current connected network of the given wallet. It will loop through the list of allowed tokens and check for balance on each one.
|
|
559
|
+
* @param {GetAllBalancesParams} params - The necessary data required to fetch all the wallet balances.
|
|
560
|
+
* @returns List of tokens balance for the given wallet.
|
|
561
|
+
* @throws {@link ErrorType}
|
|
562
|
+
*/ async getAllBalances(params) {
|
|
534
563
|
return $1564e43dde50bb61$export$fee49741664a4d7e(params.provider, params.walletAddress, params.chainId);
|
|
535
564
|
}
|
|
536
|
-
|
|
565
|
+
/**
|
|
566
|
+
* Fetch the list of available networks that a wallet can add or/and switch to.
|
|
567
|
+
* @param {GetNetworkAllowListParams} params - The necessary data required to fetch the list of available networks.
|
|
568
|
+
* @returns List of networks.
|
|
569
|
+
* @throws {@link ErrorType}
|
|
570
|
+
*/ async getNetworkAllowList(params) {
|
|
537
571
|
return await $de192de6ef100f9f$export$3043f6442a9ef563(params);
|
|
538
572
|
}
|
|
539
|
-
|
|
573
|
+
/**
|
|
574
|
+
* Get the list of tokens which are allowed to be used with the product.
|
|
575
|
+
* @param {GetTokenAllowListParams} params - The necessary data required to fetch the list of allowed tokens.
|
|
576
|
+
* @returns List of allowed tokens.
|
|
577
|
+
* @throws {@link ErrorType}
|
|
578
|
+
*/ async getTokenAllowList(params) {
|
|
540
579
|
return await $efe60cea83bfc4e8$export$473cec51305fdae8(params);
|
|
541
580
|
}
|
|
542
|
-
|
|
581
|
+
/**
|
|
582
|
+
* Fetch the list of wallets which are available to connect with.
|
|
583
|
+
* @param {GetWalletAllowListParams} params - The necessary data required to fetch the list of allowed wallets.
|
|
584
|
+
* @returns List of allowed wallets.
|
|
585
|
+
* @throws {@link ErrorType}
|
|
586
|
+
*/ async getWalletAllowList(params) {
|
|
543
587
|
return await $5cdde2ffe6360fec$export$a822caa90d7eef09(params);
|
|
544
588
|
}
|
|
545
|
-
|
|
589
|
+
/**
|
|
590
|
+
* Send a generic transaction to the provider.
|
|
591
|
+
* @param {SendTransactionParams} params - The necessary data required to send a transaction.
|
|
592
|
+
* @returns Transaction response.
|
|
593
|
+
* @throws {@link ErrorType}
|
|
594
|
+
* @remarks
|
|
595
|
+
* Further documenation can be found at [MetaMask | Sending Transactions](https://docs.metamask.io/guide/sending-transactions.html).
|
|
596
|
+
*/ async sendTransaction(params) {
|
|
546
597
|
return await $dbe95599a4661140$export$8e0e7ffc78696d30(params);
|
|
547
598
|
}
|
|
548
|
-
|
|
599
|
+
/**
|
|
600
|
+
* Get network information about the currently selected network.
|
|
601
|
+
* @param {GetNetworkParams} params - The necessary data required to get the current network information.
|
|
602
|
+
* @returns Network details.
|
|
603
|
+
* @throws {@link ErrorType}
|
|
604
|
+
*/ async getNetworkInfo(params) {
|
|
549
605
|
return await $de192de6ef100f9f$export$79f13b4cfaaf0d09(params.provider);
|
|
550
606
|
}
|
|
551
607
|
}
|
|
552
608
|
|
|
553
|
-
export { $a47e48dd2c04791b$export$c06e1e7429de6283 as ChainId, $a8cb37a3fc8eb863$export$1f60ba4ec72508a0 as Checkout, $d176a05e966364ba$export$3bfad4d03ada24c4 as ConnectionProviders, $a47e48dd2c04791b$export$1f05a55fe0680cc7 as NetworkFilterTypes, $08d5ddc39acd6833$export$fd9b17d87f4121d2 as TokenFilterTypes, $4f91c5f280efe242$export$a75605c67ea83a5a as WalletFilterTypes };
|
|
609
|
+
export { $a47e48dd2c04791b$export$c06e1e7429de6283 as ChainId, $a8cb37a3fc8eb863$export$1f60ba4ec72508a0 as Checkout, $a8bc256d81a5e2c1$export$e3dc0620abde7f5a as CheckoutErrorType, $d176a05e966364ba$export$3bfad4d03ada24c4 as ConnectionProviders, $a47e48dd2c04791b$export$1f05a55fe0680cc7 as NetworkFilterTypes, $08d5ddc39acd6833$export$fd9b17d87f4121d2 as TokenFilterTypes, $4f91c5f280efe242$export$a75605c67ea83a5a as WalletFilterTypes };
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
/// <reference path="global.d.ts" />
|
|
2
|
+
/**
|
|
3
|
+
* Enum representing the list of default supported providers.
|
|
4
|
+
*/
|
|
2
5
|
declare enum ConnectionProviders {
|
|
3
6
|
METAMASK = "metamask"
|
|
4
7
|
}
|
|
@@ -11024,7 +11027,7 @@ interface Interaction {
|
|
|
11024
11027
|
timestamp: number;
|
|
11025
11028
|
}
|
|
11026
11029
|
|
|
11027
|
-
//
|
|
11030
|
+
// NOTE: Users of the `experimental` builds of React should add a reference
|
|
11028
11031
|
|
|
11029
11032
|
|
|
11030
11033
|
type NativeAnimationEvent = AnimationEvent;
|
|
@@ -14433,6 +14436,14 @@ interface ImtblTransitionExampleProps extends undefined<undefined<HTMLElement>,
|
|
|
14433
14436
|
providerPreference: string;
|
|
14434
14437
|
theme: string;
|
|
14435
14438
|
}
|
|
14439
|
+
interface ImtblInnerWidgetExampleProps extends undefined<undefined<HTMLElement>, HTMLElement> {
|
|
14440
|
+
providerPreference: string;
|
|
14441
|
+
theme: string;
|
|
14442
|
+
}
|
|
14443
|
+
interface ImtblOuterWidgetExampleProps extends undefined<undefined<HTMLElement>, HTMLElement> {
|
|
14444
|
+
providerPreference: string;
|
|
14445
|
+
theme: string;
|
|
14446
|
+
}
|
|
14436
14447
|
declare enum Network {
|
|
14437
14448
|
ETHEREUM = "Ethereum",
|
|
14438
14449
|
GOERLI = "Goerli",
|
|
@@ -14444,4 +14455,4 @@ declare enum WidgetTheme {
|
|
|
14444
14455
|
CUSTOM = "custom"
|
|
14445
14456
|
}
|
|
14446
14457
|
|
|
14447
|
-
export { BridgeEvent, BridgeEventType, BridgeFailed, BridgeSuccess, BuyClose, BuyEvent, BuyEventType, BuyFailed, BuyNotConnected, BuySuccess, ConnectEvent, ConnectEventType, ConnectionFailed, ConnectionProviders, ConnectionSuccess, IMTBLWidgetEvents, ImtblBridgeProps, ImtblBuyProps, ImtblConnectProps, ImtblExampleProps, ImtblSwapProps, ImtblTransitionExampleProps, ImtblWalletProps, Network, SwapEvent, SwapEventType, SwapFailed, SwapSuccess, WalletEvent, WalletEventType, WalletNetworkSwitchEvent, WidgetTheme };
|
|
14458
|
+
export { BridgeEvent, BridgeEventType, BridgeFailed, BridgeSuccess, BuyClose, BuyEvent, BuyEventType, BuyFailed, BuyNotConnected, BuySuccess, ConnectEvent, ConnectEventType, ConnectionFailed, ConnectionProviders, ConnectionSuccess, IMTBLWidgetEvents, ImtblBridgeProps, ImtblBuyProps, ImtblConnectProps, ImtblExampleProps, ImtblInnerWidgetExampleProps, ImtblOuterWidgetExampleProps, ImtblSwapProps, ImtblTransitionExampleProps, ImtblWalletProps, Network, SwapEvent, SwapEventType, SwapFailed, SwapSuccess, WalletEvent, WalletEventType, WalletNetworkSwitchEvent, WidgetTheme };
|
package/dist/checkout_widgets.js
CHANGED
|
@@ -83,7 +83,9 @@ let $4f91c5f280efe242$export$a75605c67ea83a5a;
|
|
|
83
83
|
|
|
84
84
|
|
|
85
85
|
|
|
86
|
-
|
|
86
|
+
/**
|
|
87
|
+
* The different types of errors that can be returned by the checkout process.
|
|
88
|
+
*/ let $a8bc256d81a5e2c1$export$e3dc0620abde7f5a;
|
|
87
89
|
(function(CheckoutErrorType) {
|
|
88
90
|
CheckoutErrorType["PROVIDER_PREFERENCE_ERROR"] = "PROVIDER_PREFERENCE_ERROR";
|
|
89
91
|
CheckoutErrorType["CONNECT_PROVIDER_ERROR"] = "CONNECT_PROVIDER_ERROR";
|
|
@@ -103,7 +105,7 @@ let $a8bc256d81a5e2c1$export$a22d4e0719ee6def;
|
|
|
103
105
|
})($a8bc256d81a5e2c1$export$a22d4e0719ee6def || ($a8bc256d81a5e2c1$export$a22d4e0719ee6def = {}));
|
|
104
106
|
JSON.parse('[{"chainId":1},{"chainId":5},{"chainId":137}]');
|
|
105
107
|
JSON.parse("[{\"address\":\"0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0\",\"chainId\":137,\"name\":\"Matic\",\"symbol\":\"MATIC\",\"decimals\":18,\"icon\":\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 38.4 33.5' style='enable-background:new 0 0 38.4 33.5;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%238247E5;%7D%0A%3C/style%3E%3Cg%3E%3Cpath class='st0' d='M29,10.2c-0.7-0.4-1.6-0.4-2.4,0L21,13.5l-3.8,2.1l-5.5,3.3c-0.7,0.4-1.6,0.4-2.4,0L5,16.3 c-0.7-0.4-1.2-1.2-1.2-2.1v-5c0-0.8,0.4-1.6,1.2-2.1l4.3-2.5c0.7-0.4,1.6-0.4,2.4,0L16,7.2c0.7,0.4,1.2,1.2,1.2,2.1v3.3l3.8-2.2V7 c0-0.8-0.4-1.6-1.2-2.1l-8-4.7c-0.7-0.4-1.6-0.4-2.4,0L1.2,5C0.4,5.4,0,6.2,0,7v9.4c0,0.8,0.4,1.6,1.2,2.1l8.1,4.7 c0.7,0.4,1.6,0.4,2.4,0l5.5-3.2l3.8-2.2l5.5-3.2c0.7-0.4,1.6-0.4,2.4,0l4.3,2.5c0.7,0.4,1.2,1.2,1.2,2.1v5c0,0.8-0.4,1.6-1.2,2.1 L29,28.8c-0.7,0.4-1.6,0.4-2.4,0l-4.3-2.5c-0.7-0.4-1.2-1.2-1.2-2.1V21l-3.8,2.2v3.3c0,0.8,0.4,1.6,1.2,2.1l8.1,4.7 c0.7,0.4,1.6,0.4,2.4,0l8.1-4.7c0.7-0.4,1.2-1.2,1.2-2.1V17c0-0.8-0.4-1.6-1.2-2.1L29,10.2z'/%3E%3C/g%3E%3C/svg%3E%0A\",\"tokenFeatures\":[\"swap\",\"bridge\"]},{\"name\":\"Ethereum\",\"symbol\":\"ETH\",\"decimals\":18,\"icon\":\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3C!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3E%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' width='100%25' height='100%25' version='1.1' shape-rendering='geometricPrecision' text-rendering='geometricPrecision' image-rendering='optimizeQuality' fill-rule='evenodd' clip-rule='evenodd'%0AviewBox='0 0 784.37 1277.39' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:xodm='http://www.corel.com/coreldraw/odm/2003'%3E%3Cg id='Layer_x0020_1'%3E%3Cmetadata id='CorelCorpID_0Corel-Layer'/%3E%3Cg id='_1421394342400'%3E%3Cg%3E%3Cpolygon fill='%23343434' fill-rule='nonzero' points='392.07,0 383.5,29.11 383.5,873.74 392.07,882.29 784.13,650.54 '/%3E%3Cpolygon fill='%238C8C8C' fill-rule='nonzero' points='392.07,0 -0,650.54 392.07,882.29 392.07,472.33 '/%3E%3Cpolygon fill='%233C3C3B' fill-rule='nonzero' points='392.07,956.52 387.24,962.41 387.24,1263.28 392.07,1277.38 784.37,724.89 '/%3E%3Cpolygon fill='%238C8C8C' fill-rule='nonzero' points='392.07,1277.38 392.07,956.52 -0,724.89 '/%3E%3Cpolygon fill='%23141414' fill-rule='nonzero' points='392.07,882.29 784.13,650.54 392.07,472.33 '/%3E%3Cpolygon fill='%23393939' fill-rule='nonzero' points='0,650.54 392.07,882.29 392.07,472.33 '/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A\",\"chainId\":1,\"tokenFeatures\":[\"swap\",\"bridge\"]},{\"address\":\"0xF57e7e7C23978C3cAEC3C3548E3D615c346e79fF\",\"chainId\":1,\"name\":\"Immutable X\",\"symbol\":\"IMX\",\"decimals\":18,\"icon\":\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 139 113' style='enable-background:new 0 0 139 113;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bclip-path:url(%23SVGID_00000053504646934646330740000009134454895836103350_);%7D .st1%7Bfill:%2317B5CB;%7D%0A%3C/style%3E%3Cg%3E%3Cdefs%3E%3Crect id='SVGID_1_' width='139' height='113'/%3E%3C/defs%3E%3CclipPath id='SVGID_00000035518931339590433170000002358037249938198420_'%3E%3Cuse xlink:href='%23SVGID_1_' style='overflow:visible;'/%3E%3C/clipPath%3E%3Cg style='clip-path:url(%23SVGID_00000035518931339590433170000002358037249938198420_);'%3E%3Cpath class='st1' d='M124.1,0h14.6L79.5,67.6c-1.5,1.7-1.6,4.3-0.1,6.1l34.1,39.7H98.3L66.8,76.6l-1.6-2c-1.5-1.7-1.4-4.4,0.1-6.1 L124.1,0z'/%3E%3Cpath class='st1' d='M91.2,73.7c-1-1.1-1.3-2.7-1-4.1c0.3-0.8,0.8-1.6,1.4-2.2l3.9-4.3l43.5,50.3h-13.8 C125.2,113.4,99.7,83.6,91.2,73.7z'/%3E%3Cpath class='st1' d='M15.2,113.4H0l46.6-53.9c1.5-1.7,1.5-4.3,0-6L0.4,0H15l46.5,53.9c1.2,1.6,1.4,3.9,0.1,5.4 C49.4,73.4,15.2,113.4,15.2,113.4z'/%3E%3Cpath class='st1' d='M40.6,0h-14l43.1,49.9c0,0,0.1-0.1,4.9-5.8c1.3-1.5,1.6-3.4,0.1-4.9C65.7,30,40.6,0,40.6,0z'/%3E%3Cpath class='st1' d='M82.6,34.8L112.5,0H98.3L82.7,18.2l-4.5,5.3c-1.5,1.7-1.6,4.3-0.1,6.1C79.2,30.9,82.6,34.8,82.6,34.8z'/%3E%3Cpath class='st1' d='M56.6,78.6l-29.9,34.8h14.1l15.6-18.2l4.5-5.3c1.5-1.7,1.6-4.3,0.1-6.1C59.9,82.5,56.6,78.6,56.6,78.6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A\",\"tokenFeatures\":[\"swap\",\"bridge\"]},{\"address\":\"0x7D1AfA7B718fb893dB30A3aBc0Cfc608AaCfeBB0\",\"chainId\":1,\"name\":\"Matic\",\"symbol\":\"MATIC\",\"decimals\":18,\"icon\":\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 38.4 33.5' style='enable-background:new 0 0 38.4 33.5;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%238247E5;%7D%0A%3C/style%3E%3Cg%3E%3Cpath class='st0' d='M29,10.2c-0.7-0.4-1.6-0.4-2.4,0L21,13.5l-3.8,2.1l-5.5,3.3c-0.7,0.4-1.6,0.4-2.4,0L5,16.3 c-0.7-0.4-1.2-1.2-1.2-2.1v-5c0-0.8,0.4-1.6,1.2-2.1l4.3-2.5c0.7-0.4,1.6-0.4,2.4,0L16,7.2c0.7,0.4,1.2,1.2,1.2,2.1v3.3l3.8-2.2V7 c0-0.8-0.4-1.6-1.2-2.1l-8-4.7c-0.7-0.4-1.6-0.4-2.4,0L1.2,5C0.4,5.4,0,6.2,0,7v9.4c0,0.8,0.4,1.6,1.2,2.1l8.1,4.7 c0.7,0.4,1.6,0.4,2.4,0l5.5-3.2l3.8-2.2l5.5-3.2c0.7-0.4,1.6-0.4,2.4,0l4.3,2.5c0.7,0.4,1.2,1.2,1.2,2.1v5c0,0.8-0.4,1.6-1.2,2.1 L29,28.8c-0.7,0.4-1.6,0.4-2.4,0l-4.3-2.5c-0.7-0.4-1.2-1.2-1.2-2.1V21l-3.8,2.2v3.3c0,0.8,0.4,1.6,1.2,2.1l8.1,4.7 c0.7,0.4,1.6,0.4,2.4,0l8.1-4.7c0.7-0.4,1.2-1.2,1.2-2.1V17c0-0.8-0.4-1.6-1.2-2.1L29,10.2z'/%3E%3C/g%3E%3C/svg%3E%0A\",\"tokenFeatures\":[\"swap\",\"bridge\"]},{\"name\":\"Ethereum\",\"symbol\":\"ETH\",\"decimals\":18,\"icon\":\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='UTF-8'%3F%3E%3C!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' 'http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd'%3E%3Csvg xmlns='http://www.w3.org/2000/svg' xml:space='preserve' width='100%25' height='100%25' version='1.1' shape-rendering='geometricPrecision' text-rendering='geometricPrecision' image-rendering='optimizeQuality' fill-rule='evenodd' clip-rule='evenodd'%0AviewBox='0 0 784.37 1277.39' xmlns:xlink='http://www.w3.org/1999/xlink' xmlns:xodm='http://www.corel.com/coreldraw/odm/2003'%3E%3Cg id='Layer_x0020_1'%3E%3Cmetadata id='CorelCorpID_0Corel-Layer'/%3E%3Cg id='_1421394342400'%3E%3Cg%3E%3Cpolygon fill='%23343434' fill-rule='nonzero' points='392.07,0 383.5,29.11 383.5,873.74 392.07,882.29 784.13,650.54 '/%3E%3Cpolygon fill='%238C8C8C' fill-rule='nonzero' points='392.07,0 -0,650.54 392.07,882.29 392.07,472.33 '/%3E%3Cpolygon fill='%233C3C3B' fill-rule='nonzero' points='392.07,956.52 387.24,962.41 387.24,1263.28 392.07,1277.38 784.37,724.89 '/%3E%3Cpolygon fill='%238C8C8C' fill-rule='nonzero' points='392.07,1277.38 392.07,956.52 -0,724.89 '/%3E%3Cpolygon fill='%23141414' fill-rule='nonzero' points='392.07,882.29 784.13,650.54 392.07,472.33 '/%3E%3Cpolygon fill='%23393939' fill-rule='nonzero' points='0,650.54 392.07,882.29 392.07,472.33 '/%3E%3C/g%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A\",\"chainId\":5,\"tokenFeatures\":[\"swap\",\"bridge\"]},{\"address\":\"0x1facdd0165489f373255a90304650e15481b2c85\",\"chainId\":5,\"name\":\"Immutable X\",\"symbol\":\"IMX\",\"decimals\":18,\"icon\":\"data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 139 113' style='enable-background:new 0 0 139 113;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bclip-path:url(%23SVGID_00000053504646934646330740000009134454895836103350_);%7D .st1%7Bfill:%2317B5CB;%7D%0A%3C/style%3E%3Cg%3E%3Cdefs%3E%3Crect id='SVGID_1_' width='139' height='113'/%3E%3C/defs%3E%3CclipPath id='SVGID_00000035518931339590433170000002358037249938198420_'%3E%3Cuse xlink:href='%23SVGID_1_' style='overflow:visible;'/%3E%3C/clipPath%3E%3Cg style='clip-path:url(%23SVGID_00000035518931339590433170000002358037249938198420_);'%3E%3Cpath class='st1' d='M124.1,0h14.6L79.5,67.6c-1.5,1.7-1.6,4.3-0.1,6.1l34.1,39.7H98.3L66.8,76.6l-1.6-2c-1.5-1.7-1.4-4.4,0.1-6.1 L124.1,0z'/%3E%3Cpath class='st1' d='M91.2,73.7c-1-1.1-1.3-2.7-1-4.1c0.3-0.8,0.8-1.6,1.4-2.2l3.9-4.3l43.5,50.3h-13.8 C125.2,113.4,99.7,83.6,91.2,73.7z'/%3E%3Cpath class='st1' d='M15.2,113.4H0l46.6-53.9c1.5-1.7,1.5-4.3,0-6L0.4,0H15l46.5,53.9c1.2,1.6,1.4,3.9,0.1,5.4 C49.4,73.4,15.2,113.4,15.2,113.4z'/%3E%3Cpath class='st1' d='M40.6,0h-14l43.1,49.9c0,0,0.1-0.1,4.9-5.8c1.3-1.5,1.6-3.4,0.1-4.9C65.7,30,40.6,0,40.6,0z'/%3E%3Cpath class='st1' d='M82.6,34.8L112.5,0H98.3L82.7,18.2l-4.5,5.3c-1.5,1.7-1.6,4.3-0.1,6.1C79.2,30.9,82.6,34.8,82.6,34.8z'/%3E%3Cpath class='st1' d='M56.6,78.6l-29.9,34.8h14.1l15.6-18.2l4.5-5.3c1.5-1.7,1.6-4.3,0.1-6.1C59.9,82.5,56.6,78.6,56.6,78.6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E%0A\",\"tokenFeatures\":[\"swap\",\"bridge\"]},{\"address\":\"0x123456789\",\"chainId\":5,\"name\":\"Swap Coin\",\"symbol\":\"SWC\",\"decimals\":18,\"tokenFeatures\":[\"swap\",\"fakeFeature\"]},{\"address\":\"0x123456789\",\"chainId\":5,\"name\":\"Bridge Coin\",\"symbol\":\"BDC\",\"decimals\":18,\"tokenFeatures\":[\"bridge\",\"fakeFeature\"]}]");
|
|
106
|
-
JSON.parse('[{"connectionProvider":"metamask","icon":"some-icon-url","name":"MetaMask","description":"complete web3 wallet solution","platform":["
|
|
108
|
+
JSON.parse('[{"connectionProvider":"metamask","icon":"some-icon-url","name":"MetaMask","description":"complete web3 wallet solution","platform":["desktop"]},{"connectionProvider":"passport","icon":"pp-icon","name":"Passport","description":"Web3 with your email!","platform":["mobile","desktop"]},{"connectionProvider":"gamestop","icon":"gme-icon","name":"GameStop","description":"Never stopping the game!","platform":["mobile"]}]');
|
|
107
109
|
|
|
108
110
|
function $parcel$export(e, n, v, s) {
|
|
109
111
|
Object.defineProperty(e, n, {get: v, set: s, enumerable: true, configurable: true});
|