cardano.packages: add ogmios
(cherry picked from commit 2dff7ca1eec4a8a23a5fd050eebb493157e97d1c)
(cherry picked from commit 2dff7ca1eec4a8a23a5fd050eebb493157e97d1c)
"type": "github"
}
},
"HTTP_25": {
"flake": false,
"locked": {
"lastModified": 1451647621,
"narHash": "sha256-oHIyw3x0iKBexEo49YeUDV1k74ZtyYKGR2gNJXXRxts=",
"owner": "phadej",
"repo": "HTTP",
"rev": "9bc0996d412fef1787449d841277ef663ad9a915",
"type": "github"
},
"original": {
"owner": "phadej",
"repo": "HTTP",
"type": "github"
}
},
"HTTP_3": {
"flake": false,
"locked": {
"type": "github"
}
},
"cabal-32_25": {
"flake": false,
"locked": {
"lastModified": 1603716527,
"narHash": "sha256-X0TFfdD4KZpwl0Zr6x+PLxUt/VyKQfX7ylXHdmZIL+w=",
"owner": "haskell",
"repo": "cabal",
"rev": "48bf10787e27364730dd37a42b603cee8d6af7ee",
"type": "github"
},
"original": {
"owner": "haskell",
"ref": "3.2",
"repo": "cabal",
"type": "github"
}
},
"cabal-32_3": {
"flake": false,
"locked": {
"type": "github"
}
},
"cabal-34_25": {
"flake": false,
"locked": {
"lastModified": 1640353650,
"narHash": "sha256-N1t6M3/wqj90AEdRkeC8i923gQYUpzSr8b40qVOZ1Rk=",
"owner": "haskell",
"repo": "cabal",
"rev": "942639c18c0cd8ec53e0a6f8d120091af35312cd",
"type": "github"
},
"original": {
"owner": "haskell",
"ref": "3.4",
"repo": "cabal",
"type": "github"
}
},
"cabal-34_3": {
"flake": false,
"locked": {
"type": "github"
}
},
"cabal-36_19": {
"flake": false,
"locked": {
"lastModified": 1641652457,
"narHash": "sha256-BlFPKP4C4HRUJeAbdembX1Rms1LD380q9s0qVDeoAak=",
"owner": "haskell",
"repo": "cabal",
"rev": "f27667f8ec360c475027dcaee0138c937477b070",
"type": "github"
},
"original": {
"owner": "haskell",
"ref": "3.6",
"repo": "cabal",
"type": "github"
}
},
"cabal-36_2": {
"flake": false,
"locked": {
"type": "github"
}
},
"cardano-ogmios": {
"inputs": {
"config": "config",
"flake-utils": "flake-utils_40",
"haskellNix": "haskellNix_23",
"iohkNix": "iohkNix_23",
"nixpkgs": [
"cardano-ogmios",
"haskellNix",
"nixpkgs-2111"
],
"ogmios": "ogmios"
},
"locked": {
"lastModified": 1646317560,
"narHash": "sha256-+j/kuAYtxiH0TOcIWO+FVuM8uSAqBgWyuSrVAZOcQiY=",
"owner": "input-output-hk",
"repo": "cardano-ogmios",
"rev": "31c987dbe9f6c02000becc3bc32dda60640a0016",
"type": "github"
},
"original": {
"owner": "input-output-hk",
"repo": "cardano-ogmios",
"type": "github"
}
},
"cardano-shell": {
"flake": false,
"locked": {
"type": "github"
}
},
"cardano-shell_25": {
"flake": false,
"locked": {
"lastModified": 1608537748,
"narHash": "sha256-PulY1GfiMgKVnBci3ex4ptk2UNYMXqGjJOxcPy2KYT4=",
"owner": "input-output-hk",
"repo": "cardano-shell",
"rev": "9392c75087cb9a3d453998f4230930dea3a95725",
"type": "github"
},
"original": {
"owner": "input-output-hk",
"repo": "cardano-shell",
"type": "github"
}
},
"cardano-shell_3": {
"flake": false,
"locked": {
"ema": "ema_2",
"emanote": "emanote_2",
"flake-compat": "flake-compat_19",
"flake-utils": "flake-utils_47",
"haskellNix": "haskellNix_23",
"flake-utils": "flake-utils_49",
"haskellNix": "haskellNix_24",
"hostNixpkgs": [
"cardano-wallet",
"nixpkgs"
],
"iohkNix": "iohkNix_23",
"iohkNix": "iohkNix_24",
"nixpkgs": [
"cardano-wallet",
"haskellNix",
"type": "github"
}
},
"config": {
"locked": {
"lastModified": 1630400035,
"narHash": "sha256-MWaVOCzuFwp09wZIW9iHq5wWen5C69I940N1swZLEQ0=",
"owner": "input-output-hk",
"repo": "empty-flake",
"rev": "2040a05b67bf9a669ce17eca56beb14b4206a99a",
"type": "github"
},
"original": {
"owner": "input-output-hk",
"repo": "empty-flake",
"type": "github"
}
},
"customConfig": {
"locked": {
"narHash": "sha256-Zd5w1I1Dwt783Q4WuBuCpedcwG1DrIgQGqabyF87prM=",
},
"devshell_10": {
"inputs": {
"flake-utils": "flake-utils_50",
"flake-utils": "flake-utils_52",
"nixpkgs": [
"std",
"nixpkgs"
cardano-node.url = "github:input-output-hk/cardano-node";
cardano-db-sync.url = "github:input-output-hk/cardano-db-sync/12.0.1-flake-improvements";
cardano-wallet.url = "github:input-output-hk/cardano-wallet";
cardano-ogmios.url = "github:input-output-hk/cardano-ogmios";
# --------------------------------------------------------------
};
outputs = inputs: let
inputs,
cell,
}: let
inherit (inputs) nixpkgs cardano-wallet cardano-db-sync cardano-node;
inherit (inputs) nixpkgs cardano-wallet cardano-db-sync cardano-node cardano-ogmios;
cardano-node-project =
(
cardano-node.legacyPackages.extend (
cardano-address = cardano-wallet.packages.cardano-address;
cardano-db-sync = cardano-db-sync.packages.cardano-db-sync;
bech32 = cardano-node-project.hsPkgs.bech32.components.exes.bech32;
ogmios = cardano-ogmios.packages.ogmios;
}
Other small changes include: * Added a trace event `TDBInitialisingFromLMDBDone`. * Initialisation from an existing LMDB database does not rely on the default `LMDBLimits` anymore, and is passed a limits argument instead. TODO: We should decide whether we want to hardcode these limits to a a substantially large one, or possibly we could link these limits to a versioning number?
add cwbtc
attempt implementation
Other small changes include: * Added a trace event `TDBInitialisingFromLMDBDone`. * Initialisation from an existing LMDB database does not rely on the default `LMDBLimits` anymore, and is passed a limits argument instead. TODO: We should decide whether we want to hardcode these limits to a a substantially large one, or possibly we could link these limits to a versioning number?
Updated crypto exchange rates chapter. I tried my best to address @rdlrt concerns. I would like to add that English is just my 3rd language, so I hope it is not too bad.
Previously, the sequence number of the database is written to disk as part of the on-disk database settings on every flush/write. Conceptually however, the settings of a database should not change on every flush or write. Instead, we make a dinstinction between on-disk database "settings" and "state", where the state can be updated in every write/flush, but the settings should generally be left untouched after database initialisation or node start-up.
Fixes #217.
This works because (a) JavaScript is ultimately single-threaded, (b) there's no execution preemption happening between a 'send' and a 'wait'.
This was using the raw Show instance of queries, which looks real bad for constructors with arity > 1 like HasTx.