diff --git a/packages/dnode/src/lib/channels/getSubscribers.ts b/packages/dnode/src/lib/channels/getSubscribers.ts index f8836f413..5d7219415 100644 --- a/packages/dnode/src/lib/channels/getSubscribers.ts +++ b/packages/dnode/src/lib/channels/getSubscribers.ts @@ -50,7 +50,7 @@ export const getSubscribers = async ( } const _channel = await getCAIPAddress(env, channel, 'Channel'); const API_BASE_URL = await getAPIBaseUrls(env); - let apiEndpoint = `${API_BASE_URL}/v1/channels/${_channel}/subscribers?page=${page}&limit=${limit}&setting=${setting}`; + let apiEndpoint = `${API_BASE_URL}/v1/messaging/settings/${_channel}/ETH_TEST_GOERLI`; if (category) { apiEndpoint = apiEndpoint + `&category=${category}`; } diff --git a/packages/dnode/src/lib/pushNotification/PushNotificationTypes.ts b/packages/dnode/src/lib/pushNotification/PushNotificationTypes.ts index 05bd51a6c..cca45902c 100644 --- a/packages/dnode/src/lib/pushNotification/PushNotificationTypes.ts +++ b/packages/dnode/src/lib/pushNotification/PushNotificationTypes.ts @@ -11,10 +11,10 @@ export type SubscriptionOptions = { }; export type ChannelInfoOptions = { channel?: string; - page?: number; - limit?: number; - category?: number; - setting?: boolean; + // page?: number; + // limit?: number; + // category?: number; + // setting?: boolean; raw?: boolean; }; diff --git a/packages/dnode/src/lib/pushNotification/channel.ts b/packages/dnode/src/lib/pushNotification/channel.ts index cc2a48f8f..32cb35898 100644 --- a/packages/dnode/src/lib/pushNotification/channel.ts +++ b/packages/dnode/src/lib/pushNotification/channel.ts @@ -100,24 +100,15 @@ export class Channel extends PushNotificationBaseClass { channel = validateCAIP(channel!) ? channel : getFallbackETHCAIPAddress(this.env!, channel!); - if (options && options.page) { - return await PUSH_CHANNEL.getSubscribers({ - channel: channel!, - env: this.env, - page: options.page, - limit: options.limit ?? 10, - setting: options.setting ?? false, - category: options.category, - raw: options.raw, - }); - } else { - /** @dev - Fallback to deprecated method when page is not provided ( to ensure backward compatibility ) */ - /** @notice - This will be removed in V2 Publish */ - return await PUSH_CHANNEL._getSubscribers({ - channel: channel!, - env: this.env, - }); - } + return await PUSH_CHANNEL.getSubscribers({ + channel: channel!, + env: this.env, + // page: options.page, + // limit: options.limit ?? 10, + // setting: options.setting ?? false, + // category: options.category, + raw: options?.raw ?? true, + }); } catch (error) { throw new Error(`Push SDK Error: API : channel::subscribers : ${error}`); } diff --git a/packages/dnode/tests/lib/aliasChains/arbitrum.test.ts b/packages/dnode/tests/lib/aliasChains/arbitrum.test.ts deleted file mode 100644 index 9aaddb592..000000000 --- a/packages/dnode/tests/lib/aliasChains/arbitrum.test.ts +++ /dev/null @@ -1,87 +0,0 @@ -import { ethers } from 'ethers'; -import { PushAPI } from '../../../src'; -import { ENV } from '../../../src/lib/constants'; - -describe('ARBITRUM ALIAS functionality', () => { - let userAlice: PushAPI; - let userBob: PushAPI; - let account: string; - let account2: string; - - // accessing env dynamically using process.env - type EnvStrings = keyof typeof ENV; - const envMode = process.env.ENV as EnvStrings; - const _env = ENV[envMode]; - - before(async () => { - const provider = new ethers.providers.JsonRpcProvider( - 'https://sepolia-rollup.arbitrum.io/rpc' - ); - const signer = new ethers.Wallet( - `0x${process.env['ARBITRUM_CHANNEL_PRIVATE_KEY']}`, - provider - ); - account = signer.address; - userAlice = await PushAPI.initialize(signer, { - env: _env, - }); - - const signer2 = new ethers.Wallet(ethers.Wallet.createRandom().privateKey); - account2 = signer2.address; - userBob = await PushAPI.initialize(signer2, { env: _env }); - }); - - it.skip('Should be able to create channel', async () => { - const channelInfo = await userAlice.channel.info(); - if (channelInfo) return; // skip if already exists - const res = await userAlice.channel.create({ - name: 'SDK Alias Test', - description: 'Testing using sdk', - url: 'https://push.org', - icon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAz0lEQVR4AcXBsU0EQQyG0e+saWJ7oACiKYDMEZVs6GgSpC2BIhzRwAS0sgk9HKn3gpFOAv3v3V4/3+4U4Z1q5KTy42Ql940qvFONnFSGmCFmiN2+fj7uCBlihpgh1ngwcvKfwjuVIWaIGWKNB+GdauSk8uNkJfeNKryzYogZYoZY40m5b/wlQ8wQM8TayMlKeKcaOVkJ71QjJyuGmCFmiDUe+HFy4VyEd57hx0mV+0ZliBlihlgL71w4FyMnVXhnZeSkiu93qheuDDFDzBD7BcCyMAOfy204AAAAAElFTkSuQmCC', - alias: `eip155:421614:${account}`, - progressHook: (progress: any) => console.log(progress), - }); - console.log(res); - }); - - it('Should be able to send notifications', async () => { - await userAlice.channel.send(['*'], { - notification: { - title: 'hi', - body: 'test-broadcast', - }, - payload: { - title: 'testing broadcast notification', - body: 'testing with random body', - cta: 'https://google.com/', - embed: 'https://avatars.githubusercontent.com/u/64157541?s=200&v=4', - }, - channel: `eip155:421614:${account}`, - }); - }); - - it('Should be able to add delegatee', async () => { - await userAlice.channel.delegate.add(account2); - }); - - it('Should be able to send notifications from delegate', async () => { - await userBob.channel.send(['*'], { - notification: { - title: 'hi', - body: 'test-broadcast', - }, - payload: { - title: 'testing broadcast notification', - body: 'testing with random body', - cta: 'https://google.com/', - embed: 'https://avatars.githubusercontent.com/u/64157541?s=200&v=4', - }, - channel: `eip155:421614:${account}`, - }); - }); - - it('Should be able to remove delegatee', async () => { - await userAlice.channel.delegate.remove(account2); - }); -}); diff --git a/packages/dnode/tests/lib/aliasChains/berachain.test.ts b/packages/dnode/tests/lib/aliasChains/berachain.test.ts deleted file mode 100644 index 9dcce6bf5..000000000 --- a/packages/dnode/tests/lib/aliasChains/berachain.test.ts +++ /dev/null @@ -1,87 +0,0 @@ -import { ethers } from 'ethers'; -import { PushAPI } from '../../../src'; -import { ENV } from '../../../src/lib/constants'; - -describe('BERACHAIN ALIAS functionality', () => { - let userAlice: PushAPI; - let userBob: PushAPI; - let account: string; - let account2: string; - - // accessing env dynamically using process.env - type EnvStrings = keyof typeof ENV; - const envMode = process.env.ENV as EnvStrings; - const _env = ENV[envMode]; - - before(async () => { - const provider = new ethers.providers.JsonRpcProvider( - 'https://artio.rpc.berachain.com' // berachain artio Provider - ); - const signer = new ethers.Wallet( - `0x${process.env['BERACHAIN_CHANNEL_PRIVATE_KEY']}`, - provider - ); - account = signer.address; - userAlice = await PushAPI.initialize(signer, { - env: _env, - }); - - const signer2 = new ethers.Wallet(ethers.Wallet.createRandom().privateKey); - account2 = signer2.address; - userBob = await PushAPI.initialize(signer2, { env: _env }); - }); - - it.skip('Should be able to create channel', async () => { - const channelInfo = await userAlice.channel.info(); - if (channelInfo) return; // skip if already exists - const res = await userAlice.channel.create({ - name: 'SDK Alias Test', - description: 'Testing using sdk', - url: 'https://push.org', - icon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAz0lEQVR4AcXBsU0EQQyG0e+saWJ7oACiKYDMEZVs6GgSpC2BIhzRwAS0sgk9HKn3gpFOAv3v3V4/3+4U4Z1q5KTy42Ql940qvFONnFSGmCFmiN2+fj7uCBlihpgh1ngwcvKfwjuVIWaIGWKNB+GdauSk8uNkJfeNKryzYogZYoZY40m5b/wlQ8wQM8TayMlKeKcaOVkJ71QjJyuGmCFmiDUe+HFy4VyEd57hx0mV+0ZliBlihlgL71w4FyMnVXhnZeSkiu93qheuDDFDzBD7BcCyMAOfy204AAAAAElFTkSuQmCC', - alias: `eip155:80085:${account}`, - progressHook: (progress: any) => console.log(progress), - }); - console.log(res); - }); - - it('Should be able to send notifications', async () => { - await userAlice.channel.send(['*'], { - notification: { - title: 'hi', - body: 'test-broadcast', - }, - payload: { - title: 'testing broadcast notification', - body: 'testing with random body', - cta: 'https://google.com/', - embed: 'https://avatars.githubusercontent.com/u/64157541?s=200&v=4', - }, - channel: `eip155:80085:${account}`, - }); - }); - - it('Should be able to add delegatee', async () => { - await userAlice.channel.delegate.add(account2); - }); - - it('Should be able to send notifications from delegate', async () => { - await userBob.channel.send(['*'], { - notification: { - title: 'hi', - body: 'test-broadcast', - }, - payload: { - title: 'testing broadcast notification', - body: 'testing with random body', - cta: 'https://google.com/', - embed: 'https://avatars.githubusercontent.com/u/64157541?s=200&v=4', - }, - channel: `eip155:80085:${account}`, - }); - }); - - it('Should be able to remove delegatee', async () => { - await userAlice.channel.delegate.remove(account2); - }); -}); diff --git a/packages/dnode/tests/lib/aliasChains/optimism.test.ts b/packages/dnode/tests/lib/aliasChains/optimism.test.ts deleted file mode 100644 index a18d61d41..000000000 --- a/packages/dnode/tests/lib/aliasChains/optimism.test.ts +++ /dev/null @@ -1,87 +0,0 @@ -import { ethers } from 'ethers'; -import { PushAPI } from '../../../src'; -import { ENV } from '../../../src/lib/constants'; - -describe('OPTIMISM ALIAS functionality', () => { - let userAlice: PushAPI; - let userBob: PushAPI; - let account: string; - let account2: string; - - // accessing env dynamically using process.env - type EnvStrings = keyof typeof ENV; - const envMode = process.env.ENV as EnvStrings; - const _env = ENV[envMode]; - - before(async () => { - const provider = new ethers.providers.JsonRpcProvider( - 'https://sepolia.optimism.io' - ); - const signer = new ethers.Wallet( - `0x${process.env['OPTIMISM_CHANNEL_PRIVATE_KEY']}`, - provider - ); - account = signer.address; - userAlice = await PushAPI.initialize(signer, { - env: _env, - }); - - const signer2 = new ethers.Wallet(ethers.Wallet.createRandom().privateKey); - account2 = signer2.address; - userBob = await PushAPI.initialize(signer2, { env: _env }); - }); - - it.skip('Should be able to create channel', async () => { - const channelInfo = await userAlice.channel.info(); - if (channelInfo) return; // skip if already exists - const res = await userAlice.channel.create({ - name: 'SDK Alias Test', - description: 'Testing using sdk', - url: 'https://push.org', - icon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAz0lEQVR4AcXBsU0EQQyG0e+saWJ7oACiKYDMEZVs6GgSpC2BIhzRwAS0sgk9HKn3gpFOAv3v3V4/3+4U4Z1q5KTy42Ql940qvFONnFSGmCFmiN2+fj7uCBlihpgh1ngwcvKfwjuVIWaIGWKNB+GdauSk8uNkJfeNKryzYogZYoZY40m5b/wlQ8wQM8TayMlKeKcaOVkJ71QjJyuGmCFmiDUe+HFy4VyEd57hx0mV+0ZliBlihlgL71w4FyMnVXhnZeSkiu93qheuDDFDzBD7BcCyMAOfy204AAAAAElFTkSuQmCC', - alias: `eip155:11155420:${account}`, - progressHook: (progress: any) => console.log(progress), - }); - console.log(res); - }); - - it('Should be able to send notifications', async () => { - await userAlice.channel.send(['*'], { - notification: { - title: 'hi', - body: 'test-broadcast', - }, - payload: { - title: 'testing broadcast notification', - body: 'testing with random body', - cta: 'https://google.com/', - embed: 'https://avatars.githubusercontent.com/u/64157541?s=200&v=4', - }, - channel: `eip155:11155420:${account}`, - }); - }); - - it('Should be able to add delegatee', async () => { - await userAlice.channel.delegate.add(account2); - }); - - it('Should be able to send notifications from delegate', async () => { - await userBob.channel.send(['*'], { - notification: { - title: 'hi', - body: 'test-broadcast', - }, - payload: { - title: 'testing broadcast notification', - body: 'testing with random body', - cta: 'https://google.com/', - embed: 'https://avatars.githubusercontent.com/u/64157541?s=200&v=4', - }, - channel: `eip155:11155420:${account}`, - }); - }); - - it('Should be able to remove delegatee', async () => { - await userAlice.channel.delegate.remove(account2); - }); -}); diff --git a/packages/dnode/tests/lib/aliasChains/polygon.test.ts b/packages/dnode/tests/lib/aliasChains/polygon.test.ts deleted file mode 100644 index 5aa2cfc2e..000000000 --- a/packages/dnode/tests/lib/aliasChains/polygon.test.ts +++ /dev/null @@ -1,84 +0,0 @@ -import { ethers } from 'ethers'; -import { PushAPI } from '../../../src'; -import { ENV } from '../../../src/lib/constants'; - -describe('POLYGON ALIAS functionality', () => { - let userAlice: PushAPI; - let userBob: PushAPI; - let account: string; - let account2: string; - - // accessing env dynamically using process.env - type EnvStrings = keyof typeof ENV; - const envMode = process.env.ENV as EnvStrings; - const _env = ENV[envMode]; - - before(async () => { - const provider = new ethers.providers.JsonRpcProvider( - 'https://rpc-amoy.polygon.technology/' - ); - const signer = new ethers.Wallet( - `0x${process.env['POLYGON_CHANNEL_PRIVATE_KEY']}`, - provider - ); - account = signer.address; - userAlice = await PushAPI.initialize(signer, { - env: _env, - }); - - const signer2 = new ethers.Wallet(ethers.Wallet.createRandom().privateKey); - account2 = signer2.address; - userBob = await PushAPI.initialize(signer2, { env: _env }); - }); - - it.skip('Should be able to create channel', async () => { - const res = await userAlice.channel.create({ - name: 'SDK Alias Test', - description: 'Testing using sdk', - url: 'https://push.org', - icon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAz0lEQVR4AcXBsU0EQQyG0e+saWJ7oACiKYDMEZVs6GgSpC2BIhzRwAS0sgk9HKn3gpFOAv3v3V4/3+4U4Z1q5KTy42Ql940qvFONnFSGmCFmiN2+fj7uCBlihpgh1ngwcvKfwjuVIWaIGWKNB+GdauSk8uNkJfeNKryzYogZYoZY40m5b/wlQ8wQM8TayMlKeKcaOVkJ71QjJyuGmCFmiDUe+HFy4VyEd57hx0mV+0ZliBlihlgL71w4FyMnVXhnZeSkiu93qheuDDFDzBD7BcCyMAOfy204AAAAAElFTkSuQmCC', - alias: `eip155:80002:${account}`, - progressHook: (progress: any) => console.log(progress), - }); - }); - - it('Should be able to send notifications', async () => { - await userAlice.channel.send(['*'], { - notification: { - title: 'hi', - body: 'test-broadcast', - }, - payload: { - title: 'testing broadcast notification', - body: 'testing with random body', - cta: 'https://google.com/', - embed: 'https://avatars.githubusercontent.com/u/64157541?s=200&v=4', - }, - channel: `eip155:80002:${account}`, - }); - }); - - it('Should be able to add delegatee', async () => { - await userAlice.channel.delegate.add(account2); - }); - - it('Should be able to send notifications from delegate', async () => { - await userBob.channel.send(['*'], { - notification: { - title: 'hi', - body: 'test-broadcast', - }, - payload: { - title: 'testing broadcast notification', - body: 'testing with random body', - cta: 'https://google.com/', - embed: 'https://avatars.githubusercontent.com/u/64157541?s=200&v=4', - }, - channel: `eip155:80002:${account}`, - }); - }); - - it('Should be able to remove delegatee', async () => { - await userAlice.channel.delegate.remove(account2); - }); -}); diff --git a/packages/dnode/tests/lib/aliasChains/polygonZkevm.test.ts b/packages/dnode/tests/lib/aliasChains/polygonZkevm.test.ts deleted file mode 100644 index bc56975fe..000000000 --- a/packages/dnode/tests/lib/aliasChains/polygonZkevm.test.ts +++ /dev/null @@ -1,85 +0,0 @@ -import { ethers } from 'ethers'; -import { PushAPI } from '../../../src'; -import { ENV } from '../../../src/lib/constants'; - -describe('POLYGON ZKEVM ALIAS functionality', () => { - let userAlice: PushAPI; - let userBob: PushAPI; - let account: string; - let account2: string; - - // accessing env dynamically using process.env - type EnvStrings = keyof typeof ENV; - const envMode = process.env.ENV as EnvStrings; - const _env = ENV[envMode]; - - before(async () => { - const provider = new ethers.providers.JsonRpcProvider( - 'https://rpc.cardona.zkevm-rpc.com/' - ); - const signer = new ethers.Wallet( - `0x${process.env['POLYGON_ZKEVM_CHANNEL_PRIVATE_KEY']}`, - provider - ); - account = signer.address; - userAlice = await PushAPI.initialize(signer, { - env: _env, - }); - - const signer2 = new ethers.Wallet(ethers.Wallet.createRandom().privateKey); - account2 = signer2.address; - userBob = await PushAPI.initialize(signer2, { env: _env }); - }); - - it.skip('Should be able to create channel', async () => { - const res = await userAlice.channel.create({ - name: 'SDK Alias Test', - description: 'Testing using sdk', - url: 'https://push.org', - icon: 'data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACAAAAAgCAYAAABzenr0AAAAz0lEQVR4AcXBsU0EQQyG0e+saWJ7oACiKYDMEZVs6GgSpC2BIhzRwAS0sgk9HKn3gpFOAv3v3V4/3+4U4Z1q5KTy42Ql940qvFONnFSGmCFmiN2+fj7uCBlihpgh1ngwcvKfwjuVIWaIGWKNB+GdauSk8uNkJfeNKryzYogZYoZY40m5b/wlQ8wQM8TayMlKeKcaOVkJ71QjJyuGmCFmiDUe+HFy4VyEd57hx0mV+0ZliBlihlgL71w4FyMnVXhnZeSkiu93qheuDDFDzBD7BcCyMAOfy204AAAAAElFTkSuQmCC', - alias: `eip155:2442:${account}`, - progressHook: (progress: any) => console.log(progress), - }); - console.log(res); - }); - - it('Should be able to send notifications', async () => { - await userAlice.channel.send(['*'], { - notification: { - title: 'hi', - body: 'test-broadcast', - }, - payload: { - title: 'testing broadcast notification', - body: 'testing with random body', - cta: 'https://google.com/', - embed: 'https://avatars.githubusercontent.com/u/64157541?s=200&v=4', - }, - channel: `eip155:2442:${account}`, - }); - }); - - it('Should be able to add delegatee', async () => { - await userAlice.channel.delegate.add(account2); - }); - - it('Should be able to send notifications from delegate', async () => { - await userBob.channel.send(['*'], { - notification: { - title: 'hi', - body: 'test-broadcast', - }, - payload: { - title: 'testing broadcast notification', - body: 'testing with random body', - cta: 'https://google.com/', - embed: 'https://avatars.githubusercontent.com/u/64157541?s=200&v=4', - }, - channel: `eip155:2442:${account}`, - }); - }); - - it('Should be able to remove delegatee', async () => { - await userAlice.channel.delegate.remove(account2); - }); -}); diff --git a/packages/dnode/tests/lib/notification/alias.test.ts b/packages/dnode/tests/lib/notification/alias.test.ts index bdd657582..e9db31a95 100644 --- a/packages/dnode/tests/lib/notification/alias.test.ts +++ b/packages/dnode/tests/lib/notification/alias.test.ts @@ -6,7 +6,7 @@ import { ENV } from '../../../src/lib/constants'; import { createWalletClient, http } from 'viem'; import { privateKeyToAccount } from 'viem/accounts'; -describe('PushAPI.alias functionality', () => { +describe.skip('PushAPI.alias functionality', () => { let userAlice: PushAPI; let userBob: PushAPI; let userKate: PushAPI; diff --git a/packages/dnode/tests/lib/notification/channel.test.ts b/packages/dnode/tests/lib/notification/channel.test.ts index 3dd443e88..0da7eab76 100644 --- a/packages/dnode/tests/lib/notification/channel.test.ts +++ b/packages/dnode/tests/lib/notification/channel.test.ts @@ -92,7 +92,7 @@ describe('PushAPI.channel functionality', () => { }); }); - describe('channel :: search', () => { + describe.skip('channel :: search', () => { it('Without signer and account : Should return response', async () => { const res = await userBob.channel.search(' '); // console.log(res); @@ -124,78 +124,9 @@ describe('PushAPI.channel functionality', () => { const res = await userBob.channel.subscribers({ channel: '0x93A829d16DE51745Db0530A0F8E8A9B8CA5370E5', }); - // console.log(res) - expect(res).not.null; - }); - - it('Without signer and account : Should return response as address is passed', async () => { - const res = await userBob.channel.subscribers({ - channel: '0x93A829d16DE51745Db0530A0F8E8A9B8CA5370E5', - page: 1, - limit: 10, - }); - // console.log(res) - expect(res).not.null; - }); - - it('Without signer and account : Should return response for alias address', async () => { - const res = await userBob.channel.subscribers({ - channel: 'eip155:80001:0x93A829d16DE51745Db0530A0F8E8A9B8CA5370E5', - }); - // console.log(res) - expect(res).not.null; - }); - - it('Without signer and account : Should return response without passing the options', async () => { - const res = await userKate.channel.subscribers(); - expect(res).not.null; - }); - - it('With signer and account : Should return response without passing the options', async () => { - const res = await userKate.channel.subscribers({ page: 1, limit: 10 }); - // console.log(res) - expect(res).not.null; - }); - - it('With signer and account : Should return response with settings', async () => { - const res = await userKate.channel.subscribers({ - page: 1, - limit: 10, - setting: true, - }); console.log(res); expect(res).not.null; }); - - it('With signer and account : Should return response without settings', async () => { - const res = await userKate.channel.subscribers({ - page: 1, - limit: 10, - setting: false, - category: 1, - }); - // console.log(res) - expect(res).not.null; - }); - - it('With signer and account : Should return response with settings', async () => { - const res = await userKate.channel.subscribers({ - page: 1, - limit: 10, - setting: true, - raw: false, - }); - // console.log(JSON.stringify(res)) - expect(res).not.null; - }); - - it('Without signer and account : Should throw error for invalid caip', async () => { - await expect(() => - userBob.channel.subscribers({ - channel: '0x93A829d16DE51745Db0530A0F8E8A9B8CA5370E5', - }) - ).to.Throw; - }); }); describe('channel :: send', () => { @@ -320,7 +251,7 @@ describe('PushAPI.channel functionality', () => { }); }); - describe('channel :: update', () => { + describe.skip('channel :: update', () => { it('Should update channel meta', async () => { const res = await userKate.channel.update({ name: 'Updated Name', @@ -359,7 +290,7 @@ describe('PushAPI.channel functionality', () => { }, 10000000000); }); - describe('channel :: settings', () => { + describe.skip('channel :: settings', () => { it('Should create channel settings', async () => { const res = await userKate.channel.setting([ { @@ -459,7 +390,7 @@ describe('PushAPI.channel functionality', () => { }, 10000000000); }); - describe('notifications', async () => { + describe.skip('notifications', async () => { it('Should fetch channel specific feeds', async () => { const res = await userAlice.channel.notifications( 'eip155:5:0xD8634C39BBFd4033c0d3289C4515275102423681', diff --git a/packages/dnode/tests/lib/notification/delegate.test.ts b/packages/dnode/tests/lib/notification/delegate.test.ts index 63e88eeb1..bc5dc85a1 100644 --- a/packages/dnode/tests/lib/notification/delegate.test.ts +++ b/packages/dnode/tests/lib/notification/delegate.test.ts @@ -7,7 +7,7 @@ import { privateKeyToAccount } from 'viem/accounts'; // import tokenABI from './tokenABI'; import { ENV } from '../../../src/lib/constants'; -describe('PushAPI.delegate functionality', () => { +describe.skip('PushAPI.delegate functionality', () => { let userAlice: PushAPI; let userBob: PushAPI; let userKate: PushAPI; diff --git a/packages/dnode/tests/lib/notification/notification.test.ts b/packages/dnode/tests/lib/notification/notification.test.ts index 0d3017c15..8ac33662c 100644 --- a/packages/dnode/tests/lib/notification/notification.test.ts +++ b/packages/dnode/tests/lib/notification/notification.test.ts @@ -62,7 +62,7 @@ describe('PushAPI.notification functionality', () => { }); }); - describe('notification :: subscribe', () => { + describe.skip('notification :: subscribe', () => { beforeEach(async () => { // await userAlice.notification.unsubscribe( // 'eip155:5:0xD8634C39BBFd4033c0d3289C4515275102423681' @@ -186,7 +186,7 @@ describe('PushAPI.notification functionality', () => { }); }); - describe('notification :: subscriptions', () => { + describe.skip('notification :: subscriptions', () => { it.skip('No signer or account: Should throw error', async () => { await expect(() => userBob.notification.subscriptions()).to.Throw; });