Arbitrum.py

Latest version: v0.1.0

Safety actively analyzes 688775 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 5

3.3.2

What's Changed
* Added support for Holesky L1 (brtkx in https://github.com/OffchainLabs/arbitrum-sdk/pull/434)


**Full Changelog**: https://github.com/OffchainLabs/arbitrum-sdk/compare/v3.3.1...v3.3.2

3.3.1

What's Changed
* Dropped support for Goerli and Arbitrum Goerli (brtkx in https://github.com/OffchainLabs/arbitrum-sdk/pull/428)


**Full Changelog**: https://github.com/OffchainLabs/arbitrum-sdk/compare/v3.3.0...v3.3.1

3.3.0

What's Changed

Custom Gas Token Support

This release adds custom gas token support. Added by spsjvc, douglance and godzillaba in https://github.com/OffchainLabs/arbitrum-sdk/pull/310.

L2Network

* Added a new property `nativeToken?: string`
* In case of a chain that uses ETH as its gas token, this is either `undefined` or the zero address
* In case of a chain that uses a custom gas token, this is the address of said token on the parent chain

Asset Bridger

* Added a new property `nativeToken?: string` which is read from the `L2Network` object

EthBridger

* Added `getApproveGasTokenRequest` and `approveGasToken` for approving the gas token to be spent by the Inbox

Erc20Bridger

* Added `getApproveGasTokenRequest` and `approveGasToken` for approving the gas token to be spent by the relevant Gateway

The only extra thing you have to do for custom gas token chains is to make sure to call `approveGasToken` before executing a deposit, so that the Inbox (in case of a native token deposit) or the relevant Gateway (in case of a token deposit) have allowance to spend your tokens in order to pay for fees. The rest of your code can stay the same, as everything else will be handled internally by the SDK.

Erc20Bridger

* Updated to call `outboundTransferCustomRefund` when using a different refund address (brtkx in https://github.com/OffchainLabs/arbitrum-sdk/pull/285)



**Full Changelog**: https://github.com/OffchainLabs/arbitrum-sdk/compare/v3.2.0...v3.3.0

3.2.0

What's Changed

This release introduces support for L3s, along with a couple other useful features and improvements. 🎉

L3 Support

Added by brtkx, douglance and spsjvc in https://github.com/OffchainLabs/arbitrum-sdk/pull/379.

AssetBridger, InboxTools

* Updated type of `l1Network` property from `L1Network` to `L1Network | L2Network`, as the referenced parent chain can be an `L2Network` in case of an L3

Constants

* Added `ARB_MINIMUM_BLOCK_TIME_IN_SECONDS` which represents the minimum block time for an Arbitrum chain

L2Network

* Added `blockTime: number` to make more consistent with `L1Network`
* Represents the minimum block time for the chain
* When registering a custom Arbitrum chain, use the `ARB_MINIMUM_BLOCK_TIME_IN_SECONDS` constant
* Added `partnerChainIDs: number[]` to make more consistent with `L1Network`
* Represents the ids of the children chains (chains that settle to this chain)
* When registering a custom L3 Arbitrum chain, you can leave this empty
* When registering a custom L2 Arbitrum chain, you can leave this empty, unless there's a custom L3 that settles to this chain

Registering a custom L3 works the same way as registering a custom L2:


const myL3Network: L2Network = { ... }
addCustomNetwork({ customL2Network: myL3Network })


L2ToL1Message

* Updated `waitUntilReadyToExecute` to return status instead of `void` (DZGoldman in https://github.com/OffchainLabs/arbitrum-sdk/pull/381, https://github.com/OffchainLabs/arbitrum-sdk/pull/386)
* Updated `getOutboxProof` to use `NodeInterface.l2BlockRangeForL1` if available (brtkx in https://github.com/OffchainLabs/arbitrum-sdk/pull/404)
* Should make looking up proofs significantly faster

Misc
* Added support for Node.js v20 (douglance in https://github.com/OffchainLabs/arbitrum-sdk/pull/370)
* Fixed issue with token bridge deployment script (ImJeremyHe in https://github.com/OffchainLabs/arbitrum-sdk/pull/374)
* Updated network addresses to checksum addresses (Jason-W123 in https://github.com/OffchainLabs/arbitrum-sdk/pull/382)
* Updated docs for running the Nitro testnode (dewanshparashar in https://github.com/OffchainLabs/arbitrum-sdk/pull/383)

New Contributors
* ImJeremyHe made their first contribution in https://github.com/OffchainLabs/arbitrum-sdk/pull/374
* Jason-W123 made their first contribution in https://github.com/OffchainLabs/arbitrum-sdk/pull/382

**Full Changelog**: https://github.com/OffchainLabs/arbitrum-sdk/compare/v3.1.13...v3.2.0

3.1.12

What's Changed

L2ToL1MessageNitro
* Cache values returned from `getBlockRangesForL1Block` by brtkx in https://github.com/OffchainLabs/arbitrum-sdk/pull/343

Misc
* Bump `chai` version to fix a [security vulnerability](https://github.com/advisories/GHSA-4q6p-r6v2-jvc5) by douglance in https://github.com/OffchainLabs/arbitrum-sdk/pull/354

New Contributors
* douglance made their first contribution in https://github.com/OffchainLabs/arbitrum-sdk/pull/354

**Full Changelog**: https://github.com/OffchainLabs/arbitrum-sdk/compare/v3.1.11...v3.1.12

3.1.11

What's Changed

Misc
* Exported `ArbitrumProvider` by DZGoldman in https://github.com/OffchainLabs/arbitrum-sdk/pull/333

**Full Changelog**: https://github.com/OffchainLabs/arbitrum-sdk/compare/v3.1.10...v3.1.11

Page 2 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.