Verified contractPartial
LoanDocs
Address0x11284a670cc6b5106f7ac2d4bc0d50aaea6dae73
- Balance
0 ETH
- Transactions
8
- Compiler
solc 0.3.5
- Same code
60 more contracts
Details
- Compiler
- solc 0.3.5+commit.5f97274a
- Language
- solidity
- Optimization
- No
- License
- Not stated
- Match
- Partialcreation code: yes, runtime code: yes
- Verified on Sourcify
- Created in block
- 1,854,190
- Creation transaction
- 0x6428d41856…e1f958fa85
LoanDocs.sol
// Recovered by EthereumHistory (ethereumhistory.com) -sw
contract LoanDocs {
struct Loan {
uint time;
string hash;
}
address bank;
address owner;
address client;
mapping (string => string) docs;
Loan suggestLoan;
Loan finalLoan;
function LoanDocs(string _suggestHash, string _personalIdHash, string _mortgageHash) {
owner = msg.sender;
suggestLoan.hash = _suggestHash;
suggestLoan.time = now;
docs["PersonalIdentificationDoc.pdf"] = _personalIdHash;
docs["MortgageDoc.pdf"] = _mortgageHash;
}
function getFinalTime() returns (uint) {
return finalLoan.time;
}
function setFinalLoan(string _hash) {
if (msg.sender == owner) {
finalLoan.time = now;
finalLoan.hash = _hash;
}
}
function addDocHash(string _name, string _hash) {
if (msg.sender == owner) {
docs[_name] = _hash;
}
}
function getSuggestHash() returns (string) {
return suggestLoan.hash;
}
function getDocHash(string _name) returns (string) {
return docs[_name];
}
function getSuggestTime() returns (uint) {
return suggestLoan.time;
}
function getFinalHash() returns (string) {
return finalLoan.hash;
}
}
Compiler settingsShow
{
"optimizer": {
"runs": 200,
"enabled": false
}
}Source code and metadata: Sourcify.
The source code belongs to the authors of the contract.