{"id":31769289,"url":"https://github.com/second-state/interest-earner-user-interface","last_synced_at":"2026-07-22T17:35:25.359Z","repository":{"id":43046889,"uuid":"461339445","full_name":"second-state/interest-earner-user-interface","owner":"second-state","description":"A user interface for the interest earner smart contract","archived":false,"fork":false,"pushed_at":"2022-03-21T23:24:52.000Z","size":13280,"stargazers_count":1,"open_issues_count":2,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-10-10T02:44:00.967Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/second-state.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-02-19T23:36:47.000Z","updated_at":"2022-05-25T22:34:20.000Z","dependencies_parsed_at":"2022-09-18T12:02:39.590Z","dependency_job_id":null,"html_url":"https://github.com/second-state/interest-earner-user-interface","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/second-state/interest-earner-user-interface","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/second-state%2Finterest-earner-user-interface","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/second-state%2Finterest-earner-user-interface/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/second-state%2Finterest-earner-user-interface/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/second-state%2Finterest-earner-user-interface/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/second-state","download_url":"https://codeload.github.com/second-state/interest-earner-user-interface/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/second-state%2Finterest-earner-user-interface/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":35771486,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-07-20T02:08:10.276Z","status":"online","status_checked_at":"2026-07-22T02:00:06.236Z","response_time":124,"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":"2025-10-10T02:43:00.431Z","updated_at":"2026-07-22T17:35:25.349Z","avatar_url":"https://github.com/second-state.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Interest Earner User Interface (UI)\n\n# What does it do?\n\nInteracts with the [interest earner smart contract](https://github.com/second-state/interest-earner-smart-contract), which allows users to stake and unstake tokens.\n\n# How do end users interact with the interest earner UI\n\nUsers simply load the page, (the user's account details are automatically pre-filled in the address input box)\n\n## Staking tokens\n\nThe user then simply types in the amount of tokens they would like to stake\n\nThe user then clicks the \"Stake Tokens\" button  \n\n## Unstaking tokens\n\nThe user clicks the \"Unstake Tokens\" button\n\n# Where is the interest earner smart contract\n\nThe [interest earner smart contract](https://github.com/second-state/interest-earner-smart-contract) is deployed on the Ethereum mainnet and then this UI source code is updated with the interest earner contract's ABI, deployment address and so forth. This interest earner UI instantiates the staking contract in order to interact and transfer tokens to end users and so forth.\n\n# How to deploy this UI\n\nClone this repository\n\n```\ngit clone git@github.com:second-state/interest-earner-user-interface.git\n```\n\n## ABI and address of interest earner contract\n\nPaste the ABI into the `interest_earner_abi.json` file and the address of the interest earner contract's successfully deployed contract instance into the `interest_earner_contract_address.json` file.\n\n## Contract address of ERC20 contract (NOT staking contract)\n\nPaste the ABI into the `erc20_abi.json` file and the address of the ERC20's successfully deployed contract instance into the `erc20_contract_address.json` file.\n\n## Installing\n\nThen simply type\n\n```\nnpm install\n```\n\n## Running\n\n### Run on local\n\nTo run on local system, type\n\n```\nnode server.js\n```\n\nThe site will then be hosted at `http://localhost/`\n\n### GitHub pages\n\nTo publish/deploy on GitHub pages, simply type\n\n```\nnpm run deploy\n```\n\nThe site will then be hosted to [https://second-state.github.io/interest-earner-user-interface/html/index.html](https://second-state.github.io/interest-earner-user-interface/html/index.html)\n\n## Usage\n\nJust browse to the URL where the UI is hosted and ensure that your MetaMask wallet is configured to run on the same network (where the contracts are deployed). Default is Ethereum mainnet.\n\n\u003cimg width=\"872\" alt=\"Screen Shot 2022-03-12 at 2 08 53 pm\" src=\"https://user-images.githubusercontent.com/9831342/158003150-4440082e-9152-43a6-b226-9b762a88638f.png\"\u003e\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsecond-state%2Finterest-earner-user-interface","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsecond-state%2Finterest-earner-user-interface","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsecond-state%2Finterest-earner-user-interface/lists"}