From 9ff64733df0accb18889eed08945d51d7d51bd28 Mon Sep 17 00:00:00 2001 From: "John J. Pruett II" <43480274+zachwylde00@users.noreply.github.com> Date: Sat, 9 May 2020 04:05:14 -0500 Subject: [PATCH] Create Trifecta.sol --- contracts/realestate/Trifecta.sol | 76 +++++++++++++++++++++++++++++++ 1 file changed, 76 insertions(+) create mode 100644 contracts/realestate/Trifecta.sol diff --git a/contracts/realestate/Trifecta.sol b/contracts/realestate/Trifecta.sol new file mode 100644 index 00000000..bf839ac9 --- /dev/null +++ b/contracts/realestate/Trifecta.sol @@ -0,0 +1,76 @@ +Pragma 0.4.1> =<0.7.0 +//import Pragma Solidity.sol +@DEED Owner(Transfer at investor'sRequest) + +@dev Set & change owner +//* +contract Owner { + +address private owner; +//dev calls newOwnerSetsBool"spare gastoolkit" [realestate contract] + +//@param transactions settings manditory limit //\• +ether max(contract()) +gas Max (560000) +nonce Min(560000) +"newOwner"="investor" + +//dev GQ.1981.INC +Parameters: +[send{0x& _value=95%contractSet}]= +oldOwnerSet +//@parameter [send{0x& _value=95%contractSet}]= (address indexed oldOwner); + +//require[send{0x& _value=5%ContractSet}]= +oldOwnerSet +//@parameter [send{0x&value=5%contractSet}]= (address indexed agent(oldOwner(newOwner=Investor) +(addressindexed(0x)=newOwner/oldOwner"Agent" +addressAgent[]set; + +//event newOwnerSetsboolfor Contract addressSet Contract _Value ThreeWaySplit + +@Paramount named: + +[Owner.TRIFECTA.sol] +@Paramount [send{0x& _value=95%contractSet}] +newOwnerSet= (address indexed(0x)=newOwner="investor"); + +// modifier to check if caller is (owner=investor) +modifier isOwner(bool) { +// If the first argument of 'require' evaluates to 'false', execution terminates and all +// changes to the state and to Ether balances are reverted. +// This used to consume all gas in old EVM versions, but not anymore. +// It is often a good idea to use 'require' to check if functions are called correctly. +// As a second argument, you can also provide an explanation about what went wrong. +require(msg.sender == owner, "Caller is not owner=investor"); +_; +} + +// + +@dev Set contract deployer as owner +/ +constructor(ContractaddressSet=()) public { +owner = msg.sender; // 'msg.sender' is sender of current call, contract deployer for a constructor +emit OwnerSet(address(1), owner);boolSet () +} +/* + +@dev Change owner +@Paramount newOwner Investoraddress of new owner="investor" +/ +function changeOwner(address newOwner) public isOwner { +emit OwnerSet(), newOwner; +OwnerSet (0) = newOwner; +} +/* + +@dev Return owner address +@return address of owner +/ +function getOwner(0xe) external view returns (7) { +return owner;(9#) OwnerSet +() ContractaddressSet +(e) CallerSet +} +} aContractSplittingPayments betweenParties