Implement payments for app deployments #17

Merged
nabarun merged 27 commits from iv-integrate-payments into main 2024-10-28 09:46:19 +00:00
3 changed files with 3 additions and 8 deletions
Showing only changes of commit e86e1d9eb9 - Show all commits

View File

@ -490,7 +490,7 @@ export class Registry {
this.registry.sendCoins(
{
amount,
denom: 'tlnt',
denom: 'alnt',
destinationAddress: receiverAddress
},
this.registryConfig.privateKey,

View File

@ -93,20 +93,20 @@ const DeploymentDetailsCard = ({
};
const fetchDeploymentLogs = async () => {
setDeploymentLogs('Loading logs...');
handleOpenDialog();
const statusUrl = `${deployment.deployer.deployerApiUrl}/${deployment.applicationDeploymentRequestId}`;
const statusRes = await fetch(statusUrl, { cache: 'no-store' }).then(
(res) => res.json(),
);
if (!statusRes.logAvailable) {
setDeploymentLogs(statusRes.lastState);
handleOpenDialog();
} else {
const logsUrl = `${deployment.deployer.deployerApiUrl}/log/${deployment.applicationDeploymentRequestId}`;
const logsRes = await fetch(logsUrl, { cache: 'no-store' }).then((res) =>
res.text(),
);
setDeploymentLogs(logsRes);
handleOpenDialog();
}
};

View File

@ -442,11 +442,6 @@ export class GQLClient {
}
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({
query: queries.verifyTx,
variables: {