-
Notifications
You must be signed in to change notification settings - Fork 4
/
project.toml
304 lines (263 loc) · 10.7 KB
/
project.toml
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
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
# = Data Sources -----------------------------
[objects.Profile]
id = '[email protected]'
[objects.Pool]
id = '[email protected]'
[objects.Account]
id = '[email protected]'
[objects.Role]
id = '[email protected]'
[objects.RoleAccount]
id = '[email protected]'
[objects.Allo]
id = '[email protected]'
[objects.Transaction]
id = '[email protected]'
[objects.MicroGrant]
id = '[email protected]'
[objects.MicroGrantRecipient]
id = '[email protected]'
[objects.Allocated]
id = 'allov2.MicroGrantsCommon.Allocated@0xb735720d94de3d169791e2f713cbac8da02eb4d5a344d5a6d5ef542fdf3b2438'
[objects.Distributed]
id = 'allov2.MicroGrantsCommon.Distributed@0xb5b51454adfa840bd593658325a60a50b0216f12eb5d2937efe6cea935675b7d'
[objects.SQFSuperFluid]
id = '[email protected]'
[objects.SQFSuperFluidRecipient]
id = '[email protected]'
# = Live Tables ------------------------------
[tables.public.profile]
profile_id = 'Profile.profileId'
chain_id = 'Profile.chainId'
nonce = 'Profile.nonce'
name = 'Profile.name'
metadata_protocol = 'Profile.metadataProtocol'
metadata_pointer = 'Profile.metadataPointer'
owner = 'Profile.owner'
anchor = 'Profile.anchor'
creator = 'Profile.creator'
created_at = 'Profile.createdAt'
block_hash = 'Profile.blockHash'
block_number = 'Profile.blockNumber'
updated_at = 'Profile.blockTimestamp'
[tables.public.pool]
pool_id = 'Pool.poolId'
chain_id = 'Pool.chainId'
profile_id = 'Pool.profileId'
strategy = 'Pool.strategy'
strategy_id = 'Pool.strategyId'
strategy_name = 'Pool.strategyName'
token = 'Pool.token'
token_metadata = 'Pool.tokenMetadata'
amount = 'Pool.amount'
fee_paid = 'Pool.feePaid'
base_fee_paid = 'Pool.baseFeePaid'
metadata_protocol = 'Pool.metadataProtocol'
metadata_pointer = 'Pool.metadataPointer'
manager_role_id = 'Pool.managerRoleId'
admin_role_id = 'Pool.adminRoleId'
created_at = 'Pool.createdAt'
block_hash = 'Pool.blockHash'
block_number = 'Pool.blockNumber'
updated_at = 'Pool.blockTimestamp'
[tables.public.account]
account_id = 'Account.accountId'
chain_id = 'Account.chainId'
block_hash = 'Account.blockHash'
block_number = 'Account.blockNumber'
updated_at = 'Account.blockTimestamp'
[tables.public.role]
role_id = 'Role.roleId'
chain_id = 'Role.chainId'
block_hash = 'Role.blockHash'
block_number = 'Role.blockNumber'
updated_at = 'Role.blockTimestamp'
[tables.public.role_account]
role_id = 'RoleAccount.roleId'
account_id = 'RoleAccount.accountId'
chain_id = 'RoleAccount.chainId'
is_active = 'RoleAccount.isActive'
block_hash = 'RoleAccount.blockHash'
block_number = 'RoleAccount.blockNumber'
updated_at = 'RoleAccount.blockTimestamp'
[tables.public.allo]
chain_id = 'Allo.chainId'
registry = 'Allo.registry'
fee_percentage = 'Allo.feePercentage'
base_fee = 'Allo.baseFee'
treasury = 'Allo.treasury'
cloneable_strategies = 'Allo.cloneableStrategies'
block_hash = 'Allo.blockHash'
block_number = 'Allo.blockNumber'
updated_at = 'Allo.blockTimestamp'
[tables.public.allo_transaction]
hash = 'Transaction.hash'
chain_id = 'Transaction.chainId'
nonce = 'Transaction.nonce'
transaction_index = 'Transaction.transactionIndex'
from_address = 'Transaction.from'
to_address = 'Transaction.to'
contract_address = 'Transaction.contractAddress'
value = 'Transaction.value'
input = 'Transaction.input'
function_name = 'Transaction.functionName'
function_args = 'Transaction.functionArgs'
transaction_type = 'Transaction.transactionType'
status = 'Transaction.status'
root = 'Transaction.root'
gas = 'Transaction.gas'
gas_price = 'Transaction.gasPrice'
max_fee_per_gas = 'Transaction.maxFeePerGas'
max_priority_fee_per_gas = 'Transaction.maxPriorityFeePerGas'
gas_used = 'Transaction.gasUsed'
cumulative_gas_used = 'Transaction.cumulativeGasUsed'
effective_gas_price = 'Transaction.effectiveGasPrice'
block_hash = 'Transaction.blockHash'
block_number = 'Transaction.blockNumber'
block_timestamp = 'Transaction.blockTimestamp'
[tables.public.micro_grant]
strategy = 'MicroGrant.strategy'
strategy_id = 'MicroGrant.strategyId'
pool_id = 'MicroGrant.poolId'
use_registry_anchor = 'MicroGrant.useRegistryAnchor'
allocation_start_time = 'MicroGrant.allocationStartTime'
allocation_end_time = 'MicroGrant.allocationEndTime'
approval_threshold = 'MicroGrant.approvalThreshold'
max_requested_amount = 'MicroGrant.maxRequestedAmount'
gov = 'MicroGrant.gov'
snapshot_reference = 'MicroGrant.snapshotReference'
min_vote_power = 'MicroGrant.minVotePower'
hats = 'MicroGrant.hats'
hat_id = 'MicroGrant.hatId'
block_hash = 'MicroGrant.blockHash'
block_number = 'MicroGrant.blockNumber'
block_timestamp = 'MicroGrant.blockTimestamp'
chain_id = 'MicroGrant.chainId'
[tables.public.micro_grant_recipient]
recipient_id = 'MicroGrantRecipient.recipientId'
strategy = 'MicroGrantRecipient.strategy'
pool_id = 'MicroGrantRecipient.poolId'
recipient_address = 'MicroGrantRecipient.recipientAddress'
requested_amount = 'MicroGrantRecipient.requestedAmount'
is_using_registry_anchor = 'MicroGrantRecipient.isUsingRegistryAnchor'
status = 'MicroGrantRecipient.status'
metadata_protocol = 'MicroGrantRecipient.metadataProtocol'
metadata_pointer = 'MicroGrantRecipient.metadataPointer'
sender = 'MicroGrantRecipient.sender'
block_hash = 'MicroGrantRecipient.blockHash'
block_number = 'MicroGrantRecipient.blockNumber'
block_timestamp = 'MicroGrantRecipient.blockTimestamp'
chain_id = 'MicroGrantRecipient.chainId'
[tables.public.allocated]
recipient_id = 'Allocated.recipientId'
sender = 'Allocated.sender'
contract_name = 'Allocated.contractName'
contract_address = 'Allocated.contractAddress'
transaction_hash = 'Allocated.transactionHash'
log_index = 'Allocated.logIndex'
block_hash = 'Allocated.blockHash'
block_number = 'Allocated.blockNumber'
block_timestamp = 'Allocated.blockTimestamp'
chain_id = 'Allocated.chainId'
status = 'Allocated.status'
[tables.public.distributed]
recipient_id = 'Distributed.recipientId'
recipient_address = 'Distributed.recipientAddress'
amount = 'Distributed.amount'
sender = 'Distributed.sender'
contract_name = 'Distributed.contractName'
contract_address = 'Distributed.contractAddress'
transaction_hash = 'Distributed.transactionHash'
log_index = 'Distributed.logIndex'
block_hash = 'Distributed.blockHash'
block_number = 'Distributed.blockNumber'
block_timestamp = 'Distributed.blockTimestamp'
chain_id = 'Distributed.chainId'
[tables.public.sqf_super_fluid]
strategy = 'SQFSuperFluid.strategy'
strategy_id = 'SQFSuperFluid.strategyId'
pool_id = 'SQFSuperFluid.poolId'
use_registry_anchor = 'SQFSuperFluid.useRegistryAnchor'
metadata_required = 'SQFSuperFluid.metadataRequired'
registration_start_time = 'SQFSuperFluid.registrationStartTime'
registration_end_time = 'SQFSuperFluid.registrationEndTime'
allocation_start_time = 'SQFSuperFluid.allocationStartTime'
allocation_end_time = 'SQFSuperFluid.allocationEndTime'
passport_decoder = 'SQFSuperFluid.passportDecoder'
min_passport_score = 'SQFSuperFluid.minPassportScore'
super_fluid_host = 'SQFSuperFluid.superFluidHost'
allocation_super_token = 'SQFSuperFluid.allocationSuperToken'
initial_super_app_balance = 'SQFSuperFluid.initialSuperAppBalance'
gda_pool = 'SQFSuperFluid.gdaPool'
distribution_flow_rate = 'SQFSuperFluid.distributionFlowRate'
block_hash = 'SQFSuperFluid.blockHash'
block_number = 'SQFSuperFluid.blockNumber'
block_timestamp = 'SQFSuperFluid.blockTimestamp'
chain_id = 'SQFSuperFluid.chainId'
[tables.public.sqf_super_fluid_recipient]
recipient_id = 'SQFSuperFluidRecipient.recipientId'
strategy = 'SQFSuperFluidRecipient.strategy'
pool_id = 'SQFSuperFluidRecipient.poolId'
recipient_address = 'SQFSuperFluidRecipient.recipientAddress'
total_units = 'SQFSuperFluidRecipient.totalUnits'
flow_rate = 'SQFSuperFluidRecipient.flowRate'
super_app = 'SQFSuperFluidRecipient.superApp'
is_using_registry_anchor = 'SQFSuperFluidRecipient.isUsingRegistryAnchor'
status = 'SQFSuperFluidRecipient.status'
metadata_protocol = 'SQFSuperFluidRecipient.metadataProtocol'
metadata_pointer = 'SQFSuperFluidRecipient.metadataPointer'
sender = 'SQFSuperFluidRecipient.sender'
block_hash = 'SQFSuperFluidRecipient.blockHash'
block_number = 'SQFSuperFluidRecipient.blockNumber'
block_timestamp = 'SQFSuperFluidRecipient.blockTimestamp'
chain_id = 'SQFSuperFluidRecipient.chainId'
# = Links & Filters --------------------------
[[objects.Profile.links]]
table = 'public.profile'
uniqueBy = [ 'profileId', 'chainId' ]
[[objects.Pool.links]]
table = 'public.pool'
uniqueBy = [ 'poolId', 'chainId' ]
[[objects.Account.links]]
table = 'public.account'
uniqueBy = [ 'accountId', 'chainId' ]
[[objects.Role.links]]
table = 'public.role'
uniqueBy = [ 'roleId', 'chainId' ]
[[objects.RoleAccount.links]]
table = 'public.role_account'
uniqueBy = [ 'roleId', 'accountId', 'chainId' ]
[[objects.Allo.links]]
table = 'public.allo'
uniqueBy = [ 'chainId' ]
[[objects.Transaction.links]]
table = 'public.allo_transaction'
uniqueBy = [ 'hash', 'chainId' ]
filterBy = [
{ chainId = { op = '=', value = '5' }, from = { op = 'in', value = ['0x4aacca72145e1df2aec137e1f3c5e3d75db8b5f3', '0x1133ea7af70876e64665ecd07c0a0476d09465a1'] } },
{ chainId = { op = '=', value = '5' }, to = { op = 'in', value = ['0x4aacca72145e1df2aec137e1f3c5e3d75db8b5f3', '0x1133ea7af70876e64665ecd07c0a0476d09465a1'] } },
{ chainId = { op = '=', value = '42161' }, from = { op = 'in', value = ['0x4aacca72145e1df2aec137e1f3c5e3d75db8b5f3', '0x1133ea7af70876e64665ecd07c0a0476d09465a1'] } },
{ chainId = { op = '=', value = '42161' }, to = { op = 'in', value = ['0x4aacca72145e1df2aec137e1f3c5e3d75db8b5f3', '0x1133ea7af70876e64665ecd07c0a0476d09465a1'] } },
{ chainId = { op = '=', value = '421614' }, from = { op = 'in', value = ['0x4aacca72145e1df2aec137e1f3c5e3d75db8b5f3', '0x1133ea7af70876e64665ecd07c0a0476d09465a1'] } },
{ chainId = { op = '=', value = '421614' }, to = { op = 'in', value = ['0x4aacca72145e1df2aec137e1f3c5e3d75db8b5f3', '0x1133ea7af70876e64665ecd07c0a0476d09465a1'] } },
{ chainId = { op = '=', value = '11155111' }, from = { op = 'in', value = ['0x4aacca72145e1df2aec137e1f3c5e3d75db8b5f3', '0x1133ea7af70876e64665ecd07c0a0476d09465a1'] } },
{ chainId = { op = '=', value = '11155111' }, to = { op = 'in', value = ['0x4aacca72145e1df2aec137e1f3c5e3d75db8b5f3', '0x1133ea7af70876e64665ecd07c0a0476d09465a1'] } },
]
[[objects.MicroGrant.links]]
table = 'public.micro_grant'
uniqueBy = [ 'chainId', 'poolId' ]
[[objects.MicroGrantRecipient.links]]
table = 'public.micro_grant_recipient'
uniqueBy = [ 'chainId', 'poolId', 'recipientId' ]
[[objects.Allocated.links]]
table = 'public.allocated'
uniqueBy = [ 'transactionHash', 'logIndex', 'chainId' ]
[[objects.Distributed.links]]
table = 'public.distributed'
uniqueBy = [ 'transactionHash', 'logIndex', 'chainId' ]
[[objects.SQFSuperFluid.links]]
table = 'public.sqf_super_fluid'
uniqueBy = [ 'chainId', 'poolId' ]
[[objects.SQFSuperFluidRecipient.links]]
table = 'public.sqf_super_fluid_recipient'
uniqueBy = [ 'chainId', 'poolId', 'recipientId' ]