From 1981b8a27dbac14b866892ede47106cdf700c96c Mon Sep 17 00:00:00 2001 From: Felicio Mununga Date: Fri, 10 Jun 2022 16:44:24 +0200 Subject: [PATCH] remove scripts --- packages/status-js/.scripts/example copy 2.ts | 23 ------------------- packages/status-js/src/example.ts | 20 ---------------- 2 files changed, 43 deletions(-) delete mode 100644 packages/status-js/.scripts/example copy 2.ts delete mode 100644 packages/status-js/src/example.ts diff --git a/packages/status-js/.scripts/example copy 2.ts b/packages/status-js/.scripts/example copy 2.ts deleted file mode 100644 index a9bba648..00000000 --- a/packages/status-js/.scripts/example copy 2.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { createClient } from '../src/client' - -const COMMUNITY_PUBLIC_KEY = - '0x029f196bbfef4fa6a5eb81dd802133a63498325445ca1af1d154b1bb4542955133' // Boring community -// '0x0243611cc13cc4e4390180fe8fd35234ab0fe2a7ba8d32e8ae5dd23b60ac7ec177' -// '0x02e7102c85ed78e5be30124f8f52014b1135f972c383f55f83ec8ff50436cd1260' -const CHANNEL_ID = '00d3f525-a0cf-4c40-832d-543ec9f8188b' // messages - -;(async () => { - const client = await createClient(COMMUNITY_PUBLIC_KEY) - - await client.start() - - // const community = await client.community.fetchCommunity() - - // client.community.onCommunityUpdate(() => console.log("community:update")) - // client.community.onChannelUpdate(() => console.log("channel:update")) - client.community.onChannelMessages(CHANNEL_ID, () => - console.log('channel:message') - ) - - // await client.stop() -})() diff --git a/packages/status-js/src/example.ts b/packages/status-js/src/example.ts deleted file mode 100644 index f155390c..00000000 --- a/packages/status-js/src/example.ts +++ /dev/null @@ -1,20 +0,0 @@ -// todo: delete -import { createClient } from '../src/client' - -const COMMUNITY_PUBLIC_KEY = - '0x029f196bbfef4fa6a5eb81dd802133a63498325445ca1af1d154b1bb4542955133' // Boring community -// '0x0243611cc13cc4e4390180fe8fd35234ab0fe2a7ba8d32e8ae5dd23b60ac7ec177' -// '0x02e7102c85ed78e5be30124f8f52014b1135f972c383f55f83ec8ff50436cd1260' -const CHANNEL_ID = '00d3f525-a0cf-4c40-832d-543ec9f8188b' // messages - -;(async () => { - const client = await createClient({ publicKey: COMMUNITY_PUBLIC_KEY }) - - // client.community.onCommunityUpdate(() => console.log("community:update")) - // client.community.onChannelUpdate(() => console.log("channel:update")) - client.community.onChannelMessageUpdate(CHANNEL_ID, () => - console.log('channel:message') - ) - - // await client.stop() -})()