Salehstake_labs
Updated 2024-07-06
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 lst_stake_con_validator as (
select
tx_id
from axelar.core.fact_msg_attributes
where MSG_TYPE= 'delegate'
-- and tx_id='E9D740AB850673A399EFBBF2118D9BEE3AF9D724AD5C162B4C2EAACA92859ADC'
and ATTRIBUTE_KEY ='validator'
and ATTRIBUTE_VALUE ='axelarvaloper19dx6vywgr62jtsxhhlhlgh7ug5vmgjnz6dkeud'
and TX_SUCCEEDED=true
)
,lst_stake_amount as (
select
tx_id
,ATTRIBUTE_VALUE/1e6 as amount
from axelar.core.fact_msg_attributes
where MSG_TYPE = 'delegate'
and ATTRIBUTE_KEY= 'new_shares'
and TX_SUCCEEDED=true
-- and tx_id='E9D740AB850673A399EFBBF2118D9BEE3AF9D724AD5C162B4C2EAACA92859ADC'
)
,lst_stake_wallet as (
select
tx_id
,ATTRIBUTE_VALUE as wallet
,MSG_INDEX
from axelar.core.fact_msg_attributes
where TX_SUCCEEDED=true
-- and tx_id='E9D740AB850673A399EFBBF2118D9BEE3AF9D724AD5C162B4C2EAACA92859ADC'
and MSG_TYPE = 'message'
and ATTRIBUTE_KEY= 'sender'
)
,lst_stake as (
select
block_timestamp::date as date
QueryRunArchived: QueryRun has been archived