IOffering

Git Source

Events

OfferingCreated

Events

event OfferingCreated(
    address indexed entity,
    address indexed asset,
    address indexed paymentCurrency,
    uint256 paymentDecimals,
    uint256 pricePerToken,
    uint256 minInvestment,
    uint256 investmentDeadline,
    uint256 targetAmount,
    uint256 maxAmount,
    string baseURI
);

OfferingStatusChanged

event OfferingStatusChanged(Status newStatus);

OfferingInvested

event OfferingInvested(
    address indexed investor, uint256 investmentId, uint256 amount, uint256 pricePerToken, bytes32 instanceHash
);

OfferingInvestmentCountersigned

event OfferingInvestmentCountersigned(address indexed investor, uint256 investmentId, uint256 amount);

OfferingPricePerTokenUpdated

event OfferingPricePerTokenUpdated(uint256 newPrice);

OfferingMinInvestmentUpdated

event OfferingMinInvestmentUpdated(uint256 newMin);

OfferingInvestmentDeadlineUpdated

event OfferingInvestmentDeadlineUpdated(uint256 newDeadline);

OfferingTargetAmountUpdated

event OfferingTargetAmountUpdated(uint256 newTarget);

OfferingMaxAmountUpdated

event OfferingMaxAmountUpdated(uint256 newMax);

OfferingBaseURIUpdated

event OfferingBaseURIUpdated(string newBaseURI);

OfferingClosed

event OfferingClosed();

InvestmentMade

event InvestmentMade(address indexed investor, uint256 amountInvested, uint256 tokensIssued);

InvestmentCountersigned

event InvestmentCountersigned(uint256 indexed investmentId, address indexed investor);

OffChainInvestmentRecorded

event OffChainInvestmentRecorded(
    uint256 indexed investmentId, address indexed investor, uint256 amount, uint256 investmentDate, bytes32 instanceHash
);

FundsWithdrawn

event FundsWithdrawn(address indexed recipient, uint256 amount);

OfferingCancelled

event OfferingCancelled();

InvestmentRejected

event InvestmentRejected(uint256 indexed investmentId, address indexed investor, uint256 amount);

InvestmentRefunded

event InvestmentRefunded(uint256 indexed investmentId, address indexed investor, uint256 amount);

DocumentAdded

event DocumentAdded(bytes32 indexed hash, bool isTemplate);

DocumentRemoved

event DocumentRemoved(bytes32 indexed hash, bool isTemplate);

DocumentRegistryUpdated

event DocumentRegistryUpdated(address indexed oldRegistry, address indexed newRegistry);

TemplateApproved

event TemplateApproved(bytes32 indexed templateHash);

TemplateDisapproved

event TemplateDisapproved(bytes32 indexed templateHash);

Errors

InvalidStatus

error InvalidStatus();

NotEntity

error NotEntity();

NotManager

error NotManager();

NotInvestor

error NotInvestor();

AmountBelowMinimum

error AmountBelowMinimum();

AmountAboveMaximum

error AmountAboveMaximum();

CapExceeded

error CapExceeded();

InvestmentPeriodEnded

error InvestmentPeriodEnded();

AlreadyInvested

error AlreadyInvested();

ComplianceCheckFailed

error ComplianceCheckFailed();

SignatureVerificationFailed

error SignatureVerificationFailed();

InvalidSignature

error InvalidSignature();

InvalidAgreementHash

error InvalidAgreementHash();

InvestmentNotFound

error InvestmentNotFound();

AlreadyCountersigned

error AlreadyCountersigned();

TransferFailed

error TransferFailed();

ZeroAddress

error ZeroAddress();

ZeroAmount

error ZeroAmount();

InvalidPrice

error InvalidPrice();

CallerNotFactory

error CallerNotFactory();

FundsNotAvailable

error FundsNotAvailable();

InvalidInvestmentId

error InvalidInvestmentId();

DocumentNotFound

error DocumentNotFound();

Structs

Investment

struct Investment {
    address investor;
    uint256 amount;
    uint256 pricePerToken;
    uint256 investmentDate;
    bool countersigned;
    bool isOffChain;
    bytes32 instanceHash;
}

Enums

Status

enum Status {
    Active,
    Completed,
    Cancelled
}

DocumentType

enum DocumentType {
    SIGNATURE,
    DISCLOSURE
}

DocumentAccessLevel

enum DocumentAccessLevel {
    Public,
    Participants,
    Investors
}

Last updated

Was this helpful?