- Procedures
- 10
- Functions
- 24
- Custom types
- 19
Procedures
CreateAuctioninput 1
Creates a new Batch Auction or Standard Auction in the Nostromo Auction House.
Input12
- metadataIpfsCiduint8[64]
- Lowercase base32 CIDv1 stored in Pinata for the auction name and description metadata.
- auctionLotItemsstruct[4]
- Assets and quantities offered by the auction.
- requiredAccessAssetsstruct[4]
- Asset and minimum-quantity alternatives used by private asset-based access.
- allowedBidderWalletsid[16]
- Wallet list used when the private auction restricts participation to predefined wallets.
- minimumPurchaseQuantityuint64
- Required minimum requested quantity for batch bids; ignored for standard auctions.
- initialPriceuint64
- Initial price for a standard auction; bids cannot be placed below this total price for the whole lot.
- salePriceuint64
- Minimum selling price per asset in a batch auction, or desired minimum total selling price for the whole lot in a standard auction.
- minimumBidIncrementuint64
- Minimum increment by which each new standard auction bid must exceed the current highest bid.
- buyNowPriceuint64
- Buy Now price that immediately closes a standard auction once matched or exceeded.
- durationDaysuint32
- Auction duration in days, capped by the contract configuration.
- auctionTypeuint8
- Auction House mode selected by the seller: Batch Auction or Standard Auction.
- auctionVisibilityuint8
- Visibility selected by the seller: public or private.
Output2
- auctionIndexuint64
- Monotonic index assigned to the new auction when creation succeeds.
- errorCodeEAuctionError
- Result code describing whether the auction creation succeeded.
PlaceBidinput 2
Places a bid in an active auction.
Input3
- auctionIndexuint64
- Monotonic index of the target auction.
- quantityuint64
- Requested quantity for a batch auction, which must meet its configured minimum; ignored for a standard auction.
- bidAmountuint64
- Offered price per asset in a batch auction, or total offered price for the whole lot in a standard auction.
Output3
- escrowedAmountuint64
- Amount that remains escrowed for the accepted bid.
- refundedAmountuint64
- Amount refunded to the bidder, including replaced escrow or invocation change.
- errorCodeEAuctionError
- Result code describing whether the bid placement succeeded.
CancelAuctioninput 3
Cancels an active auction before the first accepted bid is placed.
Input1
- auctionIndexuint64
- Monotonic index of the auction that the seller wants to cancel.
Output3
- refundedAmountuint64
- Total amount refunded to bidders because of the cancellation.
- cancellationFeeuint64
- Cancellation fee charged to the seller according to the auction rules.
- errorCodeEAuctionError
- Result code describing whether the cancellation succeeded.
TransferShareManagementRightsinput 4
Transfers share management rights for an asset position to another managing contract.
Input3
- assetAsset
- Asset whose management rights should be transferred.
- numberOfSharessint64
- Number of shares whose management rights should be transferred.
- newManagingContractIndexuint32
- Destination managing contract index.
Output2
- transferredNumberOfSharessint64
- Number of shares whose management rights were transferred.
- errorCodeEAuctionError
- Result code describing whether the transfer request succeeded.
ResolvePendingStandardAuctioninput 5
Lets the seller accept or reject a pending standard auction whose highest bid stayed below the sale price.
Input2
- auctionIndexuint64
- Monotonic index of the standard auction awaiting the seller decision.
- acceptSaleuint8
- Set to `1` to accept the sale or `0` to reject it.
Output2
- refundedAmountuint64
- Amount refunded to the bidder when the seller rejects the sale.
- errorCodeEAuctionError
- Result code describing whether the seller decision was applied.
SetAuctionFeesinput 6
Overwrites the full auction fee configuration.
Input11
- privateAuctionFeesint64
- Fee charged when a private auction is created.
- publicAuctionCreationFeesint64
- Non-negative fee accumulated when a public auction is created and distributed at `END_EPOCH`.
- auctionCancellationFeeBasisPointsuint64
- Cancellation fee rate in basis points.
- managementFeeBasisPointsuint64
- Management fee rate in basis points.
- developmentFeeBasisPointsuint64
- Development fee rate in basis points.
- takeoverCoordinatorFeeBasisPointsuint64
- Takeover coordinator fee rate in basis points.
- shareholderDividendBasisPointsuint64
- Percentage of the shareholder fee distributed as dividends, in basis points.
- shareholderFeeBasisPointsTier1uint64
- Shareholder fee tier for auctions up to the first threshold.
- shareholderFeeBasisPointsTier2uint64
- Shareholder fee tier for auctions above the first threshold and up to the second threshold.
- shareholderFeeBasisPointsTier3uint64
- Shareholder fee tier for auctions above the second threshold and up to the third threshold.
- shareholderFeeBasisPointsTier4uint64
- Shareholder fee tier for auctions above the third threshold.
Output1
- errorCodeEAuctionError
- Result code describing whether the fee update succeeded.
SetAuctionFeesByManagementinput 7
Updates every auction fee except the takeover coordinator-specific splits.
Input9
- privateAuctionFeesint64
- Fee charged when a private auction is created.
- publicAuctionCreationFeesint64
- Non-negative fee accumulated when a public auction is created and distributed at `END_EPOCH`.
- auctionCancellationFeeBasisPointsuint64
- Cancellation fee rate in basis points.
- managementFeeBasisPointsuint64
- Management fee rate in basis points.
- developmentFeeBasisPointsuint64
- Development fee rate in basis points.
- shareholderFeeBasisPointsTier1uint64
- Shareholder fee tier for auctions up to the first threshold.
- shareholderFeeBasisPointsTier2uint64
- Shareholder fee tier for auctions above the first threshold and up to the second threshold.
- shareholderFeeBasisPointsTier3uint64
- Shareholder fee tier for auctions above the second threshold and up to the third threshold.
- shareholderFeeBasisPointsTier4uint64
- Shareholder fee tier for auctions above the third threshold.
Output1
- errorCodeEAuctionError
- Result code describing whether the fee update succeeded.
SetManagementinput 8
Reassigns the management role to another wallet.
Input1
- managementid
- New wallet that will receive management privileges.
Output1
- errorCodeEAuctionError
- Result code describing whether the management update succeeded.
SetFeeReserveGuardConfiginput 9
Configures the execution fee reserve guard that triggers an emergency pause on a sudden reserve drop.
Input2
- dropBasisPointsuint64
- Drop in the execution fee reserve, relative to the window baseline, that triggers an emergency pause, in basis points.
- windowSecondsuint64
- Rolling window used to evaluate the execution fee reserve drop, in seconds.
Output1
- errorCodeEAuctionError
- Result code describing whether the guard configuration update succeeded.
SetEmergencyPauseinput 10
Manually pauses or resumes every auction interaction, overriding the automatic execution fee reserve guard.
Input1
- pauseduint8
- Set to `1` to activate the emergency pause or `0` to resume normal operation.
Output1
- errorCodeEAuctionError
- Result code describing whether the emergency pause update succeeded.
Functions
GetAuctionByIndexinput 1
Returns the stored state of one auction.
Input1
- auctionIndexuint64
- Monotonic index of the auction to read.
Output2
- auctionAuctionView
- Serializable auction data stored for the requested auction.
- founduint8
- Flag indicating whether the auction record exists.
GetAuctionParticipantinput 2
Returns the stored bid state of one wallet in one auction.
Input2
- auctionIndexuint64
- Monotonic index of the auction that owns the participant record.
- participantid
- Wallet whose participant record should be returned.
Output2
- participantDataAuctionParticipantData
- Participant record for the requested wallet in the requested auction.
- founduint8
- Flag indicating whether the participant record exists.
GetTicksBeforeAuctionLaunchinput 3
Returns the remaining post-BEGIN_EPOCH pause before auction interactions resume.
Input0
None
Output1
- ticksuint32
- Number of ticks remaining before auction interactions resume after `BEGIN_EPOCH`.
GetAuctionFeesinput 4
Returns the current auction fee configuration stored in contract state.
Input0
None
Output11
- privateAuctionFeesint64
- Fee charged when a private auction is created.
- publicAuctionCreationFeesint64
- Non-negative fee accumulated when a public auction is created and distributed at `END_EPOCH`.
- auctionCancellationFeeBasisPointsuint64
- Cancellation fee rate in basis points.
- managementFeeBasisPointsuint64
- Management fee rate in basis points.
- developmentFeeBasisPointsuint64
- Development fee rate in basis points.
- takeoverCoordinatorFeeBasisPointsuint64
- Takeover coordinator fee rate in basis points.
- shareholderDividendBasisPointsuint64
- Percentage of the shareholder fee distributed as dividends, in basis points.
- shareholderFeeBasisPointsTier1uint64
- Shareholder fee tier for auctions up to the first threshold.
- shareholderFeeBasisPointsTier2uint64
- Shareholder fee tier for auctions above the first threshold and up to the second threshold.
- shareholderFeeBasisPointsTier3uint64
- Shareholder fee tier for auctions above the second threshold and up to the third threshold.
- shareholderFeeBasisPointsTier4uint64
- Shareholder fee tier for auctions above the third threshold.
GetFeeRecipientsinput 5
Returns the current wallets that receive auction fee transfers.
Input0
None
Output3
- managementid
- Wallet that receives the management fee.
- developmentid
- Wallet that receives the development fee.
- takeoverCoordinatorid
- Wallet that receives the takeover coordinator fee.
GetClosedAuctionHistoryinput 6
Returns the ring buffer with recently closed auctions.
Input0
None
Output2
- auctionIndicesuint64[1024]
- Ring buffer of auction indices recorded after finalization or cancellation.
- totalEntriesuint64
- Total number of history writes since initialization.
GetRouteAllFeesToDevelopmentinput 7
Returns whether the temporary fee override routes every fee to development.
Input0
None
Output1
- enableduint8
- `1` routes every fee to development, `0` uses the standard fee distribution.
GetContractStatsinput 8
Returns aggregate auction, participant, fee, and pause counters.
Input0
None
Output1
- statsContractStats
GetAuctionSummariesinput 9
Returns a page of auction summaries ordered by creation index.
Input2
- offsetuint64
- limituint64
Output3
- auctionsstruct[64]
- totalCountuint64
- returnedCountuint64
GetActiveAuctionIndicesinput 10
Returns a page of active or pending-seller-decision auction indices.
Input2
- offsetuint64
- limituint64
Output3
- auctionIndicesuint64[64]
- totalCountuint64
- returnedCountuint64
GetAuctionsBySellerinput 11
Returns a page of auction summaries created by a seller.
Input3
- sellerid
- offsetuint64
- limituint64
Output3
- auctionsstruct[64]
- totalCountuint64
- returnedCountuint64
GetAuctionByMetadataCidinput 12
Looks up the first auction matching a metadata CID.
Input1
- metadataIpfsCiduint8[64]
Output3
- auctionAuctionSummary
- auctionIndexuint64
- founduint8
GetAuctionSummariesByIndexBatchinput 13
Returns auction summaries for a batch of requested indices.
Input2
- auctionIndicesuint64[64]
- countuint64
Output3
- auctionsstruct[64]
- founduint8[64]
- returnedCountuint64
GetAuctionParticipantsinput 14
Returns a page of participants for one auction.
Input3
- auctionIndexuint64
- offsetuint64
- limituint64
Output3
- participantsstruct[64]
- totalCountuint64
- returnedCountuint64
GetUserParticipationsinput 15
Returns a page of historical auction participations for one wallet.
Input3
- participantid
- offsetuint64
- limituint64
Output3
- participationsstruct[64]
- totalCountuint64
- returnedCountuint64
GetLatestAuctionIndexinput 16
Returns the most recently created auction index when one exists.
Input0
None
Output2
- auctionIndexuint64
- founduint8
GetAuctionCountBySellerinput 17
Counts auctions created by a seller.
Input1
- sellerid
Output1
- countuint64
GetAuctionAtCreationSnapshotinput 18
Returns immutable creation-time fields for an auction.
Input1
- auctionIndexuint64
Output12
- sellerid
- createdAtDateAndTime
- auctionIndexuint64
- quantityForSaleuint64
- initialPriceuint64
- salePriceuint64
- minimumBidIncrementuint64
- buyNowPriceuint64
- auctionDurationSecondsuint64
- typeuint8
- visibilityuint8
- founduint8
GetBatchAuctionBidAvailabilityinput 19
Returns current read-only guidance for the next valid Batch Auction bid.
Input1
- auctionIndexuint64
- Monotonic index of the Batch Auction to inspect.
Output4
- minimumBidPriceuint64
- Lowest price per asset that can currently accept a new bid meeting the auction minimum quantity.
- availableQuantityuint64
- Quantity available at `minimumBidPrice`; zero when no valid new bid can be accepted.
- founduint8
- Flag indicating whether the auction exists.
- isAcceptingBidsuint8
- Flag indicating whether the auction is an active Batch Auction that can accept another valid bid.
CalculateBatchAuctionBidFeeinput 20
Calculates the escrow, accumulated fee, and reward required by Batch Auction bid arithmetic.
Input2
- bidQuantityuint64
- Number of assets requested by the prospective bid.
- bidAmountuint64
- Prospective price per asset, in qu.
Output3
- escrowAmountuint64
- Saturating product of `bidQuantity` and `bidAmount`.
- feeuint64
- Amount accumulated for distribution at `END_EPOCH` for an accepted bid: `max(100 - bidQuantity * bidAmount, 0)`.
- requiredRewarduint64
- Saturating sum of `escrowAmount` and `fee`.
GetPendingServiceFeePoolinput 21
Returns the aggregate shared fee amount awaiting `END_EPOCH` settlement.
Input0
None
Output1
- pendingServiceFeePooluint64
- Aggregate fee amount still awaiting `END_EPOCH` settlement.
GetFeeReserveGuardStateinput 22
Returns the current state of the execution fee reserve guard, including a live reserve reading.
Input0
None
Output7
- currentFeeReservesint64
- Live execution fee reserve value read from the system contract.
- feeReserveBaselinesint64
- Execution fee reserve value recorded at the start of the current guard window.
- feeReserveBaselineAtDateAndTime
- Start of the current guard window; invalid when the window has not been initialized.
- emergencyPausedAtDateAndTime
- Timestamp at which the emergency pause was triggered; invalid when not paused.
- dropBasisPointsuint64
- Configured drop in the execution fee reserve that triggers an emergency pause, in basis points.
- windowSecondsuint64
- Configured rolling window used to evaluate the execution fee reserve drop, in seconds.
- isEmergencyPauseduint8
- Flag indicating whether an emergency pause is currently blocking auction interactions.
GetPendingPayoutinput 23
Returns the QU obligation currently registered for one wallet.
Input1
- accountid
- Wallet whose unpaid QU amount should be returned.
Output1
- amountuint64
- QU currently owed to the requested wallet.
GetNostromoFeePoolinput 24
Returns every accumulator in the shared Nostromo fee pool.
Input0
None
Output2
- feePoolNostromoFeePool
- Detailed fee accumulators that have not yet been moved to dividends or recipient payout liabilities.
- totalAmountuint64
- Aggregate of every amount in `feePool`.
Custom types
AuctionAssetEntrystruct · 48 B
Fields2
- assetAsset
- Asset included in a lot or used as an access requirement.
- quantitysint64
- Lot quantity or minimum ownership quantity required for access.
AuctionCorestruct · 472 B
Fields25
- auctionLotItemsstruct[4]
- Assets and quantities offered by the auction.
- metadataIpfsCiduint8[64]
- Lowercase base32 CIDv1 stored in Pinata for the auction name and description metadata.
- sellerid
- Wallet that created the auction and offers the lot for sale.
- highestBidderid
- Wallet that currently holds the highest bid.
- createdAtDateAndTime
- Timestamp when the seller created the auction.
- lastBidAtDateAndTime
- Timestamp of the most recent accepted bid.
- sellerDecisionDeadlineDateAndTime
- Deadline for the seller to accept or reject a standard auction bid that ended between Initial Price and Sale Price.
- settledAtDateAndTime
- Timestamp when the auction was finalized, cancelled, or otherwise settled.
- quantityForSaleuint64
- Total sale units offered; batch auctions use asset quantity, standard auctions use one unit for the whole lot.
- allocatedQuantityuint64
- Quantity already assigned to winning bids after settlement.
- minimumPurchaseQuantityuint64
- Minimum quantity requested by each batch bid; always zero for standard auctions.
- initialPriceuint64
- Initial price for a standard auction; bids cannot start below this total price for the whole lot.
- salePriceuint64
- Minimum selling price per asset in a batch auction, or desired minimum total selling price for the whole lot in a standard auction.
- minimumBidIncrementuint64
- Minimum increment by which a new standard auction bid must exceed the current highest bid.
- buyNowPriceuint64
- Buy Now price that closes a standard auction immediately when matched or exceeded.
- highestBidPriceuint64
- Highest offered price per asset in a batch auction, or highest total offered price in a standard auction.
- highestBidQuantityuint64
- Quantity requested by the current highest bid.
- highestBidAmountuint64
- Total amount escrowed by the current highest bid; equal to the committed highest bid amount.
- auctionDurationSecondsuint64
- Auction duration in seconds, derived from the duration configured in days.
- auctionIndexuint64
- Monotonic identifier assigned when the auction is created.
- nextBidIndexuint64
- Monotonic per-auction bid index used to store every batch bid as a separate position.
- highestBidSlotIndexuint64
- Fixed-array slot of the current standard-auction highest bid, or `NOST_INVALID_PARTICIPANT_SLOT`.
- typeEAuctionType
- Auction House mode: Batch Auction or Standard Auction.
- visibilityEAuctionVisibility
- Auction visibility: public or restricted private access.
- statusEAuctionStatus
- Current lifecycle status of the auction, including the seller decision phase for standard auctions.
AuctionViewstruct · 1.2 KB
Fields5
- coreAuctionCore
- Fields shared with the persistent auction record.
- allowedBidderWalletsid[16]
- Wallet list used when the private auction restricts participation to predefined wallets.
- requiredAccessAssetsstruct[4]
- Asset and minimum-quantity alternatives used by private asset-based access.
- requiredAccessAssetCountuint64
- Number of populated entries in `requiredAccessAssets`.
- allowedBidderWalletCountuint64
- Number of populated entries in `allowedBidderWallets`.
AuctionParticipantDatastruct · 96 B
Fields11
- auctionIndexuint64
- Auction that owns this bid slot.
- bidIndexuint64
- Monotonic bid sequence inside the auction, used for FIFO tie-breaks.
- escrowedAmountuint64
- Amount currently locked in escrow for the participant bid.
- requestedQuantityuint64
- Quantity requested by the participant; standard auctions always use the whole lot quantity.
- allocatedQuantityuint64
- Quantity finally allocated to the participant after batch auction settlement.
- bidAmountuint64
- Offered price per asset in a batch auction, or total offered price for the whole lot in a standard auction.
- participantid
- Wallet that owns this participant record.
- lastBidTimeDateAndTime
- Timestamp of the participant's latest accepted bid.
- isUseduint8
- Marks whether this fixed array slot contains a reusable historical or active record.
- isActiveuint8
- Marks bids that are still eligible for allocation or standard highest-bid settlement.
- isWinningBiduint8
- Marks bids that remain inside the winning allocation after settlement.
ContractStatsstruct · 104 B
Fields17
- totalAuctionsCreateduint64
- activeAuctionCountuint64
- pendingSellerDecisionAuctionCountuint64
- finalizedAuctionCountuint64
- cancelledAuctionCountuint64
- participantCountuint64
- closedAuctionHistoryCounteruint64
- auctionShareholderDividendPooluint64
- pendingServiceFeePooluint64
- totalPendingQuPayoutsuint64
- retainedClosedAuctionCountuint64
- retainedParticipantHistoryCountuint64
- qxTransferFeeuint32
- routeAllFeesToDevelopmentuint8
- isAuctionTimerPauseduint8
- isPostBeginEpochPauseArmeduint8
- isEmergencyPauseduint8
AuctionSummarystruct · 224 B
Fields17
- metadataIpfsCiduint8[64]
- sellerid
- highestBidderid
- createdAtDateAndTime
- settledAtDateAndTime
- auctionIndexuint64
- quantityForSaleuint64
- allocatedQuantityuint64
- initialPriceuint64
- salePriceuint64
- buyNowPriceuint64
- highestBidPriceuint64
- highestBidQuantityuint64
- highestBidAmountuint64
- typeuint8
- visibilityuint8
- statusuint8
ParticipantSummarystruct · 80 B
Fields7
- participantid
- lastBidTimeDateAndTime
- bidAmountuint64
- escrowedAmountuint64
- requestedQuantityuint64
- allocatedQuantityuint64
- isWinningBiduint8
UserParticipationSummarystruct · 88 B
Fields8
- participantid
- lastBidTimeDateAndTime
- auctionIndexuint64
- bidAmountuint64
- escrowedAmountuint64
- requestedQuantityuint64
- allocatedQuantityuint64
- isWinningBiduint8
NostromoFeePoolstruct · 72 B
Fields9
- shareholderDividendTier1Amountuint64
- shareholderDividendTier2Amountuint64
- shareholderDividendTier3Amountuint64
- shareholderDividendTier4Amountuint64
- commonServiceFeeAmountuint64
- shareholderDividendAmountuint64
- managementAmountuint64
- developmentAmountuint64
- takeoverCoordinatorAmountuint64
investInfostruct · 24 B
Fields3
- investedAmountuint64
- claimedAmountuint64
- indexOfFundraisinguint32
projectInfostruct · 72 B
Fields8
- creatorid
- tokenNameuint64
- supplyOfTokenuint64
- startDateuint32
- endDateuint32
- numberOfYesuint32
- numberOfNouint32
- isCreatedFundarasingbit
fundaraisingInfostruct · 80 B
Fields18
- tokenPriceuint64
- soldAmountuint64
- requiredFundsuint64
- raisedFundsuint64
- indexOfProjectuint32
- firstPhaseStartDateuint32
- firstPhaseEndDateuint32
- secondPhaseStartDateuint32
- secondPhaseEndDateuint32
- thirdPhaseStartDateuint32
- thirdPhaseEndDateuint32
- listingStartDateuint32
- cliffEndDateuint32
- vestingEndDateuint32
- thresholduint8
- TGEuint8
- stepOfVestinguint8
- isCreatedTokenbit
AuctionRevenueBreakdownstruct · 64 B
Fields8
- sellerPayoutuint64
- Net amount that remains for the seller after every configured fee is applied.
- shareholderFeeBasisPointsuint64
- Shareholder fee tier selected for the provided gross amount.
- shareholderFeeAmountuint64
- Gross shareholder fee amount before dividend retention is split out.
- shareholderDividendAmountuint64
- Portion of the shareholder fee retained by the contract for dividend distribution.
- managementFeeAmountuint64
- Management wallet fee amount.
- developmentFeeAmountuint64
- Development wallet fee amount.
- takeoverCoordinatorBaseAmountuint64
- Base takeover coordinator fee charged directly from the gross amount.
- takeoverCoordinatorFeeAmountuint64
- Total takeover coordinator gain including retained shareholder-fee remainder.
AuctionServiceFeeBreakdownstruct · 32 B
Fields4
- shareholderDividendAmountuint64
- Portion retained by the contract for shareholder dividends.
- managementFeeAmountuint64
- Management wallet fee amount.
- developmentFeeAmountuint64
- Development wallet fee amount.
- takeoverCoordinatorFeeAmountuint64
- Takeover coordinator wallet fee amount.
NostromoProcedureLogstruct · 64 B
Fields7
- contractIndexuint32
- errorCodeuint32
- actorid
- amountsint64
- auctionIndexuint64
- procedureuint8
- _terminatorsint8
EAuctionError
enum · uint8
EAuctionType
enum · uint8
EAuctionVisibility
enum · uint8
EAuctionStatus
enum · uint8
