Coder Social home page Coder Social logo

berachain / guides Goto Github PK

View Code? Open in Web Editor NEW
42.0 3.0 38.0 21.65 MB

A demonstration of different contracts, languages, and libraries that work with Berachain EVM.

JavaScript 29.88% Solidity 59.06% TypeScript 2.99% Makefile 0.06% Nix 0.01% Ruby 7.22% Python 0.19% Shell 0.24% Handlebars 0.01% CSS 0.26% HTML 0.08%

guides's Introduction

Berachain Guides

A collection of Berachain EVM examples: code, frameworks, languages, contracts, and more.

Requirements

  • NVM or Node v18.18.2+
  • pnpm (recommended)

Turborepo Folder Structure

This Turborepo includes the following packages/apps:

Apps

  • apps/ethers6-solc-helloworld - Deploy HelloWorld contract with ethers6
  • apps/viem-solc-helloworld - Deploy HelloWorld contract with viem
  • apps/foundry-erc20 - Deploy ERC20 contract with foundry
  • apps/hardhat-ethers6-erc1155 - Deploy ERC1155 contract with hardhat ethers6
  • apps/hardhat-viem-helloworld - Deploy HelloWorld contract with hardhat viem
  • apps/walletconnect-nextjs - WalletConnect Web3Modal frontend contract deployment

Quick Start

Install dependencies for all apps and packages.

# FROM: ./

pnpm install;

Create and modify your .env and make the modifications you need to it.

cp .env.example .env;

If you'd like to deploy to the chain:

# FROM: ./

# IMPORTANT: --no-cache is important to avoid caching the result of the deployments
pnpm deploy:berachain --filter foundry-erc20 --no-cache;

guides's People

Contributors

codingwithmanny avatar larrythecucumber321 avatar dethebera avatar omahs avatar dependabot[bot] avatar chasers12 avatar

Stargazers

Bernardo avatar Brother Chun avatar Gio de Nes avatar wade avatar Masa777 avatar  avatar  avatar  avatar  avatar DK avatar Pink Bear avatar  avatar bageltoes avatar  avatar zk.pub avatar  avatar TABASCO avatar IKIGAI LABS XYZ avatar ODOMAR FERREIRA DA TRINDADE avatar jeetu779 avatar since2006 avatar S.Hergun avatar adel avatar  avatar 0xgradient avatar Samiparsa avatar  avatar  avatar sam trader avatar  avatar PDPyte avatar 0xrinegade avatar BOHDAN avatar  avatar septa avatar  avatar atlalvani avatar ownerlesswhisper avatar  avatar Javed Khan avatar BlindsquirrelX avatar NASUS avatar

Watchers

Bernardo avatar  avatar jeetu779 avatar

guides's Issues

The MIM/Honey

How to Mint MIM on Abracadabra, without using real collateral -

  • Try to add single side HONEY in the Honey/MIM pool in the Berachain BEX, then you potentially can mint MIM, see IMGs

Issues and discrepancies, might occur. From indicated RPC-failure where it doesn't create an LP and indicated failure where it does create an LP. BEX historical transactions may not update despite registering provided liquidity and value. However during the test $14 of HONEY/MIM on BEX was the equivalent of 0.008 LP < $0.01 in Abracadabra.

Meaning when it registered the LP on the Berachain BEX, less than 1 MIM was able to be minted and borrowed. Approving the token went fine.
But when attempting to go through with Mint & Borrow afterwards - Red pop-ups overriding the yellow middle-step tab, started appearing suggesting that the user rejected the transaction. It took around 20x attempts before it finally accepted the transaction attempt and allowed the yellow menu before initiating the Metamask window, and displaying the approval of 3rd party and the gas for the attempted tx thereafter to be paid after which MIM was minted..

Point being even if it indicates failure 20 times in the minting stage as of now, it can suddenly function if trying again.. #Mint #MIM #Abracadabraimage

Berachain docs, Spelling error

https://docs.berachain.com/learn/#berachain-evm

Berachain is an EVM-compatible L1 blockchain built on-top of the Cosmos-SDK that supports all the same tooling, operations, and adds additional functionality built into the chain that optimizes for proof-of-“liquity” and typical abstracted use-cases (DEXs, Oracles, etc).

Should be liquidity and not liquity

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.