Skip to content

Commit f4fd295

Browse files
authored
update grc-20 (#421)
1 parent c4dbab3 commit f4fd295

File tree

30 files changed

+782
-325
lines changed

30 files changed

+782
-325
lines changed

.changeset/lovely-beans-stick.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
"@graphprotocol/hypergraph-react": patch
3+
"@graphprotocol/hypergraph": patch
4+
"@graphprotocol/typesync": patch
5+
"@graphprotocol/hypergraph-cli": patch
6+
"connect": patch
7+
---
8+
9+
update grc-20 library
10+

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.1",
18-
"@graphprotocol/grc-20": "^0.21.6",
18+
"@graphprotocol/grc-20": "^0.23.1",
1919
"@graphprotocol/hypergraph": "workspace:*",
2020
"@graphprotocol/hypergraph-react": "workspace:*",
2121
"@heroicons/react": "^2.2.0",

apps/create-hypergraph/template-nextjs/app/mapping.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ import type { Mapping } from '@graphprotocol/hypergraph';
33

44
export const mapping: Mapping.Mapping = {
55
Address: {
6-
typeIds: [Id.Id('5c6e72fb-8340-47c0-8281-8be159ecd495')],
6+
typeIds: [Id('5c6e72fb-8340-47c0-8281-8be159ecd495')],
77
properties: {
8-
name: Id.Id('a126ca53-0c8e-48d5-b888-82c734c38935'),
9-
description: Id.Id('9b1f76ff-9711-404c-861e-59dc3fa7d037'),
8+
name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'),
9+
description: Id('9b1f76ff-9711-404c-861e-59dc3fa7d037'),
1010
},
1111
},
1212
Project: {
13-
typeIds: [Id.Id('484a18c5-030a-499c-b0f2-ef588ff16d50')],
13+
typeIds: [Id('484a18c5-030a-499c-b0f2-ef588ff16d50')],
1414
properties: {
15-
name: Id.Id('a126ca53-0c8e-48d5-b888-82c734c38935'),
15+
name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'),
1616
},
1717
},
1818
};

apps/create-hypergraph/template-nextjs/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
},
1616
"type": "module",
1717
"dependencies": {
18-
"@graphprotocol/grc-20": "^0.21.6",
18+
"@graphprotocol/grc-20": "^0.23.1",
1919
"@graphprotocol/hypergraph": "workspace:*",
2020
"@graphprotocol/hypergraph-react": "workspace:*",
2121
"@radix-ui/react-navigation-menu": "^1.2.13",

apps/create-hypergraph/template-vite-react/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"typecheck": "tsc --noEmit"
1212
},
1313
"dependencies": {
14-
"@graphprotocol/grc-20": "^0.21.6",
14+
"@graphprotocol/grc-20": "^0.23.1",
1515
"@graphprotocol/hypergraph": "workspace:*",
1616
"@graphprotocol/hypergraph-react": "workspace:*",
1717
"@radix-ui/react-navigation-menu": "^1.2.13",

apps/create-hypergraph/template-vite-react/src/mapping.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,16 +3,16 @@ import type { Mapping } from '@graphprotocol/hypergraph';
33

44
export const mapping: Mapping.Mapping = {
55
Address: {
6-
typeIds: [Id.Id('5c6e72fb-8340-47c0-8281-8be159ecd495')],
6+
typeIds: [Id('5c6e72fb-8340-47c0-8281-8be159ecd495')],
77
properties: {
8-
name: Id.Id('a126ca53-0c8e-48d5-b888-82c734c38935'),
9-
description: Id.Id('9b1f76ff-9711-404c-861e-59dc3fa7d037'),
8+
name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'),
9+
description: Id('9b1f76ff-9711-404c-861e-59dc3fa7d037'),
1010
},
1111
},
1212
Project: {
13-
typeIds: [Id.Id('484a18c5-030a-499c-b0f2-ef588ff16d50')],
13+
typeIds: [Id('484a18c5-030a-499c-b0f2-ef588ff16d50')],
1414
properties: {
15-
name: Id.Id('a126ca53-0c8e-48d5-b888-82c734c38935'),
15+
name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'),
1616
},
1717
},
1818
};

apps/events/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.21.6",
12+
"@graphprotocol/grc-20": "^0.23.1",
1313
"@graphprotocol/hypergraph": "workspace:*",
1414
"@graphprotocol/hypergraph-react": "workspace:*",
1515
"@noble/hashes": "^1.8.0",

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

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -100,28 +100,28 @@ export const CreatePropertiesAndTypesEvent = ({ space }: { space: string }) => {
100100
});
101101

