A function compare_json_data(source_data_a,source_data_b)
, accepting structures populated with data loaded from json.load()
and comparing for equality.
$ ./compare.py
Compare JSON result is: True
A function compare_json_data(source_data_a,source_data_b)
, accepting structures populated with data loaded from json.load()
and comparing for equality.
$ ./compare.py
Compare JSON result is: True
This is a guide for aligning images.
See the full Advanced Markdown doc for more tips and tricks
This is a design document for a minimalist React application architecture. Anecdotally, this design is proving to work well for smaller-to-medium scale projects, but it has not been proven to work for large-scale projects because it has not been tested against those yet.
This design is modeled around the official Intro To React guide put out by the React team. In fact, it does not diverge in any significant way from that guide; it simply adds a few explicit constraints to promote simpler implementations.
Examples of this architecture in use:
market | OfferID | No. Trades | Offer volume | Totalled trades volume | Volume diff | % filled | |
---|---|---|---|---|---|---|---|
WETHDAI | 24544 | 2 | 9.65103589613837 | 9.6510358961383724 | -0.0000000000000024 | 100.000000000000024868 | |
WETHDAI | 4454 | 2 | 5.970391582487159 | 5.9703915824871603 | -0.0000000000000013 | 100.000000000000021774 | |
WETHDAI | 14784 | 3 | 2.54390784948206 | 2.54390784948206054 | -0.00000000000000054 | 100.000000000000021227 | |
MKRWETH | 5065 | 2 | 8.48728805582 | 8.4872880558200015 | -0.0000000000000015 | 100.000000000000017673 | |
WETHDAI | 76548 | 2 | 9.979212467866821 | 9.9792124678668227 | -0.0000000000000017 | 100.000000000000017035 | |
MKRWETH | 39865 | 2 | 0.282177 | 0.282177000000000048 | -0.000000000000000048 | 100.000000000000017011 | |
MKRWETH | 6995 | 2 | 1.182130701961711 | 1.1821307019617112 | -0.0000000000000002 | 100.000000000000016919 | |
MKRWETH | 35905 | 2 | 0.26198 | 0.26198000000000004 | -0.00000000000000004 | 100.000000000000015268 | |
WETHDAI | 45235 | 9 | 40.50727594500199 | 40.5072759450019961 | -0.0000000000000061 | 100.000000000000015059 |
import json | |
from collections import Counter, defaultdict | |
from dataclasses import dataclass, field | |
from decimal import Decimal | |
from itertools import chain | |
import requests | |
from eth_abi import encode_single | |
from eth_utils import function_signature_to_4byte_selector, decode_hex, encode_hex | |
from itertools import count |