Skip to content

Commit f17af71

Browse files
authored
upgrade grc20 and use Op instead of GrcOp (#585)
1 parent 4ec5294 commit f17af71

20 files changed

Lines changed: 59 additions & 52 deletions

.changeset/young-falcons-speak.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
---
2+
"@graphprotocol/hypergraph-react": patch
3+
"@graphprotocol/hypergraph": patch
4+
---
5+
6+
replace deprecated GrcOp with Op from grc-20
7+

apps/connect/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"dependencies": {
1717
"@base-ui-components/react": "1.0.0-beta.2",
18-
"@graphprotocol/grc-20": "^0.32.3",
18+
"@graphprotocol/grc-20": "^0.33.0",
1919
"@graphprotocol/hypergraph": "workspace:*",
2020
"@graphprotocol/hypergraph-react": "workspace:*",
2121
"@heroicons/react": "^2.2.0",

apps/events/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"test:script": "tsx test-script.ts"
1111
},
1212
"dependencies": {
13-
"@graphprotocol/grc-20": "^0.32.3",
13+
"@graphprotocol/grc-20": "^0.33.0",
1414
"@graphprotocol/hypergraph": "workspace:*",
1515
"@graphprotocol/hypergraph-react": "workspace:*",
1616
"@noble/hashes": "^1.8.0",

apps/events/src/components/create-events.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Graph, type GrcOp } from '@graphprotocol/grc-20';
1+
import { Graph, type Op } from '@graphprotocol/grc-20';
22
import type { Connect } from '@graphprotocol/hypergraph';
33
import { publishOps, useHypergraphApp } from '@graphprotocol/hypergraph-react';
44
import { mapping } from '../mapping';
@@ -12,7 +12,7 @@ const createEvents = async ({
1212
space: string;
1313
}) => {
1414
try {
15-
const ops: Array<GrcOp> = [];
15+
const ops: Array<Op> = [];
1616

1717
const { id: jobOfferTypeId, ops: createJobOfferTypeOps } = Graph.createEntity({
1818
name: 'My Test Job Offer',

apps/events/src/components/create-properties-and-types-event.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Graph, type GrcOp } from '@graphprotocol/grc-20';
1+
import { Graph, type Op } from '@graphprotocol/grc-20';
22
import type { Connect } from '@graphprotocol/hypergraph';
33
import { publishOps, useHypergraphApp } from '@graphprotocol/hypergraph-react';
44
import { useState } from 'react';
@@ -12,7 +12,7 @@ const createPropertiesAndTypesEvent = async ({
1212
smartSessionClient: Connect.SmartSessionClient;
1313
space: string;
1414
}) => {
15-
const ops: Array<GrcOp> = [];
15+
const ops: Array<Op> = [];
1616
const { id: salaryPropertyId, ops: createSalaryPropertyOps } = Graph.createProperty({
1717
dataType: 'FLOAT64',
1818
name: 'Salary',

apps/events/src/components/create-properties-and-types-todos.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Graph, type GrcOp } from '@graphprotocol/grc-20';
1+
import { Graph, type Op } from '@graphprotocol/grc-20';
22
import type { Connect } from '@graphprotocol/hypergraph';
33
import { publishOps, useHypergraphApp } from '@graphprotocol/hypergraph-react';
44
import { useState } from 'react';
@@ -12,7 +12,7 @@ const createPropertiesAndTypesTodos = async ({
1212
smartSessionClient: Connect.SmartSessionClient;
1313
space: string;
1414
}) => {
15-
const ops: Array<GrcOp> = [];
15+
const ops: Array<Op> = [];
1616
const { id: checkedPropertyId, ops: createCheckedPropertyOps } = Graph.createProperty({
1717
dataType: 'BOOLEAN',
1818
name: 'Checked',

apps/next-example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
},
1212
"type": "module",
1313
"dependencies": {
14-
"@graphprotocol/grc-20": "^0.32.3",
14+
"@graphprotocol/grc-20": "^0.33.0",
1515
"@graphprotocol/hypergraph": "workspace:*",
1616
"@graphprotocol/hypergraph-react": "workspace:*",
1717
"next": "15.5.9",

apps/privy-login-example/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"typesync": "hypergraph typesync"
1010
},
1111
"dependencies": {
12-
"@graphprotocol/grc-20": "^0.32.3",
12+
"@graphprotocol/grc-20": "^0.33.0",
1313
"@graphprotocol/hypergraph": "workspace:*",
1414
"@graphprotocol/hypergraph-react": "workspace:*",
1515
"@noble/hashes": "^1.8.0",

apps/privy-login-example/src/components/create-events.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Graph, type GrcOp } from '@graphprotocol/grc-20';
1+
import { Graph, type Op } from '@graphprotocol/grc-20';
22
import type { Connect } from '@graphprotocol/hypergraph';
33
import { publishOps, useHypergraphApp } from '@graphprotocol/hypergraph-react';
44
import { mapping } from '../mapping';
@@ -12,7 +12,7 @@ const createEvents = async ({
1212
space: string;
1313
}) => {
1414
try {
15-
const ops: Array<GrcOp> = [];
15+
const ops: Array<Op> = [];
1616

1717
const { id: jobOfferTypeId, ops: createJobOfferTypeOps } = Graph.createEntity({
1818
name: 'My Test Job Offer',

apps/privy-login-example/src/components/create-properties-and-types-event.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Graph, type GrcOp } from '@graphprotocol/grc-20';
1+
import { Graph, type Op } from '@graphprotocol/grc-20';
22
import type { Connect } from '@graphprotocol/hypergraph';
33
import { publishOps, useHypergraphApp } from '@graphprotocol/hypergraph-react';
44
import { useState } from 'react';
@@ -12,7 +12,7 @@ const createPropertiesAndTypesEvent = async ({
1212
smartSessionClient: Connect.SmartSessionClient;
1313
space: string;
1414
}) => {
15-
const ops: Array<GrcOp> = [];
15+
const ops: Array<Op> = [];
1616
const { id: salaryPropertyId, ops: createSalaryPropertyOps } = Graph.createProperty({
1717
dataType: 'FLOAT64',
1818
name: 'Salary',

0 commit comments

Comments
 (0)