0.1.0 • Published 9 months ago

@scroll-tech/contracts v0.1.0

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

A library for interacting with Scroll contracts.

This library includes contracts and interfaces needed to interact with the Scroll Smart Contracts deployed on both Layer 1 and Layer 2. This includes deposting and withdrawing ETH, ERC20 tokens and NFTs or sending arbitrary messages.

Overview

Instalation

npm install @scroll-tech/contracts

Usage

Once installed, you can use the contracts in the library by importing them:

// SPDX-License-Identifier: MIT
pragma solidity 0.8.20;

import "@scroll-tech/contracts/L1/gateways/IL1ETHGateway.sol";

contract MyContract {
    function bridgeETH(address scrollBridge, uint gasLimit) public payable {
      IL1ETHGateway(scrollBridge).depositETH(msg.sender, msg.value, gasLimit);
    }
}

Visit the Bridge Documentation for API reference, architecture overview and guides with code examples.

About Scroll

Scroll is a bytecode equivalent zkEVM for Ethereum. It enables native compatibility for existing Ethereum applications and tools. Learn more about Scroll here.

0.0.10

10 months ago

0.1.0

9 months ago

0.0.9

10 months ago

0.0.8

10 months ago

0.0.5

10 months ago

0.0.4

10 months ago

0.0.7

10 months ago

0.0.6

10 months ago

0.0.3

12 months ago

0.0.2

12 months ago

0.0.1

12 months ago