This repository has been archived by the owner on Aug 28, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 87
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Enables serialisation and deserialisation of tags for a SafeApp - Serialisation is enabled IFF SAFE_APPS_TAGS_FEATURE_ENABLED is set to true
- Loading branch information
Showing
11 changed files
with
238 additions
and
0 deletions.
There are no files selected for viewing
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
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
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
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
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
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
91 changes: 91 additions & 0 deletions
91
src/routes/safe_apps/tests/json/response_safe_apps_with_tags.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,91 @@ | ||
[ | ||
{ | ||
"id": 26, | ||
"url": "https://curve.fi", | ||
"name": "Curve", | ||
"iconUrl": "https://curve.fi/logo-square.svg", | ||
"description": "Decentralized exchange liquidity pool designed for extremely efficient stablecoin trading and low-risk income for liquidity providers", | ||
"chainIds": ["1", "137"], | ||
"provider": null, | ||
"accessControl": { | ||
"type": "NO_RESTRICTIONS" | ||
}, | ||
"tags": ["tag1"] | ||
}, | ||
{ | ||
"id": 24, | ||
"url": "https://safe-apps.dev.gnosisdev.com/tx-builder", | ||
"name": "Transaction Builder", | ||
"iconUrl": "https://safe-apps.dev.gnosisdev.com/tx-builder/tx-builder.png", | ||
"description": "A Safe app to compose custom transactions", | ||
"chainIds": [ | ||
"1", | ||
"4", | ||
"10", | ||
"56", | ||
"100", | ||
"137", | ||
"246", | ||
"42161", | ||
"43114", | ||
"73799" | ||
], | ||
"provider": null, | ||
"accessControl": { | ||
"type": "NO_RESTRICTIONS" | ||
}, | ||
"tags": ["tag2"] | ||
}, | ||
{ | ||
"id": 11, | ||
"url": "https://app.1inch.io", | ||
"name": "1inch.exchange", | ||
"iconUrl": "https://app.1inch.io/assets/images/1inch.svg", | ||
"description": "The most efficient defi aggregator", | ||
"chainIds": ["1", "56", "137"], | ||
"provider": { | ||
"url": "https://1inch.exchange", | ||
"name": "1inch corporation" | ||
}, | ||
"accessControl": { | ||
"type": "DOMAIN_ALLOWLIST", | ||
"value": ["https://gnosis-safe.io", "https://dev.gnosis-safe.io"] | ||
} | ||
}, | ||
{ | ||
"id": 30, | ||
"url": "https://paraswap.io", | ||
"name": "ParaSwap", | ||
"iconUrl": "https://paraswap.io/paraswap.svg", | ||
"description": "ParaSwap allows dApps and traders to get the best DEX liquidity by aggregating multiple markets and offering the best rates", | ||
"chainIds": ["1", "56", "137"], | ||
"provider": null, | ||
"accessControl": { | ||
"type": "NO_RESTRICTIONS" | ||
} | ||
}, | ||
{ | ||
"id": 25, | ||
"url": "https://safe-apps.dev.gnosisdev.com/wallet-connect", | ||
"name": "WalletConnect", | ||
"iconUrl": "https://safe-apps.dev.gnosisdev.com/wallet-connect/wallet-connect.svg", | ||
"description": "Connect your Safe to any dApp that supports WalletConnect", | ||
"chainIds": [ | ||
"1", | ||
"4", | ||
"10", | ||
"56", | ||
"100", | ||
"137", | ||
"246", | ||
"73799", | ||
"42161", | ||
"43114" | ||
], | ||
"provider": null, | ||
"accessControl": { | ||
"type": "NO_RESTRICTIONS" | ||
}, | ||
"tags": ["tag1", "tag2"] | ||
} | ||
] |
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 |
---|---|---|
@@ -1,3 +1,5 @@ | ||
mod routes; | ||
|
||
pub(crate) const RESPONSE_SAFE_APPS: &str = include_str!("json/response_safe_apps.json"); | ||
pub(crate) const RESPONSE_SAFE_APPS_WITH_TAGS: &str = | ||
include_str!("json/response_safe_apps_with_tags.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
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
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,69 @@ | ||
[ | ||
{ | ||
"id": 26, | ||
"url": "https://curve.fi", | ||
"name": "Curve", | ||
"iconUrl": "https://curve.fi/logo-square.svg", | ||
"description": "Decentralized exchange liquidity pool designed for extremely efficient stablecoin trading and low-risk income for liquidity providers", | ||
"chainIds": [1, 137], | ||
"provider": null, | ||
"accessControl": { | ||
"type": "NO_RESTRICTIONS" | ||
}, | ||
"tags": ["tag1"] | ||
}, | ||
{ | ||
"id": 24, | ||
"url": "https://safe-apps.dev.gnosisdev.com/tx-builder", | ||
"name": "Transaction Builder", | ||
"iconUrl": "https://safe-apps.dev.gnosisdev.com/tx-builder/tx-builder.png", | ||
"description": "A Safe app to compose custom transactions", | ||
"chainIds": [1, 4, 10, 56, 100, 137, 246, 42161, 43114, 73799], | ||
"provider": null, | ||
"accessControl": { | ||
"type": "NO_RESTRICTIONS" | ||
}, | ||
"tags": ["tag2"] | ||
}, | ||
{ | ||
"id": 11, | ||
"url": "https://app.1inch.io", | ||
"name": "1inch.exchange", | ||
"iconUrl": "https://app.1inch.io/assets/images/1inch.svg", | ||
"description": "The most efficient defi aggregator", | ||
"chainIds": [1, 56, 137], | ||
"provider": { | ||
"url": "https://1inch.exchange", | ||
"name": "1inch corporation" | ||
}, | ||
"accessControl": { | ||
"type": "DOMAIN_ALLOWLIST", | ||
"value": ["https://gnosis-safe.io", "https://dev.gnosis-safe.io"] | ||
} | ||
}, | ||
{ | ||
"id": 30, | ||
"url": "https://paraswap.io", | ||
"name": "ParaSwap", | ||
"iconUrl": "https://paraswap.io/paraswap.svg", | ||
"description": "ParaSwap allows dApps and traders to get the best DEX liquidity by aggregating multiple markets and offering the best rates", | ||
"chainIds": [1, 56, 137], | ||
"provider": null, | ||
"accessControl": { | ||
"type": "NO_RESTRICTIONS" | ||
} | ||
}, | ||
{ | ||
"id": 25, | ||
"url": "https://safe-apps.dev.gnosisdev.com/wallet-connect", | ||
"name": "WalletConnect", | ||
"iconUrl": "https://safe-apps.dev.gnosisdev.com/wallet-connect/wallet-connect.svg", | ||
"description": "Connect your Safe to any dApp that supports WalletConnect", | ||
"chainIds": [1, 4, 10, 56, 100, 137, 246, 73799, 42161, 43114], | ||
"provider": null, | ||
"accessControl": { | ||
"type": "NO_RESTRICTIONS" | ||
}, | ||
"tags": ["tag1", "tag2"] | ||
} | ||
] |