Skip to content

QVAULT

KAAA…XIUO
Index 10QVAULTDeployed138Destruction10000
Procedures
12
Functions
21
Custom types
9

Procedures

stakeinput 1

Stakes QCAP tokens to earn voting power and revenue Transfers QCAP tokens from user to contract and updates staking records

Input1

amountuint32

Output1

returnCodesint32
unStakeinput 2

Unstakes QCAP tokens, reducing voting power Transfers QCAP tokens back to user and updates staking records

Input1

amountuint32

Output1

returnCodesint32
submitGPinput 3

Submits a General Proposal (GP) for governance voting Requires minimum voting power (10000) or QVAULT shares Charges proposal fee and creates new proposal record

Input1

urluint8[256]

Output1

returnCodesint32
submitQCPinput 4

Submits a Quorum Change Proposal (QCP) to modify voting quorum percentage Requires minimum voting power (10000) or QVAULT shares Charges proposal fee and creates new proposal record

Input2

newQuorumPercentuint32
urluint8[256]

Output1

returnCodesint32
submitIPOPinput 5

Submits an IPO Participation Proposal (IPOP) to participate in IPO contracts Requires minimum voting power (10000) or QVAULT shares Requires sufficient reinvesting fund (minimum 1B qubic) Charges proposal fee and creates new proposal record

Input2

ipoContractIndexuint32
urluint8[256]

Output1

returnCodesint32
submitQEarnPinput 6

Submits a QEarn Participation Proposal (QEarnP) to invest in QEarn contracts Requires minimum voting power (10000) or QVAULT shares Maximum participation period is 52 epochs Requires sufficient reinvesting fund for the investment amount Charges proposal fee and creates new proposal record

Input3

amountPerEpochuint64
numberOfEpochuint32
urluint8[256]

Output1

returnCodesint32
submitFundPinput 7

Submits a Fundraising Proposal (FundP) to sell QCAP tokens Requires minimum voting power (10000) or QVAULT shares Validates yearly QCAP sale limits (2025-2027) Charges proposal fee and creates new proposal record

Input3

priceOfOneQcapuint64
amountOfQcapuint32
urluint8[256]

Output1

returnCodesint32
submitMKTPinput 8

Submits a Marketplace Proposal (MKTP) to purchase shares from marketplace Requires proposal fee payment Transfers shares from user to contract as collateral Creates new proposal record for voting

Input6

amountOfQubicuint64
shareNameuint64
amountOfQcapuint32
indexOfShareuint32
amountOfShareuint32
urluint8[256]

Output1

returnCodesint32
submitAlloPinput 9

Submits an Allocation Proposal (AlloP) to change revenue allocation percentages Requires minimum voting power (10000) or QVAULT shares Validates allocation percentages sum to 970 (per mille) Charges proposal fee and creates new proposal record

Input4

reinvesteduint32
burnuint32
distributeuint32
urluint8[256]

Output1

returnCodesint32
voteInProposalinput 11

Votes on active proposals of various types Supports 7 different proposal types with different voting logic Updates proposal vote counts and user voting history Prevents duplicate votes and enforces voting rules

Input4

priceOfIPOuint64
proposalTypeuint32
proposalIduint32
yesbit

Output1

returnCodesint32
buyQcapinput 12

Purchases QCAP tokens from active fundraising proposals Validates yearly QCAP sale limits (2025-2027) Finds best available price from passed fundraising proposals Transfers QCAP tokens to buyer and updates proposal sale amounts

Input1

amountuint32

Output1

returnCodesint32
TransferShareManagementRightsinput 13

Transfers share management rights to another contract Requires payment of transfer rights fee Releases shares from current contract to new managing contract Used for QCAP token transfers and other asset management

Input3

assetAsset
numberOfSharessint64
newManagingContractIndexuint32

Output2

transferredNumberOfSharessint64
returnCodesint32

Functions

getDatainput 1

Retrieves comprehensive contract state data Returns all important contract information including financial data, staking statistics, proposal counts, and configuration parameters