102102
const newMapping = `Event: {
103-
typeIds: [Id.Id('${eventTypeId}')],
103+
typeIds: [Id('${eventTypeId}')],
104104
properties: {
105-
name: Id.Id('a126ca53-0c8e-48d5-b888-82c734c38935'),
105+
name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'),
106106
},
107107
relations: {
108-
sponsors: Id.Id('${sponsorsRelationTypeId}'),
108+
sponsors: Id('${sponsorsRelationTypeId}'),
109109
},
110110
},
111111
Company: {
112-
typeIds: [Id.Id('${companyTypeId}')],
112+
typeIds: [Id('${companyTypeId}')],
113113
properties: {
114-
name: Id.Id('a126ca53-0c8e-48d5-b888-82c734c38935'),
114+
name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'),
115115
},
116116
relations: {
117-
jobOffers: Id.Id('${jobOffersRelationTypeId}'),
117+
jobOffers: Id('${jobOffersRelationTypeId}'),
118118
},
119119
},
120120
JobOffer: {
121-
typeIds: [Id.Id('${jobOfferTypeId}')],
121+
typeIds: [Id('${jobOfferTypeId}')],
122122
properties: {
123-
name: Id.Id('a126ca53-0c8e-48d5-b888-82c734c38935'),
124-
salary: Id.Id('${salaryPropertyId}'),
123+
name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'),
124+
salary: Id('${salaryPropertyId}'),
125125
},
126126
},
127127
`;

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

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -120,23 +120,23 @@ export const CreatePropertiesAndTypesTodos = ({ space }: { space: string }) => {
120120
});
121121

122122
const newMapping = `Todo2: {
123-
typeIds: [Id.Id('${todoTypeId}')],
123+
typeIds: [Id('${todoTypeId}')],
124124
properties: {
125-
name: Id.Id('a126ca53-0c8e-48d5-b888-82c734c38935'),
126-
checked: Id.Id('${checkedPropertyId}'),
127-
due: Id.Id('${duePropertyId}'),
128-
point: Id.Id('${pointPropertyId}'),
129-
website: Id.Id('${websitePropertyId}'),
130-
amount: Id.Id('${amountPropertyId}'),
125+
name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'),
126+
checked: Id('${checkedPropertyId}'),
127+
due: Id('${duePropertyId}'),
128+
point: Id('${pointPropertyId}'),
129+
website: Id('${websitePropertyId}'),
130+
amount: Id('${amountPropertyId}'),
131131
},
132132
relations: {
133-
assignees: Id.Id('${assigneesRelationTypeId}'),
133+
assignees: Id('${assigneesRelationTypeId}'),
134134
},
135135
},
136136
User: {
137-
typeIds: [Id.Id('${userId}')],
137+
typeIds: [Id('${userId}')],
138138
properties: {
139-
name: Id.Id('a126ca53-0c8e-48d5-b888-82c734c38935'),
139+
name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'),
140140
},
141141
}
142142
`;

apps/events/src/mapping.ts

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,50 +3,50 @@ import type { Mapping } from '@graphprotocol/hypergraph';
33

