Socket
Socket
Sign inDemoInstall

@web3-onboard/fortmatic

Package Overview
Dependencies
Maintainers
2
Versions
47
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@web3-onboard/fortmatic - npm Package Compare versions

Comparing version 2.0.19 to 2.1.0-viem.1

2

dist/index.d.ts

@@ -1,3 +0,3 @@

import type { WalletInit, APIKey } from '@web3-onboard/common';
import { WalletInit, APIKey } from '@web3-onboard/common';
declare function fortmatic(options: APIKey): WalletInit;
export default fortmatic;

@@ -0,1 +1,2 @@

import { weiToEth } from '@web3-onboard/common';
function fortmatic(options) {

@@ -7,3 +8,3 @@ const { apiKey } = options;

getIcon: async () => (await import('./icon.js')).default,
getInterface: async ({ EventEmitter, BigNumber, chains }) => {
getInterface: async ({ EventEmitter, chains }) => {
const { default: Fortmatic } = await import('fortmatic');

@@ -22,3 +23,3 @@ const { createEIP1193Provider, ProviderRpcErrorCode, ProviderRpcError } = await import('@web3-onboard/common');

try {
const accounts = await instance.user.login();
const accounts = (await instance.user.login());
return accounts;

@@ -40,7 +41,3 @@ }

const [balance] = await instance.user.getBalances();
return balance
? BigNumber.from(balance.crypto_amount)
.mul('1000000000000000000')
.toString()
: '0';
return balance ? weiToEth(balance.crypto_amount) : '0';
},

@@ -47,0 +44,0 @@ wallet_switchEthereumChain: async ({ params }) => {

{
"name": "@web3-onboard/fortmatic",
"version": "2.0.19",
"version": "2.1.0-viem.1",
"description": "Fortmatic wallet module for connecting to Web3-Onboard. Web3-Onboard makes it simple to connect Ethereum hardware and software wallets to your dapp. Features standardised spec compliant web3 providers for all supported wallets, framework agnostic modern javascript UI with code splitting, CSS customization, multi-chain and multi-account support, reactive wallet state subscriptions and real-time transaction state change notifications.",

@@ -58,8 +58,8 @@ "keywords": [

"devDependencies": {
"typescript": "^4.5.5"
"typescript": "^5.4.5"
},
"dependencies": {
"@web3-onboard/common": "^2.3.3",
"@web3-onboard/common": "^2.4.0-viem.4",
"fortmatic": "^2.2.1"
}
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc