Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/vegaprotocol/vega-locked-erc20
VEGA-LOCKED ERC20 contract, conveniently showing locked VEGA tokens
https://github.com/vegaprotocol/vega-locked-erc20
erc20 proxy-contract vega-protocol yul
Last synced: 3 days ago
JSON representation
VEGA-LOCKED ERC20 contract, conveniently showing locked VEGA tokens
- Host: GitHub
- URL: https://github.com/vegaprotocol/vega-locked-erc20
- Owner: vegaprotocol
- License: mit
- Created: 2021-07-22T11:39:08.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2021-08-30T10:48:11.000Z (about 3 years ago)
- Last Synced: 2024-04-14T20:09:08.285Z (7 months ago)
- Topics: erc20, proxy-contract, vega-protocol, yul
- Language: JavaScript
- Homepage: https://etherscan.io/token/0x78344c7305d73a7a0ac3c94cd9960f4449a1814e
- Size: 8.79 KB
- Stars: 0
- Watchers: 6
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# `vega-locked-erc20`
> VEGA-LOCKED ERC20 contract, conveniently showing locked VEGA tokens
## Purpose
This contract is an experiment in exposing the balance of locked VEGA tokens
in an ERC20 compatible way. It proxies calls to the VEGA vesting contract, but is
"read-only".| | Supported |
|:--------------------------------------------|:----------|
| `name()` | ✔️ |
| `symbol()` | ✔️ |
| `decimals()` | ✔️ |
| `totalSupply()` | ✔️ |
| `balanceOf(address)` | ✔️ |
| `transfer(address, uint256)` | ❌ |
| `transferFrom(address, address, uint256)` | ❌ |
| `approve(address, uint256)` | ❌ |
| `allowance(address, address)` | ❌ |
| `event Transfer(address, address, uint256)` | ❌ |
| `event Approval(address, address, uint256)` | ❌ |## Usage
The contract is written in YUL, the Solidity IR. This allows for more
fine-grained control and is more gas efficient. In this case it was done to
showcase what a YUL contract might look like.To initialize the contract the ERC20 V2 Token address and Vesting Contract
address must be appended to the bytecode as `uint256` (word-size of EVM).Once the contract is deployed, it adheres to the usual Solidity ABI, except
for the methods listed above which are not supported. The JSON ABI can be found
in [`abi.json`](abi.json).## Deployment details
- Ethereum Mainnet: [0x78344c7305d73a7a0ac3c94cd9960f4449a1814e](https://etherscan.io/token/0x78344c7305d73a7a0ac3c94cd9960f4449a1814e)## License
[MIT](LICENSE)