Skip to content

Commit

Permalink
feat(gnodev): lazy loading & staging support (#3237)
Browse files Browse the repository at this point in the history
featuring:  
- [X] **Lazy reload**: Super fast reload, only loading the needed
packages for the current directory package.
- [x] **Chain resolver**: You can change the gnodev resolving process so
it can resolve packages on-chain and configure a local fallback,
allowing you to try your package against the chain before submitting it.
	-  This will probably be updated when #2932 & #3123 will be merged
- [x] **Staging Mode**: `gnodev` now starts from the current directory
by default. The staging subcommand will reproduce previous behaviors by
loading and monitoring the entire example folder.

<details><summary>Contributors' checklist...</summary>

- [ ] Added new tests, or not needed, or not feasible
- [ ] Provided an example (e.g. screenshot) to aid review or the PR is
self-explanatory
- [ ] Updated the official documentation or not needed
- [ ] No breaking changes were made, or a `BREAKING CHANGE: xxx` message
was included in the description
- [ ] Added references to related issues and PRs
- [ ] Provided any useful hints for running manual tests
</details>

---------

Signed-off-by: gfanton <8671905+gfanton@users.noreply.github.com>
Co-authored-by: Leon Hudak <33522493+leohhhn@users.noreply.github.com>
Co-authored-by: Morgan <git@howl.moe>
Co-authored-by: Morgan <morgan@morganbaz.com>
  • Loading branch information
4 people authored Feb 10, 2025
1 parent 03a8b55 commit d2c3838
Show file tree
Hide file tree
Showing 66 changed files with 4,097 additions and 1,233 deletions.
2 changes: 1 addition & 1 deletion contribs/gnodev/cmd/gnodev/accounts.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ func (va varPremineAccounts) String() string {
return strings.Join(accs, ",")
}

func generateBalances(bk *address.Book, cfg *devCfg) (gnoland.Balances, error) {
func generateBalances(bk *address.Book, cfg *AppConfig) (gnoland.Balances, error) {
bls := gnoland.NewBalances()
premineBalance := std.Coins{std.NewCoin(ugnot.Denom, 10e12)}

Expand Down
Loading

0 comments on commit d2c3838

Please sign in to comment.