2.0.0 • Published 1 year ago
@manifoldxyz/frontend-provider-types v2.0.0
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.
2.0.0
1 year ago
1.1.2
1 year ago
1.1.1
2 years ago
1.1.0
2 years ago
1.0.1-beta.1
2 years ago
1.0.0
2 years ago
1.0.0-beta.2
2 years ago
1.0.0-beta.1
2 years ago