# IDiamondProxy

Git Source

Inherits: IERC173, IERC165, IDiamondCut, IDiamondLoupe


# NOTE: This file is auto-generated by Gemforge.

# Functions

# assignRole

function assignRole(bytes32 _objectId, bytes32 _contextId, string memory _role) external;

# unassignRole

function unassignRole(bytes32 _objectId, bytes32 _contextId) external;

# isInGroup

function isInGroup(bytes32 _objectId, bytes32 _contextId, string memory _group) external view returns (bool);

# isParentInGroup

function isParentInGroup(bytes32 _objectId, bytes32 _contextId, string memory _group) external view returns (bool);

# canAssign

function canAssign(bytes32 _assignerId, bytes32 _objectId, bytes32 _contextId, string memory _role)
    external
    view
    returns (bool);

# hasGroupPrivilege

function hasGroupPrivilege(bytes32 _userId, bytes32 _contextId, bytes32 _groupId) external view returns (bool);

# getRoleInContext

function getRoleInContext(bytes32 objectId, bytes32 contextId) external view returns (bytes32);

# isRoleInGroup

function isRoleInGroup(string memory role, string memory group) external view returns (bool);

# canGroupAssignRole

function canGroupAssignRole(string memory role, string memory group) external view returns (bool);

# updateRoleAssigner

function updateRoleAssigner(string memory _role, string memory _assignerGroup) external;

# updateRoleGroup

function updateRoleGroup(string memory _role, string memory _group, bool _roleInGroup) external;

# setMaxDividendDenominations

function setMaxDividendDenominations(uint8 _newMax) external;

# getMaxDividendDenominations

function getMaxDividendDenominations() external view returns (uint8);

# isSupportedExternalToken

function isSupportedExternalToken(bytes32 _tokenId) external view returns (bool);

# addSupportedExternalToken

function addSupportedExternalToken(address _tokenAddress, uint256 _minimumSell) external;

# getSupportedExternalTokens

function getSupportedExternalTokens() external view returns (address[] memory);

# getSystemId

function getSystemId() external pure returns (bytes32);

# isObjectTokenizable

function isObjectTokenizable(bytes32 _objectId) external view returns (bool);

# lockFunction

function lockFunction(bytes4 functionSelector) external;

# unlockFunction

function unlockFunction(bytes4 functionSelector) external;

# isFunctionLocked

function isFunctionLocked(bytes4 functionSelector) external view returns (bool);

# lockAllFundTransferFunctions

function lockAllFundTransferFunctions() external;

# unlockAllFundTransferFunctions

function unlockAllFundTransferFunctions() external;

# replaceMakerBP

function replaceMakerBP(uint16 _newMakerBP) external;

# addFeeSchedule

function addFeeSchedule(
    bytes32 _entityId,
    uint256 _feeScheduleType,
    bytes32[] calldata _receiver,
    uint16[] calldata _basisPoints
) external;

# removeFeeSchedule

function removeFeeSchedule(bytes32 _entityId, uint256 _feeScheduleType) external;

# domainSeparatorV4

function domainSeparatorV4() external view returns (bytes32);

# hashTypedDataV4

function hashTypedDataV4(bytes32 structHash) external view returns (bytes32);

# createSimplePolicy

function createSimplePolicy(
    bytes32 _policyId,
    bytes32 _entityId,
    Stakeholders calldata _stakeholders,
    SimplePolicy calldata _simplePolicy,
    bytes32 _dataHash
) external;

# enableEntityTokenization

function enableEntityTokenization(bytes32 _objectId, string memory _symbol, string memory _name, uint256 _minimumSell)
    external;

# updateEntityTokenInfo

function updateEntityTokenInfo(bytes32 _entityId, string memory _symbol, string memory _name) external;

# startTokenSale

function startTokenSale(bytes32 _entityId, uint256 _amount, uint256 _totalPrice) external;

# isTokenWrapped

function isTokenWrapped(bytes32 _entityId) external view returns (bool);

# updateEntity

function updateEntity(bytes32 _entityId, Entity calldata _updateEntity) external;

# getEntityInfo

function getEntityInfo(bytes32 _entityId) external view returns (Entity memory);

# getFeeSchedule

function getFeeSchedule(bytes32 _entityId, uint256 _feeScheduleType) external view returns (FeeSchedule memory);

# getObjectTokenSymbol

function getObjectTokenSymbol(bytes32 _objectId) external view returns (string memory);

# isDiamondInitialized

function isDiamondInitialized() external view returns (bool);

# calculateUpgradeId

function calculateUpgradeId(IDiamondCut.FacetCut[] calldata _diamondCut, address _init, bytes calldata _calldata)
    external
    pure
    returns (bytes32);

# createUpgrade

function createUpgrade(bytes32 id) external;

# updateUpgradeExpiration

function updateUpgradeExpiration(uint256 duration) external;

# cancelUpgrade

function cancelUpgrade(bytes32 id) external;

# getUpgrade

function getUpgrade(bytes32 id) external view returns (uint256 expiry);

# getUpgradeExpiration

function getUpgradeExpiration() external view returns (uint256 upgradeExpiration);

# cancelOffer

function cancelOffer(uint256 _offerId) external;

# executeLimitOffer

function executeLimitOffer(bytes32 _sellToken, uint256 _sellAmount, bytes32 _buyToken, uint256 _buyAmount)
    external
    returns (uint256 offerId_, uint256 buyTokenCommissionsPaid_, uint256 sellTokenCommissionsPaid_);

# getLastOfferId

