Skip to content

Releases: renproject/ren-js

v2.1.5 - DigiByte support

03 Mar 06:21
8ed109d
Compare
Choose a tag to compare

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

03 Mar 06:25
59ef986
Compare
Choose a tag to compare

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

18 Dec 03:04
a5357cd
Compare
Choose a tag to compare

Release v2.0.2 adds the method transactionFromID to the chain interface to enable calling processDeposit without needing to know the chain-specific transaction interfaces.

v2.0.1

18 Dec 03:02
09e2ccb
Compare
Choose a tag to compare

Release v2.0.1 updates the BitcoinCash API used in order to fix BCH support.

Added support for Struct parameters

09 Sep 11:59
14cbf63
Compare
Choose a tag to compare

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

20 Aug 11:11
3f9b82a
Compare
Choose a tag to compare

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

23 Jun 23:27
364f3ce
Compare
Choose a tag to compare

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

28 May 22:26
f6d7434
Compare
Choose a tag to compare

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 🎆

28 May 22:23
0c634cb
Compare
Choose a tag to compare

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

24 Mar 07:51
bbf4cc8
Compare
Choose a tag to compare

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 and recoverShift instead of just open.
  • @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.