@0xfutbol/id
Version:
React component library with shared providers for 0xFutbol ID
78 lines (77 loc) • 2.69 kB
JavaScript
import {P as readContract}from'./index-BJCJzM2_.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';const FN_SELECTOR = "0x3e429396";
const FN_INPUTS = [];
const FN_OUTPUTS = [
{
type: "tuple[]",
components: [
{
type: "address",
name: "implementation",
},
{
type: "tuple",
name: "config",
components: [
{
type: "bool",
name: "registerInstallationCallback",
},
{
type: "bytes4[]",
name: "requiredInterfaces",
},
{
type: "bytes4[]",
name: "supportedInterfaces",
},
{
type: "tuple[]",
name: "callbackFunctions",
components: [
{
type: "bytes4",
name: "selector",
},
],
},
{
type: "tuple[]",
name: "fallbackFunctions",
components: [
{
type: "bytes4",
name: "selector",
},
{
type: "uint256",
name: "permissionBits",
},
],
},
],
},
],
},
];
/**
* Calls the "getInstalledModules" function on the contract.
* @param options - The options for the getInstalledModules function.
* @returns The parsed result of the function call.
* @extension MODULES
* @example
* ```ts
* import { getInstalledModules } from "thirdweb/extensions/modules";
*
* const result = await getInstalledModules({
* contract,
* });
*
* ```
*/
async function getInstalledModules(options) {
return readContract({
contract: options.contract,
method: [FN_SELECTOR, FN_INPUTS, FN_OUTPUTS],
params: [],
});
}export{FN_SELECTOR,getInstalledModules};//# sourceMappingURL=getInstalledModules-aFuSyL5h.js.map