Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@xtoken/abis

Package Overview
Dependencies
Maintainers
6
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@xtoken/abis

xToken Contract ABIs

  • 0.1.19
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
0
decreased by-100%
Maintainers
6
Weekly downloads
 
Created
Source

xToken ABIs

Package containing all the xToken contract ABIs and addresses.

Install

yarn add @xtoken/abis

Build

yarn build

Link @xtoken/abis package via yarn for local development and testing the integration on the UI

$ cd abis
$ yarn link # @xtoken/abis package will be linked to the local copy

$ cd cafe
$ yarn link @xtoken/abis # This will create a symlink named cafe/node_modules/@xtoken/abis that links to the local copy of the xToken abis project

$ yarn unlink # To unlink the installed package

Linting

To automatically fix eslint and prettier formatting issues, run:

yarn fix

Examples

import { ethers } from 'ethers'
import { Abis, ADDRESSES, X_AAVE_A } from '@xtoken/abis'

// Setup provider
const provider = new ethers.providers.InfuraProvider('homestead', '<API KEY>')
const network = await provider.getNetwork()
const { chainId } = network

// Initialise xAAVEa contract
const xaaveContract = new ethers.Contract(ADDRESSES[X_AAVE_A][chainId], Abis.xAAVE, provider)

FAQs

Package last updated on 24 Sep 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

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