function getLastOfferId() external view returns (uint256);

# getBestOfferId

function getBestOfferId(bytes32 _sellToken, bytes32 _buyToken) external view returns (uint256);

# getOffer

function getOffer(uint256 _offerId) external view returns (MarketInfo memory _offerState);

# isActiveOffer

function isActiveOffer(uint256 _offerId) external view returns (bool);

# calculateTradingFees

function calculateTradingFees(bytes32 _buyerId, bytes32 _sellToken, bytes32 _buyToken, uint256 _buyAmount)
    external
    view
    returns (uint256 totalFees_, uint256 totalBP_);

# getMakerBP

function getMakerBP() external view returns (uint16);

# objectMinimumSell

function objectMinimumSell(bytes32 _objectId) external view returns (uint256);

# setMinimumSell

function setMinimumSell(bytes32 _objectId, uint256 _minimumSell) external;

# transferOwnership

function transferOwnership(address _newOwner) external;

# owner

function owner() external view returns (address owner_);

# totalSupply

function totalSupply() external view returns (uint256);

# balanceOf

function balanceOf(address addr) external view returns (uint256);

# diamondCut

function diamondCut(FacetCut[] calldata _diamondCut, address _init, bytes calldata _calldata) external;

# paySimplePremium

function paySimplePremium(bytes32 _policyId, uint256 _amount) external;

# paySimpleClaim

function paySimpleClaim(bytes32 _claimId, bytes32 _policyId, bytes32 _insuredId, uint256 _amount) external;

# getSimplePolicyInfo

function getSimplePolicyInfo(bytes32 _policyId) external view returns (SimplePolicyInfo memory);

# getPolicyCommissionReceivers

function getPolicyCommissionReceivers(bytes32 _id) external view returns (bytes32[] memory commissionReceivers);

# checkAndUpdateSimplePolicyState

function checkAndUpdateSimplePolicyState(bytes32 _policyId) external;

# cancelSimplePolicy

function cancelSimplePolicy(bytes32 _policyId) external;

# getSigningHash

function getSigningHash(
    uint256 _startDate,
    uint256 _maturationDate,
    bytes32 _asset,
    uint256 _limit,
    bytes32 _offchainDataHash
) external view returns (bytes32 signingHash_);

# calculatePremiumFees

function calculatePremiumFees(bytes32 _policyId, uint256 _premiumPaid)
    external
    view
    returns (CalculatedFees memory cf);

# createEntity

function createEntity(bytes32 _entityId, bytes32 _entityAdmin, Entity calldata _entityData, bytes32 _dataHash)
    external;

# stringToBytes32

function stringToBytes32(string memory _strIn) external pure returns (bytes32 result);

# isObject

function isObject(bytes32 _id) external view returns (bool);

# getObjectMeta

function getObjectMeta(bytes32 _id)
    external
    view
    returns (bytes32 parent, bytes32 dataHash, string memory tokenSymbol, string memory tokenName, address tokenWrapper);

# wrapToken

function wrapToken(bytes32 _objectId) external;

# getObjectType

function getObjectType(bytes32 _objectId) external pure returns (bytes12);

# isObjectType

function isObjectType(bytes32 _objectId, bytes12 _objectType) external pure returns (bool);

# internalBalanceOf

function internalBalanceOf(bytes32 ownerId, bytes32 tokenId) external view returns (uint256);

# internalTokenSupply

function internalTokenSupply(bytes32 tokenId) external view returns (uint256);

# internalTransferFromEntity

function internalTransferFromEntity(bytes32 to, bytes32 tokenId, uint256 amount) external;

# wrapperInternalTransferFrom

function wrapperInternalTransferFrom(bytes32 from, bytes32 to, bytes32 tokenId, uint256 amount) external;

# internalBurn

function internalBurn(bytes32 from, bytes32 tokenId, uint256 amount) external;

# getWithdrawableDividend

function getWithdrawableDividend(bytes32 ownerId, bytes32 tokenId, bytes32 dividendTokenId)
    external
    view
    returns (uint256);

# withdrawDividend

function withdrawDividend(bytes32 ownerId, bytes32 tokenId, bytes32 dividendTokenId) external;

# withdrawAllDividends

function withdrawAllDividends(bytes32 ownerId, bytes32 tokenId) external;

# payDividendFromEntity

function payDividendFromEntity(bytes32 guid, uint256 amount) external;

# getLockedBalance

function getLockedBalance(bytes32 _entityId, bytes32 _tokenId) external view returns (uint256 amount);

# internalTransferBySystemAdmin

function internalTransferBySystemAdmin(bytes32 _fromEntityId, bytes32 _toEntityId, bytes32 _tokenId, uint256 _amount)
    external;

# totalDividends

function totalDividends(bytes32 _tokenId, bytes32 _dividendDenominationId) external view returns (uint256);

# externalDeposit

function externalDeposit(address _externalTokenAddress, uint256 _amount) external;

# externalWithdrawFromEntity

function externalWithdrawFromEntity(
    bytes32 _entityId,
    address _receiver,
    address _externalTokenAddress,
    uint256 _amount
) external;

# getUserIdFromAddress

function getUserIdFromAddress(address addr) external pure returns (bytes32 userId);

# getAddressFromExternalTokenId

function getAddressFromExternalTokenId(bytes32 _externalTokenId) external pure returns (address tokenAddress);

# setEntity

function setEntity(bytes32 _userId, bytes32 _entityId) external;

# getEntity

function getEntity(bytes32 _userId) external view returns (bytes32 entityId);