Skip to content

Commit

Permalink
feat: add collection for assets that free from fees (#46)
Browse files Browse the repository at this point in the history
* feat: add collection for assets that free from fees

* chore: fix chainId
  • Loading branch information
shoom3301 authored Dec 12, 2024
1 parent a35e7c6 commit 3db8cd7
Show file tree
Hide file tree
Showing 6 changed files with 3,409 additions and 1,081 deletions.
28 changes: 28 additions & 0 deletions src/api/tax-free-asset/content-types/tax-free-asset/schema.json
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"
}
}
}
7 changes: 7 additions & 0 deletions src/api/tax-free-asset/controllers/tax-free-asset.ts
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');
Loading

0 comments on commit 3db8cd7

Please sign in to comment.