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
- Host: GitHub
- URL: https://github.com/carlosalegreur/callordercontrol-smartcontract-testing
- Owner: CarlosAlegreUr
- License: mit
- Created: 2023-06-03T15:45:09.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-06-04T14:15:50.000Z (about 2 years ago)
- Last Synced: 2024-12-31T09:19:04.940Z (6 months ago)
- Language: JavaScript
- Homepage:
- Size: 97.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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-π))