{"id":15694177,"url":"https://github.com/bonedaddy/go-indexed","last_synced_at":"2025-05-08T07:29:41.458Z","repository":{"id":43331221,"uuid":"325438735","full_name":"bonedaddy/go-indexed","owner":"bonedaddy","description":"Golang SDK for working with Indexed Finance (https://indexed.finance)","archived":false,"fork":false,"pushed_at":"2022-03-08T01:31:58.000Z","size":669,"stargazers_count":7,"open_issues_count":15,"forks_count":5,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-31T17:25:01.815Z","etag":null,"topics":["cc10","cryptocurrency","dai","defi","defi5","discord","docker","docker-compose","ethereum","indexed-finance","makerdao","ndx","uniswap"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/bonedaddy.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":"2020-12-30T02:51:51.000Z","updated_at":"2023-09-08T18:16:33.000Z","dependencies_parsed_at":"2022-08-25T15:11:13.758Z","dependency_job_id":null,"html_url":"https://github.com/bonedaddy/go-indexed","commit_stats":null,"previous_names":[],"tags_count":84,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonedaddy%2Fgo-indexed","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonedaddy%2Fgo-indexed/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonedaddy%2Fgo-indexed/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/bonedaddy%2Fgo-indexed/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/bonedaddy","download_url":"https://codeload.github.com/bonedaddy/go-indexed/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253020413,"owners_count":21841561,"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":["cc10","cryptocurrency","dai","defi","defi5","discord","docker","docker-compose","ethereum","indexed-finance","makerdao","ndx","uniswap"],"created_at":"2024-10-03T18:53:55.678Z","updated_at":"2025-05-08T07:29:41.434Z","avatar_url":"https://github.com/bonedaddy.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# go-indexed\n\n\n`go-indexed` is an SDK for interacting [Indexed Finance](https://indexed.finance) smart contracts using the Golang programming language. It includes a library that leverages the Ethereum RPC client, a CLI for querying the smart contracts from the CLI, and a Discord bot that essentially provides a CLI/Library like usage experience through the Discord platform.\n\n# Overview\n\n## Discord\n\nA Discord chat bot is included that allows for making read-only calls to Indexed Finance contracts Discord message. It has the current capabilities\n\n* Return account balance for IndexPools contracts\n* Return account staking balance and stake rewards earned for the staking contracts\n* Return current tokens basketed into an IndexPool\n* Notify about arbitrary conditions:\n  * Currently only supports stake earned\n\n## CLI\n\nThere is a basic CLI that can be used to make simple queries about the smart contracts.\n\n## Library\n\nTODO\n\n# Installation\n\n```Shell\n$\u003e git clone https://github.com/bonedaddy/go-indexed\n$\u003e cd go-indexed\n$\u003e go mod download\n$\u003e make # builds the CLI and creates an executable in the current directory named gondx\n```\n\n# Usage\n\n## CLI\n\nAt the moment the only CLI command available is `gondx pool` please see its output for more information.\n\n## Discord\n\nFirst you'll need to create a Discord bot user that will be used, and get an appropriate access token. The following instructions star the Discord bot conencted to infura\n\n```shell\n$\u003e ./gondx --infura.api_key supersecretinfurakey discord-bot --discord.token \"supersecretdiscordtoken\"\n```\n\nTo view the general help menu send the following message from a channel the bot can read from and send messages to:\n```\n!ndx\n```\n\nTo view help menu about the notify command:\n```\n!ndx notify help\n```\n\n# Development\n\nTo update the ABIs from the `indexed-js` submodule: `make copy-abi`\n\nTo update the generated golang code for the ABIs: `make gen-bindings`\n\nNote: Updating the uniswap bindings is a bit tedious because of the usage of waffle which outputs a combined json file that isnt properly generating the golang bindings so you must manually copy the ABI from the combined json output into its own file\n\n## Adding New TVL Tracking\n\nThe default behavior for TVL calculation is to derive the price of assets by looking up their ETH uniswap pairs, and converting that to DAI. So for AAVE the USD price determination process is `AAVE -\u003e ETH -\u003e DAI`\n## Contract Bindings\n\n#  bindings/uniswapv2_oracle\n\nThese are the contract bindings for the Indexed UniswapV2 Oracle\n\n# bindings/uniswapv2\n\nThese are contract bindings for uniswapv2 itself\n\n# Support\n\nSupport development of go-indexed by sending tips to [`0x5a361a1dfd52538a158e352d21b5b622360a7c13`](https://etherscan.io/address/0x5a361a1dfd52538a158e352d21b5b622360a7c13), all funds received will be re-invested into Indexed Finance via governance token (NDX) purchases, or pool token (defi5, cc10, etc...) purchases.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbonedaddy%2Fgo-indexed","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbonedaddy%2Fgo-indexed","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbonedaddy%2Fgo-indexed/lists"}