Remove fast withdraw from batch builder
@@ -19,7 +19,7 @@ import { Wallet } from './wallet';
interface InternalTx {
type: 'Withdraw' | 'Transfer' | 'ChangePubKey' | 'ForcedExit' | 'MintNFT' | 'WithdrawNFT';
tx: any;
- feeType: 'Withdraw' | 'Transfer' | 'FastWithdraw' | ChangePubKeyFee | 'MintNFT' | 'WithdrawNFT' | 'FastWithdrawNFT';
+ feeType: 'Withdraw' | 'Transfer' | ChangePubKeyFee | 'MintNFT' | 'WithdrawNFT';
address: Address;
token: TokenLike;
// Whether or not the tx has been signed.
@@ -105,7 +105,6 @@ export class BatchBuilder {
token: TokenLike;
amount: BigNumberish;
fee?: BigNumberish;
- fastProcessing?: boolean;
validFrom?: number;
validUntil?: number;
}): BatchBuilder {
@@ -118,11 +117,10 @@ export class BatchBuilder {
validFrom: withdraw.validFrom || 0,
validUntil: withdraw.validUntil || MAX_TIMESTAMP
};
- const feeType = withdraw.fastProcessing === true ? 'FastWithdraw' : 'Withdraw';
this.txs.push({
type: 'Withdraw',
tx: _withdraw,
- feeType,
+ feeType: 'Withdraw',
address: _withdraw.ethAddress,
token: _withdraw.token
});
@@ -157,7 +155,6 @@ export class BatchBuilder {
token: TokenLike;
feeToken: TokenLike;
fee?: BigNumberish;
- fastProcessing?: boolean;
validFrom?: number;
validUntil?: number;
}): BatchBuilder {
@@ -169,11 +166,10 @@ export class BatchBuilder {
validFrom: withdrawNFT.validFrom || 0,
validUntil: withdrawNFT.validUntil || MAX_TIMESTAMP
};
- const feeType = withdrawNFT.fastProcessing === true ? 'FastWithdrawNFT' : 'WithdrawNFT';
this.txs.push({
type: 'WithdrawNFT',
tx: _withdrawNFT,
- feeType,
+ feeType: 'WithdrawNFT',
address: _withdrawNFT.to,
token: _withdrawNFT.feeToken
});
