Pass payment tx hash in deployment request #19

Merged
nabarun merged 10 commits from iv-update-request into main 2024-10-29 09:12:40 +00:00
2 changed files with 4 additions and 4 deletions
Showing only changes of commit c4ca9517c0 - Show all commits

View File

@ -19,7 +19,7 @@ export class Deployer {
minimumPayment!: string | null; minimumPayment!: string | null;
@Column('varchar', { nullable: true }) @Column('varchar', { nullable: true })
deployerAddress!: string | null; paymentAddress!: string | null;
@ManyToMany(() => Project, (project) => project.deployers) @ManyToMany(() => Project, (project) => project.deployers)
projects!: Project[]; projects!: Project[];

View File

@ -912,7 +912,7 @@ export class Service {
if (deployer.minimumPayment && project.txHash) { if (deployer.minimumPayment && project.txHash) {
const txResponse = await this.laconicRegistry.sendTokensToAccount( const txResponse = await this.laconicRegistry.sendTokensToAccount(
deployer?.deployerAddress!, deployer?.paymentAddress!,
deployer?.minimumPayment deployer?.minimumPayment
); );
@ -1423,7 +1423,7 @@ export class Service {
const deployerLrn = record.names[0]; const deployerLrn = record.names[0];
const deployerApiUrl = record.attributes.apiUrl; const deployerApiUrl = record.attributes.apiUrl;
const minimumPayment = record.attributes.minimumPayment; const minimumPayment = record.attributes.minimumPayment;
const deployerAddress = record.attributes.paymentAddress; const paymentAddress = record.attributes.paymentAddress;
const baseDomain = deployerApiUrl.substring(deployerApiUrl.indexOf('.') + 1); const baseDomain = deployerApiUrl.substring(deployerApiUrl.indexOf('.') + 1);
const deployerData = { const deployerData = {
@ -1432,7 +1432,7 @@ export class Service {
deployerApiUrl, deployerApiUrl,
baseDomain, baseDomain,
minimumPayment, minimumPayment,
deployerAddress paymentAddress
}; };
// TODO: Update deployers table in a separate job // TODO: Update deployers table in a separate job