Skip to content

Commit e65ad1c

Browse files
committed
use immutable: false
1 parent f64386b commit e65ad1c

File tree

1 file changed

+18
-18
lines changed

1 file changed

+18
-18
lines changed

packages/subgraph/schema.graphql

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1691,7 +1691,7 @@ type BondIncreasedEvent implements Event @entity(immutable: true) {
16911691
"""
16921692
Account: A higher order entity created for any addresses which interact with Superfluid contracts.
16931693
"""
1694-
type Account @entity {
1694+
type Account @entity(immutable: false) {
16951695
id: ID!
16961696
createdAtTimestamp: BigInt!
16971697
createdAtBlockNumber: BigInt!
@@ -1724,7 +1724,7 @@ type Account @entity {
17241724
@derivedFrom(field: "account")
17251725
}
17261726

1727-
type Pool @entity {
1727+
type Pool @entity(immutable: false) {
17281728
"""
17291729
ID: poolAddress
17301730
"""
@@ -1784,7 +1784,7 @@ type Pool @entity {
17841784
@derivedFrom(field: "pool")
17851785
}
17861786

1787-
type PoolMember @entity {
1787+
type PoolMember @entity(immutable: false) {
17881788
"""
17891789
ID composed of: "poolMember"-poolAddress-poolMemberAddress
17901790
"""
@@ -1815,7 +1815,7 @@ type PoolMember @entity {
18151815
@derivedFrom(field: "poolMember")
18161816
}
18171817

1818-
type PoolDistributor @entity {
1818+
type PoolDistributor @entity(immutable: false) {
18191819
"""
18201820
ID composed of: "poolDistributor"-pool-poolDistributorAddress
18211821
"""
@@ -1846,7 +1846,7 @@ type PoolDistributor @entity {
18461846
"""
18471847
Index: An Index higher order entity.
18481848
"""
1849-
type Index @entity {
1849+
type Index @entity(immutable: false) {
18501850
"""
18511851
ID composed of: publisherAddress-tokenAddress-indexId
18521852
"""
@@ -1921,7 +1921,7 @@ type Index @entity {
19211921
"""
19221922
IndexSubscription: A higher order entity that contains subscription data for a `subscriber` account of a particular `Index`.
19231923
"""
1924-
type IndexSubscription @entity {
1924+
type IndexSubscription @entity(immutable: false) {
19251925
"""
19261926
ID composed of: subscriberAddress-publisherAddress-tokenAddress-IndexId
19271927
"""
@@ -1981,7 +1981,7 @@ A account can start a stream, update the flow rate, but when they close it, it i
19811981
The next stream you create with the same `sender` and `receiver` will create a new stream entity.
19821982
Therefore, multiple stream entities can be created between the same `sender` and `receiver`.
19831983
"""
1984-
type Stream @entity {
1984+
type Stream @entity(immutable: false) {
19851985
"""
19861986
ID composed of: senderAddress-receiverAddress-tokenAddress-revisionIndex
19871987
"""
@@ -2018,7 +2018,7 @@ type Stream @entity {
20182018
"""
20192019
FlowOperator: A higher order entity that of a flow operator for an `AccountTokenSnapshot`.
20202020
"""
2021-
type FlowOperator @entity {
2021+
type FlowOperator @entity(immutable: false) {
20222022
"""
20232023
ID composed of: flowOperator-token-sender
20242024
"""
@@ -2067,7 +2067,7 @@ type FlowOperator @entity {
20672067
"""
20682068
StreamPeriod: A higher order entity that represents a period of time in a Stream with a constant flowRate.
20692069
"""
2070-
type StreamPeriod @entity {
2070+
type StreamPeriod @entity(immutable: false) {
20712071
"""
20722072
ID composed of: streamId - periodRevisionIndex
20732073
"""
@@ -2100,7 +2100,7 @@ type StreamPeriod @entity {
21002100
TokenGovernanceConfig: A higher order entity that represents the governance configs for a token.
21012101
If `id` is `address(0)`, it will be used as the default config.
21022102
"""
2103-
type TokenGovernanceConfig @entity {
2103+
type TokenGovernanceConfig @entity(immutable: false) {
21042104
"""
21052105
id is the address of the SuperToken
21062106
NOTE: the zero address is reserved for the default config for all tokens with unset configs.
@@ -2147,7 +2147,7 @@ type TokenGovernanceConfig @entity {
21472147
####################
21482148
# Helper Entities #
21492149
####################
2150-
type StreamRevision @entity {
2150+
type StreamRevision @entity(immutable: false) {
21512151
"""
21522152
ID composed of: keccak256(abi.encode(sender,receiver))-tokenAddress
21532153
"""
@@ -2165,7 +2165,7 @@ type StreamRevision @entity {
21652165
"""
21662166
Token: A higher order entity created for super tokens (and underlying tokens) that are "valid" (tokens that have Superfluid's host contract address set as the host).
21672167
"""
2168-
type Token @entity {
2168+
type Token @entity(immutable: false) {
21692169
"""
21702170
ID: the token address
21712171
"""
@@ -2202,7 +2202,7 @@ type Token @entity {
22022202
governanceConfig: TokenGovernanceConfig
22032203
}
22042204

2205-
type ResolverEntry @entity {
2205+
type ResolverEntry @entity(immutable: false) {
22062206
"""
22072207
ID: the keccak256 hash of the set name
22082208
"""
@@ -2224,7 +2224,7 @@ type ResolverEntry @entity {
22242224
"""
22252225
AccountTokenSnapshot: An aggregate entity which aggregates data between an `account`'s interaction with `token`.
22262226
"""
2227-
type AccountTokenSnapshot @entity {
2227+
type AccountTokenSnapshot @entity(immutable: false) {
22282228
"""
22292229
ID composed of: accountID-tokenID
22302230
"""
@@ -2440,7 +2440,7 @@ type AccountTokenSnapshot @entity {
24402440
"""
24412441
AccountTokenSnapshotLog: Historical entries of `AccountTokenSnapshot` updates.
24422442
"""
2443-
type AccountTokenSnapshotLog @entity {
2443+
type AccountTokenSnapshotLog @entity(immutable: true) {
24442444
id: ID!
24452445
timestamp: BigInt!
24462446
blockNumber: BigInt!
@@ -2636,7 +2636,7 @@ type AccountTokenSnapshotLog @entity {
26362636
"""
26372637
TokenStatistic: An aggregate entity which contains aggregate data for `token`.
26382638
"""
2639-
type TokenStatistic @entity {
2639+
type TokenStatistic @entity(immutable: false) {
26402640
"""
26412641
id: `token` (superToken) address
26422642
"""
@@ -2788,7 +2788,7 @@ type TokenStatistic @entity {
27882788
"""
27892789
TokenStatisticLog: Historical entries of `TokenStatistic` updates.
27902790
"""
2791-
type TokenStatisticLog @entity {
2791+
type TokenStatisticLog @entity(immutable: true) {
27922792
id: ID!
27932793
timestamp: BigInt!
27942794
blockNumber: BigInt!
@@ -2942,7 +2942,7 @@ type TokenStatisticLog @entity {
29422942
# Internal Entity #
29432943
####################
29442944

2945-
type SFMeta @entity {
2945+
type SFMeta @entity(immutable: true) {
29462946
"""
29472947
The id is the commit hash.
29482948
"""

0 commit comments

Comments
 (0)