nomad-monorepo
nomad-monorepo copied to clipboard
Use `*_contracts.json` files to populate the sdk
@kekonen requested that we add xappconnectionmanagers to the SDK contracts objects.
The way I’d prefer to do it is taking the deploy’s *_contracts.json
files as an input to SDK context instantiation, that we go ahead and get all nomad contracts without having to manually copy+paste contract addresses
so the set of changes I’d prefer is something like:
- create a root level
deploys/ folder
- move the
*_contracts.json
files todeploys/
- have the deploy process output future
*_contracts.json
todeploys/whatever
- have the build process for the sdk copy files from
deploys/
totypescript/sdk/nomad/domains/deploys/
- have the sdk load all the json
- ensure the sdk packaging copys those json to dist and includes them in the published package
cc @anna-carroll for sanity checking and deploy-code changes
in the meantime, @kekonen should go ahead and add the connection manager manually
sounds great to me 🌷
This relates to #69, both issues discuss alternative approaches to smoothing out configuration in the monorepo.