Skip to content

Instantly share code, notes, and snippets.

View aaronc's full-sized avatar

Aaron Craelius aaronc

View GitHub Profile

Observations

  • for binary encoding we almost always want protobuf
  • for json we almost always want amino for querier backwards compatibility (protobuf json will happen elsewhere)
  • in some cases we want to allow amino as a fallback for interfaces

Marshaler

type Marshaler interface {
@aaronc
aaronc / schema.sql
Last active November 23, 2021 02:39
tendermint/cosmos postgres index
CREATE TABLE chain
(
num smallserial primary key,
chain_id text not null unique
);
CREATE TABLE block
(
chain_num smallint not null references chain,
height BIGINT not null,
@aaronc
aaronc / example.dot
Last active May 10, 2022 23:48
good container graphviz output
digraph "" {
graph [bb="0,0,1990.1,405.6"];
node [color=black,
label="\N",
shape=ellipse
];
subgraph cluster_b {
graph [bb="1075.8,136,1473.8,212.8",
label="Module: b",
lheight=0.23,