This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//! EVM blockchain filter implementation. | |
//! | |
//! This module provides filtering capabilities for Ethereum Virtual Machine (EVM) compatible | |
//! blockchains. It handles: | |
//! - Transaction matching based on conditions | |
//! - Function call detection and parameter matching | |
//! - Event log processing and filtering | |
//! - ABI-based decoding of function calls and events | |
use alloy::primitives::U64; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pub async fn handle_match<T: TriggerExecutionServiceTrait>( | |
matching_monitor: MonitorMatch, | |
trigger_service: &T, | |
trigger_scripts: &HashMap<String, (ScriptLanguage, String)>, | |
) -> Result<(), FilterError> { | |
match &matching_monitor { | |
MonitorMatch::EVM(evm_monitor_match) => { | |
let transaction = evm_monitor_match.transaction.clone(); | |
// If sender does not exist, we replace with 0x0000000000000000000000000000000000000000 | |
let sender = transaction.sender().unwrap_or(&Address::ZERO); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% make process | |
query: SELECT * FROM current_schema() | |
query: SELECT version(); | |
query: SELECT * FROM "information_schema"."tables" WHERE "table_schema" = 'public' AND "table_name" = 'migrations' | |
query: SELECT * FROM "migrations" "migrations" ORDER BY "id" DESC | |
No migrations are pending | |
18:32:55 INFO sqd:processor last processed block was 19 | |
18:32:55 INFO sqd:processor processing blocks from 20 | |
18:32:55 DEBUG sqd:processor:archive-request http request | |
httpRequestId: 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% make process | |
query: SELECT * FROM current_schema() | |
query: SELECT version(); | |
query: SELECT * FROM "information_schema"."tables" WHERE "table_schema" = 'public' AND "table_name" = 'migrations' | |
query: SELECT * FROM "migrations" "migrations" ORDER BY "id" DESC | |
No migrations are pending | |
17:01:56 INFO sqd:processor last processed block was 99 | |
17:01:56 INFO sqd:processor processing blocks from 100 | |
17:01:56 DEBUG sqd:processor:archive-request http request | |
httpRequestId: 0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
services: | |
db: | |
image: postgres:12 # CockroachDB cluster might be a better fit for production deployment | |
restart: always | |
volumes: | |
- /mnt/volume_subsquid_subspace/postgresql/data | |
environment: | |
POSTGRES_USER: postgres | |
POSTGRES_PASSWORD: postgres | |
POSTGRES_DB: squid-archive |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Attaching to subsquid-subspace_ingest_1, subsquid-subspace_gateway_1, subsquid-subspace_explorer_1, subsquid-subspace_db_1 | |
db_1 | The files belonging to this database system will be owned by user "postgres". | |
db_1 | This user must also own the server process. | |
db_1 | | |
db_1 | The database cluster will be initialized with locale "en_US.utf8". | |
db_1 | The default database encoding has accordingly been set to "UTF8". | |
db_1 | The default text search configuration will be set to "english". | |
db_1 | | |
db_1 | Data page checksums are disabled. | |
db_1 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"version":"v0.7.0", | |
"notes":"Testing...", | |
"pub_date":"2022-06-22T19:25:57Z", | |
"platforms": { | |
"darwin": { | |
"signature":"dW50cnVzdGVkIGNvbW1lbnQ6IHNpZ25hdHVyZSBmcm9tIHRhdXJpIHNlY3JldCBrZXkKUldUTE5QWWxkQnlZOVJZVGdpKzJmRWZ0SkRvWS9TdFpqTU9xcm1mUmJSSG5OWVlwSklrWkN1SFpWbmh4SDlBcTU3SXpjbm0xMmRjRkphbkpVeGhGcTdrdzlrWGpGVWZQSWdzPQp0cnVzdGVkIGNvbW1lbnQ6IHRpbWVzdGFtcDoxNTkyOTE1MDU3CWZpbGU6L1VzZXJzL3J1bm5lci9ydW5uZXJzLzIuMjYzLjAvd29yay90YXVyaS90YXVyaS90YXVyaS9leGFtcGxlcy9jb21tdW5pY2F0aW9uL3NyYy10YXVyaS90YXJnZXQvZGVidWcvYnVuZGxlL29zeC9hcHAuYXBwLnRhci5negp4ZHFlUkJTVnpGUXdDdEhydTE5TGgvRlVPeVhjTnM5RHdmaGx3c0ZPWjZXWnFwVDRNWEFSbUJTZ1ZkU1IwckJGdmlwSzJPd00zZEZFN2hJOFUvL1FDZz09Cg==", | |
"url":"https://github.com/subspace/subspace-desktop/releases/download/0.6.8/subspace-desktop_0.6.8_amd64.deb" | |
}, | |
"linux": { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { ApiPromise, WsProvider } = require("@polkadot/api"); | |
async function main() { | |
const provider = new WsProvider('wss://kusama-rpc.polkadot.io'); | |
const api = await ApiPromise.create({ provider }); | |
const number = 10857954; | |
const hash = await api.rpc.chain.getBlockHash(number); | |
const block = await api.rpc.chain.getBlock.raw(hash); // same with chain.getBlock(hash); | |
console.log(block.justifications); // result is null |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React from 'react'; | |
import Title from './Title'; | |
import Nav from './Nav'; | |
import styles from "./style.css"; | |
var lastScroll = 0;//переменная для scrollHandler | |
class Header extends React.Component { | |
constructor(){ | |
super(); |