/evm-stack

Stack implementation written in solidity.

MIT LicenseMIT

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.