Aephiawithdraw cargo
Updated 2023-10-03
999
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
›
⌄
⌄
WITH deposit_cargo AS (
select
fact_events.*
/*
date_trunc('day', block_timestamp::date) as date,
----------------------------------------------------
sum(case when instruction:accounts[11]::string = 'fueL3hBZjLLLJHiFH9cqZoozTG3XQZ53diwFPwbzNim'
then inner_instruction:instructions[2]:parsed:info:amount
end) as fuel_deposit_amount,
sum(case when instruction:accounts[11]::string = 'foodQJAztMzX1DKpLaiounNe2BDMds5RNuPC6jsNrDG'
then inner_instruction:instructions[2]:parsed:info:amount
end) as food_deposit_amount,
sum(case when instruction:accounts[11]::string = 'ammoK8AkX2wnebQb35cDAZtTkvsXQbi82cGeTnUvvfK'
then inner_instruction:instructions[2]:parsed:info:amount
end) as ammo_deposit_amount,
sum(case when instruction:accounts[11]::string = 'tooLsNYLiVqzg8o4m3L2Uetbn62mvMWRqkog6PQeYKL'
then inner_instruction:instructions[2]:parsed:info:amount
end) as toolkits_deposit_amount,
sum(case when instruction:accounts[11]::string = 'ARCoQ9dndpg6wE2rRexzfwgJR3NoWWhpcww3xQcQLukg'
then inner_instruction:instructions[2]:parsed:info:amount
end) as arco_deposit_amount,
sum(case when instruction:accounts[11]::string = 'MASS9GqtJz6ABisAxcUn3FeR4phMqH1XfG6LPKJePog'
then inner_instruction:instructions[2]:parsed:info:amount
end) as biomass_deposit_amount,
sum(case when instruction:accounts[11]::string = 'CARBWKWvxEuMcq3MqCxYfi7UoFVpL9c4rsQS99tw6i4X'
then inner_instruction:instructions[2]:parsed:info:amount
end) as carbon_deposit_amount,
sum(case when instruction:accounts[11]::string = 'CUore1tNkiubxSwDEtLc3Ybs1xfWLs8uGjyydUYZ25xc'
then inner_instruction:instructions[2]:parsed:info:amount
end) as copper_ore_deposit_amount,
sum(case when instruction:accounts[11]::string = 'DMNDKqygEN3WXKVrAD4ofkYBc4CKNRhFUbXP4VK7a944'
then inner_instruction:instructions[2]:parsed:info:amount
end) as diamond_deposit_amount,
sum(case when instruction:accounts[11]::string = 'HYDR4EPHJcDPcaLYUcNCtrXUdt1PnaN4MvE655pevBYp'
then inner_instruction:instructions[2]:parsed:info:amount
Run a query to Download Data