Releases: renproject/ren-js
Release v3.6.0
What's Changed
Full Changelog: v3.5.2...v3.6.0
Release v3.5.2
Changelog:
- Kovan config has been removed because RenVM can no longer process Kovan mints/burns. This makes it easier for integrators to support Goerli.
- The static fields
Ethereum.assets,Bitcoin.assets, etc. should now be accessed asClass.assets[network].ASSETinstead ofClass.assets.ASSET(e.g.Ethereum.assets[RenNetwork.Mainnet].ETH). - Ethereum payloads can now be provided the option
detectPreviousDepositsto detect previous ETH, BNB, arbETH, etc. deposits to the generated gateway. e.g.ethereum.Account({ detectPreviousDeposits: true }).
See #219
Release v3.5.1
Changelog:
- Fix MockProvider to support underscores in selector
- Make Ethereum provider parameter optional, defaulting to RPC URL from config
Release v3.5.0
Changelog:
- The
testnetparameter for Ethereum has been renamed todefaultTestnetand 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
Improve Görli support
- A
testnetparameter 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 areGoerliandKovan. The option will be ignored on mainnet. - Four new Görli assets have been added, which can either be referenced by
Goerli.assets.DAIorEthereum.assets.DAI_Goerli. The new assets areREN_Goerli,DAI_Goerli,USDC_GoerliandUSDT_Goerli.
Release v3.4.0
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
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
Changes that were marked deprecated in v3.1.0 or earlier have now been removed:
txidFormattedhas been renamed totxHash- Function and variable names that included
Evmhave been renamed to useEVM chain.txidToTxidFormattedshould be replaced withutils.toURLBase64(chain.txHashToBytes(txHash))chain.txidFormattedToTxidshould be replaced withchain.txHashFromBytes(utils.fromBase64(txid))- For EVM chains,
chain.network.networkis nowchain.network.config
Release v3.1.0
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,.getBalanceand.assetDecimals. A new method.splDecimalshas been added to fetch the SPL token's decimals, will should be equal toMath.min(assetDecimals, 9). ChainTransactionhas been extended with the fieldexplorerLinkwith a URL pointing to the transaction's explorer page.ChainTransaction'stxidFormattedfield is still deprecated in favour oftxHash.- 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
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.