{"id":21519186,"url":"https://github.com/dcspark/cardano-caniuse","last_synced_at":"2025-04-09T22:08:16.945Z","repository":{"id":39709763,"uuid":"451793432","full_name":"dcSpark/cardano-caniuse","owner":"dcSpark","description":"Up-to-date wallet support tables for cip30 (dApp connector) support","archived":false,"fork":false,"pushed_at":"2023-10-04T18:39:26.000Z","size":5953,"stargazers_count":14,"open_issues_count":4,"forks_count":9,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-04-09T22:08:10.227Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dcSpark.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-01-25T08:23:10.000Z","updated_at":"2024-01-09T06:26:40.000Z","dependencies_parsed_at":"2022-08-28T06:35:15.174Z","dependency_job_id":null,"html_url":"https://github.com/dcSpark/cardano-caniuse","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcSpark%2Fcardano-caniuse","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcSpark%2Fcardano-caniuse/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcSpark%2Fcardano-caniuse/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dcSpark%2Fcardano-caniuse/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dcSpark","download_url":"https://codeload.github.com/dcSpark/cardano-caniuse/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248119294,"owners_count":21050755,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-24T00:56:05.574Z","updated_at":"2025-04-09T22:08:16.924Z","avatar_url":"https://github.com/dcSpark.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"![CARDANOCANIUSE](https://github.com/dcSpark/cardano-caniuse/blob/main/static/img/caniuse_new.png?raw=true)\n\n# Access the website [here](https://www.cardano-caniuse.io)\n\n# Adding a new wallet\n\nGo to the directory `src/wallets/` you should see something like this: \n\n```\nsrc/wallets\n├── Cv.ts\n├── Flint.ts\n├── Gero.ts\n└── Nami.ts\n```\n\nAdd a new wallet definition like so:\n\n```ts\n// CardanoWallet.ts\n\nimport { Api, SupportLevel } from \"../system/Types\";\n\nexport default {\n  name: 'CardanoWallet',\n  logo: 'data:image/svg+xml',\n  Apis: {\n    [Api.GetUsedAddresses]: SupportLevel.Supported,\n    [Api.GetUtxos]: SupportLevel.Unsupported,\n    [Api.IsEnabled]: SupportLevel.Experimental\n  }\n}\n```\n\nAdd the new definition to `src/Wallets.ts`:\n\n```ts\nimport Flint from \"./wallets/Flint\";\nimport Gero from \"./wallets/Gero\";\nimport Nami from \"./wallets/Nami\";\nimport Cv from \"./wallets/Cv\";\n// import your wallet definition\nimport CardanoWallet from \"./wallets/CardanoWallet\";\n\nexport const Wallets = [\n  Flint,\n  Nami, \n  Cv, \n  // Add your wallet definition\n  CardanoWallet\n];\n```\n\n# Adding a new API\n\n## Adding API Type\nOpen `src/system/Types.ts` you should see something like this: \n\n```ts\nexport enum Api {\n  Enable,\n  IsEnabled,\n  ApiVersion,\n  Name,\n  Icon,\n  GetNetworkId,\n  GetUtxos,\n  GetBalance,\n  GetUsedAddresses,\n  GetUnusedAddresses,\n  GetChangeAddress,\n  GetRewardAddress,\n  GetRewardAddresses,\n  SignTx,\n  SignData,\n  SubmitTx,\n  // Add your new api here\n  NewAPI\n}\n```\n\n## Adding API definition\n\nOpen `docs/partials/` you should see something like this: \n\n```\ndocs/partials\n├── _apiVersion.mdx\n├── _enable.mdx\n├── _getBalance.mdx\n├── _getChangeAddress.mdx\n├── _getNetworkId.mdx\n├── _getRewardAddress.mdx\n├── _getUnusedAddresses.mdx\n├── _getUsedAddresses.mdx\n├── _getUtxos.mdx\n├── _icon.mdx\n├── _isEnabled.mdx\n├── _name.mdx\n├── _signData.mdx\n├── _signTx.mdx\n└── _submitTx.mdx\n```\n\nAdd a new API definition like so `_newApi.mdx`:\n\n```md\nimport CaniuseTable from '@site/src/components/CaniuseTable';\nimport { Api } from '@site/src/system/Types';\n\n## `cardano.{walletName}.apiVersion: String`\n\nThe version number of the API that the wallet supports.\n\n\u003cCaniuseTable api={Api.NewAPI}/\u003e\n```\n\nMake sure to pass in your API type `\u003cCaniuseTable api={Api.NewAPI}/\u003e` in the `CaniuseTable` element.\n\n# Website\n\nThis website is built using [Docusaurus 2](https://docusaurus.io/), a modern static website generator.\n\n### Installation\n\n```\n$ yarn\n```\n\n### Local Development\n\n```\n$ yarn start\n```\n\nThis command starts a local development server and opens up a browser window. Most changes are reflected live without having to restart the server.\n\n### Build\n\n```\n$ yarn build\n```\n\nThis command generates static content into the `build` directory and can be served using any static contents hosting service.\n\n### Deployment\n\nUsing SSH:\n\n```\n$ USE_SSH=true yarn deploy\n```\n\nNot using SSH:\n\n```\n$ GIT_USER=\u003cYour GitHub username\u003e yarn deploy\n```\n\nIf you are using GitHub pages for hosting, this command is a convenient way to build the website and push to the `gh-pages` branch.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcspark%2Fcardano-caniuse","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdcspark%2Fcardano-caniuse","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdcspark%2Fcardano-caniuse/lists"}