Skip to content

Commit 4db7c71

Browse files
bump cli dependency
1 parent e3e7094 commit 4db7c71

3 files changed

Lines changed: 53 additions & 53 deletions

File tree

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
"scripts": {
55
"codegen": "graph codegen",
66
"build": "graph build",
7-
"deploy": "graph deploy --node https://api.studio.thegraph.com/deploy/ hats-v1-base-sepolia --network base-sepolia",
8-
"create-local": "graph create --node http://localhost:8020/ hats-v1-base-sepolia",
9-
"remove-local": "graph remove --node http://localhost:8020/ hats-v1-base-sepolia",
7+
"deploy": "graph deploy --node https://api.studio.thegraph.com/deploy/ hats-v1-sepolia --network sepolia",
8+
"create-local": "graph create --node http://localhost:8020/ hats-v1-sepolia",
9+
"remove-local": "graph remove --node http://localhost:8020/ hats-v1-sepolia",
1010
"deploy-local": "graph deploy --node http://localhost:8020/ --ipfs http://localhost:5001 hats-v1-base-sepolia",
1111
"test": "graph test"
1212
},
1313
"dependencies": {
14-
"@graphprotocol/graph-cli": "0.96.0",
14+
"@graphprotocol/graph-cli": "0.97.0",
1515
"@graphprotocol/graph-ts": "^0.38.0"
1616
},
1717
"devDependencies": {

pnpm-lock.yaml

Lines changed: 32 additions & 32 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

schema.graphql

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
type Hat @entity {
1+
type Hat @entity(immutable: false) {
22
id: ID!
33
prettyId: String!
44
status: Boolean!
@@ -23,14 +23,14 @@ type Hat @entity {
2323
events: [HatsEvent!]! @derivedFrom(field: "hat")
2424
}
2525

26-
type Wearer @entity {
26+
type Wearer @entity(immutable: false) {
2727
id: ID!
2828
currentHats: [Hat!]! @derivedFrom(field: "wearers")
2929
mintEvent: [HatMintedEvent!]! @derivedFrom(field: "wearer")
3030
burnEvent: [HatBurnedEvent!]! @derivedFrom(field: "wearer")
3131
}
3232

33-
type Tree @entity {
33+
type Tree @entity(immutable: false) {
3434
"Tree ID is its top hat domain - first 4 bytes of the top hat ID"
3535
id: ID!
3636
childOfTree: Tree
@@ -52,7 +52,7 @@ interface HatsEvent {
5252
transactionID: Bytes!
5353
}
5454

55-
type HatCreatedEvent implements HatsEvent @entity {
55+
type HatCreatedEvent implements HatsEvent @entity(immutable: true) {
5656
id: ID!
5757
tree: Tree!
5858
hat: Hat!
@@ -67,7 +67,7 @@ type HatCreatedEvent implements HatsEvent @entity {
6767
hatImageUri: String!
6868
}
6969

70-
type HatMintedEvent implements HatsEvent @entity {
70+
type HatMintedEvent implements HatsEvent @entity(immutable: true) {
7171
id: ID!
7272
tree: Tree!
7373
hat: Hat!
@@ -78,7 +78,7 @@ type HatMintedEvent implements HatsEvent @entity {
7878
operator: String!
7979
}
8080

81-
type HatBurnedEvent implements HatsEvent @entity {
81+
type HatBurnedEvent implements HatsEvent @entity(immutable: true) {
8282
id: ID!
8383
tree: Tree!
8484
hat: Hat!
@@ -89,7 +89,7 @@ type HatBurnedEvent implements HatsEvent @entity {
8989
operator: String!
9090
}
9191

92-
type HatStatusChangedEvent implements HatsEvent @entity {
92+
type HatStatusChangedEvent implements HatsEvent @entity(immutable: true) {
9393
id: ID!
9494
tree: Tree!
9595
hat: Hat!
@@ -99,7 +99,7 @@ type HatStatusChangedEvent implements HatsEvent @entity {
9999
hatNewStatus: Boolean!
100100
}
101101

102-
type HatDetailsChangedEvent implements HatsEvent @entity {
102+
type HatDetailsChangedEvent implements HatsEvent @entity(immutable: true) {
103103
id: ID!
104104
tree: Tree!
105105
hat: Hat!
@@ -109,7 +109,7 @@ type HatDetailsChangedEvent implements HatsEvent @entity {
109109
hatNewDetails: String!
110110
}
111111

112-
type HatEligibilityChangedEvent implements HatsEvent @entity {
112+
type HatEligibilityChangedEvent implements HatsEvent @entity(immutable: true) {
113113
id: ID!
114114
tree: Tree!
115115
hat: Hat!
@@ -119,7 +119,7 @@ type HatEligibilityChangedEvent implements HatsEvent @entity {
119119
hatNewEligibility: String!
120120
}
121121

122-
type HatToggleChangedEvent implements HatsEvent @entity {
122+
type HatToggleChangedEvent implements HatsEvent @entity(immutable: true) {
123123
id: ID!
124124
tree: Tree!
125125
hat: Hat!
@@ -129,7 +129,7 @@ type HatToggleChangedEvent implements HatsEvent @entity {
129129
hatNewToggle: String!
130130
}
131131

132-
type HatMutabilityChangedEvent implements HatsEvent @entity {
132+
type HatMutabilityChangedEvent implements HatsEvent @entity(immutable: true) {
133133
id: ID!
134134
tree: Tree!
135135
hat: Hat!
@@ -138,7 +138,7 @@ type HatMutabilityChangedEvent implements HatsEvent @entity {
138138
transactionID: Bytes!
139139
}
140140

141-
type HatMaxSupplyChangedEvent implements HatsEvent @entity {
141+
type HatMaxSupplyChangedEvent implements HatsEvent @entity(immutable: true) {
142142
id: ID!
143143
tree: Tree!
144144
hat: Hat!
@@ -148,7 +148,7 @@ type HatMaxSupplyChangedEvent implements HatsEvent @entity {
148148
hatNewMaxSupply: BigInt!
149149
}
150150

151-
type HatImageURIChangedEvent implements HatsEvent @entity {
151+
type HatImageURIChangedEvent implements HatsEvent @entity(immutable: true) {
152152
id: ID!
153153
tree: Tree!
154154
hat: Hat!
@@ -158,7 +158,7 @@ type HatImageURIChangedEvent implements HatsEvent @entity {
158158
hatNewImageURI: String!
159159
}
160160

161-
type TopHatLinkRequestedEvent implements HatsEvent @entity {
161+
type TopHatLinkRequestedEvent implements HatsEvent @entity(immutable: true) {
162162
"tree field is the tree that is being linked, hat field is the tree top hat"
163163
id: ID!
164164
tree: Tree!
@@ -169,7 +169,7 @@ type TopHatLinkRequestedEvent implements HatsEvent @entity {
169169
newAdmin: Hat!
170170
}
171171

172-
type TopHatLinkedEvent implements HatsEvent @entity {
172+
type TopHatLinkedEvent implements HatsEvent @entity(immutable: true) {
173173
"tree field is the tree that is being linked, hat field is the tree top hat"
174174
id: ID!
175175
tree: Tree!
@@ -180,7 +180,7 @@ type TopHatLinkedEvent implements HatsEvent @entity {
180180
newAdmin: Hat!
181181
}
182182

183-
type WearerStandingChangedEvent implements HatsEvent @entity {
183+
type WearerStandingChangedEvent implements HatsEvent @entity(immutable: true) {
184184
id: ID!
185185
tree: Tree!
186186
hat: Hat!
@@ -191,7 +191,7 @@ type WearerStandingChangedEvent implements HatsEvent @entity {
191191
wearerStanding: Boolean!
192192
}
193193

194-
type ClaimsHatter @entity {
194+
type ClaimsHatter @entity(immutable: false) {
195195
id: ID!
196196
claimableHats: [Hat!]!
197197
claimableForHats: [Hat!]!

0 commit comments

Comments
 (0)