Releases: renproject/ren-js
v2.1.5 - DigiByte support
RenJS v2.1.5 includes support for minting DGB to Ethereum and BSC.
It also includes fixes to transaction restoration in RenTX, and wallet connection handling fixes in Multiwallet.
v2.1.4 - LUNA updates
RenJS v2.1.4 brings LUNA support up to date with changes in the darknodes that remove requiring MEMO fields when minting.
v2.0.2
v2.0.1
Added support for Struct parameters
Struct parameters can be passed in using the following syntax:
const mint = renJS.lockAndMint({
sendToken: RenJS.Tokens.BTC.Btc2Eth,
suggestedAmount: RenJS.utils.value(amount, "btc").sats().toString(),
sendTo: "0xa79EBB362e7BBB24A6dED614C53bf78E6e0a5e1d",
contractFn: "deposit",
contractParams: [
{
name: "_msg",
type: "tuple(uint256,string)",
value: [1, "Hello world!"],
},
],
web3Provider: web3.currentProvider,
});
where the struct was defined as
struct Message {
uint256 version;
string msg;
}
Additionally, some type issues have been resolved, so esModuleInterop
no longer needs to be enabled to import RenJS.
v1.0.8 - Set Gateway ID manually
This is a small patch that allows the ID of a Gateway instance to be provided manually as the last parameter of any Gateway initialization method.
v1.0.5 - Monitor for replaced Ethereum transactions
In this release, RenJS and GatewayJS monitor for Ethereum transactions that have been sped up. Note that currently, they'll still return the old transaction hash in the returned values.
v1.0.1 - `transferUpdated` event in GatewayJS
GatewayJS now emits a transferUpdated
event to allow integrators to use their own persistent storage and get notified when transfers should be updated.
Usage:
const result = await gatewayJS.lockAndMint(shiftInParams).result()
.on("status", (status) => { console.debug(`[GOT STATUS] ${status}`); })
.on("transferUpdated", (transfer) => {
console.group(`[GOT TRANSFER]`);
console.debug(transfer);
console.groupEnd();
});
v1.0.0 - Mainnet Release 🎆
Use RenJS and GatewayJS can now be used on mainnet:
const renJS = new RenJS();
const gatewayJS = new GatewayJS();
See the Getting Started Tutorial to start using RenJS.
v0.9.0
With the version 0.9.0, the RenJS and GatewayJS repositories have been merged into a monorepo. The two packages will have the same version from now on.
Changes in v0.9.0:
@renproject/gateway-js
has been renamed to@renproject/gateway
.- GatewayJS now exposes
shiftIn
,shiftOut
andrecoverShift
instead of justopen
. @renproject/interfaces
,@renproject/chains
,@renproject/provider
,@renproject/rpc
and@renproject/utils
can now be imported seperately to access internal RenJS functions.- RenJS now accepts an optional second parameter,
provider
, for providing a custom JSON RPC handler. Improved support for this will be added in the next release.