lbry-sdk/lbry/schema
Jack Robison 9faf6e46ca move lbry.wallet.server to new project called scribe
switch from using lbrycrd to lbcd
2022-03-27 23:33:26 -04:00
..
types update hub protobuf including sd_hash field 2022-01-05 17:10:31 -03:00
__init__.py
attrs.py errors for empyt and misssing file on publish 2021-09-30 13:24:17 -03:00
base.py
claim.py reduced crypto dependency in wallet to coincurve 2021-12-22 18:29:46 -05:00
compat.py
Makefile
mime_types.py adds tests for guess_media_type 2022-01-29 20:49:42 +02:00
purchase.py
README.md document schema update process 2021-06-02 12:05:36 -04:00
result.py move lbry.wallet.server to new project called scribe 2022-03-27 23:33:26 -04:00
support.py add comment property/setter to the signable support class 2021-06-02 12:05:36 -04:00
tags.py
url.py make better resolve cache 2021-03-19 19:58:13 -03:00

Schema

Those files are generated from the types repo. If you are modifying/adding a new type, make sure it is cloned in the same root folder as the SDK repo, like:

repos/
    - lbry-sdk/
    - types/

Then, download protoc 3.2.0, add it to your PATH. On linux it is:

cd ~/.local/bin
wget https://github.com/protocolbuffers/protobuf/releases/download/v3.2.0/protoc-3.2.0-linux-x86_64.zip
unzip protoc-3.2.0-linux-x86_64.zip bin/protoc -d..

Finally, make should update everything in place.

Why protoc 3.2.0?

Different/newer versions will generate larger diffs and we need to make sure they are good. In theory, we can just update to latest and it will all work, but it is a good practice to check blockchain data and retro compatibility before bumping versions (if you do, please update this section!).