@graphprotocol/grc-20 0.6.2 → 0.6.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,5 +2,4 @@ export * from './create-entity.js';
2
2
  export * from './create-property.js';
3
3
  export * from './create-space.js';
4
4
  export * from './create-type.js';
5
- export * from './publish.js';
6
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/graph/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/graph/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC"}
@@ -2,5 +2,4 @@ export * from './create-entity.js';
2
2
  export * from './create-property.js';
3
3
  export * from './create-space.js';
4
4
  export * from './create-type.js';
5
- export * from './publish.js';
6
5
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/graph/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/graph/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@graphprotocol/grc-20",
3
- "version": "0.6.2",
3
+ "version": "0.6.3",
4
4
  "license": "MIT",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -1,13 +0,0 @@
1
- import type { Op } from '../types.js';
2
- type Params = {
3
- operations: Op[];
4
- editName: string;
5
- spaceId: string;
6
- accountId: string;
7
- options?: {
8
- network?: 'TESTNET' | 'MAINNET';
9
- };
10
- };
11
- export declare const publish: ({ operations, editName, spaceId, accountId, options }: Params) => Promise<any>;
12
- export {};
13
- //# sourceMappingURL=publish.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"publish.d.ts","sourceRoot":"","sources":["../../../src/graph/publish.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,aAAa,CAAC;AAGtC,KAAK,MAAM,GAAG;IACZ,UAAU,EAAE,EAAE,EAAE,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;IACjB,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE;QACR,OAAO,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;KACjC,CAAC;CACH,CAAC;AAEF,eAAO,MAAM,OAAO,0DAAiE,MAAM,iBAsB1F,CAAC"}
@@ -1,22 +0,0 @@
1
- import { publishEdit } from '../ipfs.js';
2
- import { DEFAULT_API_HOST } from './constants.js';
3
- export const publish = async ({ operations, editName, spaceId, accountId, options }) => {
4
- const apiHost = DEFAULT_API_HOST;
5
- const network = options?.network || 'TESTNET';
6
- const cid = await publishEdit({
7
- name: editName,
8
- ops: operations,
9
- author: accountId,
10
- });
11
- const result = await fetch(`${apiHost}/space/${spaceId}/edit/calldata`, {
12
- method: 'POST',
13
- body: JSON.stringify({
14
- cid: cid,
15
- network,
16
- }),
17
- });
18
- const jsonResult = await result.json();
19
- return jsonResult;
20
- // TODO add walletClient.sendTransaction
21
- };
22
- //# sourceMappingURL=publish.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"publish.js","sourceRoot":"","sources":["../../../src/graph/publish.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAEzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAYlD,MAAM,CAAC,MAAM,OAAO,GAAG,KAAK,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,OAAO,EAAE,SAAS,EAAE,OAAO,EAAU,EAAE,EAAE;IAC7F,MAAM,OAAO,GAAG,gBAAgB,CAAC;IACjC,MAAM,OAAO,GAAG,OAAO,EAAE,OAAO,IAAI,SAAS,CAAC;IAE9C,MAAM,GAAG,GAAG,MAAM,WAAW,CAAC;QAC5B,IAAI,EAAE,QAAQ;QACd,GAAG,EAAE,UAAU;QACf,MAAM,EAAE,SAAS;KAClB,CAAC,CAAC;IAEH,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,GAAG,OAAO,UAAU,OAAO,gBAAgB,EAAE;QACtE,MAAM,EAAE,MAAM;QACd,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC;YACnB,GAAG,EAAE,GAAG;YACR,OAAO;SACR,CAAC;KACH,CAAC,CAAC;IAEH,MAAM,UAAU,GAAG,MAAM,MAAM,CAAC,IAAI,EAAE,CAAC;IACvC,OAAO,UAAU,CAAC;IAElB,wCAAwC;AAC1C,CAAC,CAAC"}