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

cadut generate api : global address map #61

Open
hotrungnhan opened this issue Apr 27, 2022 · 2 comments
Open

cadut generate api : global address map #61

hotrungnhan opened this issue Apr 27, 2022 · 2 comments
Assignees

Comments

@hotrungnhan
Copy link
Contributor

hotrungnhan commented Apr 27, 2022

It might be better if we can pass a object as the following to setting up all the contract addresses once, instead of passing it every time we invoke.

example :

const globalAddressMap= {
  emulator:{
    SomeContract :"some address"
  },
  testnet:{
    SomeContract :"some address"
  },
  production:{
    SomeContract :"some address"
  }
}
cadut.setGlobalAddressMap(globalAddressMap)

and then cadut will decide to use address map network depend on environment

@MaxStalker
Copy link
Contributor

One of the ideas was to utilize flow.json file, which should have these mappings.
Let's use this issue to track the work in that direction :)

@hotrungnhan
Copy link
Contributor Author

hotrungnhan commented Apr 27, 2022

One of the ideas was to utilize flow.json file, which should have these mappings. Let's use this issue to track the work in that direction :)

hope it gonna be implement soon :v

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

No branches or pull requests

2 participants