From e7d1d034b02dab582e372a3db2a4cee5d368a493 Mon Sep 17 00:00:00 2001 From: Byron Guina Date: Fri, 21 Feb 2025 19:09:35 -0800 Subject: [PATCH 1/2] feat: remove graph publish --- src/graph/index.ts | 1 - src/graph/publish.ts | 37 ------------------------------------- 2 files changed, 38 deletions(-) delete mode 100644 src/graph/publish.ts diff --git a/src/graph/index.ts b/src/graph/index.ts index faa02a3..e0b10c8 100644 --- a/src/graph/index.ts +++ b/src/graph/index.ts @@ -2,4 +2,3 @@ export * from './create-entity.js'; export * from './create-property.js'; export * from './create-space.js'; export * from './create-type.js'; -export * from './publish.js'; diff --git a/src/graph/publish.ts b/src/graph/publish.ts deleted file mode 100644 index 6ca2eaf..0000000 --- a/src/graph/publish.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { publishEdit } from '../ipfs.js'; -import type { Op } from '../types.js'; -import { DEFAULT_API_HOST } from './constants.js'; - -type Params = { - operations: Op[]; - editName: string; - spaceId: string; - accountId: string; - options?: { - network?: 'TESTNET' | 'MAINNET'; - }; -}; - -export const publish = async ({ operations, editName, spaceId, accountId, options }: Params) => { - const apiHost = DEFAULT_API_HOST; - const network = options?.network || 'TESTNET'; - - const cid = await publishEdit({ - name: editName, - ops: operations, - author: accountId, - }); - - const result = await fetch(`${apiHost}/space/${spaceId}/edit/calldata`, { - method: 'POST', - body: JSON.stringify({ - cid: cid, - network, - }), - }); - - const jsonResult = await result.json(); - return jsonResult; - - // TODO add walletClient.sendTransaction -}; From fcbe869a2299348c35a3c2a06f75e95fe47daa4c Mon Sep 17 00:00:00 2001 From: Byron Guina Date: Fri, 21 Feb 2025 19:09:58 -0800 Subject: [PATCH 2/2] feat: bump --- CHANGELOG.md | 6 ++++++ package.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index df18d99..786bce9 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,11 @@ # @graphprotocol/grc-20 +## 0.6.3 + +### Patch Changes + +- Remove Graph.publish + ## 0.6.2 ### Patch Changes diff --git a/package.json b/package.json index b92e908..6e48450 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@graphprotocol/grc-20", - "version": "0.6.2", + "version": "0.6.3", "license": "MIT", "module": "./dist/index.js", "types": "./dist/index.d.ts",