Git Product home page Git Product logo

one-click's Introduction

one-click

TransakMulticallExecuter

The contract to call multiple external contracts in one transaction. This Contract uses TransparentUpgradeableProxy.

Functions

initialize

    function initialize(address _owner) public initializer

This function is called to initialize the contract

multiCall

function multiCall(
         calldata targets,
        bytes[] calldata data
    ) external onlyOwner nonReentrant returns (bytes[] memory)

Batchs multiple transactions in one transaction.

Parameters

First Header Type Second Header
targets address[] Array of address of Smartcontracts
data bytes[] Array of call data to be executed on the smartcontract

onERC721Received

function onERC721Received(
        address,
        address,
        uint256,
        bytes calldata
    ) external pure returns (bytes4)

ERC721 callback function to receive NFTs.

When using the safeTransferFrom function to send ERC721 tokens to a contract address, it will fail unless the receiving contract properly implements the ERC721TokenReceiver interface. (See the ERC721 Standard for details).

the onERC721Received function and will return bytes4(keccak256("onERC721Received(address,uint256,bytes)")).

Events

   event MulticallExecuted(address[] targets, bytes[] data);

emits an event with params when the multiCall function is executed.

Errors

    error CallFailed(address _target, bytes _data);

Error thrown when the call to the external contract fails.

Local Development

Install Dependencies

yarn

Compile Contracts

yarn compile

Flatten Contract

yarn flatten

Deploy Contracts

yarn deploy

Deployed Contract Address

Network Address Links
Goerli 0xe4E30Bcb733cE466a768E924FF0E458118A2555C https://goerli.etherscan.io/address/0x53F9a8F282ee39169CDB0851aA768c35A72Fe0e9
ImmutableZKEvm-testnet 0x92B676D4cAF95C07e33866d6e8CB40e65177f88A https://explorer.testnet.immutable.com/address/0x92B676D4cAF95C07e33866d6e8CB40e65177f88A
Polygon-mumbai 0x08217aa0394c637013f0b4fbc3a29e44c67062e7 https://mumbai.polygonscan.com/address/0x08217aa0394c637013f0b4fbc3a29e44c67062e7
Bsc-testnet 0x0E9539455944BE8a307bc43B0a046613a1aD6732 https://testnet.bscscan.com/address/0x0E9539455944BE8a307bc43B0a046613a1aD6732
Arbitrum-goerli 0x0E9539455944BE8a307bc43B0a046613a1aD6732 https://goerli.arbiscan.io/address/0x0E9539455944BE8a307bc43B0a046613a1aD6732
Optimism-goerli 0x0E9539455944BE8a307bc43B0a046613a1aD6732 https://goerli-optimism.etherscan.io/address/0x0e9539455944be8a307bc43b0a046613a1ad6732

one-click's People

Contributors

kutsav avatar shivamangina avatar thakursachin467 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  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.