Giter Site home page Giter Site logo

plena-task's Introduction

Task 1:

Transfer the Testnet BNB available in the contract below to your BSC address.

Contract Address: 0xE3A479c9C8352Aff75750944056afa0ecA1840cC

Contract Code:

pragma solidity 0.8.0;

contract Test{
  function transferFunds(address _address, bytes calldata _payload) external{
    (bool status,) = _address.delegatecall(_payload);
    require(status, "Forwarded call failed.");
  }
}

Task 2:

Script in JS to execute a transaction using Metamask which interacts with Aave’s smart contract and deposits ERC20 token to the Aave’s smart contract by calling the deposit/supply method.

Get Started

  1. Clone the repository
git clone https://github.com/b9aurav/plena-task.git
cd plena-task
  1. Install required packages
npm install
  1. Execute task 1
// Enter your account address in .env file before execution
node task1.js
  1. Execute task 2
// Enter required details in task2.js file before execution
node task2.js

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.