-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add collection for assets that free from fees (#46)
* feat: add collection for assets that free from fees * chore: fix chainId
- Loading branch information
Showing
6 changed files
with
3,409 additions
and
1,081 deletions.
There are no files selected for viewing
28 changes: 28 additions & 0 deletions
28
src/api/tax-free-asset/content-types/tax-free-asset/schema.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"kind": "collectionType", | ||
"collectionName": "tax_free_assets", | ||
"info": { | ||
"singularName": "tax-free-asset", | ||
"pluralName": "tax-free-assets", | ||
"displayName": "Tax Free Assets", | ||
"description": "" | ||
}, | ||
"options": { | ||
"draftAndPublish": false | ||
}, | ||
"pluginOptions": {}, | ||
"attributes": { | ||
"description": { | ||
"type": "string" | ||
}, | ||
"tokenIds": { | ||
"type": "string", | ||
"required": true | ||
}, | ||
"chainId": { | ||
"type": "relation", | ||
"relation": "oneToOne", | ||
"target": "api::network.network" | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/** | ||
* tax-free-asset controller | ||
*/ | ||
|
||
import { factories } from '@strapi/strapi' | ||
|
||
export default factories.createCoreController('api::tax-free-asset.tax-free-asset'); |
Oops, something went wrong.