编译器
0.6.12+commit.27d51765
文件 1 的 7:Address.sol
pragma solidity ^0.6.2;
library Address {
function isContract(address account) internal view returns (bool) {
uint256 size;
assembly { size := extcodesize(account) }
return size > 0;
}
function sendValue(address payable recipient, uint256 amount) internal {
require(address(this).balance >= amount, "Address: insufficient balance");
(bool success, ) = recipient.call{ value: amount }("");
require(success, "Address: unable to send value, recipient may have reverted");
}
function functionCall(address target, bytes memory data) internal returns (bytes memory) {
return functionCall(target, data, "Address: low-level call failed");
}
function functionCall(address target, bytes memory data, string memory errorMessage) internal returns (bytes memory) {
return _functionCallWithValue(target, data, 0, errorMessage);
}
function functionCallWithValue(address target, bytes memory data, uint256 value) internal returns (bytes memory) {
return functionCallWithValue(target, data, value, "Address: low-level call with value failed");
}
function functionCallWithValue(address target, bytes memory data, uint256 value, string memory errorMessage) internal returns (bytes memory) {
require(address(this).balance >= value, "Address: insufficient balance for call");
return _functionCallWithValue(target, data, value, errorMessage);
}
function _functionCallWithValue(address target, bytes memory data, uint256 weiValue, string memory errorMessage) private returns (bytes memory) {
require(isContract(target), "Address: call to non-contract");
(bool success, bytes memory returndata) = target.call{ value: weiValue }(data);
if (success) {
return returndata;
} else {
if (returndata.length > 0) {
assembly {
let returndata_size := mload(returndata)
revert(add(32, returndata), returndata_size)
}
} else {
revert(errorMessage);
}
}
}
}
文件 2 的 7:Context.sol
pragma solidity ^0.6.0;
abstract contract Context {
function _msgSender() internal view virtual returns (address payable) {
return msg.sender;
}
function _msgData() internal view virtual returns (bytes memory) {
this;
return msg.data;
}
}
文件 3 的 7:ERC20.sol
pragma solidity ^0.6.0;
import "./Context.sol";
import "./IERC20.sol";
import "./SafeMath.sol";
import "./Address.sol";
contract ERC20 is Context, IERC20 {
using SafeMath for uint256;
using Address for address;
mapping(address => uint256) private _balances;
mapping(address => mapping(address => uint256)) private _allowances;
uint256 private _totalSupply;
string internal _name;
string internal _symbol;
uint8 private _decimals;
constructor (string memory name, string memory symbol) public {
_name = name;
_symbol = symbol;
_decimals = 18;
}
function name() public view returns (string memory) {
return _name;
}
function symbol() public view returns (string memory) {
return _symbol;
}
function decimals() public view returns (uint8) {
return _decimals;
}
function totalSupply() public view override returns (uint256) {
return _totalSupply;
}
function balanceOf(address account) public view override returns (uint256) {
return _balances[account];
}
function transfer(address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(_msgSender(), recipient, amount);
return true;
}
function allowance(address owner, address spender) public view virtual override returns (uint256) {
return _allowances[owner][spender];
}
function approve(address spender, uint256 amount) public virtual override returns (bool) {
_approve(_msgSender(), spender, amount);
return true;
}
function transferFrom(address sender, address recipient, uint256 amount) public virtual override returns (bool) {
_transfer(sender, recipient, amount);
_approve(sender, _msgSender(), _allowances[sender][_msgSender()].sub(amount, "ERC20: transfer amount exceeds allowance"));
return true;
}
function increaseAllowance(address spender, uint256 addedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].add(addedValue));
return true;
}
function decreaseAllowance(address spender, uint256 subtractedValue) public virtual returns (bool) {
_approve(_msgSender(), spender, _allowances[_msgSender()][spender].sub(subtractedValue, "ERC20: decreased allowance below zero"));
return true;
}
function _transfer(address sender, address recipient, uint256 amount) internal virtual {
require(sender != address(0), "ERC20: transfer from the zero address");
require(recipient != address(0), "ERC20: transfer to the zero address");
_beforeTokenTransfer(sender, recipient, amount);
_balances[sender] = _balances[sender].sub(amount, "ERC20: transfer amount exceeds balance");
_balances[recipient] = _balances[recipient].add(amount);
emit Transfer(sender, recipient, amount);
}
function _mint(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: mint to the zero address");
_beforeTokenTransfer(address(0), account, amount);
_totalSupply = _totalSupply.add(amount);
_balances[account] = _balances[account].add(amount);
emit Transfer(address(0), account, amount);
}
function _burn(address account, uint256 amount) internal virtual {
require(account != address(0), "ERC20: burn from the zero address");
_beforeTokenTransfer(account, address(0), amount);
_balances[account] = _balances[account].sub(amount, "ERC20: burn amount exceeds balance");
_totalSupply = _totalSupply.sub(amount);
emit Transfer(account, address(0), amount);
}
function _approve(address owner, address spender, uint256 amount) internal virtual {
require(owner != address(0), "ERC20: approve from the zero address");
require(spender != address(0), "ERC20: approve to the zero address");
_allowances[owner][spender] = amount;
emit Approval(owner, spender, amount);
}
function _setupDecimals(uint8 decimals_) internal {
_decimals = decimals_;
}
function _beforeTokenTransfer(address from, address to, uint256 amount) internal virtual {}
}
文件 4 的 7:IERC20.sol
pragma solidity ^0.6.0;
interface IERC20 {
function totalSupply() external view returns (uint256);
function balanceOf(address account) external view returns (uint256);
function transfer(address recipient, uint256 amount) external returns (bool);
function allowance(address owner, address spender) external view returns (uint256);
function approve(address spender, uint256 amount) external returns (bool);
function transferFrom(address sender, address recipient, uint256 amount) external returns (bool);
event Transfer(address indexed from, address indexed to, uint256 value);
event Approval(address indexed owner, address indexed spender, uint256 value);
}
文件 5 的 7:PropToken.sol
pragma solidity ^0.6.12;
import "./ERC20.sol";
import "./Context.sol";
interface PropTokenHelpers {
function freezeProperty(address prop) external;
function unfreezeProperty(address prop) external;
function isPropTokenFrozen(address property) external view returns (bool);
function hasSystemAdminRights(address addr) external view returns (bool);
function getLicencedIssuerFee() external view returns (uint256);
function getBlocksquareFee() external view returns (uint256);
function getCertifiedPartnerFee() external view returns (uint256);
function getBlocksquareAddress() external view returns (address);
function getDataProxy() external view returns (address);
function canTransferPropTokensTo(address wallet, address property) external view returns (bool);
function isCPAdminOfProperty(address user, address property) external view returns (bool);
function getCPOfProperty(address prop) external view returns (address);
function getSpecialWallet() external view returns (address);
function getBasicInfo(address property) external view returns (string memory streetLocation, string memory geoLocation, uint256 propertyValuation, uint256 tokenValuation, string memory propertyValuationCurrency);
function getPropertyInfo(address property, uint64 index) external view returns (string memory propertyType, string memory kadastralMunicipality, string memory parcelNumber, string memory ID, uint64 buildingPart);
function getIPFS(address property) external view returns (string memory);
function getOceanPointContract() external view returns (address);
function canEditProperty(address wallet, address property) external view returns (bool);
function isContractWhitelisted(address cont) external view returns (bool);
}
contract Owned is Context {
address internal _owner;
event OwnershipTransferred(address indexed previousOwner, address indexed newOwner);
constructor () internal {
address msgSender = _msgSender();
_owner = msgSender;
emit OwnershipTransferred(address(0), msgSender);
}
function owner() public view returns (address) {
return _owner;
}
modifier onlyOwner() {
require(_owner == _msgSender(), "Ownable: caller is not the owner");
_;
}
function renounceOwnership() public virtual onlyOwner {
emit OwnershipTransferred(_owner, address(0));
_owner = address(0);
}
function transferOwnership(address newOwner) public virtual onlyOwner {
require(newOwner != address(0), "Ownable: new owner is the zero address");
emit OwnershipTransferred(_owner, newOwner);
_owner = newOwner;
}
}
contract PropToken is ERC20, Owned {
using SafeMath for uint256;
uint256 internal _cap;
address private _mintContract;
address private _burnContract;
address internal _propertyRegistry;
bool private _canMint;
modifier onlySystemAdmin {
require(PropTokenHelpers(getDataAddress()).hasSystemAdminRights(msg.sender), "PropToken: You need to have system admin rights!");
_;
}
modifier onlyPropManager {
require(PropTokenHelpers(getDataAddress()).isCPAdminOfProperty(msg.sender, address(this)) || msg.sender == PropTokenHelpers(getDataAddress()).getCPOfProperty(address(this)),
"PropToken: you don't have permission!");
_;
}
constructor(string memory name, string memory symbol) internal ERC20(name, symbol) {
}
function changeLI(address newOwner) public onlySystemAdmin {
_owner = newOwner;
}
function transfer(address recipient, uint256 amount) public override returns (bool) {
_transferWithFee(msg.sender, recipient, amount);
return true;
}
function transferFrom(address sender, address recipient, uint256 amount) public override returns (bool) {
_approve(sender, msg.sender, allowance(sender, msg.sender).sub(amount, "ERC20: transfer amount exceeds allowance"));
_transferWithFee(sender, recipient, amount);
return true;
}
function mint(address[] memory accounts, uint256[] memory amounts) public returns (bool) {
require(_canMint, "PropToken: Minting is not enabled!");
require(PropTokenHelpers(getDataAddress()).isCPAdminOfProperty(msg.sender, address(this)) || _mintContract == msg.sender, "PropToken: you don't have permission to mint");
require(accounts.length == amounts.length, "PropToken: Arrays must be of same length!");
for (uint256 i = 0; i < accounts.length; i++) {
require(totalSupply().add(amounts[i]) <= _cap, "PropToken: cap exceeded");
require(PropTokenHelpers(getDataAddress()).canTransferPropTokensTo(accounts[i], address(this)), "PropToken: Wallet is not whitelisted");
_mint(accounts[i], amounts[i]);
}
return true;
}
function burnAndMint(address from, address to, uint256 amount) public onlySystemAdmin returns (bool) {
_burn(from, amount);
_mint(to, amount);
return true;
}
function contractBurn(address user, uint256 amount) public returns (bool) {
require(msg.sender == _burnContract, "PropToken: Only burn contract can burn tokens from users!");
_burn(user, amount);
return true;
}
function freezeToken() public onlyPropManager {
PropTokenHelpers(getDataAddress()).freezeProperty(address(this));
}
function unfreezeToken() public onlyPropManager {
PropTokenHelpers(getDataAddress()).unfreezeProperty(address(this));
}
function setMintContract(address mintContract) public onlyPropManager {
require(PropTokenHelpers(getDataAddress()).isContractWhitelisted(mintContract), "PropToken: Contract is not whitelisted");
_mintContract = mintContract;
}
function setBurnContract(address burnContract) public onlyPropManager {
require(PropTokenHelpers(getDataAddress()).isContractWhitelisted(burnContract), "PropToken: Contract is not whitelisted");
_burnContract = burnContract;
}
function allowMint() public {
require(PropTokenHelpers(getDataAddress()).isCPAdminOfProperty(msg.sender, address(this)), "PropToken: Only CP admin!");
_canMint = true;
}
function _transferWithFee(address sender, address recipient, uint256 amount) internal {
require(sender != address(0), "PropToken: transfer from the zero address");
require(recipient != address(0), "PropToken: transfer to the zero address");
require(!PropTokenHelpers(getDataAddress()).isPropTokenFrozen(address(this)), "PropToken: Transactions are frozen");
address blocksquare = PropTokenHelpers(getDataAddress()).getBlocksquareAddress();
address cp = PropTokenHelpers(getDataAddress()).getCPOfProperty(address(this));
if (PropTokenHelpers(getDataAddress()).hasSystemAdminRights(sender) || recipient == getOceanPointContract() || recipient == _burnContract) {
_transfer(sender, recipient, amount);
}
else if (recipient == blocksquare || recipient == cp || recipient == owner()) {
_transfer(sender, recipient, amount);
}
else {
require(PropTokenHelpers(getDataAddress()).canTransferPropTokensTo(recipient, address(this)), "PropToken: Can't send tokens to!");
if (sender == blocksquare || sender == cp || sender == owner()) {
_transfer(sender, recipient, amount);
}
else {
_fee(sender, recipient, amount, blocksquare, cp);
}
}
}
function _fee(address sender, address recipient, uint256 amount, address blocksquare, address cp) private {
uint256 blocksquareFee = (amount.mul(PropTokenHelpers(getDataAddress()).getBlocksquareFee())).div(1000);
uint256 liFee = (amount.mul(PropTokenHelpers(getDataAddress()).getLicencedIssuerFee())).div(1000);
uint256 cpFee = (amount.mul(PropTokenHelpers(getDataAddress()).getCertifiedPartnerFee())).div(1000);
uint256 together = blocksquareFee.add(liFee).add(cpFee);
_transfer(sender, blocksquare, blocksquareFee);
_transfer(sender, cp, cpFee);
_transfer(sender, owner(), liFee);
_transfer(sender, recipient, amount.sub(together));
}
function getDataAddress() internal view returns (address) {
return PropTokenHelpers(_propertyRegistry).getDataProxy();
}
function cap() public view returns (uint256) {
return _cap;
}
function canBeMinted() public view returns (bool) {
return _canMint;
}
function getMintContract() public view returns (address) {
return _mintContract;
}
function getBurnContract() public view returns (address) {
return _burnContract;
}
function getOceanPointContract() public view returns (address) {
return PropTokenHelpers(getDataAddress()).getOceanPointContract();
}
}
文件 6 的 7:Properties.sol
pragma solidity ^0.6.12;
import "./PropToken.sol";
contract Properties is PropToken {
uint256 private _commonEquity;
uint256 private _preferredEquity;
uint256 private _mezzanine;
uint256 private _juniorDebt;
uint256 private _seniorDebt;
uint16 private _royaltyPercentage;
modifier onlyPropManagerOrSpecialWallet {
require(PropTokenHelpers(getDataAddress()).canEditProperty(_msgSender(), address(this)) || _msgSender() == PropTokenHelpers(getDataAddress()).getSpecialWallet(), "Properties: You need to be property manager!");
_;
}
event CapitalStackChange(address indexed property, uint256 tokenizationAmount, uint256 commonEquity, uint256 preferredEquity, uint256 mezzanine,
uint256 juniorDebt, uint256 seniorDebt);
constructor(address owner, address propertyRegistry) public PropToken("BlocksquarePropertyToken", "BSPT") {
transferOwnership(owner);
_propertyRegistry = propertyRegistry;
}
function addRoyaltyPercentage(uint16 royaltyPercentage) public onlyPropManagerOrSpecialWallet {
require(_royaltyPercentage == 0, "Properties: Royalty percentage already set!");
require(_royaltyPercentage <= 10000, "Properties: Royalty percentage must be less or equal to 10000");
_royaltyPercentage = royaltyPercentage;
}
function changeCapitalStack(uint256 cap, uint256 commonEquity, uint256 preferredEquity, uint256 mezzanine,
uint256 juniorDebt, uint256 seniorDebt) public onlyPropManagerOrSpecialWallet {
require(cap.add(commonEquity).add(preferredEquity).add(mezzanine).add(juniorDebt).add(seniorDebt) == 100000 * 1 ether,
"Properties: The sum of the capital stack needs to be same as maximum supply of BSPT");
require(cap >= totalSupply(), "Properties: Cap needs to be bigger or equal to total supply");
_cap = cap;
_commonEquity = commonEquity;
_preferredEquity = preferredEquity;
_mezzanine = mezzanine;
_juniorDebt = juniorDebt;
_seniorDebt = seniorDebt;
emit CapitalStackChange(address(this), cap, commonEquity, preferredEquity, mezzanine, juniorDebt, seniorDebt);
}
function changeTokenNameAndSymbol(string memory name, string memory symbol) external {
require(msg.sender == _propertyRegistry, "Properties: Transaction must come from registry!");
_name = name;
_symbol = symbol;
}
function getProperty(uint64 index) public view returns (string memory propertyType, string memory kadastralMunicipality, string memory parcelNumber, string memory ID, uint64 buildingPart) {
return PropTokenHelpers(_propertyRegistry).getPropertyInfo(address(this), index);
}
function getBasicInfo() public view returns (string memory streetLocation, string memory geoLocation, uint256 propertyValuation, uint256 tokenValuation, string memory propertyValuationCurrency) {
return PropTokenHelpers(_propertyRegistry).getBasicInfo(address(this));
}
function getIPFSHash() public view returns (string memory) {
return PropTokenHelpers(_propertyRegistry).getIPFS(address(this));
}
function getCapitalStack() public view returns (uint256 tokenization, uint256 commonEquity, uint256 preferredEquity,
uint256 mezzanine, uint256 juniorDebt, uint256 seniorDebt) {
return (_cap,
_commonEquity,
_preferredEquity,
_mezzanine,
_juniorDebt,
_seniorDebt);
}
function getRoyaltyPercentage() public view returns (uint16) {
return _royaltyPercentage;
}
receive() external payable {
revert();
}
}
文件 7 的 7:SafeMath.sol
pragma solidity ^0.6.0;
library SafeMath {
function add(uint256 a, uint256 b) internal pure returns (uint256) {
uint256 c = a + b;
require(c >= a, "SafeMath: addition overflow");
return c;
}
function sub(uint256 a, uint256 b) internal pure returns (uint256) {
return sub(a, b, "SafeMath: subtraction overflow");
}
function sub(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b <= a, errorMessage);
uint256 c = a - b;
return c;
}
function mul(uint256 a, uint256 b) internal pure returns (uint256) {
if (a == 0) {
return 0;
}
uint256 c = a * b;
require(c / a == b, "SafeMath: multiplication overflow");
return c;
}
function div(uint256 a, uint256 b) internal pure returns (uint256) {
return div(a, b, "SafeMath: division by zero");
}
function div(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b > 0, errorMessage);
uint256 c = a / b;
return c;
}
function mod(uint256 a, uint256 b) internal pure returns (uint256) {
return mod(a, b, "SafeMath: modulo by zero");
}
function mod(uint256 a, uint256 b, string memory errorMessage) internal pure returns (uint256) {
require(b != 0, errorMessage);
return a % b;
}
}
{
"compilationTarget": {
"Properties.sol": "Properties"
},
"evmVersion": "istanbul",
"libraries": {},
"metadata": {
"bytecodeHash": "ipfs"
},
"optimizer": {
"enabled": true,
"runs": 200
},
"remappings": []
}
[{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"propertyRegistry","type":"address"}],"stateMutability":"nonpayable","type":"constructor"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"owner","type":"address"},{"indexed":true,"internalType":"address","name":"spender","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Approval","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"property","type":"address"},{"indexed":false,"internalType":"uint256","name":"tokenizationAmount","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"commonEquity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"preferredEquity","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"mezzanine","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"juniorDebt","type":"uint256"},{"indexed":false,"internalType":"uint256","name":"seniorDebt","type":"uint256"}],"name":"CapitalStackChange","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"previousOwner","type":"address"},{"indexed":true,"internalType":"address","name":"newOwner","type":"address"}],"name":"OwnershipTransferred","type":"event"},{"anonymous":false,"inputs":[{"indexed":true,"internalType":"address","name":"from","type":"address"},{"indexed":true,"internalType":"address","name":"to","type":"address"},{"indexed":false,"internalType":"uint256","name":"value","type":"uint256"}],"name":"Transfer","type":"event"},{"inputs":[{"internalType":"uint16","name":"royaltyPercentage","type":"uint16"}],"name":"addRoyaltyPercentage","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"allowMint","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"owner","type":"address"},{"internalType":"address","name":"spender","type":"address"}],"name":"allowance","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"approve","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"account","type":"address"}],"name":"balanceOf","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"from","type":"address"},{"internalType":"address","name":"to","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"burnAndMint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"canBeMinted","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"cap","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint256","name":"cap","type":"uint256"},{"internalType":"uint256","name":"commonEquity","type":"uint256"},{"internalType":"uint256","name":"preferredEquity","type":"uint256"},{"internalType":"uint256","name":"mezzanine","type":"uint256"},{"internalType":"uint256","name":"juniorDebt","type":"uint256"},{"internalType":"uint256","name":"seniorDebt","type":"uint256"}],"name":"changeCapitalStack","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"changeLI","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"string","name":"name","type":"string"},{"internalType":"string","name":"symbol","type":"string"}],"name":"changeTokenNameAndSymbol","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"user","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"contractBurn","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"decimals","outputs":[{"internalType":"uint8","name":"","type":"uint8"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"subtractedValue","type":"uint256"}],"name":"decreaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"freezeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"getBasicInfo","outputs":[{"internalType":"string","name":"streetLocation","type":"string"},{"internalType":"string","name":"geoLocation","type":"string"},{"internalType":"uint256","name":"propertyValuation","type":"uint256"},{"internalType":"uint256","name":"tokenValuation","type":"uint256"},{"internalType":"string","name":"propertyValuationCurrency","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getBurnContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getCapitalStack","outputs":[{"internalType":"uint256","name":"tokenization","type":"uint256"},{"internalType":"uint256","name":"commonEquity","type":"uint256"},{"internalType":"uint256","name":"preferredEquity","type":"uint256"},{"internalType":"uint256","name":"mezzanine","type":"uint256"},{"internalType":"uint256","name":"juniorDebt","type":"uint256"},{"internalType":"uint256","name":"seniorDebt","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getIPFSHash","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getMintContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getOceanPointContract","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"uint64","name":"index","type":"uint64"}],"name":"getProperty","outputs":[{"internalType":"string","name":"propertyType","type":"string"},{"internalType":"string","name":"kadastralMunicipality","type":"string"},{"internalType":"string","name":"parcelNumber","type":"string"},{"internalType":"string","name":"ID","type":"string"},{"internalType":"uint64","name":"buildingPart","type":"uint64"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"getRoyaltyPercentage","outputs":[{"internalType":"uint16","name":"","type":"uint16"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"spender","type":"address"},{"internalType":"uint256","name":"addedValue","type":"uint256"}],"name":"increaseAllowance","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address[]","name":"accounts","type":"address[]"},{"internalType":"uint256[]","name":"amounts","type":"uint256[]"}],"name":"mint","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"name","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"owner","outputs":[{"internalType":"address","name":"","type":"address"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"renounceOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"burnContract","type":"address"}],"name":"setBurnContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"mintContract","type":"address"}],"name":"setMintContract","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"symbol","outputs":[{"internalType":"string","name":"","type":"string"}],"stateMutability":"view","type":"function"},{"inputs":[],"name":"totalSupply","outputs":[{"internalType":"uint256","name":"","type":"uint256"}],"stateMutability":"view","type":"function"},{"inputs":[{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transfer","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"sender","type":"address"},{"internalType":"address","name":"recipient","type":"address"},{"internalType":"uint256","name":"amount","type":"uint256"}],"name":"transferFrom","outputs":[{"internalType":"bool","name":"","type":"bool"}],"stateMutability":"nonpayable","type":"function"},{"inputs":[{"internalType":"address","name":"newOwner","type":"address"}],"name":"transferOwnership","outputs":[],"stateMutability":"nonpayable","type":"function"},{"inputs":[],"name":"unfreezeToken","outputs":[],"stateMutability":"nonpayable","type":"function"},{"stateMutability":"payable","type":"receive"}]