-
Notifications
You must be signed in to change notification settings - Fork 1
/
schema.graphql
176 lines (125 loc) · 4.3 KB
/
schema.graphql
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
type Chain @entity {
"the id for this chain (talisman-defined)"
id: ID!
"is chain this a testnet?"
isTestnet: Boolean!
"index for sorting chains and evm networks in a user-friendly way"
sortIndex: Int
"hash of the first block on this chain"
genesisHash: String @index
"ss58 prefix for this chain"
prefix: Int
"talisman-defined name for this chain"
name: String
"a theme color for this chain"
themeColor: String
"url of the logo for this chain"
logo: String
"chain-specified name for this chain"
chainName: String
"implementation name for this chain"
implName: String
"specification name for this chain"
specName: String
"specification version for this chain"
specVersion: String
"native token for this chain"
nativeToken: Token
"does this chain use custom rules to decide on the fee token for txs?"
isUnknownFeeToken: Boolean!
"other tokens on this chain"
tokens: [Token!]! @derivedFrom(field: "squidImplementationDetailChain")
"account format for this chain"
account: String
"subscan endpoint for this chain"
subscanUrl: String
"chainspec qr url for this chain"
chainspecQrUrl: String
"latest metadata qr url for this chain"
latestMetadataQrUrl: String
"substrate rpcs for this chain (talisman-defined)"
rpcs: [SubstrateRpc!]!
"health status for this chain"
isHealthy: Boolean!
"balance metadata for this chain"
balanceMetadata: [BalanceModuleMetadata!]!
"balance module configs for this chain"
balanceModuleConfigs: [BalanceModuleConfig!]!
"evm networks on this chain"
evmNetworks: [EvmNetwork!]! @derivedFrom(field: "substrateChain")
"parathreads of this chain (if this chain is a relaychain)"
parathreads: [Chain!]! @derivedFrom(field: "relay")
"paraId for this chain (if this chain is a parachain for another chain)"
paraId: Int
"relaychain of this chain (if this chain is a parachain for another chain)"
relay: Chain
}
type EvmNetwork @entity {
"the chain identifier used for signing ethereum transactions"
id: ID!
"is this network a testnet?"
isTestnet: Boolean!
"index for sorting chains and evm networks in a user-friendly way"
sortIndex: Int
"name for this network (talisman-defined)"
name: String
"a theme color for this network"
themeColor: String
"url of the logo for this network"
logo: String
"native token for this network"
nativeToken: Token
"other tokens on this network"
tokens: [Token!]! @derivedFrom(field: "squidImplementationDetailEvmNetwork")
"block explorer url for this network"
explorerUrl: String
"ethereum rpcs for this network (talisman-defined)"
rpcs: [EthereumRpc!]!
"health status of this network"
isHealthy: Boolean!
"balance metadata for this network"
balanceMetadata: [BalanceModuleMetadata!]!
"balance module configs for this network"
balanceModuleConfigs: [BalanceModuleConfig!]!
"substrate chain this evm network runs on"
substrateChain: Chain
}
type Token @entity {
"id for this token (talisman-defined)"
id: ID!
"TODO: Put all token data into here (because we have plugins now)"
data: JSON
"implementation detail for relation lookups, can be removed once https://github.com/subsquid/squid/issues/41 is merged"
squidImplementationDetailNativeToChains: [Chain!]! @derivedFrom(field: "nativeToken")
"implementation detail for relation lookups, can be removed once https://github.com/subsquid/squid/issues/41 is merged"
squidImplementationDetailNativeToEvmNetworks: [EvmNetwork!]! @derivedFrom(field: "nativeToken")
"implementation detail for relation lookups, can be removed once https://github.com/subsquid/squid/issues/41 is merged"
squidImplementationDetailChain: Chain
"implementation detail for relation lookups, can be removed once https://github.com/subsquid/squid/issues/41 is merged"
squidImplementationDetailEvmNetwork: EvmNetwork
}
type SubstrateRpc {
"url of this substrate rpc"
url: String!
"health status of this substrate rpc"
isHealthy: Boolean!
}
type EthereumRpc {
"url of this ethereum rpc"
url: String!
"health status of this ethereum rpc"
isHealthy: Boolean!
}
type BalanceModuleMetadata {
moduleType: String!
metadata: JSON!
}
type BalanceModuleConfig {
moduleType: String!
moduleConfig: JSON!
}
type CachedCoingeckoLogo @entity {
id: ID!
url: String!
lastUpdated: String!
}