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( this.registry.sendCoins(
{ {
amount, amount,
denom: 'tlnt', denom: 'alnt',
destinationAddress: receiverAddress destinationAddress: receiverAddress
}, },
this.registryConfig.privateKey, this.registryConfig.privateKey,

View File

@ -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();
} }
}; };

View File

@ -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: {