Update build logs UI
This commit is contained in:
parent
c62ea68669
commit
e86e1d9eb9
@ -490,7 +490,7 @@ export class Registry {
|
|||||||
this.registry.sendCoins(
|
this.registry.sendCoins(
|
||||||
{
|
{
|
||||||
amount,
|
amount,
|
||||||
denom: 'tlnt',
|
denom: 'alnt',
|
||||||
destinationAddress: receiverAddress
|
destinationAddress: receiverAddress
|
||||||
},
|
},
|
||||||
this.registryConfig.privateKey,
|
this.registryConfig.privateKey,
|
||||||
|
@ -93,20 +93,20 @@ const DeploymentDetailsCard = ({
|
|||||||
};
|
};
|
||||||
|
|
||||||
const fetchDeploymentLogs = async () => {
|
const fetchDeploymentLogs = async () => {
|
||||||
|
setDeploymentLogs('Loading logs...');
|
||||||
|
handleOpenDialog();
|
||||||
const statusUrl = `${deployment.deployer.deployerApiUrl}/${deployment.applicationDeploymentRequestId}`;
|
const statusUrl = `${deployment.deployer.deployerApiUrl}/${deployment.applicationDeploymentRequestId}`;
|
||||||
const statusRes = await fetch(statusUrl, { cache: 'no-store' }).then(
|
const statusRes = await fetch(statusUrl, { cache: 'no-store' }).then(
|
||||||
(res) => res.json(),
|
(res) => res.json(),
|
||||||
);
|
);
|
||||||
if (!statusRes.logAvailable) {
|
if (!statusRes.logAvailable) {
|
||||||
setDeploymentLogs(statusRes.lastState);
|
setDeploymentLogs(statusRes.lastState);
|
||||||
handleOpenDialog();
|
|
||||||
} else {
|
} else {
|
||||||
const logsUrl = `${deployment.deployer.deployerApiUrl}/log/${deployment.applicationDeploymentRequestId}`;
|
const logsUrl = `${deployment.deployer.deployerApiUrl}/log/${deployment.applicationDeploymentRequestId}`;
|
||||||
const logsRes = await fetch(logsUrl, { cache: 'no-store' }).then((res) =>
|
const logsRes = await fetch(logsUrl, { cache: 'no-store' }).then((res) =>
|
||||||
res.text(),
|
res.text(),
|
||||||
);
|
);
|
||||||
setDeploymentLogs(logsRes);
|
setDeploymentLogs(logsRes);
|
||||||
handleOpenDialog();
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -442,11 +442,6 @@ export class GQLClient {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async verifyTx(txHash: string, amount: string, senderAddress: string): Promise<boolean> {
|
async verifyTx(txHash: string, amount: string, senderAddress: string): Promise<boolean> {
|
||||||
console.log('Verifying Transaction with parameters:', {
|
|
||||||
txHash,
|
|
||||||
amount,
|
|
||||||
senderAddress
|
|
||||||
});
|
|
||||||
const { data: verifyTx } = await this.client.query({
|
const { data: verifyTx } = await this.client.query({
|
||||||
query: queries.verifyTx,
|
query: queries.verifyTx,
|
||||||
variables: {
|
variables: {
|
||||||
|
Loading…
Reference in New Issue
Block a user