GithubHelp home page GithubHelp logo

o-az / evm-balances Goto Github PK

View Code? Open in Web Editor NEW
15.0 4.0 0.0 2 MB

`balanceOf` except it checks against many ERC20 tokens at once

Home Page: https://balance.evm.workers.dev

License: GNU General Public License v3.0

JavaScript 9.95% TypeScript 84.94% Shell 2.09% Solidity 3.02%
balance ethereum wallet web3 arbitrum evm optimism polygon viem

evm-balances's Introduction

EVM Multicoin Balances Smart Contract and HTTP API

This is like balanceOf but for multiple coins. It takes 2 inputs, a wallet address and an array of coin addresses. It returns an array of balances for each coin. The first element of the array is the wallet balance of the native coin of the chain.

For contract code, see packages/core/src/Balances.sol.

For usage example, see the packages/core/example/balances.ts.

For HTTP API (deployed on Cloudflare Workers), see apps/api.

Deployed Contracts

Network Address
Ethereum 0x13675852Ac733AEd5679985778BE5c18E64E97FA
Arbitrum 0x77e883446e4cDE8955b4ce07DfCf0E9887B0e66c
Optimism 0xc9bA77C9b27481B6789840A7C3128D4f691f8296
Polygon 0x8b08FE6F8443f7bBbEde50Ecc8B020d9e44997a2
Avalanche 0xc9bA77C9b27481B6789840A7C3128D4f691f8296
Celo 0x5D88da6682B9088B9e31c900Be850de20cF20B11
Gnosis 0x5D88da6682B9088B9e31c900Be850de20cF20B11
Harmony One 0xc9bA77C9b27481B6789840A7C3128D4f691f8296
Moonbeam 0x5D88da6682B9088B9e31c900Be850de20cF20B11
Fantom 0xc9bA77C9b27481B6789840A7C3128D4f691f8296
BSC 0xc9bA77C9b27481B6789840A7C3128D4f691f8296
Aurora 0xc9bA77C9b27481B6789840A7C3128D4f691f8296
Goerli 0x694be3BCecAf1dD69ba91D21c54E22C87882a595
Sepolia 0x5D88da6682B9088B9e31c900Be850de20cF20B11
Polygon Mumbai 0x5D88da6682B9088B9e31c900Be850de20cF20B11
Optimism Goerli 0x5D88da6682B9088B9e31c900Be850de20cF20B11
Arbitrum Goerli 0xc9bA77C9b27481B6789840A7C3128D4f691f8296
Fantom Testnet 0xc9bA77C9b27481B6789840A7C3128D4f691f8296
Base Goerli 0x4a54047B53C5B011b00AcBdec84c090e6Cc175E2
{
  "ethereum": "0x13675852Ac733AEd5679985778BE5c18E64E97FA",
  "arbitrum": "0x77e883446e4cDE8955b4ce07DfCf0E9887B0e66c",
  "optimism": "0xc9bA77C9b27481B6789840A7C3128D4f691f8296",
  "polygon": "0x8b08FE6F8443f7bBbEde50Ecc8B020d9e44997a2",
  "celo": "0x5D88da6682B9088B9e31c900Be850de20cF20B11",
  "gnosis": "0x5D88da6682B9088B9e31c900Be850de20cF20B11",
  "harmonyOne": "0xc9bA77C9b27481B6789840A7C3128D4f691f8296",
  "moonbeam": "0x5D88da6682B9088B9e31c900Be850de20cF20B11",
  "avalanche": "0xc9bA77C9b27481B6789840A7C3128D4f691f8296",
  "fantom": "0xc9bA77C9b27481B6789840A7C3128D4f691f8296",
  "bsc": "0xc9bA77C9b27481B6789840A7C3128D4f691f8296",
  "aurora": "0xc9bA77C9b27481B6789840A7C3128D4f691f8296",
  "goerli": "0x694be3BCecAf1dD69ba91D21c54E22C87882a595",
  "sepolia": "0x5D88da6682B9088B9e31c900Be850de20cF20B11",
  "polygonMumbai": "0x5D88da6682B9088B9e31c900Be850de20cF20B11",
  "optimismGoerli": "0x5D88da6682B9088B9e31c900Be850de20cF20B11",
  "arbitrumGoerli": "0xc9bA77C9b27481B6789840A7C3128D4f691f8296",
  "fantomTestnet": "0xc9bA77C9b27481B6789840A7C3128D4f691f8296",
  "avalancheFuji": "0xc9bA77C9b27481B6789840A7C3128D4f691f8296",
  "baseGoerli": "0x4a54047B53C5B011b00AcBdec84c090e6Cc175E2"
}

evm-balances's People

Contributors

o-az avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

evm-balances's Issues

Dependency Dashboard

This issue lists Renovate updates and detected dependencies. Read the Dependency Dashboard docs to learn more.

Other Branches

These updates are pending. To force PRs open, click the checkbox below.

  • Update dependency prettier to v2.8.8 (prettier, @types/prettier)
  • Update dependency tsc-alias to v1.8.6
  • Update dependency @fastify/cors to v8.3.0
  • Update dependency @fastify/swagger to v8.5.1
  • Update dependency @types/node to v18.16.17
  • Update dependency dotenv to v16.1.4
  • Update dependency eslint to v8.42.0 (eslint, @types/eslint)
  • Update dependency fastify to v4.18.0
  • Update dependency pino-pretty to v9.4.0
  • Update dependency tsconfig-paths to v4.2.0

Open

These updates have all been created already. Click a checkbox below to force a retry/rebase of any.

Detected dependencies

dockerfile
Dockerfile
github-actions
.github/workflows/deploy.yml
  • actions/checkout v3
npm
package.json
  • @fastify/cors ^8.2.0
  • @fastify/swagger ^8.3.1
  • @markdoc/markdoc ^0.2.2
  • fastify ^4.13.0
  • @types/eslint ^8.21.1
  • @types/node ^18.13.0
  • @types/prettier ^2.7.2
  • @typescript-eslint/eslint-plugin ^5.52.0
  • @typescript-eslint/parser ^5.52.0
  • dotenv ^16.0.3
  • eslint ^8.34.0
  • eslint-config-prettier ^8.6.0
  • eslint-plugin-prettier ^4.2.1
  • eslint-plugin-simple-import-sort ^10.0.0
  • eslint-plugin-unicorn ^46.0.0
  • eslint-plugin-unused-imports ^2.0.0
  • pino-pretty ^9.2.0
  • prettier ^2.8.4
  • ts-node ^10.9.1
  • tsc-alias ^1.8.2
  • tsconfig-paths ^4.1.2
  • typescript ^4.9.5
  • vitest ^0.28.5
  • openapi-types ^12.1.0
  • node 18.15.0
  • pnpm >=7.27.0

  • Check this box to trigger a request for Renovate to run again on this repository

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.