Skip to content

v0.21.2

Compare
Choose a tag to compare
@spsjvc spsjvc released this 05 Nov 23:59
· 6 commits to main since this release
729facd

What's Changed

Support for non-18 decimal custom gas tokens

This release adds support for non-18 decimal custom gas tokens. Added by @chrstph-dvx and @spsjvc in #216 and #219.

The necessary scaling is done in the background for you. However, if you need to do any scaling yourself (e.g. for approvals), we've provided the following utilities - scaleFrom18DecimalsToNativeTokenDecimals and scaleFromNativeTokenDecimalsTo18Decimals.

This release also bumps the version of @arbitrum/sdk to v4.0.2.

Other

  • Added prepareArbitrumNetwork for easier compatibility with @arbitrum/sdk (@chrstph-dvx in #221)
  • Exported several retryable fee utils (@spsjvc in #220):
    • createRollupGetRetryablesFees
    • createRollupGetRetryablesFeesWithDefaults
    • createRollupDefaultRetryablesFees
    • createTokenBridgeDefaultRetryablesFees
  • Exported several ERC-20 utils (@spsjvc in #224):
    • fetchAllowance
    • fetchDecimals

Full Changelog: v0.21.1...v0.21.2