Skip to content
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

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

justinschuldt
Copy link

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
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.

None yet

1 participant