From 30896bcc841cefb9b64a5eeb9aa88570b5a962fd Mon Sep 17 00:00:00 2001 From: Benjamin Levesque <14175665+benjlevesque@users.noreply.github.com> Date: Thu, 6 Oct 2022 16:26:04 +0200 Subject: [PATCH] remove --- .../src/request-client-thegraph.ts | 26 ------------------- 1 file changed, 26 deletions(-) delete mode 100644 packages/usage-examples/src/request-client-thegraph.ts diff --git a/packages/usage-examples/src/request-client-thegraph.ts b/packages/usage-examples/src/request-client-thegraph.ts deleted file mode 100644 index 6909199177..0000000000 --- a/packages/usage-examples/src/request-client-thegraph.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { RequestNetworkBase } from '@requestnetwork/request-client.js'; -import { TheGraphDataAccess } from '@requestnetwork/thegraph-data-access'; -import { Wallet } from 'ethers'; -import { IpfsStorage, EthereumStorageEthers } from '@requestnetwork/ethereum-storage'; - -const signer = Wallet.createRandom(); -const storage = new EthereumStorageEthers({ - ipfsStorage: new IpfsStorage({}), - signer, - network: 'private', -}); -const dataAccess = new TheGraphDataAccess({ - graphql: { url: 'http://localhost:8000/subgraphs/name/RequestNetwork/request-storage' }, - network: 'private', - storage, -}); -const rn = new RequestNetworkBase({ dataAccess }); - -// const {requestId} = await rn.createRequest(...) - -// const request = await rn.fromRequestId( -// '01123c33c9654c38e5c015de57164d5d26f70bcc53ffe051a0b85e1d8b1d0b07ea', -// ); - -// // Cannot modify request -// await request.accept(...)