Socket
Socket
Sign inDemoInstall

tkn

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tkn - npm Package Compare versions

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",

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