This repository is responsible for the auto-generation within the Proxima Network. It encapsulates processing of smart contracts for the DApp aggregators, creation of models, resolvers, and Data Vertices for the Proxima Node, and the building of the Proxima Vertex node itself.
The auto-generator occurs in several stages:
- Autogeneration of DApp Aggregator
- Generation of schema files
- Schema files
- Blockchain Smart contracts
- Event handlers
- Function handlers
- Contract creators
Works with:
- DApp aggregator
- Blockchain Client
- Data vertex
- Database
- Volume
- Creates the docker-compose files
- Creates the correct config files for:
- Database
- Blockchain Client
- Data vertex
- DApp aggregator
- Creates the
- Graphql Schema files
- DApp aggregator configuration
- Blockchain client configuration
- Data client vertex configuration
- Blockchain client
- Data vertex Client
Select and create client from config
- Graphql Schema files
- Blockchain client configuration
- Data client vertex configuration
- Graphql Schema files
The Proxima graphql generation relies on the creation of the dataloader, the models and resolvers, and a connection and reference to the database tables through a client.
- Graphql Schema files
- Data vertex configuration
- Database client configuration
- Database client
Files to be created:
- Models
- Default query inputs
- Resolvers
- Dataloader
- Database tables
- Server files
The golang model and resolver generator runs a bash file that occurs in two stages:
- First it runs gql generator to create the models and resolvers from the schema file
- Second it runs a node file that adds the proper code to:
- Writes the base default query and resolver inputs for each query with the default entries
- Writes the resolvers to include the correct dataloaders.
The Proxima dataloader is generated
- Database configuration
- Graphql Schema files
Files to be generated:
- Database tables
- Table config
- Cache config
- Default database configuration
The database table client is used by the dataloader, and must incorporate the correct dataloader for the correct models.
The Proxima generator creates the
The Proxima generator creates the tables and their respective caches for the
Create the table list and the cache list for the database