- Edited
Want to contribute to an open source Stellar project but don't know where to start?
I've just released https://github.com/stellarguard/txrep, a TypeScript/JavaScript implementation of https://github.com/stellar/stellar-protocol/blob/master/ecosystem/sep-0011.md. Txrep aims to be a human readable (and editable) representation of a Stellar transaction.
So how can you help? We need more transaction XDRs to test with! You can create test XDRs using the official Stellar Laboratory: https://www.stellar.org/laboratory/
You can then contribute those XDRs in one of two ways:
Open a PR by adding to the file https://github.com/stellarguard/txrep/blob/master/tests.yaml. Add additional test cases with a brief description of the XDR that is being tested, and optionally the txrep representation of that case. To generate the txrep, use https://github.com/xdrpp/stc which includes the reference implementation of Txrep in Golang. Follow the instructions in "Installing tsc for non developers" to install the command line tool and then run `stc <path-to-your-saved-xdr-file> to get the txrep output. Then copy/paste your txrep into the tests.yaml file as a new entry.
Paste your XDR to https://stellarguard.github.io/txrep/demo/, and see if there's an error. If there is an error, open a github issue and paste your XDR into it, or just share it here and I'll take it from there.
Thanks in advance for anyone who contributes!