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'