mirror of
https://github.com/Instadapp/trustwallet-assets.git
synced 2024-07-29 22:37:31 +00:00
[Internal] Add tagging support (#5911)
* Add tagging support * Add example dao support for TWT * Update info.json * Rename daos => dao * Update tags.json * Update tag in TWT, governance/dao * Update test * Add staking-native tag Co-authored-by: Catenocrypt <catenocrypt@users.noreply.github.com>
This commit is contained in:
parent
5e080073f4
commit
5f6fb5ed94
|
@ -21,5 +21,8 @@
|
|||
"symbol": "ALGO",
|
||||
"type": "COIN",
|
||||
"decimals": 6,
|
||||
"status": "active"
|
||||
"status": "active",
|
||||
"tags": [
|
||||
"staking-native"
|
||||
]
|
||||
}
|
|
@ -21,5 +21,8 @@
|
|||
"symbol": "BNB",
|
||||
"type": "COIN",
|
||||
"decimals": 8,
|
||||
"status": "active"
|
||||
"status": "active",
|
||||
"tags": [
|
||||
"staking-native"
|
||||
]
|
||||
}
|
|
@ -21,5 +21,8 @@
|
|||
"symbol": "ATOM",
|
||||
"type": "COIN",
|
||||
"decimals": 6,
|
||||
"status": "active"
|
||||
"status": "active",
|
||||
"tags": [
|
||||
"staking-native"
|
||||
]
|
||||
}
|
|
@ -21,5 +21,8 @@
|
|||
"symbol": "KAVA",
|
||||
"type": "COIN",
|
||||
"decimals": 6,
|
||||
"status": "active"
|
||||
"status": "active",
|
||||
"tags": [
|
||||
"staking-native"
|
||||
]
|
||||
}
|
|
@ -12,6 +12,6 @@
|
|||
"status": "active",
|
||||
"id": "0x4B0F1812e5Df2A09796481Ff14017e6005508003",
|
||||
"tags": [
|
||||
"dao"
|
||||
"governance"
|
||||
]
|
||||
}
|
|
@ -21,5 +21,8 @@
|
|||
"symbol": "XTZ",
|
||||
"type": "COIN",
|
||||
"decimals": 6,
|
||||
"status": "active"
|
||||
"status": "active",
|
||||
"tags": [
|
||||
"staking-native"
|
||||
]
|
||||
}
|
|
@ -21,5 +21,8 @@
|
|||
"symbol": "TRX",
|
||||
"type": "COIN",
|
||||
"decimals": 6,
|
||||
"status": "active"
|
||||
"status": "active",
|
||||
"tags": [
|
||||
"staking-native"
|
||||
]
|
||||
}
|
|
@ -15,20 +15,24 @@
|
|||
"name": "NFT",
|
||||
"description": "Non-fungible tokens or tokens associated with the NFT ecosystem."
|
||||
},
|
||||
"dao": {
|
||||
"name": "DAO",
|
||||
"description": "Tokens that govern decentralized autonomous organizations (DAOs)."
|
||||
"governance": {
|
||||
"name": "Governance",
|
||||
"description": "Tokens that used to participate in the governance process of the project."
|
||||
},
|
||||
"defi": {
|
||||
"name": "DeFi",
|
||||
"description": null
|
||||
},
|
||||
"creator": {
|
||||
"name": "Creator",
|
||||
"description": "Tokens by creators."
|
||||
"description": "Tokens that are used for variety of decentralized financial applications."
|
||||
},
|
||||
"staking": {
|
||||
"name": "Staking",
|
||||
"description": "Tokens that are used for staking to receive rewards."
|
||||
},
|
||||
"staking-native": {
|
||||
"name": "Staking Native",
|
||||
"description": "Coins/Blockchains that are used for staking to secure the network to receive rewards."
|
||||
},
|
||||
"privacy": {
|
||||
"name": "Privacy",
|
||||
"description": "Privacy tokens."
|
||||
}
|
||||
}
|
|
@ -147,14 +147,14 @@ describe("Test status, tag values", () => {
|
|||
});
|
||||
test(`Test tag-values`, () => {
|
||||
expect(isValidTagValue("defi")).toEqual(true);
|
||||
expect(isValidTagValue("dao")).toEqual(true);
|
||||
expect(isValidTagValue("staking")).toEqual(true);
|
||||
expect(isValidStatusValue("invalidvalue")).toEqual(false);
|
||||
expect(isValidStatusValue("DAO")).toEqual(false);
|
||||
expect(isValidStatusValue("STAKING")).toEqual(false);
|
||||
expect(isValidStatusValue("")).toEqual(false);
|
||||
|
||||
expect(isValidTagValues(["defi"])).toEqual(true);
|
||||
expect(isValidTagValues(["dao"])).toEqual(true);
|
||||
expect(isValidTagValues(["defi", "dao"])).toEqual(true);
|
||||
expect(isValidTagValues(["staking"])).toEqual(true);
|
||||
expect(isValidTagValues(["defi", "staking"])).toEqual(true);
|
||||
expect(isValidTagValues(["invalid"])).toEqual(false);
|
||||
expect(isValidTagValues(["defi", "invalid"])).toEqual(false);
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue
Block a user