@bn-onboard/fortmatic
Advanced tools
Comparing version 2.0.0-alpha.3 to 2.0.0-alpha.4
@@ -1,3 +0,3 @@ | ||
import { WalletInit, APIKey } from '@bn-onboard/common'; | ||
import type { WalletInit, APIKey } from '@bn-onboard/common'; | ||
declare function fortmatic(options: APIKey): WalletInit; | ||
export default fortmatic; |
@@ -1,2 +0,1 @@ | ||
import { createEIP1193Provider, ErrorCodes, ProviderRpcError } from '@bn-onboard/common'; | ||
function fortmatic(options) { | ||
@@ -10,2 +9,3 @@ const { apiKey } = options; | ||
const { default: Fortmatic } = await import('fortmatic'); | ||
const { createEIP1193Provider, ProviderRpcErrorCode, ProviderRpcError } = await import('@bn-onboard/common'); | ||
const emitter = new EventEmitter(); | ||
@@ -29,3 +29,3 @@ let instance = new Fortmatic(apiKey, { | ||
throw new ProviderRpcError({ | ||
code: ErrorCodes.ACCOUNT_ACCESS_REJECTED, | ||
code: ProviderRpcErrorCode.ACCOUNT_ACCESS_REJECTED, | ||
message: 'Account access rejected' | ||
@@ -37,2 +37,3 @@ }); | ||
}, | ||
eth_selectAccounts: null, | ||
eth_getBalance: async () => { | ||
@@ -39,0 +40,0 @@ const [balance] = await instance.user.getBalances(); |
{ | ||
"name": "@bn-onboard/fortmatic", | ||
"version": "2.0.0-alpha.3", | ||
"version": "2.0.0-alpha.4", | ||
"description": "Fortmatic module for Onboard.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6048
95