@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/contracts/BondBooster.d.ts +22 -22
- package/dist/contracts/BondBooster.d.ts.map +1 -1
- package/dist/contracts/BondBooster.js +16 -16
- package/dist/contracts/BondRoom.d.ts +21 -8
- package/dist/contracts/BondRoom.d.ts.map +1 -1
- package/dist/contracts/BondRoom.js +25 -7
- package/dist/contracts/RipePool.d.ts +1264 -0
- package/dist/contracts/RipePool.d.ts.map +1 -0
- package/dist/contracts/RipePool.js +1627 -0
- package/dist/contracts/SwitchboardAlpha.js +1 -1
- package/dist/contracts/SwitchboardDelta.d.ts +12 -12
- package/dist/contracts/SwitchboardDelta.d.ts.map +1 -1
- package/dist/contracts/SwitchboardDelta.js +7 -7
- package/dist/contracts/index.d.ts +1 -0
- package/dist/contracts/index.d.ts.map +1 -1
- package/dist/contracts/index.js +1 -0
- package/dist/contracts/sdk.d.ts +2 -0
- package/dist/contracts/sdk.d.ts.map +1 -1
- package/dist/contracts/sdk.js +2 -0
- package/dist/index.d.ts +74 -9
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/package.json +1 -1
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
|
}
|