Input0

None

Output32

returnCodesint32
totalVotingPoweruint64
proposalCreateFunduint64
reinvestingFunduint64
totalEpochRevenueuint64
fundForBurnuint64
totalStakedQcapAmountuint64
qcapMarketCapuint64
raisedFundByQcapuint64
lastRoundPriceOfQcapuint64
revenueByQearnuint64
qcapSoldAmountuint32
shareholderDividenduint32
QCAPHolderPermilleuint32
reinvestingPermilleuint32
burnPermilleuint32
qcapBurnPermilleuint32
numberOfStakeruint32
numberOfVotingPoweruint32
numberOfGPuint32
numberOfQCPuint32
numberOfIPOPuint32
numberOfQEarnPuint32
numberOfFundPuint32
numberOfMKTPuint32
numberOfAlloPuint32
transferRightsFeeuint32
minQuorumRquint32
maxQuorumRquint32
totalQcapBurntAmountuint32
circulatingSupplyuint32
quorumPercentuint32
getStakedAmountAndVotingPowerinput 2

Retrieves staking information for a specific user address Returns both staked amount and voting power

Input1

addressid

Output3

returnCodesint32
stakedAmountuint32
votingPoweruint32
getGPinput 3

Retrieves information about a specific General Proposal (GP)

Input1

proposalIduint32

Output2

returnCodesint32
proposalGPInfo
getQCPinput 4

Retrieves information about a specific Quorum Change Proposal (QCP)

Input1

proposalIduint32

Output2

returnCodesint32
proposalQCPInfo
getIPOPinput 5

Retrieves information about a specific IPO Participation Proposal (IPOP)

Input1

proposalIduint32

Output2

returnCodesint32
proposalIPOPInfo
getQEarnPinput 6

Retrieves information about a specific QEarn Participation Proposal (QEarnP)

Input1

proposalIduint32

Output2

returnCodesint32
proposalQEarnPInfo
getFundPinput 7

Retrieves information about a specific Fundraising Proposal (FundP)

Input1

proposalIduint32

Output2

returnCodesint32
proposalFundPInfo
getMKTPinput 8

Retrieves information about a specific Marketplace Proposal (MKTP)

Input1

proposalIduint32

Output2

returnCodesint32
proposalMKTPInfo
getAlloPinput 9

Retrieves information about a specific Allocation Proposal (AlloP)

Input1

proposalIduint32

Output2

returnCodesint32
proposalAlloPInfo
getIdentitiesHvVtPwinput 11

Retrieves a paginated list of identities that have voting power Returns both addresses and their corresponding voting power amounts Useful for governance and analytics purposes

Input2

offsetuint32
countuint32

Output3

returnCodesint32
idListid[256]
amountListuint32[256]
ppCreationPowerinput 12

Checks if a user has the power to create proposals User must have either minimum voting power (10000) or QVAULT shares

Input1

addressid

Output2

returnCodesint32
statusbit
getQcapBurntAmountInLastEpochesinput 13

Calculates the total amount of QCAP tokens burned in recent epochs Useful for tracking token deflation and economic metrics Maximum lookback period is 100 epochs

Input1

numberOfLastEpochesuint32

Output2

returnCodesint32
burntAmountuint32
getAmountToBeSoldPerYearinput 14

Calculates the amount of QCAP tokens available for sale in a specific year Takes into account yearly limits and already sold amounts Returns 0 for years before 2025

Input1

yearuint32

Output1

amountuint32
getTotalRevenueInQcapinput 15

Retrieves the total historical revenue accumulated by the contract Represents the sum of all revenue across all epochs

Input0

None

Output1

revenueuint64
getRevenueInQcapPerEpochinput 16

Retrieves detailed revenue information for a specific epoch Includes total revenue, per-token revenue, and reinvestment amounts Useful for historical analysis and user reward calculations

Input1

epochuint32

Output4

epochTotalRevenueuint64
epochOneQcapRevenueuint64
epochOneQvaultRevenueuint64
epochReinvestAmountuint64
getRevenuePerShareinput 17

