Socket
Socket
Sign inDemoInstall

@scroll-tech/contracts

Package Overview
Dependencies
0
Maintainers
2
Versions
11
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    @scroll-tech/contracts

A library for interacting with Scroll contracts.


Version published
Weekly downloads
2K
increased by5.16%
Maintainers
2
Install size
193 kB
Created
Weekly downloads
 

Readme

Source

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.

Keywords

FAQs

Last updated on 04 Aug 2023

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc