2022-02-14 17:27:36 +01:00
|
|
|
// TODO: can be better
|
|
|
|
export function getOrderFeedback(
|
|
|
|
baseTokenSymbol: string,
|
|
|
|
datatokenSymbol: string
|
|
|
|
): { [key in number]: string } {
|
2021-03-17 11:44:26 +01:00
|
|
|
return {
|
2022-02-14 17:27:36 +01:00
|
|
|
0: `Approving and buying one ${datatokenSymbol} from pool`,
|
|
|
|
1: `Ordering asset`,
|
|
|
|
2: `Approving ${baseTokenSymbol} and ordering asset`,
|
|
|
|
3: 'Generating signature to access download url'
|
2021-03-17 11:44:26 +01:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2022-02-14 17:27:36 +01:00
|
|
|
// TODO: customize for compute
|
|
|
|
export const computeFeedback: { [key in number]: string } = {
|
|
|
|
0: 'Ordering asset...',
|
|
|
|
1: 'Transfering datatoken.',
|
|
|
|
2: 'Access granted. Starting job...'
|
2021-06-16 03:32:11 +02:00
|
|
|
}
|