1.1.1 • Published 5 months ago

@manifoldxyz/frontend-provider-types v1.1.1

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

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.

1.1.1

5 months ago

1.1.0

5 months ago

1.0.1-beta.1

11 months ago

1.0.0

12 months ago

1.0.0-beta.2

12 months ago

1.0.0-beta.1

12 months ago