@farcaster/auth-client
Advanced tools
Comparing version 0.0.19 to 0.0.20
@@ -5,3 +5,2 @@ import { SiweMessage, SiweResponse } from 'siwe'; | ||
import { Hex } from 'viem'; | ||
import { providers } from 'ethers'; | ||
@@ -46,5 +45,8 @@ interface AuthClientErrorOpts { | ||
declare const Provider: any; | ||
type Provider = typeof Provider; | ||
interface EthereumConnector { | ||
getFid: (custody: Hex) => Promise<BigInt>; | ||
provider: providers.JsonRpcProvider; | ||
provider: Provider; | ||
} | ||
@@ -51,0 +53,0 @@ |
@@ -455,3 +455,2 @@ "use strict"; | ||
var import_chains = require("viem/chains"); | ||
var ethers = __toESM(require("ethers")); | ||
@@ -1715,2 +1714,13 @@ // src/contracts/idRegistry.ts | ||
// src/clients/ethereum/ethers.ts | ||
var ethers = __toESM(require("ethers")); | ||
var JsonRpcProvider2 = ( | ||
// @ts-expect-error -- ethers v6 compatibility hack | ||
ethers.providers ? ethers.providers.JsonRpcProvider : ethers.JsonRpcProvider | ||
); | ||
var Provider2 = ( | ||
// @ts-expect-error -- ethers v6 compatibility hack | ||
ethers.providers ? ethers.providers.Provider : ethers.Provider | ||
); | ||
// src/clients/ethereum/viemConnector.ts | ||
@@ -1737,3 +1747,3 @@ var viemConnector = (args) => { | ||
const rpc = transport.url ?? chain.rpcUrls.default.http[0]; | ||
return new (ethers.providers ? ethers.providers.JsonRpcProvider : ethers.JsonRpcProvider)(rpc, network); | ||
return new JsonRpcProvider2(rpc, network); | ||
}; | ||
@@ -1740,0 +1750,0 @@ return { |
{ | ||
"name": "@farcaster/auth-client", | ||
"version": "0.0.19", | ||
"version": "0.0.20", | ||
"main": "./dist/index.js", | ||
@@ -5,0 +5,0 @@ "module": "./dist/index.mjs", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
107329
3647