Skip to content

Commit

Permalink
Add solvers (#43)
Browse files Browse the repository at this point in the history
* Add chains

* Add solver information

* Add solver ID and remove the draft stage

* Change to display name
  • Loading branch information
anxolin authored Aug 6, 2024
1 parent 74f4ea7 commit 8bd2052
Show file tree
Hide file tree
Showing 11 changed files with 7,252 additions and 2,988 deletions.
30 changes: 30 additions & 0 deletions src/api/network/content-types/network/schema.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"kind": "collectionType",
"collectionName": "networks",
"info": {
"singularName": "network",
"pluralName": "networks",
"displayName": "Network",
"description": ""
},
"options": {
"draftAndPublish": false
},
"pluginOptions": {},
"attributes": {
"name": {
"type": "string",
"required": true,
"unique": true
},
"chainId": {
"type": "integer"
},
"solvers": {
"type": "relation",
"relation": "manyToMany",
"target": "api::solver.solver",
"mappedBy": "networks"
}
}
}
7 changes: 7 additions & 0 deletions src/api/network/controllers/network.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/**
* network controller
*/

import { factories } from '@strapi/strapi'

export default factories.createCoreController('api::network.network');
Loading

0 comments on commit 8bd2052

Please sign in to comment.