To regenerate types from XDR definitions:
-
Update XDR definitions
git submodule update --init --remote
The
--init
flag is only required for the first time setting up the local project.--remote
flag will make sure to fetch the latest changes from from the remote-tracking branchescurr
andnext
at [stellar/stellar-xdr].If you have multiple remotes specified in the submodules (e.g. one *tracking
stellar/stellar-xdr
, the other trackingyour-fork/stellar-xdr
), make sure the remote that tracks [stellar/stellar-xdr] match with what's specifies in the.git/config
or.gitsubmodules
(with.git/config
taking precedence. If neither file specifies it, thenorigin
is used). -
Recompile and test
make clean generate
When the regenerated types are ready to be merged, make sure to commit the regenerated code file
src/curr/generated.rs
,src/next/generated.rs
, the version string filexdr/curr-version
,xdr/next-version
, as well as the submodule filesxdr/curr
,xdr/next
.