@dapplets/dapplet-extension
Version:
The Bridge to the Augmented Web.
62 lines (61 loc) • 1.77 kB
TypeScript
import { StorageTypes, WalletInfo } from '../../common/constants';
import Base from '../../common/models/base';
import { EthereumNetwrokConfig, NearNetworkConfig, NearNetworks } from '../../common/types';
import SiteConfig from './siteConfig';
export declare class GlobalConfig extends Base {
getId: () => string;
id: string;
isActive: boolean;
suspended: boolean;
isFirstInstallation: boolean;
walletInfo: WalletInfo;
registries: {
url: string;
isDev: boolean;
isEnabled: boolean;
}[];
devMode: boolean;
trustedUsers: {
account: string;
}[];
userSettings: {
[moduleName: string]: {
[key: string]: string | number | boolean | null | undefined;
};
};
targetStorages: StorageTypes[];
errorReporting: boolean;
userTracking: boolean;
userAgentId: string;
userAgentName: string;
providerUrl: string;
xdaiProviderUrl: string;
swarmGatewayUrl: string;
walletsUsage: {
[moduleName: string]: {
[chain: string]: string;
};
};
hostnames: {
[hostname: string]: SiteConfig;
};
lastDevMessageHash: string;
ignoredUpdate: string;
lastMessageSeenTimestamp: string;
preferedOverlayStorage: string;
swarmPostageStampId: string;
ipfsGatewayUrl: string;
ethereumNetworks: EthereumNetwrokConfig[];
nearNetworks: NearNetworkConfig[];
myDapplets: {
registryUrl: string;
name: string;
}[];
connectedAccountsTestnetContractAddress: string;
connectedAccountsMainnetContractAddress: string;
preferredConnectedAccountsNetwork: NearNetworks;
pinnedDappletActions: {
dappletName: string;
widgetPinId: string;
}[];
}