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

@rabbitholegg/questdk-plugin-arbitrum

v1.0.0-alpha.17

Published

This plugin allows for the decoding of Arbitrum transactions by way of action spec.

Downloads

28

Readme

Arbitrum Plugin

This plugin allows for the decoding of Arbitrum transactions by way of action spec.

Important Considerations

  • Ethereum must be either sourceChain, or destinationChain, otherwise the quest will not be passable. It is not possible to bridge between Arbitrum Nova and Arbitrum One.
  • Only tokens which are compatible with all three chains were added. USDT was considered, but there is issues with bridging USDT to Arbitrum Nova
  • If tokenAddress is set to any, then amount will also be set to any, regardless of what is input.

General Overview

Arbitrum's native token bridge is a general messaging bridge allowing for transfer of ETH, and any token.

They support exchange to/from mainnet to their two main networks (One, and Nova).

Arbitrum uses different paths for ETH vs Tokens, and relies on precompiles when routing the base network currency (AEth) from L2 to L1.

For a given bridge action we generally have 4 types of transactions we want to ensure we're parsing:

  1. ETH from L1 to L2
  2. Tokens from L1 to L2
  3. ETH from L2 to L1
  4. Tokens from L2 to L1

In some cases there won't be a difference between L1/L2 leading to two types of transactions to parse, but in general this enumerates the upper bound of transactions a bridge action should be responsible for parsing. It's also possible for different tokens to route differently, this would be the case with Arbitrum if they didn't pipe transactions through their router first.

Specific Examples

Token Transfers from L1 get routed through the L1 Gateway Router

This is an example of an Outbound Transfer from the L1 Gateway Router

This is the function call on the L1GatewayRouter.sol contract.

Token transfers from L2 get routed through the L2 Gateway Router

This is an example of an outbound transaction from the L2

ETH transfer from L1 get routed through the Delayed Inbox using the Deposit ETH function

ETH transfers from the L2 use the ArbSys contract using the Withdraw ETH function

This is an example of an ETH withdrawl through the ArbSys contract