@defisaver/sdk 1.0.67 → 1.0.69-dev-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/esm/src/actions/basic/ExecuteSafeTxAction.d.ts +23 -0
- package/esm/src/actions/basic/ExecuteSafeTxAction.js +60 -0
- package/esm/src/actions/basic/LimitSellAction.d.ts +24 -0
- package/esm/src/actions/basic/LimitSellAction.js +63 -0
- package/esm/src/actions/basic/RemoveTokenApprovalAction.d.ts +15 -0
- package/esm/src/actions/basic/RemoveTokenApprovalAction.js +42 -0
- package/esm/src/actions/basic/SellAction.js +1 -1
- package/esm/src/actions/basic/index.d.ts +3 -0
- package/esm/src/actions/basic/index.js +3 -0
- package/esm/src/actions/flashloan/FLAction.js +1 -1
- package/esm/src/actions/flashloan/FLPaybackAction.d.ts +14 -0
- package/esm/src/actions/flashloan/FLPaybackAction.js +16 -0
- package/esm/src/actions/flashloan/index.d.ts +1 -0
- package/esm/src/actions/flashloan/index.js +1 -0
- package/esm/src/actions/index.d.ts +2 -1
- package/esm/src/actions/index.js +2 -1
- package/esm/src/actions/merkl/MerklClaimAction.d.ts +19 -0
- package/esm/src/actions/merkl/MerklClaimAction.js +21 -0
- package/esm/src/actions/merkl/index.d.ts +1 -0
- package/esm/src/actions/merkl/index.js +1 -0
- package/esm/src/addresses.d.ts +19 -7
- package/esm/src/addresses.js +38 -22
- package/esm/src/index.d.ts +76 -28
- package/esm/src/triggers/CurveUsdHealthRatioTrigger.d.ts +10 -0
- package/esm/src/triggers/CurveUsdHealthRatioTrigger.js +12 -0
- package/esm/src/triggers/OffchainPriceTrigger.d.ts +10 -0
- package/esm/src/triggers/OffchainPriceTrigger.js +12 -0
- package/esm/src/triggers/index.d.ts +2 -0
- package/esm/src/triggers/index.js +2 -0
- package/package.json +1 -1
- package/src/actions/basic/ExecuteSafeTxAction.ts +85 -0
- package/src/actions/basic/LimitSellAction.ts +63 -0
- package/src/actions/basic/RemoveTokenApprovalAction.ts +39 -0
- package/src/actions/basic/SellAction.ts +2 -2
- package/src/actions/basic/index.ts +3 -0
- package/src/actions/flashloan/FLAction.ts +2 -2
- package/src/actions/flashloan/FLPaybackAction.ts +18 -0
- package/src/actions/flashloan/index.ts +2 -1
- package/src/actions/index.ts +2 -0
- package/src/actions/maker/MakerGiveAction.ts +1 -1
- package/src/actions/merkl/MerklClaimAction.ts +36 -0
- package/src/actions/merkl/index.ts +1 -0
- package/src/addresses.ts +39 -22
- package/src/triggers/CurveUsdHealthRatioTrigger.ts +14 -0
- package/src/triggers/OffchainPriceTrigger.ts +14 -0
- package/src/triggers/index.ts +2 -0
- package/umd/index.js +816 -510
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { EthAddress, bytes, uint256, uint8 } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* ExecuteSafeTxAction - Execute Safe transaction
|
|
5
|
+
*
|
|
6
|
+
* @category BasicActions
|
|
7
|
+
*/
|
|
8
|
+
export declare class ExecuteSafeTxAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param safe Address of the Safe wallet
|
|
11
|
+
* @param to Destination address of Safe transaction
|
|
12
|
+
* @param value Ether value of Safe transaction
|
|
13
|
+
* @param data Data payload of Safe transaction
|
|
14
|
+
* @param operation Operation type of Safe transaction. 0 = call, 1 = delegateCall
|
|
15
|
+
* @param safeTxGas Gas that should be used for the Safe transaction
|
|
16
|
+
* @param baseGas Gas costs that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)
|
|
17
|
+
* @param gasPrice Gas price that should be used for the payment calculation
|
|
18
|
+
* @param gasToken Token address (or 0 if ETH) that is used for the payment
|
|
19
|
+
* @param refundReceiver Address of receiver of gas payment (or 0 if tx.origin
|
|
20
|
+
* @param signatures Packed signature data ({bytes32 r}{bytes32 s}{uint8 v})
|
|
21
|
+
*/
|
|
22
|
+
constructor(safe: EthAddress, to: EthAddress, value: uint256, data: bytes, operation: uint8, safeTxGas: uint256, baseGas: uint256, gasPrice: uint256, gasToken: EthAddress, refundReceiver: EthAddress, signatures: bytes);
|
|
23
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { getAddr } from '../../addresses';
|
|
3
|
+
/**
|
|
4
|
+
* ExecuteSafeTxAction - Execute Safe transaction
|
|
5
|
+
*
|
|
6
|
+
* @category BasicActions
|
|
7
|
+
*/
|
|
8
|
+
export class ExecuteSafeTxAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param safe Address of the Safe wallet
|
|
11
|
+
* @param to Destination address of Safe transaction
|
|
12
|
+
* @param value Ether value of Safe transaction
|
|
13
|
+
* @param data Data payload of Safe transaction
|
|
14
|
+
* @param operation Operation type of Safe transaction. 0 = call, 1 = delegateCall
|
|
15
|
+
* @param safeTxGas Gas that should be used for the Safe transaction
|
|
16
|
+
* @param baseGas Gas costs that are independent of the transaction execution(e.g. base transaction fee, signature check, payment of the refund)
|
|
17
|
+
* @param gasPrice Gas price that should be used for the payment calculation
|
|
18
|
+
* @param gasToken Token address (or 0 if ETH) that is used for the payment
|
|
19
|
+
* @param refundReceiver Address of receiver of gas payment (or 0 if tx.origin
|
|
20
|
+
* @param signatures Packed signature data ({bytes32 r}{bytes32 s}{uint8 v})
|
|
21
|
+
*/
|
|
22
|
+
constructor(safe, to, value, data, operation, safeTxGas, baseGas, gasPrice, gasToken, refundReceiver, signatures) {
|
|
23
|
+
super('ExecuteSafeTx', getAddr('ExecuteSafeTx'), [
|
|
24
|
+
'address',
|
|
25
|
+
'address',
|
|
26
|
+
'uint256',
|
|
27
|
+
'bytes',
|
|
28
|
+
'uint8',
|
|
29
|
+
'uint256',
|
|
30
|
+
'uint256',
|
|
31
|
+
'uint256',
|
|
32
|
+
'address',
|
|
33
|
+
'address',
|
|
34
|
+
'bytes',
|
|
35
|
+
], [
|
|
36
|
+
safe,
|
|
37
|
+
to,
|
|
38
|
+
value,
|
|
39
|
+
data,
|
|
40
|
+
operation,
|
|
41
|
+
safeTxGas,
|
|
42
|
+
baseGas,
|
|
43
|
+
gasPrice,
|
|
44
|
+
gasToken,
|
|
45
|
+
refundReceiver,
|
|
46
|
+
signatures,
|
|
47
|
+
]);
|
|
48
|
+
this.mappableArgs = [
|
|
49
|
+
this.args[0],
|
|
50
|
+
this.args[1],
|
|
51
|
+
this.args[2],
|
|
52
|
+
this.args[4],
|
|
53
|
+
this.args[5],
|
|
54
|
+
this.args[6],
|
|
55
|
+
this.args[7],
|
|
56
|
+
this.args[8],
|
|
57
|
+
this.args[9],
|
|
58
|
+
];
|
|
59
|
+
}
|
|
60
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { ActionWithL2 } from '../../ActionWithL2';
|
|
2
|
+
import { EthAddress, uint256 } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Limit sell action used as part of the LimitSell Strategy
|
|
5
|
+
*
|
|
6
|
+
* @category BasicActions
|
|
7
|
+
*/
|
|
8
|
+
export declare class LimitSellAction extends ActionWithL2 {
|
|
9
|
+
protocolFee: string;
|
|
10
|
+
/**
|
|
11
|
+
* @param exchangeOrder Standard DFS Exchange data
|
|
12
|
+
* @param from Order sender
|
|
13
|
+
* @param to Order recipient
|
|
14
|
+
* @param gasUsed Amount of gas spent as part of the strategy
|
|
15
|
+
* @param protocolFee 0x fee (amount of ETH in Wei)
|
|
16
|
+
*/
|
|
17
|
+
constructor(exchangeOrder: Array<any>, from: EthAddress, to: EthAddress, gasUsed: uint256, protocolFee?: string);
|
|
18
|
+
encodeInputs(): string;
|
|
19
|
+
getAssetsToApprove(): Promise<{
|
|
20
|
+
asset: any;
|
|
21
|
+
owner: any;
|
|
22
|
+
}[]>;
|
|
23
|
+
getEthValue(): Promise<string>;
|
|
24
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import AbiCoder from 'web3-eth-abi';
|
|
11
|
+
import { getAssetInfoByAddress } from '@defisaver/tokens';
|
|
12
|
+
import ActionAbi from '../../abis/Action.json';
|
|
13
|
+
import { ActionWithL2 } from '../../ActionWithL2';
|
|
14
|
+
import { requireAddress } from '../../utils/general';
|
|
15
|
+
import { getAddr } from '../../addresses';
|
|
16
|
+
/**
|
|
17
|
+
* Limit sell action used as part of the LimitSell Strategy
|
|
18
|
+
*
|
|
19
|
+
* @category BasicActions
|
|
20
|
+
*/
|
|
21
|
+
export class LimitSellAction extends ActionWithL2 {
|
|
22
|
+
/**
|
|
23
|
+
* @param exchangeOrder Standard DFS Exchange data
|
|
24
|
+
* @param from Order sender
|
|
25
|
+
* @param to Order recipient
|
|
26
|
+
* @param gasUsed Amount of gas spent as part of the strategy
|
|
27
|
+
* @param protocolFee 0x fee (amount of ETH in Wei)
|
|
28
|
+
*/
|
|
29
|
+
constructor(exchangeOrder, from, to, gasUsed, protocolFee = '0') {
|
|
30
|
+
requireAddress(to);
|
|
31
|
+
super('LimitSell', getAddr('LimitSell'), [
|
|
32
|
+
['address', 'address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'address', 'bytes', ['address', 'address', 'address', 'uint256', 'uint256', 'bytes']],
|
|
33
|
+
'address',
|
|
34
|
+
'address',
|
|
35
|
+
'uint256',
|
|
36
|
+
], [exchangeOrder, from, to, gasUsed]);
|
|
37
|
+
this.protocolFee = protocolFee;
|
|
38
|
+
this.mappableArgs = [
|
|
39
|
+
this.args[0][0],
|
|
40
|
+
this.args[0][1],
|
|
41
|
+
this.args[0][2],
|
|
42
|
+
this.args[1],
|
|
43
|
+
this.args[2],
|
|
44
|
+
];
|
|
45
|
+
}
|
|
46
|
+
encodeInputs() {
|
|
47
|
+
const executeActionDirectAbi = (ActionAbi.find(({ name }) => name === 'executeActionDirect'));
|
|
48
|
+
return AbiCoder.encodeFunctionCall(executeActionDirectAbi, this._encodeForCall());
|
|
49
|
+
}
|
|
50
|
+
getAssetsToApprove() {
|
|
51
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
52
|
+
const asset = getAssetInfoByAddress(this.args[0][0]);
|
|
53
|
+
if (asset.symbol !== 'ETH')
|
|
54
|
+
return [{ asset: this.args[0][0], owner: this.args[1] }];
|
|
55
|
+
return [];
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
getEthValue() {
|
|
59
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
60
|
+
return this.protocolFee || '0';
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { EthAddress } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Remove approval for a spender to pull tokens from user wallet
|
|
5
|
+
*
|
|
6
|
+
* @category BasicActions
|
|
7
|
+
*/
|
|
8
|
+
export declare class RemoveTokenApprovalAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param token Token address
|
|
11
|
+
* @param spender Spender address
|
|
12
|
+
*/
|
|
13
|
+
constructor(token: EthAddress, spender: EthAddress);
|
|
14
|
+
getAssetsToApprove(): Promise<never[]>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
+
});
|
|
9
|
+
};
|
|
10
|
+
import { requireAddress } from '../../utils/general';
|
|
11
|
+
import { Action } from '../../Action';
|
|
12
|
+
import { getAddr } from '../../addresses';
|
|
13
|
+
/**
|
|
14
|
+
* Remove approval for a spender to pull tokens from user wallet
|
|
15
|
+
*
|
|
16
|
+
* @category BasicActions
|
|
17
|
+
*/
|
|
18
|
+
export class RemoveTokenApprovalAction extends Action {
|
|
19
|
+
/**
|
|
20
|
+
* @param token Token address
|
|
21
|
+
* @param spender Spender address
|
|
22
|
+
*/
|
|
23
|
+
constructor(token, spender) {
|
|
24
|
+
requireAddress(spender);
|
|
25
|
+
super('RemoveTokenApproval', getAddr('RemoveTokenApproval'), [
|
|
26
|
+
'address',
|
|
27
|
+
'address',
|
|
28
|
+
], [
|
|
29
|
+
token,
|
|
30
|
+
spender,
|
|
31
|
+
]);
|
|
32
|
+
this.mappableArgs = [
|
|
33
|
+
this.args[0],
|
|
34
|
+
this.args[1],
|
|
35
|
+
];
|
|
36
|
+
}
|
|
37
|
+
getAssetsToApprove() {
|
|
38
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
39
|
+
return [];
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
}
|
|
@@ -27,7 +27,7 @@ export class SellAction extends ActionWithL2 {
|
|
|
27
27
|
*/
|
|
28
28
|
constructor(exchangeOrder, from, to, protocolFee = '0') {
|
|
29
29
|
requireAddress(to);
|
|
30
|
-
super('
|
|
30
|
+
super('DFSSellTEMP', getAddr('DFSSellTEMP'), [
|
|
31
31
|
['address', 'address', 'uint256', 'uint256', 'uint256', 'uint256', 'address', 'address', 'bytes', ['address', 'address', 'address', 'uint256', 'uint256', 'bytes']],
|
|
32
32
|
'address',
|
|
33
33
|
'address',
|
|
@@ -24,3 +24,6 @@ export * from './TokenizedVaultAdapterDepositAction';
|
|
|
24
24
|
export * from './TokenizedVaultAdapterMintAction';
|
|
25
25
|
export * from './TokenizedVaultAdapterRedeemAction';
|
|
26
26
|
export * from './TokenizedVaultAdapterWithdrawAction';
|
|
27
|
+
export * from './LimitSellAction';
|
|
28
|
+
export * from './ExecuteSafeTxAction';
|
|
29
|
+
export * from './RemoveTokenApprovalAction';
|
|
@@ -24,3 +24,6 @@ export * from './TokenizedVaultAdapterDepositAction';
|
|
|
24
24
|
export * from './TokenizedVaultAdapterMintAction';
|
|
25
25
|
export * from './TokenizedVaultAdapterRedeemAction';
|
|
26
26
|
export * from './TokenizedVaultAdapterWithdrawAction';
|
|
27
|
+
export * from './LimitSellAction';
|
|
28
|
+
export * from './ExecuteSafeTxAction';
|
|
29
|
+
export * from './RemoveTokenApprovalAction';
|
|
@@ -13,7 +13,7 @@ import { getAddr } from '../../addresses';
|
|
|
13
13
|
*/
|
|
14
14
|
export class FLAction extends Action {
|
|
15
15
|
constructor(specificFLAction) {
|
|
16
|
-
super('
|
|
16
|
+
super('FLActionTEMP', getAddr('FLActionTEMP'), [], []);
|
|
17
17
|
_FLAction_instances.add(this);
|
|
18
18
|
this.paramTypes = ['address[]', 'uint256[]', 'uint256[]', 'address', 'address', 'bytes', 'bytes'];
|
|
19
19
|
this.args = __classPrivateFieldGet(this, _FLAction_instances, "m", _FLAction_handleArgs).call(this, specificFLAction);
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { SendTokenAction } from '../basic';
|
|
2
|
+
import { EthAddress, uint256 } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* Generalized Flashloan Payback
|
|
5
|
+
*
|
|
6
|
+
* @category Flashloans
|
|
7
|
+
*/
|
|
8
|
+
export declare class FLPaybackAction extends SendTokenAction {
|
|
9
|
+
/**
|
|
10
|
+
* @param loanAmount
|
|
11
|
+
* @param tokenAddr
|
|
12
|
+
*/
|
|
13
|
+
constructor(loanAmount: uint256, tokenAddr: EthAddress);
|
|
14
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SendTokenAction } from '../basic';
|
|
2
|
+
import { getAddr } from '../../addresses';
|
|
3
|
+
/**
|
|
4
|
+
* Generalized Flashloan Payback
|
|
5
|
+
*
|
|
6
|
+
* @category Flashloans
|
|
7
|
+
*/
|
|
8
|
+
export class FLPaybackAction extends SendTokenAction {
|
|
9
|
+
/**
|
|
10
|
+
* @param loanAmount
|
|
11
|
+
* @param tokenAddr
|
|
12
|
+
*/
|
|
13
|
+
constructor(loanAmount, tokenAddr) {
|
|
14
|
+
super(tokenAddr, getAddr('FLActionTEMP'), loanAmount);
|
|
15
|
+
}
|
|
16
|
+
}
|
|
@@ -28,4 +28,5 @@ import * as curveusd from './curveusd';
|
|
|
28
28
|
import * as spark from './spark';
|
|
29
29
|
import * as morphoblue from './morpho-blue';
|
|
30
30
|
import * as llamalend from './llamalend';
|
|
31
|
-
|
|
31
|
+
import * as merkl from './merkl';
|
|
32
|
+
export { aave, maker, compound, basic, flashloan, uniswap, reflexer, dydx, uniswapV3, checkers, liquity, yearn, lido, insta, balancer, curve, guni, mstable, rari, aaveV3, convex, chickenBonds, compoundV3, morpho, bprotocol, lsv, spark, curveusd, morphoblue, llamalend, merkl, };
|
package/esm/src/actions/index.js
CHANGED
|
@@ -28,4 +28,5 @@ import * as curveusd from './curveusd';
|
|
|
28
28
|
import * as spark from './spark';
|
|
29
29
|
import * as morphoblue from './morpho-blue';
|
|
30
30
|
import * as llamalend from './llamalend';
|
|
31
|
-
|
|
31
|
+
import * as merkl from './merkl';
|
|
32
|
+
export { aave, maker, compound, basic, flashloan, uniswap, reflexer, dydx, uniswapV3, checkers, liquity, yearn, lido, insta, balancer, curve, guni, mstable, rari, aaveV3, convex, chickenBonds, compoundV3, morpho, bprotocol, lsv, spark, curveusd, morphoblue, llamalend, merkl, };
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { EthAddress, uint256, bytes32 } from '../../types';
|
|
3
|
+
/**
|
|
4
|
+
* MerklClaimAction - Claim Merkl rewards
|
|
5
|
+
*
|
|
6
|
+
* @category Merkl
|
|
7
|
+
*/
|
|
8
|
+
export declare class MerklClaimAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param users - Array filled with smart wallet addresses for each claim
|
|
11
|
+
* @param tokens - Token that is being claimed
|
|
12
|
+
* @param amounts - Amount that is being claimed
|
|
13
|
+
* @param proofs - Array of merkle proofs
|
|
14
|
+
* @param distinctTokens - Distinct tokens that are claimed inside one claim call
|
|
15
|
+
* @param amountsClaimedPerDistinctToken - Sum of amounts per distinct token being claimed
|
|
16
|
+
* @param to - Address which will receive claimed tokens
|
|
17
|
+
*/
|
|
18
|
+
constructor(users: Array<EthAddress>, tokens: Array<EthAddress>, amounts: Array<uint256>, proofs: Array<Array<bytes32>>, distinctTokens: Array<EthAddress>, amountsClaimedPerDistinctToken: Array<uint256>, to: EthAddress);
|
|
19
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { Action } from '../../Action';
|
|
2
|
+
import { getAddr } from '../../addresses';
|
|
3
|
+
/**
|
|
4
|
+
* MerklClaimAction - Claim Merkl rewards
|
|
5
|
+
*
|
|
6
|
+
* @category Merkl
|
|
7
|
+
*/
|
|
8
|
+
export class MerklClaimAction extends Action {
|
|
9
|
+
/**
|
|
10
|
+
* @param users - Array filled with smart wallet addresses for each claim
|
|
11
|
+
* @param tokens - Token that is being claimed
|
|
12
|
+
* @param amounts - Amount that is being claimed
|
|
13
|
+
* @param proofs - Array of merkle proofs
|
|
14
|
+
* @param distinctTokens - Distinct tokens that are claimed inside one claim call
|
|
15
|
+
* @param amountsClaimedPerDistinctToken - Sum of amounts per distinct token being claimed
|
|
16
|
+
* @param to - Address which will receive claimed tokens
|
|
17
|
+
*/
|
|
18
|
+
constructor(users, tokens, amounts, proofs, distinctTokens, amountsClaimedPerDistinctToken, to) {
|
|
19
|
+
super('MerklClaim', getAddr('MerklClaim'), ['address[]', 'address[]', 'uint256[]', 'bytes32[][]', 'address[]', 'uint256[]', 'address'], [users, tokens, amounts, proofs, distinctTokens, amountsClaimedPerDistinctToken, to]);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MerklClaimAction';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './MerklClaimAction';
|
package/esm/src/addresses.d.ts
CHANGED
|
@@ -20,6 +20,7 @@ export declare const actionAddresses: {
|
|
|
20
20
|
SDaiUnwrap: string;
|
|
21
21
|
TokenizedVaultAdapter: string;
|
|
22
22
|
DFSSell: string;
|
|
23
|
+
DFSSellTEMP: string;
|
|
23
24
|
McdGenerate: string;
|
|
24
25
|
McdGive: string;
|
|
25
26
|
McdMerge: string;
|
|
@@ -97,6 +98,7 @@ export declare const actionAddresses: {
|
|
|
97
98
|
FLBalancer: string;
|
|
98
99
|
FLSpark: string;
|
|
99
100
|
FLAction: string;
|
|
101
|
+
FLActionTEMP: string;
|
|
100
102
|
FLUniV3: string;
|
|
101
103
|
FLGho: string;
|
|
102
104
|
FLMorphoBlue: string;
|
|
@@ -197,16 +199,20 @@ export declare const actionAddresses: {
|
|
|
197
199
|
LlamaLendWithdraw: string;
|
|
198
200
|
LlamaLendPayback: string;
|
|
199
201
|
LlamaLendSelfLiquidate: string;
|
|
202
|
+
MerklClaim: string;
|
|
200
203
|
AaveV3DelegateCredit?: undefined;
|
|
201
204
|
AaveV3RatioTrigger?: undefined;
|
|
202
205
|
GasFeeTakerL2?: undefined;
|
|
203
206
|
AaveV3RatioCheck?: undefined;
|
|
204
207
|
} | {
|
|
205
208
|
DFSSell: string;
|
|
209
|
+
DFSSellTEMP: string;
|
|
206
210
|
WrapEth: string;
|
|
207
211
|
UnwrapEth: string;
|
|
208
212
|
SendToken: string;
|
|
209
213
|
PullToken: string;
|
|
214
|
+
SumInputs: string;
|
|
215
|
+
SubInputs: string;
|
|
210
216
|
ApproveToken: string;
|
|
211
217
|
SendTokenAndUnwrap: string;
|
|
212
218
|
ToggleSub: string;
|
|
@@ -227,6 +233,7 @@ export declare const actionAddresses: {
|
|
|
227
233
|
FLAaveV3: string;
|
|
228
234
|
FLBalancer: string;
|
|
229
235
|
FLAction: string;
|
|
236
|
+
FLActionTEMP: string;
|
|
230
237
|
AaveV3RatioTrigger: string;
|
|
231
238
|
GasFeeTakerL2: string;
|
|
232
239
|
AaveV3RatioCheck: string;
|
|
@@ -235,8 +242,6 @@ export declare const actionAddresses: {
|
|
|
235
242
|
UniSupplyV3: string;
|
|
236
243
|
UniWithdrawV3: string;
|
|
237
244
|
UniCreatePoolV3: string;
|
|
238
|
-
SumInputs?: undefined;
|
|
239
|
-
SubInputs?: undefined;
|
|
240
245
|
AutomationV2Unsub?: undefined;
|
|
241
246
|
UpdateSub?: undefined;
|
|
242
247
|
TransferNFT?: undefined;
|
|
@@ -402,12 +407,16 @@ export declare const actionAddresses: {
|
|
|
402
407
|
LlamaLendWithdraw?: undefined;
|
|
403
408
|
LlamaLendPayback?: undefined;
|
|
404
409
|
LlamaLendSelfLiquidate?: undefined;
|
|
410
|
+
MerklClaim?: undefined;
|
|
405
411
|
} | {
|
|
406
412
|
DFSSell: string;
|
|
413
|
+
DFSSellTEMP: string;
|
|
407
414
|
WrapEth: string;
|
|
408
415
|
UnwrapEth: string;
|
|
409
416
|
SendToken: string;
|
|
410
417
|
PullToken: string;
|
|
418
|
+
SumInputs: string;
|
|
419
|
+
SubInputs: string;
|
|
411
420
|
SendTokenAndUnwrap: string;
|
|
412
421
|
ToggleSub: string;
|
|
413
422
|
TokenBalance: string;
|
|
@@ -432,6 +441,7 @@ export declare const actionAddresses: {
|
|
|
432
441
|
FLAaveV3: string;
|
|
433
442
|
FLBalancer: string;
|
|
434
443
|
FLAction: string;
|
|
444
|
+
FLActionTEMP: string;
|
|
435
445
|
GasFeeTakerL2: string;
|
|
436
446
|
AaveV3RatioCheck: string;
|
|
437
447
|
UniCollectV3: string;
|
|
@@ -439,8 +449,6 @@ export declare const actionAddresses: {
|
|
|
439
449
|
UniSupplyV3: string;
|
|
440
450
|
UniWithdrawV3: string;
|
|
441
451
|
UniCreatePoolV3: string;
|
|
442
|
-
SumInputs?: undefined;
|
|
443
|
-
SubInputs?: undefined;
|
|
444
452
|
AutomationV2Unsub?: undefined;
|
|
445
453
|
UpdateSub?: undefined;
|
|
446
454
|
TransferNFT?: undefined;
|
|
@@ -601,19 +609,25 @@ export declare const actionAddresses: {
|
|
|
601
609
|
LlamaLendWithdraw?: undefined;
|
|
602
610
|
LlamaLendPayback?: undefined;
|
|
603
611
|
LlamaLendSelfLiquidate?: undefined;
|
|
612
|
+
MerklClaim?: undefined;
|
|
604
613
|
AaveV3DelegateCredit?: undefined;
|
|
605
614
|
AaveV3RatioTrigger?: undefined;
|
|
606
615
|
} | {
|
|
607
616
|
DFSSell: string;
|
|
617
|
+
DFSSellTEMP: string;
|
|
608
618
|
WrapEth: string;
|
|
609
619
|
UnwrapEth: string;
|
|
610
620
|
SendToken: string;
|
|
611
621
|
PullToken: string;
|
|
622
|
+
SumInputs: string;
|
|
623
|
+
SubInputs: string;
|
|
612
624
|
TokenBalance: string;
|
|
613
625
|
ChangeProxyOwner: string;
|
|
614
626
|
FLAaveV3: string;
|
|
615
627
|
FLBalancer: string;
|
|
616
628
|
FLUniV3: string;
|
|
629
|
+
FLAction: string;
|
|
630
|
+
FLActionTEMP: string;
|
|
617
631
|
AaveV3Withdraw: string;
|
|
618
632
|
AaveV3SwapBorrowRateMode: string;
|
|
619
633
|
AaveV3Supply: string;
|
|
@@ -631,8 +645,6 @@ export declare const actionAddresses: {
|
|
|
631
645
|
CompV3Supply: string;
|
|
632
646
|
CompV3Transfer: string;
|
|
633
647
|
CompV3Withdraw: string;
|
|
634
|
-
SumInputs?: undefined;
|
|
635
|
-
SubInputs?: undefined;
|
|
636
648
|
AutomationV2Unsub?: undefined;
|
|
637
649
|
SendTokenAndUnwrap?: undefined;
|
|
638
650
|
ToggleSub?: undefined;
|
|
@@ -707,7 +719,6 @@ export declare const actionAddresses: {
|
|
|
707
719
|
FLDyDx?: undefined;
|
|
708
720
|
FLMaker?: undefined;
|
|
709
721
|
FLSpark?: undefined;
|
|
710
|
-
FLAction?: undefined;
|
|
711
722
|
FLGho?: undefined;
|
|
712
723
|
FLMorphoBlue?: undefined;
|
|
713
724
|
UniSupply?: undefined;
|
|
@@ -800,6 +811,7 @@ export declare const actionAddresses: {
|
|
|
800
811
|
LlamaLendWithdraw?: undefined;
|
|
801
812
|
LlamaLendPayback?: undefined;
|
|
802
813
|
LlamaLendSelfLiquidate?: undefined;
|
|
814
|
+
MerklClaim?: undefined;
|
|
803
815
|
AaveV3DelegateCredit?: undefined;
|
|
804
816
|
AaveV3RatioTrigger?: undefined;
|
|
805
817
|
GasFeeTakerL2?: undefined;
|