Skip to content

QUOTTERY

CAAA…CNKL
Index 2QTRYDeployed72Destruction10000
Procedures
17
Functions
8
Custom types
13

Procedures

CreateEventinput 1

Input1

qeiQtryEventInfo

Output0

None

AddToAskOrderinput 2

Allows a user to place an ask (sell) order for a position they own.

Input4

eventIduint64
optionuint64
amountuint64
pricesint64

Output1

statussint64
RemoveAskOrderinput 3

Allows a user to remove an existing ask (sell) order from the order book.

Input4

eventIduint64
optionuint64
amountuint64
pricesint64

Output1

statussint64
AddToBidOrderinput 4

Allows a user to place a bid (buy) order, locking funds to back it. Triggers the matching engine after the order is placed.

Input4

eventIduint64
optionuint64
amountsint64
pricesint64

Output1

statussint64
RemoveBidOrderinput 5

Allows a user to remove an existing bid (buy) order and get a refund of their locked funds.

Input4

eventIduint64
optionuint64
amountuint64
pricesint64

Output1

statussint64
PublishResultinput 6

Publish result of a event (GO only) GO is required to LOCK mDepositAmountForDispute for publishing each result

Input2

eventIduint64
optionuint64

Output0

None

TryFinalizeEventinput 7

Input1

eventIduint64

Output0

None

Disputeinput 8

Input1

eventIduint64

Output0

None

ResolveDisputeinput 9

Input2

eventIduint64
votesint64

Output0

None

UserClaimRewardinput 10

Input1

eventIduint64

Output0

None

GOForceClaimRewardinput 11

Input2

eventIduint64
pubkeysid[16]

Output0

None

TransferQUSDinput 12

Input2

receiverid
amountsint64

Output1

amountuint64
TransferShareManagementRightsinput 13

Input3

assetAsset
numberOfSharessint64
newManagingContractIndexuint32

Output1

transferredNumberOfSharessint64
CleanMemoryAndDistributeRewardinput 14

Input0

None

Output0

None

TransferQTRYGOVinput 15

Input2

receiverid
amountsint64

Output1

amountuint64
UpdateFeeDiscountListinput 20

Input3

userIdid
newFeeRateuint64
opsuint64

Output0

None

ProposalVoteinput 100

Input1

proposedQtryGOV

Output0

None

Functions

BasicInfoinput 1

********************************** *********VIEW FUNCTIONS*********** **********************************

Input0

None

Output11

operationFeeuint64
shareholderFeeuint64
burnFeeuint64
nIssuedEventuint64
shareholdersRevenueuint64
operationRevenueuint64
burnedAmountuint64
mFeePerDayuint64
antiSpamAmountuint64
depositAmountForDisputeuint64
gameOperatorid
GetEventInfoinput 2

@param eventId

Input1

eventIduint64

Output6

qeiQtryEventInfo
resultByGOsint32
publishTickTimeuint32
disputerInfoDepositInfo
computorsVote0uint32
computorsVote1uint32
GetOrdersinput 3

PUBLIC VIEW FUNCTION Retrieves a paginated list of orders from the order book for a specific side of an event.

Input4

eventIduint64
optionuint64
isBiduint64
offsetuint64

Output1

ordersstruct[256]
GetActiveEventinput 4

@return a list of active eventID.

Input0

None

Output1

recentActiveEventuint64[4096]
GetEventInfoBatchinput 5

Retrieves the metadata for 64 specific events.

Input1

eventIdsuint64[64]

Output1

aqeistruct[64]
GetUserPositioninput 6

PUBLIC VIEW FUNCTION Returns all positions of an ID

Input1

uidid

Output2

countsint64
pstruct[1024]
GetApprovedAmountinput 7

Input1

pkid

Output1

amountuint64
GetTopProposalsinput 8

Returns the top 3 governance proposals by total weighted votes in the current epoch.

Input0

None

Output2

topstruct[4]
uniqueCountsint32

Custom types

QtryEventInfostruct · 280 B

Fields6

eiduint64
openDateDateAndTime
endDateDateAndTime
descid[4]
option0Descid[2]
option1Descid[2]
DepositInfostruct · 40 B

Fields2

pubkeyid
amountsint64
QtryOrderstruct · 40 B

Fields2

entityid
amountsint64
QtryGOVstruct · 72 B

Fields6

mShareHolderFeeuint64
mBurnFeeuint64
mOperationFeeuint64
mFeePerDaysint64
mDepositAmountForDisputesint64
mOperationIdid
QuotteryLoggerstruct · 12 B

Fields3

_contractIndexuint32
_typeuint32
_terminatorsint8
QuotteryLoggerWithDatastruct · 48 B

Fields4

_contractIndexuint32
_typeuint32
dataid
_terminatorsint8
QuotteryTradeLoggerstruct · 136 B

Fields12

_contractIndexuint32
_typeuint32
Aid
Bid
eiduint64
optionuint64
padding0uint64
padding1uint64
amountsint64
price0sint64
price1sint64
_terminatorsint8
DisputeResolveInfostruct · 3.0 KB

Fields2

epochDatauint16[1024]
voteDatasint8[1024]
OrderInfostruct · 24 B

Fields3

eiduint64
optionuint64
tradeBituint64
DetailedOrderInfostruct · 72 B

Fields5

qoQtryOrder
eiduint64
pricesint64
indexsint64
justAddedbit
proposalVoterstruct · 120 B

Fields4

publicKeyid
proposedQtryGOV
amountOfSharesuint64
proposedEpochuint16
GovHolderstruct · 40 B

Fields2

publicKeyid
amountsint64
ProposalEntrystruct · 112 B

Fields3

hashid
proposedQtryGOV
votessint64
Glyph explorer · direct-peer Qubic index
OpenAPIIndexer statusAmounts are integer QUBIC · timestamps local unless noted