Skip to content

Commit 5d63cd1

Browse files
- Added Solana address activity webhook (alchemyplatform#500)
- Added animation to NFT type - Added name to create-webhook
1 parent 3576bfd commit 5d63cd1

5 files changed

Lines changed: 13 additions & 12 deletions

File tree

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@
66

77
### Minor Changes
88

9+
## 3.5.7
10+
11+
### Minor Changes
12+
13+
- Added Solana address activity webhook
14+
- Added animation to NFT type
15+
- Added name to create-webhook
16+
917
## 3.5.6
1018

1119
### Minor Changes

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "alchemy-sdk",
3-
"version": "3.5.6",
3+
"version": "3.5.7",
44
"description": "Extended Ethers.js SDK for Alchemy APIs",
55
"author": "Alchemy",
66
"license": "MIT",

src/api/notify-namespace.ts

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ import { AxiosRequestConfig, Method } from 'axios';
22

33
import { BigNumber } from '@ethersproject/bignumber';
44

5-
import { isAddress } from '@solana/web3.js';
65
import { requestHttpWithBackoff } from '../internal/dispatch';
76
import {
87
RawAddressActivityResponse,
@@ -13,7 +12,6 @@ import {
1312
RawNftFiltersResponse,
1413
RawWebhook
1514
} from '../internal/raw-interfaces';
16-
1715
import {
1816
AddressActivityResponse,
1917
AddressActivityWebhook,
@@ -501,14 +499,6 @@ export class NotifyNamespace {
501499
? NETWORK_TO_WEBHOOK_NETWORK.get(params.network)
502500
: network;
503501

504-
// Validate Solana addresses if network is Solana
505-
if (params.network === Network.SOLANA_MAINNET || params.network === Network.SOLANA_DEVNET) {
506-
const invalidAddresses = params.addresses.filter(addr => !isAddress(addr));
507-
if (invalidAddresses.length > 0) {
508-
throw new Error(`Invalid Solana addresses: ${invalidAddresses.join(', ')}`);
509-
}
510-
}
511-
512502
addresses = await this.resolveAddresses(params.addresses);
513503
} else if (type == WebhookType.GRAPHQL) {
514504
if (

src/types/types.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ import {
1616

1717
export * from './ethers-types';
1818

19+
/** @internal Workaround to prevent TS unused import error */
20+
void (0 as unknown as NotifyNamespace);
21+
1922
// TODO: separate this file into other files.
2023

2124
/**

src/version.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
// This file is autogenerated by injectVersion.js. Any changes will be
22
// overwritten on commit!
3-
export const VERSION = '3.5.6';
3+
export const VERSION = '3.5.7';

0 commit comments

Comments
 (0)