Skip to content

scripts/ update - move to Typescript, import wallets, contracts, and network config. - #15

Open
justinschuldt wants to merge 5 commits into
am-work:masterfrom
justinschuldt:master
Open

scripts/ update - move to Typescript, import wallets, contracts, and network config.#15
justinschuldt wants to merge 5 commits into
am-work:masterfrom
justinschuldt:master

Conversation

@justinschuldt

Copy link
Copy Markdown

Couple things here to make the script development faster/easier:

  • migrated all the js to Typescript
  • the Typescript (library.ts) now reads wallets from keys.tetrrain.js
  • added a new file, networks.ts that supplies the network config, and the contract addresses.
  • added a VSCode debugger config for scripts/, so you can run any script in NodeJS's debug mode, and set breakpoints, see variable values, etc.

Housekeeping:
I updated the root javascript/package.json so now @terra-money/terrain is checked into the package-lock.json, and the terrain deploy/migrate commands use the module from node_modules rather than using npx to get the module. I made this change to prevent future breakage, as npx will fetch the latest version at runtime, it's only a matter of time until their module has a breaking change, then this repo would stop working as described in the README. Want this to still work in 6 months, a year from now, etc. without us having to maintain it.

@justinschuldt

Copy link
Copy Markdown
Author

fyi @am-work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant