@manifoldxyz/frontend-provider-types
v2.0.0
Published
This is the TypeScript type definitions package for @manifoldxyz/frontend-provider. This package provides TypeScript interfaces and type definitions for the SDK.
Downloads
2,832
Maintainers
Keywords
Readme
frontend-provider-types
This is the TypeScript type definitions package for @manifoldxyz/frontend-provider. This package provides TypeScript interfaces and type definitions for the SDK.
Installation
Install this package using npm:
npm install @manifoldxyz/frontend-provider-types
Or using yarn:
yarn add @manifoldxyz/frontend-provider-types
Usage
This library is useful for dapps that needs typing from @manifoldxyz/frontend-provider, without the need to understand or import the actual implementations
Examples
import { OAuthGrantType } from '@manifoldxyz/frontend-provider-types';
import { detectManifoldEthereumProvider } from '@manifoldxyz/frontend-provider-utils';
const ethereumProvider = await detectManifoldEthereumProvider()
const accessToken = await ethereumProvider.getOAuth({
grantType: OAuthGrantType.SIGNATURE,
appName: appName,
clientId: clientId,
message: authMessage,
delayAuth: shouldDelayAuth,
});
Contributing
Contributions are welcome. Please open an issue or submit a pull request on our GitHub repository.