You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As ZetaChain connects more blockchains the addresses.json is at risk of becoming bloated and useless. The current design is good enough for maintaining a small set of blockchain and contracts, but eventually it would grow up to the point of becoming hard to work with.
We have to create a database structure that has the following properties:
Scalable to hundreds (even thousands) of blockchains.
Tracks the configuration of each system contract deployed in every blockchain.
Easy to read and write, ideally creating a SDK around it to create changes.
Changes are atomically applied to an specific blockchain; not affected blockchains json files shouldn't be changing commit.
Contains useful metadata to help resolve issues. Useful for @zeta-chain/devops and @zeta-chain/protocol-engineering.
Public database with a public CLI to interact with it (read only for non-ZetaChain users)
Should we consider storing this information in a contract? The added advantage is that it's on-chain and other contracts can read this information, we can also do access control.
Problem statement
As ZetaChain connects more blockchains the
addresses.json
is at risk of becoming bloated and useless. The current design is good enough for maintaining a small set of blockchain and contracts, but eventually it would grow up to the point of becoming hard to work with.We have to create a database structure that has the following properties:
Proposal
Database structure
network.json
chainID
, is currentlyactive
and all the system contracts addresses.System contract JSON files (ZetaConnector.json as an example)
Long term vision
Foo
has a configuration parameterfield1
.setField1
is invoked by an operator, DevOps, Protocol engineer, ...Foo
emits an eventField1Changed(newValue)
The text was updated successfully, but these errors were encountered: