Skip to content

Commit

Permalink
feat: add collection for assets that free from fees
Browse files Browse the repository at this point in the history
  • Loading branch information
shoom3301 committed Dec 11, 2024
1 parent a35e7c6 commit cbdf39b
Show file tree
Hide file tree
Showing 6 changed files with 2,567 additions and 1,081 deletions.
34 changes: 34 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,34 @@
{
"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": {
"chainId": {
"type": "enumeration",
"enum": [
"MAINNET",
"GNOSIS_CHAIN",
"ARBITRUM_ONE",
"BASE",
"SEPOLIA"
],
"required": true
},
"description": {
"type": "string"
},
"tokenIds": {
"type": "string",
"required": true
}
}
}
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 cbdf39b

Please sign in to comment.