2021-04-04 09:10:55 +02:00
|
|
|
declare type CoinSwapInfo = {
|
|
|
|
coin: string,
|
|
|
|
sendAddress: string,
|
|
|
|
sendAmount: number,
|
|
|
|
lbcAmount: number,
|
|
|
|
}
|
|
|
|
|
2021-03-25 12:24:49 +01:00
|
|
|
declare type CoinSwapState = {
|
2021-04-04 09:10:55 +02:00
|
|
|
coinSwaps: Array<CoinSwapInfo>
|
2021-03-25 12:24:49 +01:00
|
|
|
};
|
|
|
|
|
|
|
|
declare type CoinSwapAction = {
|
|
|
|
type: string,
|
|
|
|
data: {
|
2021-04-04 09:10:55 +02:00
|
|
|
coin: string,
|
|
|
|
sendAddress: string,
|
|
|
|
sendAmount: number,
|
|
|
|
lbcAmount: number,
|
|
|
|
},
|
|
|
|
};
|
|
|
|
|
|
|
|
declare type CoinSwapRemoveAction = {
|
|
|
|
type: string,
|
|
|
|
data: {
|
|
|
|
sendAddress: string,
|
2021-03-25 12:24:49 +01:00
|
|
|
},
|
|
|
|
};
|