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-03-12 13:44:12 +01:00
|
|
|
export function getComputeFeedback(
|
|
|
|
baseTokenSymbol?: string,
|
|
|
|
datatokenSymbol?: string,
|
|
|
|
assetType?: string
|
|
|
|
): { [key in number]: string } {
|
|
|
|
return {
|
|
|
|
0: `Setting price and fees for ${assetType}`,
|
|
|
|
1: `Approving and buying one ${datatokenSymbol} from pool`,
|
|
|
|
2: `Ordering ${assetType} and transfering datatoken ...`,
|
|
|
|
3: `Approving ${baseTokenSymbol} and ordering ${assetType}`,
|
|
|
|
4: 'Generating signature. Starting compute job ...'
|
|
|
|
}
|
2021-06-16 03:32:11 +02:00
|
|
|
}
|