3.2.3 • Published 8 months ago

@nahmii/sdk v3.2.3

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

@nahmii/sdk

The @nahmii/sdk package provides a set of tools for interacting with Nahmii 3.

Installation

npm install @nahmii/sdk

Using the SDK

CrossChainMessenger

The CrossChainMessenger class simplifies the process of moving assets and data between Ethereum and Optimism. You can use this class to, for example, initiate a bridge operation of ERC20 tokens from Nahmii back to the base layer, accurately track when the bridge operation is ready to be finalized on base layer, and execute the finalization transaction after the challenge period has elapsed. The CrossChainMessenger can handle bridge operations in either direction of ETH and any ERC20 or ERC721 compatible token.

The CrossChainMessenger automatically connects to all relevant contracts so complex configuration is not necessary.

L2Provider and related utilities

The Nahmii SDK includes various utilities for handling Nahmii's transaction fee model!--](https://community.optimism.io/docs/developers/build/transaction-fees/)--. For instance, estimateTotalGasCost!--](https://sdk.optimism.io/modules.html#estimateTotalGasCost)-- will estimate the total cost (in wei) to send at transaction on Nahmii including both the L2 execution cost and the L1 data cost. You can also use the asL2Provider!--](https://sdk.optimism.io/modules.html#asL2Provider)-- function to wrap an ethers Provider object into an L2Provider which will have all of these helper functions attached.

3.2.2

9 months ago

3.2.3

8 months ago

3.2.1

11 months ago

3.2.0

11 months ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago