A comprehensive collection of useful tools developed with the help of Ethers.js to interact with the Ethereum Blockchain to develop great DeFi apps as quickly and easily as possible.

Overview

hudi-packages-ethersfactory

How to install

Installing with npm

For more information on using npm check out the docs here.

npm i @humandataincome/ethersfactory

Installing with yarn

For more information on using yarn check out the docs here.

yarn add @humandataincome/ethersfactory

How to use

There are several services you can use:

  • DexService.
  • EvmService.
  • MLPService.
  • MLPService.
  • ProxyUtilsService.
  • TokenService.

There are three basic configurations you can use:

  • BSC_CONFIG. Allows you to make transactions on the Binance Smart Chain Mainnet.
  • BSCTEST_CONFIG. Allows you to make transactions on the Binance Smart Chain Testnet.
  • ETH_CONFIG1. Allows you to make transactions on the Ethereum Mainnet.

In this way:

import { BSC_CONFIG, TokenService } from "@humandataincome/ethersfactory";

const tokenService = new TokenService(BSC_CONFIG);

If you want to connect to Ethereum Mainnet, don't forget to pass the Infura api key:

import { ETH_CONFIG1, TokenService } from "@humandataincome/ethersfactory";

const tokenService = new TokenService(ETH_CONFIG1('INFURA_API_KEY'));

Useful Info:

Many operations in Ethereum operate on numbers which are outside the range of safe values to use in JavaScript.

So we decided to use Decimal.js, that is an object which safely allows mathematical operations on numbers of any magnitude.

To make it even easier to use this library, we have extended it by adding some methods. We have called BigDecimal.

Most operations which need to return a value will return a BigDecimal and parameters which accept values will generally accept them.

You can import BigDecimal into your project like this:

import { BigDecimal } from "@humandataincome/ethersfactory";

const newValue = new BigDecimal(0);

We recommend referring to the original decimal.js documentation.

You might also like...

Nami Wallet is a browser based wallet extension to interact with the Cardano blockchain.

Nami Wallet Nami Wallet is a browser based wallet extension to interact with the Cardano blockchain. It's an open-source project and built by Berry Po

Dec 29, 2022

e-ONG, an authorial project, whose objective is to help ONGs to find people who need help or would like to help them

This project was bootstrapped with Create React App. Available Scripts In the project directory, you can run: npm start Runs the app in the developmen

Nov 11, 2022

A concise collection of classes for PHP, Python, JavaScript and Ruby to calculate great circle distance, bearing, and destination from geographic coordinates

GreatCircle A set of three functions, useful in geographical calculations of different sorts. Available for PHP, Python, Javascript and Ruby. Live dem

Sep 30, 2022

Collection of custom elements that appear hand drawn. Great for wireframes or a fun look.

Collection of custom elements that appear hand drawn. Great for wireframes or a fun look.

wired-elements ๐Ÿ‘‰ wiredjs.com Wired Elements is a series of basic UI Elements that have a hand drawn look. These can be used for wireframes, mockups,

Jan 7, 2023

Interplanetary Database: A Database built on top of IPFS and made immutable using Ethereum blockchain.

IPDB IPDB (Interplanetary Database) is a key/value store database built on top of IPFS (Interplanetary File System). Project is intended to be an MVP

Oct 6, 2022

A small and simple stress testing tool for Ethereum-compatible blockchain networks

A small and simple stress testing tool for Ethereum-compatible blockchain networks

Overview pandoras-box is a small transaction stress testing tool, part of any Ethereum client developer's toolkit. It is made for Ethereum-compatible

Aug 30, 2022

Multi-sig wallet for the Ethereum blockchain.

Ethereum Multi-sig Wallet See it live here Prerequisites Follow this guide to create an Ethereum wallet and switch to the Rinkeby Test Network Send yo

Feb 26, 2022

chain-syncer is a module which allows you to synchronize your app with any ethereum-compatible blockchain/contract state. Fast. Realtime. Reliable.

Chain Syncer Chain Syncer is a JS module which allows you to synchronize your app with any ethereum-compatible blockchain/contract state. Fast. Realti

Dec 15, 2022

An Ethereum-compatible blockchain with a giant capacity for storage

goliath The Goliath blockchain is an Ethereum L2 with a giant capacity. For devs, it means you'll never need another chain. No bridges, no new languag

Dec 23, 2022
Releases(v1.5.9)
Owner
HUDI
HUDI is the First De-Fi Data Monetization Ecosystem: Earn Crypto With Your Data
HUDI
A collection of useful tools for building web apps on Cloudflare Workers.

Keywork is a batteries-included, magic-free, library for building web apps on Cloudflare Workers. Features ?? Written in TypeScript ?? Modules Support

Nirrius Studio 28 Dec 22, 2022
๐Ÿฆ Defi Bank is a dapp created for ethereum 101 course of cadena.dev

Welcome to DefiBank ?? Defi Bank is a dapp created for ethereum 101 course of cadena.dev โœจ Demo Install npm install Usage npm run dev Tech NextJS Reac

Alberto Cruz Luis 7 Nov 21, 2022
A Bed and Breakfast dApp run on Ethereum. Includes a token + schedule system (Solidity) and full front-end (React + ethers.js) built with Hardhat.

Hotel ETH - Watch Demo Video Hotel ETH A (fictional) Bed-and-Breakfast run on Ethereum Come Book a Room on Kovan or Rinkeby Networks View the Demo ยป C

Ryan Lambert 20 Aug 20, 2022
Build a Full Stack Marketplace on Ethereum with React, Solidity, Hardhat, and Ethers.js

Building a Digital Marketplace on Ethereum The technologies used in this workshop are React, Next.js, Tailwind CSS, HardHat, Solidity, and Ethers. Get

Nader Dabit 114 Nov 15, 2022
Decentralized twitter using Solidity, Ethereum, hardhat, ethers, IPFS, Next.JS, TypeScript, TailwindCSS.

DWITTER: Decentralized Twitter Check out the deployed version of this app at https://dwtr.wajeshubham.in Transactions on Ethereum are slow. Therefore,

Shubham Waje 12 Sep 2, 2022
Introductory fullstack ethereum dapp using: solidity, hardhat, react.js, ethers.js

Intro to Fullstack Ethereum Development Check out deployed dapp here! (Make sure you're connected to the Rinkeby Testnet) This article will help you e

Christian Chiarulli 77 Dec 21, 2022
Components and tools for building DeFi dapps on Solana + Anchor. Public domain license.

Solana DeFi Framework Components and tools for building DeFi dapps on Solana + Anchor. Public domain license. Status Pre-pre-pre-alpha. Contributing A

null 4 Mar 28, 2022
AWS Lambda & Serverless - Developer Guide with Hands-on Labs. Develop thousands line of aws lambda functions interact to aws serverless services with real-world hands-on labs

AWS Lambda & Serverless - Developer Guide with Hands-on Labs UDEMY COURSE WITH DISCOUNTED - Step by Step Development of this Repository -> https://www

awsrun 35 Dec 17, 2022
Quickly develop, deploy and test Solana programs from the browser.

Solana Playground SolPg allows you to quickly develop, deploy and test Solana programs(smart contracts) from the browser. Note SolPg is still in beta

solana-playground 176 Dec 29, 2022
This is a development platform to quickly generate, develop & deploy smart contract based applications on StarkNet.

generator-starknet This is a development platform to quickly generate, develop, & deploy smart contract based apps on StarkNet. Installation First, in

Only Dust 34 Nov 18, 2022