Retrieves the revenue amount for a specific contract index Used for tracking revenue distribution across different contracts

Input1

contractIndexuint32

Output1

revenueuint64
getAmountOfShareQvaultHoldinput 18

Retrieves the amount of a specific asset held by the QVAULT contract Useful for checking contract's asset holdings and portfolio composition

Input1

assetInfoAsset

Output1

amountuint32
getNumberOfHolderAndAvgAminput 19

Calculates the number of unique QCAP token holders and average amount per holder Accounts for duplicate possessors across different contracts Useful for token distribution analysis and economic metrics

Input0

None

Output3

returnCodesint32
numberOfQcapHolderuint32
avgAmountuint32
getAmountForQearnInUpcomingEpochinput 20

Calculates the total amount allocated for QEarn participation in a future epoch Only considers passed QEarn proposals that are still active Returns 0 for past or current epochs

Input1

epochuint32

Output2

returnCodesint32
amountuint64
getVoteInProposalinput 21

Retrieves voting decision in specific vote for a specific user address Returns voting decision in specific vote

Input3

userIDid
proposalTypeuint64
proposalIduint64

Output3

returnCodesint64
voteStatussint64
votingDecisionsint64
getStakeEpochFlaginput 22

Returns flag that indicates whether the user has staked or unstaked in the current epoch

Input1

userIDid

Output1

flaguint8

Custom types

GPInfostruct · 312 B

Fields8

proposerid
currentTotalVotingPoweruint32
numberOfYesuint32
numberOfNouint32
proposedEpochuint32
currentQuorumPercentuint32
urluint8[256]
resultuint8
QCPInfostruct · 320 B

Fields9

proposerid
currentTotalVotingPoweruint32
numberOfYesuint32
numberOfNouint32
proposedEpochuint32
currentQuorumPercentuint32
newQuorumPercentuint32
urluint8[256]
resultuint8
IPOPInfostruct · 336 B

Fields11

proposerid
totalWeightuint64
assignedFunduint64
currentTotalVotingPoweruint32
numberOfYesuint32
numberOfNouint32
proposedEpochuint32
ipoContractIndexuint32
currentQuorumPercentuint32
urluint8[256]
resultuint8
QEarnPInfostruct · 328 B

Fields11

proposerid
amountOfInvestPerEpochuint64
assignedFundPerEpochuint64
currentTotalVotingPoweruint32
numberOfYesuint32
numberOfNouint32
proposedEpochuint32
currentQuorumPercentuint32
urluint8[256]
numberOfEpochuint8
resultuint8
FundPInfostruct · 328 B

Fields11

proposerid
pricePerOneQcapuint64
currentTotalVotingPoweruint32
numberOfYesuint32
numberOfNouint32
amountOfQcapuint32
restSaleAmountuint32
proposedEpochuint32
currentQuorumPercentuint32
urluint8[256]
resultuint8
MKTPInfostruct · 344 B

Fields13

proposerid
amountOfQubicuint64
shareNameuint64
currentTotalVotingPoweruint32
numberOfYesuint32
numberOfNouint32
amountOfQcapuint32
currentQuorumPercentuint32
proposedEpochuint32
shareIndexuint32
amountOfShareuint32
urluint8[256]
resultuint8
AlloPInfostruct · 328 B

Fields11

proposerid
currentTotalVotingPoweruint32
numberOfYesuint32
numberOfNouint32
proposedEpochuint32
currentQuorumPercentuint32
reinvesteduint32
distributeduint32
burnQcapuint32
urluint8[256]
resultuint8
stakingInfostruct · 40 B

Fields2

stakerAddressid
amountuint32
voteStatusInfostruct · 16 B

Fields4

priceOfIPOuint64
proposalIduint32
proposalTypeuint8
decisionbit
Glyph explorer · direct-peer Qubic index
OpenAPIIndexer statusAmounts are integer QUBIC · timestamps local unless noted