Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
break;
}
case (ActionKind.TRANSFER_VALUE): {
orderActions.push({
kind: ActionsOrderActionKind.TRANSFER_VALUE,
senderId: action.senderId,
receiverId: action.receiverId,
value: new BigNumber(action.value).multipliedBy(multiplier).toFixed(0),
ledgerId: action.valueLedgerId,
} as FrameworkActionsOrderAction);
paymentAmount += this.context.payment.valueTransferCost;
break;
}
case (ActionKind.SET_ABILITIES): {
orderActions.push({
kind: ActionsOrderActionKind.SET_ABILITIES,
receiverId: action.receiverId,
senderId: action.senderId,
ledgerId: action.assetLedgerId,
abilities: action.abilities,
} as FrameworkActionsOrderAction);
paymentAmount += this.context.payment.setAbilitiesCost;
break;
}
case (ActionKind.DESTROY_ASSET): {
orderActions.push({
kind: ActionsOrderActionKind.DESTROY_ASSET,
senderId: action.senderId,
ledgerId: action.assetLedgerId,
assetId: action.id,
} as FrameworkActionsOrderAction);
paymentAmount += this.context.payment.assetDestroyCost;