2021-04-04 07:58:12 +02:00
|
|
|
declare type CoinSwapInfo = {
|
2021-04-07 08:27:57 +02:00
|
|
|
chargeCode: string,
|
|
|
|
coins: Array<string>,
|
|
|
|
sendAddresses: { [string]: string},
|
|
|
|
sendAmounts: { [string]: number },
|
2021-04-04 07:58:12 +02:00
|
|
|
lbcAmount: number,
|
2021-04-07 08:27:57 +02:00
|
|
|
status?: {
|
|
|
|
status: string,
|
|
|
|
receipt_txid: string,
|
|
|
|
lbc_txid: string,
|
|
|
|
},
|
2021-04-04 07:58:12 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
declare type CoinSwapState = {
|
2021-04-07 08:27:57 +02:00
|
|
|
coinSwaps: Array<CoinSwapInfo>,
|
2021-04-04 07:58:12 +02:00
|
|
|
};
|
|
|
|
|
2021-04-07 08:27:57 +02:00
|
|
|
declare type CoinSwapAddAction = {
|
2021-04-04 07:58:12 +02:00
|
|
|
type: string,
|
2021-04-07 08:27:57 +02:00
|
|
|
data: CoinSwapInfo,
|
2021-04-04 07:58:12 +02:00
|
|
|
};
|
|
|
|
|
|
|
|
declare type CoinSwapRemoveAction = {
|
|
|
|
type: string,
|
|
|
|
data: {
|
2021-04-07 08:27:57 +02:00
|
|
|
chargeCode: string,
|
2021-04-04 07:58:12 +02:00
|
|
|
},
|
|
|
|
};
|