{"id":21959464,"url":"https://github.com/interest-protocol/sui-coins-terminal","last_synced_at":"2026-04-11T05:37:38.384Z","repository":{"id":259024749,"uuid":"868066549","full_name":"interest-protocol/sui-coins-terminal","owner":"interest-protocol","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-09T12:27:44.000Z","size":1855,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-27T01:36:41.571Z","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/interest-protocol.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-10-05T11:45:56.000Z","updated_at":"2025-01-09T12:27:48.000Z","dependencies_parsed_at":"2024-12-31T03:27:48.772Z","dependency_job_id":"fb19a74a-00e4-43bb-a70e-72af9f04ae55","html_url":"https://github.com/interest-protocol/sui-coins-terminal","commit_stats":null,"previous_names":["interest-protocol/sui-coins-terminal"],"tags_count":54,"template":false,"template_full_name":null,"purl":"pkg:github/interest-protocol/sui-coins-terminal","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interest-protocol%2Fsui-coins-terminal","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interest-protocol%2Fsui-coins-terminal/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interest-protocol%2Fsui-coins-terminal/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interest-protocol%2Fsui-coins-terminal/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/interest-protocol","download_url":"https://codeload.github.com/interest-protocol/sui-coins-terminal/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/interest-protocol%2Fsui-coins-terminal/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31670376,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-10T17:19:37.612Z","status":"online","status_checked_at":"2026-04-11T02:00:05.776Z","response_time":54,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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-29T09:28:35.064Z","updated_at":"2026-04-11T05:37:38.357Z","avatar_url":"https://github.com/interest-protocol.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Sui Coins Terminal\n\nSui Coins terminal is built inside the website project to allow to trade on top of Hop or Aftermath (as client preference)\n\n## 1. How to setup\n\nTo setup the sdk, you just need to:\n\n### 1.1 Vanilla\n\nImport the sdk on your Vanilla (HTML) project.\n\n```html\n\u003cscript src=\"https://cdn.jsdelivr.net/npm/@interest-protocol/sui-coins-terminal-vanilla/dist/index.umd.js\"\u003e\u003c/script\u003e\n```\n\n### 1.2 React\n\nInstall the sdk on your React project.\n\n```zsh\npnpm add @interest-protocol/sui-coins-terminal\n#or\nyarn add @interest-protocol/sui-coins-terminal\n#or\nnpm install @interest-protocol/sui-coins-terminal\n```\n\n## 2. How to integrate\n\n### 2.1 Vanilla\n\nTo integrate the terminal on the Vanilla code, you just need to add an empty `div` with the `id=\"suicoins-terminal\"` and initialize the Sdk on the `script` tag.\n\n```html\n...\n\u003c!-- Terminal Container --\u003e\n\u003cdiv id=\"suicoins-terminal\" class=\"terminal\"\u003e\u003c/div\u003e\n...\n\n\u003c!-- Initialize Terminal --\u003e\n\u003cscript\u003e\n  SuiCoinsTerminal({\n    typeIn: \"0x2::sui::SUI\", // SUI address\n    projectAddress:\n      \"0xdd224f2287f0b38693555c6077abe85fcb4aa13e355ad54bc167611896b007e6\", // Project DAO address\n    typeOut:\n      \"0x07ab9ba99abd9af0d687ae55079601192be5a12d1a21c8c4cd9f1a17519111e0::emoji::EMOJI\", // Target coin address\n  });\n\u003c/script\u003e\n```\n\n**_Note_**: _To prevent that your terminal will access the default styles, you should pass add with `class=\"terminal\"`_\n\n### 2.2 React\n\nTo integrate the terminal on the React typescript code, you just need to import the `SwapTerminal` and setup the code.\n\n**_Note:_** _You must by default:_\n\n- `typeIn`: default selling token;\n- `typeOut`: default buying token;\n- `projectAddress`: default project address for _(future)_ fees.\n\n```tsx\nimport { SwapTerminal } from \"@interest-protocol/sui-coins-terminal\";\nimport type { FC } from \"react\";\n\nconst Terminal: FC = () =\u003e (\n  \u003cSwapTerminal\n    typeIn=\"0x2::sui::SUI\" // SUI address\n    projectAddress=\"0xdb3a22be6a37c340c6fd3f67a7221dfb841c818442d856f5d17726f4bcf1c8af\" // Project DAO address\n    typeOut=\"0x07ab9ba99abd9af0d687ae55079601192be5a12d1a21c8c4cd9f1a17519111e0::emoji::EMOJI\" // Target coin address\n  /\u003e\n);\n\nexport default Terminal;\n```\n\n## Advanced\n\nYou can also use others attributes, such as:\n\n- `fixedOut: boolean`: does not allow trader to change the coin out;\n- `fixedIn: boolean`: does not allow trader to change the coin in;\n- `slippage: number`: the slippage percentage (default: `1` (represents 1%));\n- `interval: number`: the quote refresh interval in seconds (default: `10`);\n- `aggregator: Aggregator`: the trading aggregator (default: `Aggregator.Aftermath`);\n\n## Contact Us\n\n- X: [@Suicoins](https://x.com/Suicoins)\n- Discord: https://discord.com/invite/interestprotocol\n- Telegram: https://t.me/interestprotocol\n- Email: [contact@interestprotocol.com](mailto:contact@interestprotocol.com)\n- Medium: [@interestprotocol](https://medium.com/@interestprotocol)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finterest-protocol%2Fsui-coins-terminal","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Finterest-protocol%2Fsui-coins-terminal","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Finterest-protocol%2Fsui-coins-terminal/lists"}