xdr

package
v0.0.0-...-3a1fdf7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 7, 2022 License: Apache-2.0, Apache-2.0 Imports: 21 Imported by: 0

README ¶

xdr

The xdr package contains encoding/decoding of Stellar XDR types.

Code Generate

Most of the code this package is generated.

To download new XDR for code generation:

docker run --platform linux/amd64 -it --rm -v $PWD:/wd -w /wd ruby /bin/bash -c 'bundle install && bundle exec rake xdr:download'

To regenerate the code from the local XDR:

docker run --platform linux/amd64 -it --rm -v $PWD:/wd -w /wd ruby /bin/bash -c 'bundle install && bundle exec rake xdr:generate' && go fmt ./xdr

To download XDR for a different branch of stellar-core, modify Rakefile in the root.

Documentation ¶

Overview ¶

Package xdr contains the generated code for parsing the xdr structures used for stellar.

Package xdr is generated from:

xdr/Stellar-SCP.x
xdr/Stellar-ledger-entries.x
xdr/Stellar-ledger.x
xdr/Stellar-overlay.x
xdr/Stellar-transaction.x
xdr/Stellar-types.x

DO NOT EDIT or your changes may be overwritten

Index ¶