Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

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).