@defisaver/sdk 0.3.26 → 0.3.27

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.
@@ -1,20 +0,0 @@
1
- const Action = require("../../Action");
2
- const { getAddr } = require('../../addresses.js');
3
-
4
- class TransferNFTAction extends Action {
5
- constructor(nftAddr, from, to, nftId) {
6
- super(
7
- 'TransferNFT',
8
- getAddr('TransferNFT'),
9
- [
10
- "address",
11
- "address",
12
- "address",
13
- "uint256"
14
- ],
15
- [...arguments]
16
- );
17
- }
18
- }
19
-
20
- module.exports = TransferNFTAction;
@@ -1,19 +0,0 @@
1
- const Action = require("../../Action");
2
- const { requireAddress } = require("../../utils/general");
3
- const { getAddr } = require('../../addresses.js');
4
-
5
- /**
6
- * CBCreateAction - Chickens in the pending bond
7
- */
8
- class CBChickenInAction extends Action {
9
- /**
10
- * @param bondID {string} Nft id of the bond
11
- * @param to {EthAddress}
12
- */
13
- constructor(bondId, to) {
14
- requireAddress(to);
15
- super('CBChickenIn', getAddr('CBChickenIn'), ['uint256','address'], [...arguments]);
16
- }
17
- }
18
-
19
- module.exports = CBChickenInAction;
@@ -1,20 +0,0 @@
1
- const Action = require("../../Action");
2
- const { requireAddress } = require("../../utils/general");
3
- const { getAddr } = require('../../addresses.js');
4
-
5
- /**
6
- * CBChickenOutAction - Chickens out the pending bond
7
- */
8
- class CBChickenOutAction extends Action {
9
- /**
10
- * @param bondID {string} Nft id of the bond
11
- * @param minLUSD {string} Min amount of lusd to receive
12
- * @param to {EthAddress}
13
- */
14
- constructor(bondId, minLUSD, to) {
15
- requireAddress(to);
16
- super('CBChickenOut', getAddr('CBChickenOut'), ['uint256','uint256','address'], [...arguments]);
17
- }
18
- }
19
-
20
- module.exports = CBChickenOutAction;
@@ -1,23 +0,0 @@
1
- const Action = require("../../Action");
2
- const { requireAddress } = require("../../utils/general");
3
- const { getAddr } = require('../../addresses.js');
4
-
5
- /**
6
- * CBCreateAction - Create a chicken bond nft
7
- */
8
- class CBCreateAction extends Action {
9
- /**
10
- * @param amount {string} Wei amount in LUSD
11
- * @param from {EthAddress}
12
- */
13
- constructor(amount, from) {
14
- requireAddress(from);
15
- super('CBCreate', getAddr('CBCreate'), ['uint256','address'], [...arguments]);
16
- }
17
-
18
- async getAssetsToApprove() {
19
- return [{asset: getAddr('LUSD'), owner: this.args[1]}]
20
- }
21
- }
22
-
23
- module.exports = CBCreateAction;
@@ -1,27 +0,0 @@
1
- const Action = require("../../Action");
2
- const { requireAddress } = require("../../utils/general");
3
- const { getAddr } = require('../../addresses.js');
4
-
5
- /**
6
- * CBRedeemAction - Redeems bLUSD for Lusd (might also get yTokens)
7
- */
8
- class CBRedeemAction extends Action {
9
- /**
10
- * @param bLUSDAmount {string} Amount of bLUSD
11
- * @param minLUSDFromSP {string} Min amount of lusd to receive
12
- * @param from {EthAddress}
13
- * @param to {EthAddress}
14
- */
15
- constructor(bLUSDAmount, minLUSDFromSP, from, to) {
16
- requireAddress(from);
17
- requireAddress(to);
18
- super('CBRedeem', getAddr('CBRedeem'), ['uint256','uint256','address','address'], [...arguments]);
19
- }
20
-
21
- async getAssetsToApprove() {
22
- return [{asset: getAddr('BLUSD'), owner: this.args[2]}]
23
- }
24
-
25
- }
26
-
27
- module.exports = CBRedeemAction;
@@ -1,11 +0,0 @@
1
- const CBCreateAction = require('./CBCreateAction');
2
- const CBChickenInAction = require('./CBChickenInAction');
3
- const CBChickenOutAction = require('./CBChickenOutAction');
4
- const CBRedeemAction = require('./CBRedeemAction');
5
-
6
- module.exports = {
7
- CBCreateAction,
8
- CBChickenInAction,
9
- CBChickenOutAction,
10
- CBRedeemAction,
11
- };