Comparing version 0.1.3 to 0.1.4
14
index.js
import { ethers } from 'ethers'; | ||
import { Record, Profile } from '@resolverworks/enson'; | ||
// Setup Ethereum provider and contract | ||
// const provider = new ethers.CloudflareProvider(); | ||
const provider = new ethers.AlchemyProvider("mainnet", 'sS_1IxXGm493hjmf5bCCMom3dd6294Uv'); // Defaults to Ethereum mainnet | ||
const rpcs = [ | ||
// 'https://eth-mainnet.g.alchemy.com/v2/9T5n0ljpi0uGhLhyGnQNQ0ZJ8aU9awlQ' | ||
'https://eth-mainnet.rpc.grove.city/v1/298e23fd' | ||
]; | ||
const providers = rpcs.map(url => new ethers.JsonRpcProvider(url)); | ||
const fallbackProvider = new ethers.FallbackProvider(providers); | ||
const resolver = new ethers.Contract('0xe121A6e3a50008EFE9C617214320c2f9fF903411', [ | ||
'function resolve(bytes name, bytes call) external view returns (bytes memory)', | ||
], provider); | ||
], fallbackProvider); | ||
@@ -11,0 +17,0 @@ const iface = new ethers.Interface([ |
{ | ||
"name": "tkn", | ||
"version": "0.1.3", | ||
"version": "0.1.4", | ||
"description": "The Token Name Service NPM package", | ||
@@ -5,0 +5,0 @@ "type": "module", |
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
3446
56