2017-06-11 18:00:28 -07:00
|
|
|
export const SWAP_ORIGIN_KIND = 'SWAP_ORIGIN_KIND';
|
|
|
|
export const SWAP_DESTINATION_KIND = 'SWAP_DESTINATION_KIND';
|
|
|
|
export const SWAP_ORIGIN_AMOUNT = 'SWAP_ORIGIN_AMOUNT';
|
|
|
|
export const SWAP_DESTINATION_AMOUNT = 'SWAP_DESTINATION_AMOUNT';
|
|
|
|
export const SWAP_UPDATE_BITY_RATES = 'SWAP_UPDATE_BITY_RATES';
|
2017-06-18 21:53:32 -07:00
|
|
|
export const SWAP_DESTINATION_KIND_OPTIONS = 'SWAP_DESTINATION_KIND_OPTIONS'
|
2017-06-11 18:00:28 -07:00
|
|
|
|
2017-06-18 12:47:00 -07:00
|
|
|
export const SWAP_ORIGIN_KIND_TO = (value) => {
|
2017-06-11 18:00:28 -07:00
|
|
|
return {
|
|
|
|
type: SWAP_ORIGIN_KIND,
|
|
|
|
value
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-06-18 12:47:00 -07:00
|
|
|
export const SWAP_DESTINATION_KIND_TO = (value) => {
|
2017-06-11 18:00:28 -07:00
|
|
|
return {
|
|
|
|
type: SWAP_DESTINATION_KIND,
|
|
|
|
value
|
|
|
|
}
|
2017-06-18 17:56:11 -07:00
|
|
|
};
|
2017-06-11 18:00:28 -07:00
|
|
|
|
2017-06-18 12:47:00 -07:00
|
|
|
export const SWAP_ORIGIN_AMOUNT_TO = (value) => {
|
2017-06-11 18:00:28 -07:00
|
|
|
return {
|
|
|
|
type: SWAP_ORIGIN_AMOUNT,
|
|
|
|
value
|
|
|
|
};
|
|
|
|
};
|
|
|
|
|
2017-06-18 12:47:00 -07:00
|
|
|
export const SWAP_DESTINATION_AMOUNT_TO = (value) => {
|
2017-06-11 18:00:28 -07:00
|
|
|
return {
|
|
|
|
type: SWAP_DESTINATION_AMOUNT,
|
|
|
|
value
|
|
|
|
}
|
2017-06-18 17:56:11 -07:00
|
|
|
};
|
2017-06-11 18:00:28 -07:00
|
|
|
|
2017-06-18 12:47:00 -07:00
|
|
|
export const SWAP_UPDATE_BITY_RATES_TO = (value) => {
|
2017-06-11 18:00:28 -07:00
|
|
|
return {
|
|
|
|
type: SWAP_UPDATE_BITY_RATES,
|
|
|
|
value
|
|
|
|
}
|
2017-06-18 17:56:11 -07:00
|
|
|
};
|
2017-06-18 21:53:32 -07:00
|
|
|
|
|
|
|
|
|
|
|
|