|
1 |
| -/* @flow */ |
2 |
| -'use strict'; |
3 |
| - |
4 |
| -import type {Amount, LaxLaxAmount, RippledAmount, Adjustment, MaxAdjustment, |
5 |
| - MinAdjustment} from '../common/types.js'; |
6 |
| - |
7 |
| - |
8 |
| -type Path = { |
9 |
| - source: Adjustment | MaxAdjustment, |
10 |
| - destination: Adjustment | MinAdjustment, |
11 |
| - paths: string |
12 |
| -} |
13 |
| - |
14 |
| -export type GetPaths = Array<Path> |
15 |
| - |
16 |
| -export type PathFind = { |
17 |
| - source: { |
18 |
| - address: string, |
19 |
| - amount?: Amount, |
20 |
| - currencies?: Array<{currency: string, counterparty?:string}> |
21 |
| - }, |
22 |
| - destination: { |
23 |
| - address: string, |
24 |
| - amount: LaxLaxAmount |
25 |
| - } |
26 |
| -} |
27 |
| - |
28 |
| -export type PathFindRequest = { |
29 |
| - command: string, |
30 |
| - source_account: string, |
31 |
| - destination_amount: RippledAmount, |
32 |
| - destination_account: string, |
33 |
| - source_amount?: RippledAmount, |
34 |
| - source_currencies?: Array<string> |
35 |
| -} |
36 |
| - |
37 |
| -export type RippledPathsResponse = { |
38 |
| - alternatives: Array<{ |
39 |
| - paths_computed: Array<Array<{ |
40 |
| - type: number, |
41 |
| - type_hex: string, |
42 |
| - account?: string, |
43 |
| - issuer?: string, |
44 |
| - currency?: string |
45 |
| - }>>, |
46 |
| - source_amount: RippledAmount |
47 |
| - }>, |
48 |
| - type: string, |
49 |
| - destination_account: string, |
50 |
| - destination_amount: RippledAmount, |
51 |
| - destination_currencies?: Array<string>, |
52 |
| - source_account?: string, |
53 |
| - source_currencies?: Array<{currency: string}>, |
54 |
| - full_reply?: boolean |
55 |
| -} |
| 1 | +/* @flow */ |
| 2 | +'use strict'; |
| 3 | + |
| 4 | +import type {Amount, LaxLaxAmount, RippledAmount, Adjustment, MaxAdjustment, |
| 5 | + MinAdjustment} from '../common/types.js'; |
| 6 | + |
| 7 | + |
| 8 | +type Path = { |
| 9 | + source: Adjustment | MaxAdjustment, |
| 10 | + destination: Adjustment | MinAdjustment, |
| 11 | + paths: string |
| 12 | +} |
| 13 | + |
| 14 | +export type GetPaths = Array<Path> |
| 15 | + |
| 16 | +export type PathFind = { |
| 17 | + source: { |
| 18 | + address: string, |
| 19 | + amount?: Amount, |
| 20 | + currencies?: Array<{currency: string, counterparty?:string}> |
| 21 | + }, |
| 22 | + destination: { |
| 23 | + address: string, |
| 24 | + amount: LaxLaxAmount |
| 25 | + } |
| 26 | +} |
| 27 | + |
| 28 | +export type PathFindRequest = { |
| 29 | + command: string, |
| 30 | + source_account: string, |
| 31 | + destination_amount: RippledAmount, |
| 32 | + destination_account: string, |
| 33 | + source_currencies?: Array<string>, |
| 34 | + send_max?: RippledAmount |
| 35 | +} |
| 36 | + |
| 37 | +export type RippledPathsResponse = { |
| 38 | + alternatives: Array<{ |
| 39 | + paths_computed: Array<Array<{ |
| 40 | + type: number, |
| 41 | + type_hex: string, |
| 42 | + account?: string, |
| 43 | + issuer?: string, |
| 44 | + currency?: string |
| 45 | + }>>, |
| 46 | + source_amount: RippledAmount |
| 47 | + }>, |
| 48 | + type: string, |
| 49 | + destination_account: string, |
| 50 | + destination_amount: RippledAmount, |
| 51 | + destination_currencies?: Array<string>, |
| 52 | + source_account?: string, |
| 53 | + source_currencies?: Array<{currency: string}>, |
| 54 | + full_reply?: boolean |
| 55 | +} |
0 commit comments