Skip to content

feat(1654): Claim airdrop command implementation#1784

Open
matevszm wants to merge 3 commits intomainfrom
feat-1654/claim-airdrop-command
Open

feat(1654): Claim airdrop command implementation#1784
matevszm wants to merge 3 commits intomainfrom
feat-1654/claim-airdrop-command

Conversation

@matevszm
Copy link
Copy Markdown
Contributor

Signed-off-by: matevszm <mateusz.marcinkowski@blockydevs.com>
@matevszm matevszm requested a review from a team as a code owner April 10, 2026 10:24
@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 10, 2026

Unit Test Results

1 170 tests  +11   1 170 ✅ +11   1m 21s ⏱️ -2s
  118 suites + 1       0 💤 ± 0 
    1 files   ± 0       0 ❌ ± 0 

Results for commit 079e4af. ± Comparison against base commit bc84c80.

♻️ This comment has been updated with latest results.

@github-actions
Copy link
Copy Markdown

github-actions bot commented Apr 10, 2026

Integration Test Results

37 tests  ±0   35 ✅ ±0   3m 46s ⏱️ ±0s
21 suites ±0    2 💤 ±0 
 1 files   ±0    0 ❌ ±0 

Results for commit 079e4af. ± Comparison against base commit bc84c80.

♻️ This comment has been updated with latest results.

Signed-off-by: matevszm <mateusz.marcinkowski@blockydevs.com>
Signed-off-by: matevszm <mateusz.marcinkowski@blockydevs.com>
Comment on lines +176 to +198
private resolveAccountId(
accountOrAlias: string,
api: CoreApi,
network: SupportedNetwork,
): string {
const resolved = api.alias.resolve(
accountOrAlias,
AliasType.Account,
network,
);
if (resolved?.entityId) {
return resolved.entityId;
}

const parsed = EntityIdSchema.safeParse(accountOrAlias);
if (!parsed.success) {
throw new NotFoundError(
`Account not found with ID or alias: ${accountOrAlias}`,
);
}

return parsed.data;
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

check if IdentityResolutionService with AccountReferenceObjectSchema in the input.ts file can be used to to resolve account

Comment on lines +216 to +226
private buildClaimItem(
item: TokenAirdropItem,
receiverAccountId: string,
): ClaimAirdropItem {
return {
tokenId: item.token_id,
senderAccountId: item.sender_id,
receiverAccountId,
serialNumber: item.serial_number ?? undefined,
};
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we really need to move this lofic it to separate method

}

private async fetchTokenInfoMap(
api: CoreApi,
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can just pass the service you are using so in that case mirror service

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants