-
Notifications
You must be signed in to change notification settings - Fork 51
Add Elixir generation support #156
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
* Modify the enum type generated * Generate enum types by files Co-authored-by: Juan Esteban Nieto Cifuentes <[email protected]>
* Add union type * Resolve comments
* Add function to create number types * Remove unnecessary function * Add condition for union type
Co-authored-by: Juan Esteban Nieto Cifuentes <[email protected]>
* Generate typedef types part 2 * Add Optional function * Remove unnecessary file * Generate simple typedef * Remove unnecessary function --------- Co-authored-by: jenietoc <[email protected]>
* Create hash for constants * Fix generate the list from struct and union * Fix optional types * Fix lists without max length --------- Co-authored-by: jenietoc <[email protected]>
* Fix module name and remove repeat alias and types * Fix repeat types in the union * Define a map when the arms are integers in unions * Include the Fixed prefix when is a fixed list * Include max length in the module and file name * Fix create a file twice * Fix alias * Fix union type * Change name in uint typedef * Fix number types * Fix order validation --------- Co-authored-by: jenietoc <[email protected]>
* Fix opaque type * Fix array type * Fix typo * Send the second arg to opaque types * Remove condition * Add a comma in the separation of arms in unions * Remove unnecessary commas in the alias of unions * Search constant value for opaque types * Change type name in struct types * Fix errors with reserved words in struct types * Fix alias * Refactor code * Fix String types * Fix value name in union types * Fix called function * Modify the params name * Remove validation * Refactor function --------- Co-authored-by: jenietoc <[email protected]>
* Fix union arms * Fix problems with consts --------- Co-authored-by: jenietoc <[email protected]>
* Fix union bug * Refactor some code * New changes
|
@elisa6 @Jenietoc We're maintaining xdrgen generators outside of the xdrgen repo now, since we can't test them inside the repo very well or in the context of their SDK. There's discussion about this here: All your existing code should work, it's just a matter of copying the ruby file containing the Elixir generator into your own repo, either stellar_base or its own repo, and adding a couple Ruby files like Gemfile and calling the |
This PR adds Elixir generation support using the elixir_xdr dependency which is used by the currently maintained and complete Stellar SDK for Elixir - https://github.com/kommitters/stellar_sdk.
We are excited to contribute to this great tool and include the generated files in our stellar_base library.
Thank you.