{"id":19741380,"url":"https://github.com/vegaprotocol/vega-locked-erc20","last_synced_at":"2026-06-14T05:32:27.289Z","repository":{"id":47473968,"uuid":"388440833","full_name":"vegaprotocol/vega-locked-erc20","owner":"vegaprotocol","description":"VEGA-LOCKED ERC20 contract, conveniently showing locked VEGA tokens","archived":false,"fork":false,"pushed_at":"2021-08-30T10:48:11.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-02-28T07:00:03.669Z","etag":null,"topics":["erc20","proxy-contract","vega-protocol","yul"],"latest_commit_sha":null,"homepage":"https://etherscan.io/token/0x78344c7305d73a7a0ac3c94cd9960f4449a1814e","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/vegaprotocol.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":"2021-07-22T11:39:08.000Z","updated_at":"2021-08-30T10:57:28.000Z","dependencies_parsed_at":"2022-09-02T12:51:14.781Z","dependency_job_id":null,"html_url":"https://github.com/vegaprotocol/vega-locked-erc20","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/vegaprotocol/vega-locked-erc20","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vegaprotocol%2Fvega-locked-erc20","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vegaprotocol%2Fvega-locked-erc20/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vegaprotocol%2Fvega-locked-erc20/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vegaprotocol%2Fvega-locked-erc20/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vegaprotocol","download_url":"https://codeload.github.com/vegaprotocol/vega-locked-erc20/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vegaprotocol%2Fvega-locked-erc20/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34310801,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-14T02:00:07.365Z","response_time":62,"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":["erc20","proxy-contract","vega-protocol","yul"],"created_at":"2024-11-12T01:26:11.518Z","updated_at":"2026-06-14T05:32:27.274Z","avatar_url":"https://github.com/vegaprotocol.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# `vega-locked-erc20`\n\n\u003e VEGA-LOCKED ERC20 contract, conveniently showing locked VEGA tokens\n\n## Purpose\n\nThis contract is an experiment in exposing the balance of locked VEGA tokens\nin an ERC20 compatible way. It proxies calls to the VEGA vesting contract, but is\n\"read-only\".\n\n|                                             | Supported |\n|:--------------------------------------------|:----------|\n| `name()`                                    |     ✔️    |\n| `symbol()`                                  |     ✔️    |\n| `decimals()`                                |     ✔️    |\n| `totalSupply()`                             |     ✔️    |\n| `balanceOf(address)`                        |     ✔️    |\n| `transfer(address, uint256)`                |     ❌    |\n| `transferFrom(address, address, uint256)`   |     ❌    |\n| `approve(address, uint256)`                 |     ❌    |\n| `allowance(address, address)`               |     ❌    |\n| `event Transfer(address, address, uint256)` |     ❌    |\n| `event Approval(address, address, uint256)` |     ❌    |\n\n## Usage\n\nThe contract is written in YUL, the Solidity IR. This allows for more\nfine-grained control and is more gas efficient. In this case it was done to\nshowcase what a YUL contract might look like.\n\nTo initialize the contract the ERC20 V2 Token address and Vesting Contract\naddress must be appended to the bytecode as `uint256` (word-size of EVM).\n\nOnce the contract is deployed, it adheres to the usual Solidity ABI, except\nfor the methods listed above which are not supported. The JSON ABI can be found\nin [`abi.json`](abi.json).\n\n## Deployment details\n- Ethereum Mainnet: [0x78344c7305d73a7a0ac3c94cd9960f4449a1814e](https://etherscan.io/token/0x78344c7305d73a7a0ac3c94cd9960f4449a1814e)\n\n## License\n\n[MIT](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvegaprotocol%2Fvega-locked-erc20","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvegaprotocol%2Fvega-locked-erc20","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvegaprotocol%2Fvega-locked-erc20/lists"}