Releases: renproject/ren-js
Release v3.0.0-alpha.6
This is includes some breaking changes from v3.0.0-alpha.4, including:
- Chain classes (Bitcoin, Ethereum, etc.) parameters should be passed in as an object instead of individually, to avoid confusion with how providers and signers are passed in:
Bitcoin(network) ---> Bitcoin({network})
Ethereum(network, {signer, provider}) ---> Ethereum({network, signer, provider})
-
The status field on gateway transactions has been removed in favor of checking the statuses of each transaction directly. Switching on
tx.status
should now instead checktx.in.status
,tx.renVM.status
andtx.out.status
. This change is to push the concept that a gateway transaction is just a bundle of chain transactions (including the RenVM transaction), and because the number of states needing to be enumerated grew too large. -
The
status
field and event name onTxWaiter
andTxSubmitter
has been renamed toprogress
, to avoid confusion between the state of the transaction and its status enum. -
The fee object returns from
gateway.fees
orrenJS.getFees
now includes a singlevariableFee
field that replaces themint
andburn
fields, and a singlefixedFee
that replaces thelock
andrelease
fields.
Release v2.5.11
- The polygon RPC has been updated to https://polygon-rpc.com/
- A bug in BCH address validation has been fixed
Release v2.5.10
v2.5.6
v2.5.5
v2.5.4
v2.5.2
v2.5.1
v2.5.0
Changelog:
- Initial Arbitrum support
- Goerli support
- Replace Web3 with Ethers.js
- Add MockProvider for testing contracts locally
The Ethereum class can now be initialized with a standard Web3 provider, or by providing an ethers provider as { provider, signer }
.
Note - methods that previously returned Web3 promievents still return promievents, but the supported events are now "transactionHash"
and "confirmation"
- the latter returning the number of confirmations and the target confirmations, rather than a receipt.