44
export const mapping: Mapping.Mapping = {
55
Event: {
6-
typeIds: [Id.Id('7f9562d4-034d-4385-bf5c-f02cdebba47a')],
6+
typeIds: [Id('7f9562d4-034d-4385-bf5c-f02cdebba47a')],
77
properties: {
8-
name: Id.Id('a126ca53-0c8e-48d5-b888-82c734c38935'),
9-
description: Id.Id('9b1f76ff-9711-404c-861e-59dc3fa7d037'),
8+
name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'),
9+
description: Id('9b1f76ff-9711-404c-861e-59dc3fa7d037'),
1010
},
1111
relations: {
12-
sponsors: Id.Id('6860bfac-f703-4289-b789-972d0aaf3abe'),
12+
sponsors: Id('6860bfac-f703-4289-b789-972d0aaf3abe'),
1313
},
1414
},
1515
Company: {
16-
typeIds: [Id.Id('6c504df5-1a8f-43d1-bf2d-1ef9fa5b08b5')],
16+
typeIds: [Id('6c504df5-1a8f-43d1-bf2d-1ef9fa5b08b5')],
1717
properties: {
18-
name: Id.Id('a126ca53-0c8e-48d5-b888-82c734c38935'),
18+
name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'),
1919
},
2020
relations: {
21-
jobOffers: Id.Id('1203064e-9741-4235-89d4-97f4b22eddfb'),
21+
jobOffers: Id('1203064e-9741-4235-89d4-97f4b22eddfb'),
2222
},
2323
},
2424
JobOffer: {
25-
typeIds: [Id.Id('f60585af-71b6-4674-9a26-b74ca6c1cceb')],
25+
typeIds: [Id('f60585af-71b6-4674-9a26-b74ca6c1cceb')],
2626
properties: {
27-
name: Id.Id('a126ca53-0c8e-48d5-b888-82c734c38935'),
28-
salary: Id.Id('baa36ac9-78ac-4cf7-8394-6b2d3006bebe'),
27+
name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'),
28+
salary: Id('baa36ac9-78ac-4cf7-8394-6b2d3006bebe'),
2929
},
3030
},
3131

3232
// Todo2: {
33-
// typeIds: [Id.Id('LJuM8ju67mCv78FhAiK9k9')],
33+
// typeIds: [Id('LJuM8ju67mCv78FhAiK9k9')],
3434
// properties: {
35-
// name: Id.Id('a126ca53-0c8e-48d5-b888-82c734c38935'),
36-
// checked: Id.Id('Ud9kn9gAUsCr1pxvxcgDj8'),
37-
// due: Id.Id('CFisPgjjWVdnaMtSWJDBqA'),
38-
// point: Id.Id('BkcVo7JZHF5LsWw7XZJwwe'),
39-
// website: Id.Id('XZmLQ8XyaUHnNWgSSbzaHU'),
40-
// amount: Id.Id('LfzKTfgy5Qg3PxAfKB2BL7'),
35+
// name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'),
36+
// checked: Id('Ud9kn9gAUsCr1pxvxcgDj8'),
37+
// due: Id('CFisPgjjWVdnaMtSWJDBqA'),
38+
// point: Id('BkcVo7JZHF5LsWw7XZJwwe'),
39+
// website: Id('XZmLQ8XyaUHnNWgSSbzaHU'),
40+
// amount: Id('LfzKTfgy5Qg3PxAfKB2BL7'),
4141
// },
4242
// relations: {
43-
// assignees: Id.Id('HCdFcTRyMyZMXScKox738i'),
43+
// assignees: Id('HCdFcTRyMyZMXScKox738i'),
4444
// },
4545
// },
4646
// User: {
47-
// typeIds: [Id.Id('Fk5qzwdpKsD35gm5ts4SZA')],
47+
// typeIds: [Id('Fk5qzwdpKsD35gm5ts4SZA')],
4848
// properties: {
49-
// name: Id.Id('a126ca53-0c8e-48d5-b888-82c734c38935'),
49+
// name: Id('a126ca53-0c8e-48d5-b888-82c734c38935'),
5050
// },
5151
// },
5252
};

0 commit comments

Comments
 (0)