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

https://github.com/carlosalegreur/callordercontrol-smartcontract-testing

In this repo you will find the tests and a simple implementation of my other repo => CallOrderControl-SmartContract-DesignPattern
https://github.com/carlosalegreur/callordercontrol-smartcontract-testing

Last synced: 4 months ago
JSON representation

In this repo you will find the tests and a simple implementation of my other repo => CallOrderControl-SmartContract-DesignPattern

Awesome Lists containing this project

README

        




# [Call Order Control Contract](https://github.com/CarlosAlegreUr/CallOrderControl-SmartContract-DesignPattern)


# Tests and simple implementation for CallOrderControl contract.

Check the contract code here => [(click)](https://github.com/CarlosAlegreUr/CallOrderControl-SmartContract-DesignPattern)

Check the npm repository => [(click)](https://www.npmjs.com/package/input-control-contract)

If further elaboration, development or testing please mention me in your work.

πŸ˜‰ https://github.com/CarlosAlegreUr πŸ˜‰


## πŸ“° Last Changes πŸ“°

- Fixed bug, funcToCallsLeft mapping now is overwritten correctly. In previous version it could overflow and/or lead to unexpected behaviours.

- Added getIsSequence() function.
- Deleted argument \_isSequence ins getAllowedFuncCalls().
- New tests for funcToCallsLeft unexpected behaviour added.
- New test for function getIsSequience() added.

## πŸŽ‰ FUTURE IMPROVEMENTS πŸŽ‰

- Improve and review (static analysis, audit...) code's tests.

- Test in testnet.
- Check if worth it to create better option: adding more allowed calls to client who hasn't used all of them. Now it overwrites.
- Check gas implications of changing 4 bytes function selector to 32 bytes hashed function signatures.

## πŸ“¨ Contact πŸ“¨

Carlos Alegre UrquizΓΊ - [email protected]


## β˜• Buy me a CryptoCoffee β˜•

Buy me a crypto coffe in ETH, MATIC or BNB β˜•πŸ§β˜•
(or tokens if you please :p )

0x2365bf29236757bcfD141Fdb5C9318183716d866


## πŸ“œ License πŸ“œ

Distributed under the MIT License. See [LICENSE](https://github.com/CarlosAlegreUr/CallOrderControl-SmartContract-DesignPattern/blob/main/LICENSE) in the repository for more information.

([back to top](#πŸ™€-the-problem-πŸ™€))