@ripe-finance/sdk 0.1.1 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -37,6 +37,7 @@ const TESTNET_ADDRESSES = {
37
37
  Lootbox: '0xeD34B590BA499a773b25DDA22e79FFeEB15bdFF4',
38
38
  Teller: '0x8Fb1C942aD0a69dBA2F172E9adaB605e652EC9D9',
39
39
  GreenPool: '0x3f6ACfa20824D71AA4aFd2e0fEd22ffBc456B0bA',
40
+ RipePool: '0x0000000000000000000000000000000000000000',
40
41
  BondBooster: '0x0000000000000000000000000000000000000000',
41
42
  };
42
43
  class Ripe {
@@ -298,6 +299,13 @@ class Ripe {
298
299
  deployAddress,
299
300
  };
300
301
  }
302
+ get RipePool() {
303
+ const deployAddress = this.isTestnet ? TESTNET_ADDRESSES.RipePool : CONTRACTS.RipePool.deployAddress;
304
+ return {
305
+ ...this.contracts.RipePool,
306
+ deployAddress,
307
+ };
308
+ }
301
309
  get ERC20() {
302
310
  return { at: (address) => this.contracts.ERC20(address) };
303
311
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ripe-finance/sdk",
3
- "version": "0.1.1",
3
+ "version": "0.3.1",
4
4
  "description": "SDK for interacting with Ripe Finance Smart Contracts with TypeScript",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",