0.2.1 • Published 2 years ago

@chain-runners/data v0.2.1

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

@chain-runners/utils

This packages contains miscellaneous utility functions used throughout the Chain Runners repositories.

Usage

import {
  ChainRunners__factory,
  MAINNET_CHAIN_RUNNERS_CONTRACT_ADDRESS,
} from '@chain-runners/contract-types'
import { ethers } from 'ethers'

const INFURA_ID = process.env.INFURA_ID
const INFURA_URL = `https://mainnet.infura.io/v3/${INFURA_ID}`

async function main() {
  const provider = new ethers.providers.JsonRpcProvider(INFURA_URL)
  const contract = ChainRunners__factory.connect(
    MAINNET_CHAIN_RUNNERS_CONTRACT_ADDRESS,
    provider,
  )

  const dnaResult = await contract.getDna(780)
  console.log(dnaResult.toString())
}

main()
0.2.1

2 years ago

0.2.0

2 years ago

0.1.5

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.4

2 years ago

0.1.3

2 years ago

0.1.0

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.1

2 years ago