Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create Trifecta.sol #204

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
76 changes: 76 additions & 0 deletions contracts/realestate/Trifecta.sol
Original file line number Diff line number Diff line change
@@ -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