Database Schema
CALL db.schema.visualization();
Graph Size
CALL apoc.meta.stats();
MATCH (n) DETACH DELETE n; | |
CREATE (b:Block {hash: 'block1'}); | |
// Coinbase 1 | |
MATCH (b:Block {hash: 'block1'}) | |
CREATE | |
(i:Input {coinbase: 'coinbase1'}), | |
(tx:Transaction {id: 'tx1-1'}), | |
(o:Output {n: 0, value: 11}), | |
(a:Address {address: 'addr1-1'}) |
PROFILE MATCH (:Address {address: "addr1-2"})-[:OUT]->(:Output)<-[:OUT]-(t:Transaction) | |
CALL apoc.path.expandConfig(t, { sequence:'Transaction, <IN, Input, <UNLOCK, Output, <OUT' }) | |
YIELD path | |
UNWIND nodes(path) as tx | |
MATCH (tx:Transaction)-[:OUT]->(o:Output)<-[:OUT]-(a:Address) | |
WHERE (o)-[:UNLOCK]->(:Input) | |
RETURN DISTINCT * | |
// check tx chain, 3 - min number of hops in the chain, 6 - max | |
// where is no chains longer than 3 hops = 2 tx. (each (tx)-to->(tx) step required 3 hops). |
Database Schema
CALL db.schema.visualization();
Graph Size
CALL apoc.meta.stats();
Max De Marzi Modeling Guidelines:
type alias Model = | |
{ screen : Screen | |
, hero : Hero | |
, foodPanel : FoodPanel | |
, hp : Hp | |
, score : Int | |
, bestResults : List BestResult | |
} |
type Msg | |
= Idle | |
| Eat (List Tags) | |
| Damage Int | |
| HpCheck Int | |
| ChangeHero Hero | |
| ShuffleFood | |
| Shuffle (List Food) | |
| Animate AnimatedObject Animation.Msg | |
heroList : Model -> List (Html Msg) | |
heroList model = | |
List.map | |
(\x -> | |
card [ style "margin-top" "1.5rem" ] | |
[ cardContent [] | |
[ media [ onClick <| ChangeHero x ] | |
[ mediaLeft [ style "width" "40%" ] | |
[ image (OneByOne Unbounded) | |
[] |
add : Int -> Int -> Int | |
add a b = | |
a + b | |
dashify : String -> String -> String | |
dashify a b = | |
if a == "" then | |
b |