Skip to content

Releases: renproject/ren-js

Release v3.6.0

02 Nov 04:21
Compare
Choose a tag to compare

What's Changed

  • Migrate Optimism and Arbitrum testnets to Goerli by @jazg in #233

Full Changelog: v3.5.2...v3.6.0

Release v3.5.2

28 Oct 04:39
30f9648
Compare
Choose a tag to compare

Changelog:

  1. Kovan config has been removed because RenVM can no longer process Kovan mints/burns. This makes it easier for integrators to support Goerli.
  2. The static fields Ethereum.assets, Bitcoin.assets, etc. should now be accessed as Class.assets[network].ASSET instead of Class.assets.ASSET (e.g. Ethereum.assets[RenNetwork.Mainnet].ETH).
  3. Ethereum payloads can now be provided the option detectPreviousDeposits to detect previous ETH, BNB, arbETH, etc. deposits to the generated gateway. e.g. ethereum.Account({ detectPreviousDeposits: true }).

See #219

Release v3.5.1

18 Oct 06:59
72de07b
Compare
Choose a tag to compare

Changelog:

  • Fix MockProvider to support underscores in selector
  • Make Ethereum provider parameter optional, defaulting to RPC URL from config

Release v3.5.0

07 Oct 11:14
80b0e0b
Compare
Choose a tag to compare

Changelog:

  • The testnet parameter for Ethereum has been renamed to defaultTestnet and is no longer optional, to make it more explicit that developers should migrate from Kovan to Görli.
    Example: new Ethereum({ network: RenNetwork.Testnet, defaultTestnet: "goerli", provider: ... }). Currently supported values are "goerli" and "kovan". The option will be ignored on mainnet.
  • Moonbeam mainnet config has been added

Release v3.4.5

24 Sep 01:40
047c3e0
Compare
Choose a tag to compare

Improve Görli support

  • A testnet parameter can be passed to the Ethereum class constructor to configure which testnet to use, avoiding needing to switch between the Ethereum and the Goerli classes. e.g.: new Ethereum({ network: RenNetwork.Testnet, testnet: "Goerli", provider: ... }). Currently supported are Goerli and Kovan. The option will be ignored on mainnet.
  • Four new Görli assets have been added, which can either be referenced by Goerli.assets.DAI or Ethereum.assets.DAI_Goerli. The new assets are REN_Goerli, DAI_Goerli, USDC_Goerli and USDT_Goerli.

Release v3.4.0

05 Jul 04:17
Compare
Choose a tag to compare

Optimism Support

Optimism has been enabled on RenVM mainnet and support has been added in RenJS v3.4.0. Assets can now be bridged to Optimism, and Optimism ETH can be bridged to other host-chains.

import { Optimism} from "@renproject/chains-ethereum";
const optimism = new Optimism({ network: "mainnet", provider: ... })

Release v3.3.0

01 Jul 04:10
Compare
Choose a tag to compare

Testnet chains

The configs for Moonbeam Testnet and Optimism Testnet have been added.

Deep importing

Deep importing no longer requires /build/main in import paths

Imports such as

import { JsonRpcProvider } from "@renproject/provider/build/main/rpc/jsonRpc";

should be updated to

import { JsonRpcProvider } from "@renproject/provider/rpc/jsonRpc";

Release v3.2.0

01 Jul 04:10
e106c63
Compare
Choose a tag to compare

Changes that were marked deprecated in v3.1.0 or earlier have now been removed:

  • txidFormatted has been renamed to txHash
  • Function and variable names that included Evm have been renamed to use EVM
  • chain.txidToTxidFormatted should be replaced with utils.toURLBase64(chain.txHashToBytes(txHash))
  • chain.txidFormattedToTxid should be replaced with chain.txHashFromBytes(utils.fromBase64(txid))
  • For EVM chains, chain.network.network is now chain.network.config

Release v3.1.0

31 May 13:17
d9aa22f
Compare
Choose a tag to compare

BREAKING CHANGE - Solana.Account now treats amounts as being in the asset's native decimals rather than Solana's truncated decimals.

Changelog:

  • Solana's amounts now use the asset's native decimals - this affects all methods including .Account, .getBalance and .assetDecimals. A new method .splDecimals has been added to fetch the SPL token's decimals, will should be equal to Math.min(assetDecimals, 9).
  • ChainTransaction has been extended with the field explorerLink with a URL pointing to the transaction's explorer page. ChainTransaction's txidFormatted field is still deprecated in favour of txHash.
  • RenJS now checks the RenVM selector whitelist to prevent new gateways being created for asset/chain pairs that have been paused in RenVM.

Release v2.5.12

28 Feb 04:16
6e56683
Compare
Choose a tag to compare

This v2 maintenance release updates the randomNonce function to generate 24-bit nonces instead of 256-bit. A back-up endpoint has been added for submitting gateway details.