aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-29 23:56:49 +0800
committerSteve Klebanoff <steve.klebanoff@gmail.com>2018-10-29 23:56:49 +0800
commit1bb7a28690662d682f865505b6c62fe655d57316 (patch)
tree193e642531a4f0c8e82f4ea513325ab78d6e857c
parent3052c8d303bdbaf57e762345d5ee8428d2194d0a (diff)
downloaddexon-sol-tools-1bb7a28690662d682f865505b6c62fe655d57316.tar
dexon-sol-tools-1bb7a28690662d682f865505b6c62fe655d57316.tar.gz
dexon-sol-tools-1bb7a28690662d682f865505b6c62fe655d57316.tar.bz2
dexon-sol-tools-1bb7a28690662d682f865505b6c62fe655d57316.tar.lz
dexon-sol-tools-1bb7a28690662d682f865505b6c62fe655d57316.tar.xz
dexon-sol-tools-1bb7a28690662d682f865505b6c62fe655d57316.tar.zst
dexon-sol-tools-1bb7a28690662d682f865505b6c62fe655d57316.zip
onPendingValidation -> onValidationPending
-rw-r--r--packages/instant/src/components/buy_button.tsx4
-rw-r--r--packages/instant/src/components/buy_order_state_buttons.tsx8
-rw-r--r--packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts4
3 files changed, 8 insertions, 8 deletions
diff --git a/packages/instant/src/components/buy_button.tsx b/packages/instant/src/components/buy_button.tsx
index 2f670d387..876edd396 100644
--- a/packages/instant/src/components/buy_button.tsx
+++ b/packages/instant/src/components/buy_button.tsx
@@ -15,7 +15,7 @@ import { Button, Text } from './ui';
export interface BuyButtonProps {
buyQuote?: BuyQuote;
assetBuyer?: AssetBuyer;
- onPendingValidation: (buyQuote: BuyQuote) => void;
+ onValidationPending: (buyQuote: BuyQuote) => void;
onValidationFail: (buyQuote: BuyQuote, error: ZeroExInstantError) => void;
onSignatureDenied: (buyQuote: BuyQuote, preventedError: Error) => void;
onBuyProcessing: (buyQuote: BuyQuote, txHash: string) => void;
@@ -46,7 +46,7 @@ export class BuyButton extends React.Component<BuyButtonProps> {
return;
}
- this.props.onPendingValidation(buyQuote);
+ this.props.onValidationPending(buyQuote);
const takerAddress = await getBestAddress();
const hasSufficientFunds = await balanceUtil.hasSufficientFunds(takerAddress, buyQuote, web3Wrapper);
diff --git a/packages/instant/src/components/buy_order_state_buttons.tsx b/packages/instant/src/components/buy_order_state_buttons.tsx
index 8225441f7..f9d683be6 100644
--- a/packages/instant/src/components/buy_order_state_buttons.tsx
+++ b/packages/instant/src/components/buy_order_state_buttons.tsx
@@ -17,13 +17,13 @@ export interface BuyOrderStateButtonProps {
buyOrderProcessingState: OrderProcessState;
assetBuyer?: AssetBuyer;
onViewTransaction: () => void;
- onPendingValidation: (buyQuote: BuyQuote) => void;
+ onValidationPending: (buyQuote: BuyQuote) => void;
+ onValidationFail: (buyQuote: BuyQuote, error: ZeroExInstantError) => void;
onSignatureDenied: (buyQuote: BuyQuote, error: Error) => void;
onBuyProcessing: (buyQuote: BuyQuote, txHash: string) => void;
onBuySuccess: (buyQuote: BuyQuote, txHash: string) => void;
onBuyFailure: (buyQuote: BuyQuote, txHash: string) => void;
onRetry: () => void;
- onValidationFail: (buyQuote: BuyQuote, error: ZeroExInstantError) => void;
}
// TODO: rename to buttons
@@ -54,12 +54,12 @@ export const BuyOrderStateButtons: React.StatelessComponent<BuyOrderStateButtonP
<BuyButton
buyQuote={props.buyQuote}
assetBuyer={props.assetBuyer}
- onPendingValidation={props.onPendingValidation}
+ onValidationPending={props.onValidationPending}
+ onValidationFail={props.onValidationFail}
onSignatureDenied={props.onSignatureDenied}
onBuyProcessing={props.onBuyProcessing}
onBuySuccess={props.onBuySuccess}
onBuyFailure={props.onBuyFailure}
- onValidationFail={props.onValidationFail}
/>
);
};
diff --git a/packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts b/packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts
index d22fd7d24..1a568c1fb 100644
--- a/packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts
+++ b/packages/instant/src/containers/selected_asset_buy_order_state_buttons.ts
@@ -20,7 +20,7 @@ interface ConnectedState {
}
interface ConnectedDispatch {
- onPendingValidation: (buyQuote: BuyQuote) => void;
+ onValidationPending: (buyQuote: BuyQuote) => void;
onSignatureDenied: (buyQuote: BuyQuote, error: Error) => void;
onBuyProcessing: (buyQuote: BuyQuote, txHash: string) => void;
onBuySuccess: (buyQuote: BuyQuote, txHash: string) => void;
@@ -56,7 +56,7 @@ const mapDispatchToProps = (
dispatch: Dispatch<Action>,
ownProps: SelectedAssetBuyOrderStateButtons,
): ConnectedDispatch => ({
- onPendingValidation: (buyQuote: BuyQuote) => {
+ onValidationPending: (buyQuote: BuyQuote) => {
const newOrderState: OrderState = { processState: OrderProcessState.VALIDATING };
dispatch(actions.updateBuyOrderState(newOrderState));
},