From a5be4c3e34f96413fb6c3187b8c1398abb483b63 Mon Sep 17 00:00:00 2001 From: Diego Figueroa Date: Fri, 3 May 2024 08:31:47 -0400 Subject: [PATCH] feat: accept aurora tld for near addresses --- .changeset/moody-crabs-invent.md | 5 +++++ plugins/blockchainradar-backend/src/adapters/NearAdapter.ts | 1 + 2 files changed, 6 insertions(+) create mode 100644 .changeset/moody-crabs-invent.md diff --git a/.changeset/moody-crabs-invent.md b/.changeset/moody-crabs-invent.md new file mode 100644 index 0000000..bcfb6f2 --- /dev/null +++ b/.changeset/moody-crabs-invent.md @@ -0,0 +1,5 @@ +--- +'@aurora-is-near/backstage-plugin-blockchainradar-backend': patch +--- + +feat: accept aurora tld for near addresses diff --git a/plugins/blockchainradar-backend/src/adapters/NearAdapter.ts b/plugins/blockchainradar-backend/src/adapters/NearAdapter.ts index 524035d..fb7350e 100644 --- a/plugins/blockchainradar-backend/src/adapters/NearAdapter.ts +++ b/plugins/blockchainradar-backend/src/adapters/NearAdapter.ts @@ -82,6 +82,7 @@ export class NearAdapter extends BlockchainAdapter { isValidAddress(address: string): boolean { return ( !!address.match(/\.near$/) || + !!address.match(/\.aurora/) || !!address.match(/\.testnet$/) || !!address.match(/^[0-9a-fA-F]{64}$/) || address === 'aurora'