npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

blast-l2-kit

v0.3.1

Published

Starter kit for building smart contracts on Blast L2. Includes Blast interfaces and example code.

Downloads

5

Readme

Blast L2 Kit

npm

In an effort to bring more standardization and clarity to deploying on Blast L2, we've created this kit to help developers. Import directly into your project to use the Blast interfaces, or reference as a model for your own library. Includes interface for talking to Blast contracts and to configure points operator.

Installation

To install with Hardhat:

npm install blast-l2-kit

Contracts

The Solidity interfaces are located in the src directory.

src
├─ IBlast — "Interface for Blast yield contract"
├─ IBlastPoints — "Interface for Blast points operator"
├─ IERC20Rebasing — "Interface to change claim yield for ERC20 tokens (WETH & USDB)"
├─ IWETHRebasing — "Interface for converting WETH <-> ETH"
└─ examples/
   ├─ StandardAutomaticYield — "Setup for a contract with automatic yield"
   ├─ StandardClaimableYield — "Setup for a contract with claimable yield"
   ├─ UpgradeableAutomaticYield - "Setup for an upgradeable contract with automatic yield"
   ├─ ChangeYieldWethAndUsdb - "Example function for changing claim yield on WETH and USDB"
   └─ WETHRebasing - "Example on how to convert WETH <-> ETH"

Points Scripts

Within this repo is also a collection of scripts to check and distribute Blast Points. Reference the README there for more details.

Blast Addresses

MAINNET

| TYPE | ADDRESS | | -------- | -------- | | Blast Yield | 0x4300000000000000000000000000000000000002 | | Blast Points | 0x2536FE9ab3F511540F2f9e2eC2A805005C3Dd800 | | WETH | 0x4300000000000000000000000000000000000004 | | USDB | 0x4300000000000000000000000000000000000003 |

TESTNET

| TYPE | ADDRESS | | -------- | -------- | | Blast Yield | 0x4300000000000000000000000000000000000002 | | Blast Points | 0x2fc95838c71e76ec69ff817983BFf17c710F34E0 | | WETH | 0x4200000000000000000000000000000000000023 | | USDB | 0x4200000000000000000000000000000000000022 |

Read More

Contributing

Feel free to make a pull request. Some things that could be added:

  • [ ] foundry support
  • [ ] tests
  • [ ] deploy scripts for examples
  • [ ] add CI/CD for releases
  • [x] example on how to convert WETH -> ETH (thank you osain-az)

Please follow Conventional Commits standard.

Liability

This is provided on an "as is" and "as available" basis.

We do not give any warranties and will not be liable for any loss incurred through any use of this codebase.

Code is made available under the MIT License, which disclaims all warranties in relation to the project and which limits the liability of those that contribute and maintain the project, including New Blast City.