@0xfutbol/id
Version:
React component library with shared providers for 0xFutbol ID
40 lines (39 loc) • 1.55 kB
JavaScript
import {cD as getEcosystemInfo}from'./index-DNoa140s.js';import'react';import'react/jsx-runtime';import'@0xfutbol/id-sign';import'react-use';import'@0xfutbol/constants';import'thirdweb';import'@matchain/matchid-sdk-react';import'@tanstack/react-query';import'@matchain/matchid-sdk-react/index.css';import'react-dom';/**
* Fetches metadata for a given ecosystem wallet.
*
* @param {EcosystemWalletId} walletId - The ecosystem wallet ID.
* @returns {Promise<{ imageUrl: string | undefined, name: string | undefined }>} A promise that resolves to an object containing the wallet's image URL and name.
* @throws {Error} Throws an error if no partner ID is provided in the wallet configuration.
* @internal
*/
async function getEcosystemWalletInfo(walletId) {
const data = await getEcosystemInfo(walletId);
return {
id: walletId,
name: data.name,
image_id: data.imageUrl || "",
homepage: data.homepage || "",
rdns: null,
app: {
browser: null,
ios: null,
android: null,
mac: null,
windows: null,
linux: null,
opera: null,
chrome: null,
firefox: null,
safari: null,
edge: null,
},
mobile: {
native: null,
universal: null,
},
desktop: {
native: null,
universal: null,
},
};
}export{getEcosystemWalletInfo};//# sourceMappingURL=get-ecosystem-wallet-info-Beot79CC.js.map