Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ghostwriter/evm-stack
Stack implementation written in solidity.
https://github.com/ghostwriter/evm-stack
ethereum ethereum-contract evm exercise stack
Last synced: 5 days ago
JSON representation
Stack implementation written in solidity.
- Host: GitHub
- URL: https://github.com/ghostwriter/evm-stack
- Owner: ghostwriter
- License: mit
- Created: 2018-01-23T05:50:19.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-01-23T05:51:44.000Z (about 7 years ago)
- Last Synced: 2024-12-08T12:41:39.478Z (2 months ago)
- Topics: ethereum, ethereum-contract, evm, exercise, stack
- Size: 1.95 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# EvmStack
Stack implementation written in solidity.
```
clear(): removes all elements from the stack.peek(): returns the top most elements in the stack, but doesn’t delete it.
pop(): returns and deletes the top most element in the stack.
push(x): adds an element at the top the stack.
size(): returns the number of elements in the stack.
isEmpty(): returns whether the stack has any elements.
rip(): kills the contract and returns any remaining funds back to the owner.
```
## License
EvmStack is an open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT).