Git Product home page Git Product logo

thananjaje / account-abstraction-boilerplate Goto Github PK

View Code? Open in Web Editor NEW

This project forked from transeptorlabs/account-abstraction-boilerplate

0.0 0.0 0.0 1.39 MB

This repository contains a sample project that you can use as the starting point for your Account Abstraction Ethereum project. It's also a great fit for learning the basics of smart contract development.

License: MIT License

JavaScript 78.31% Solidity 21.69%

account-abstraction-boilerplate's Introduction

Account Abstraction Boilerplate

This repository contains a sample project that you can use as the starting point for your Account Abstraction Ethereum project. It's also a great fit for learning the basics of smart contract development.

Start local node

The first things you need to do are cloning this repository and installing its dependencies:

git clone https://github.com/transeptorlabs/account-abstraction-boilerplate.git
cd account-abstraction-boilerplate
npm install

Once installed, let's run an ETH client on your local network:

npm run node

Next, on a new terminal, go to the repository's root folder and run this to deploy Account Abstraction and your contract:

npm run deploy:all

Next, we can use use .env.sample to create .env file with your MNEMONIC and BENEFICIARY.

  • MNEMONIC: and is set to the default seend phrase of hardhat accounts. The first account of the hardhat accounts is used as the bundler signer.
  • BENEFICIARY: is set to the second account of the hardhat accounts.

Then, we can fund the bundler signer account with some ETH:

npm run fund 0xf39Fd6e51aad88F6F4ce6aB8827279cffFb92266

Finally, we can run the ERC-4337 Bundler(Transeptor)

npm run bundler

The Bundler will start running on http://localhost:3000/rpc.

Smart Contract Development

The boilerplate comes with a sample smart contract called Token.sol in the contracts folder. This contract is already connected to the scripts/deploy.js script so it gets deployed when you run npm run deploy:all.

You can use this contract as a starting point for your own development.

Testing

npm run test

Compiling contracts

npm run compile

Deploying to a local node

npm run deploy

or

npm run depoly:all

Happy building!

account-abstraction-boilerplate's People

Contributors

v00d00-child avatar

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.