Login to Lambda BI
https://lambda-demo.p2p.org/
Choose data source
We will use
- DATABASE: Lambda GCP
- SCHEMA: raw_neutron
- TABLES:
- events
- messages
- transactions
1st approach SQL
1st approach is about get all smart contract calls, even when particular SC called though another. That is why we will use raw_neutron.events table as a source
- get contract addresses from JSON field (’_contract_address’)
- choose raws with not null contract
- get contracts we need
- join with raw_neutron.transactions to get gas
- prepare dataset “before” with 1 month before update (2024-02-28T19:15:10). We choose 1 month to make number of raws the same as dataset “after”
- prepare dataset “after”
- calculate AVG(gas_used) and number of transactions for dataset “before”
- do the same for dataset “after”