mirror of
https://github.com/oceanprotocol/market.git
synced 2024-12-02 05:57:29 +01:00
update compute status feedback messages
This commit is contained in:
parent
9a22e92a4a
commit
6d7852672d
@ -20,6 +20,7 @@ export function getComputeFeedback(
|
||||
0: `Setting price and fees for ${assetType}`,
|
||||
1: `Approving ${datatokenSymbol} and ordering ${assetType} `,
|
||||
2: `Approving ${baseTokenSymbol} and ordering ${assetType}`,
|
||||
3: 'Generating signature. Starting compute job ...'
|
||||
3: `Ordering ${assetType}`,
|
||||
4: 'Generating signature. Starting compute job ...'
|
||||
}
|
||||
}
|
||||
|
@ -215,7 +215,6 @@ export default function Compute({
|
||||
algoPoolParams,
|
||||
initializedProvider.algorithm.providerFee
|
||||
)
|
||||
console.log('algorithmOrderPriceAndFees', algorithmOrderPriceAndFees)
|
||||
if (!algorithmOrderPriceAndFees) {
|
||||
setError('Error setting algorithm price and fees!')
|
||||
toast.error('Error setting algorithm price and fees!')
|
||||
@ -304,7 +303,13 @@ export default function Compute({
|
||||
asset.accessDetails.baseToken?.symbol,
|
||||
asset.accessDetails.datatoken?.symbol,
|
||||
asset.metadata.type
|
||||
)[asset.accessDetails?.type === 'fixed' ? 2 : 1]
|
||||
)[
|
||||
asset.accessDetails?.type === 'fixed'
|
||||
? 2
|
||||
: asset.accessDetails?.type === 'dynamic'
|
||||
? 1
|
||||
: 3
|
||||
]
|
||||
)
|
||||
const datasetOrderTx = await handleComputeOrder(
|
||||
web3,
|
||||
@ -321,7 +326,13 @@ export default function Compute({
|
||||
selectedAlgorithmAsset.accessDetails.baseToken?.symbol,
|
||||
selectedAlgorithmAsset.accessDetails.datatoken?.symbol,
|
||||
selectedAlgorithmAsset.metadata.type
|
||||
)[selectedAlgorithmAsset.accessDetails?.type === 'fixed' ? 2 : 1]
|
||||
)[
|
||||
selectedAlgorithmAsset.accessDetails?.type === 'fixed'
|
||||
? 2
|
||||
: selectedAlgorithmAsset.accessDetails?.type === 'dynamic'
|
||||
? 1
|
||||
: 3
|
||||
]
|
||||
)
|
||||
const algorithmOrderTx = await handleComputeOrder(
|
||||
web3,
|
||||
@ -343,7 +354,7 @@ export default function Compute({
|
||||
publishAlgorithmLog: true,
|
||||
publishOutput: true
|
||||
}
|
||||
setComputeStatusText(getComputeFeedback()[3])
|
||||
setComputeStatusText(getComputeFeedback()[4])
|
||||
const response = await ProviderInstance.computeStart(
|
||||
asset.services[0].serviceEndpoint,
|
||||
web3,
|
||||
|
Loading…
Reference in New Issue
Block a user