Team JUST has developed many standalone contracts that add value to the solidity development ecosystem. These are open-source and can be used by any Solidity developers:
Check out the code here for an improved safe math library.
Check out the code here for the dividends bridge.
* โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
* โ Divies!, is a contract that adds an external dividend system to P3D. โ
* โ All eth sent to this contract, can be distributed to P3D holders. โ
* โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
* โโโโโโโโโโโโโโโโโโโโโโ
* โ Setup Instructions โ
* โโโโโโโโโโโโโโโโโโโโโโ
* (Step 1) import this contracts interface into your contract
*
* import "./DiviesInterface.sol";
*
* (Step 2) set up the interface and point it to this contract
*
* DiviesInterface private Divies = DiviesInterface(0xC0c001140319C5f114F8467295b1F22F86929Ad0);
* โโโโโโโโโโโโโโโโโโโโโโ
* โ Usage Instructions โ
* โโโโโโโโโโโโโโโโโโโโโโ
* call as follows anywhere in your code:
*
* Divies.deposit.value(amount)();
* ex: Divies.deposit.value(232000000000000000000)();
*/
Check out the code here for the dividends bridge.
* โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
* โ MSFun, is an importable library that gives your contract the ability โ
* โ add multiSig requirement to functions. โ
* โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
* โโโโโโโโโโโโโโโโโโโโโโ
* โ Setup Instructions โ
* โโโโโโโโโโโโโโโโโโโโโโ
* (Step 1) import the library into your contract
*
* import "./MSFun.sol";
*
* (Step 2) set up the signature data for msFun
*
* MSFun.Data private msData;
* โโโโโโโโโโโโโโโโโโโโโโ
* โ Usage Instructions โ
* โโโโโโโโโโโโโโโโโโโโโโ
* at the beginning of a function
*
* function functionName()
* {
* if (MSFun.multiSig(msData, required signatures, "functionName") == true)
* {
* MSFun.deleteProposal(msData, "functionName");
*
* // put function body here
* }
* }
* โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
* โ Optional Wrappers For TeamJust โ
* โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
* multiSig wrapper function (cuts down on inputs, improves readability)
* this wrapper is HIGHLY recommended
*
* function multiSig(bytes32 _whatFunction) private returns (bool) {return(MSFun.multiSig(msData, TeamJust.requiredSignatures(), _whatFunction));}
* function multiSigDev(bytes32 _whatFunction) private returns (bool) {return(MSFun.multiSig(msData, TeamJust.requiredDevSignatures(), _whatFunction));}
*
* wrapper for delete proposal (makes code cleaner)
*
* function deleteProposal(bytes32 _whatFunction) private {MSFun.deleteProposal(msData, _whatFunction);}
Below is a directory of all the open-source libraries and contracts made available by Team JUST for use by any third-party developer:
Name | Description | Address |
---|---|---|
Updated Safemath | Safe math lib | 0xd4b5556dAd4A0affc0eeF0Da56A928712E412180 |
Divvies Bridge | Sends dividends to P3D holders | 0xC0c001140319C5f114F8467295b1F22F86929Ad0 |
Multi-sig | Allow for multi-sig commands | 0x1974850db14d6B75322b56FC5febc2698d5F4120 |
Name filter | Processes and transforms names | 0x4b7aC91b53545aE20A4990f9B5F6a14682dEEcBC |
UInt Compressor | Compress UInts | 0xfE86A14626854F846457c2879F31B25076f2c9Fb |
In addition, you can check out these relevant contracts as well:
MIT License, Copyright ยฉ 2018 Team JUST
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.