- Procedures
- 16
- Functions
- 14
- Notifications
- 1
- Custom types
- 4
Procedures
SendToManyV1input 1
Send qu from a single address to multiple addresses
Input50
- dst0id
- dst1id
- dst2id
- dst3id
- dst4id
- dst5id
- dst6id
- dst7id
- dst8id
- dst9id
- dst10id
- dst11id
- dst12id
- dst13id
- dst14id
- dst15id
- dst16id
- dst17id
- dst18id
- dst19id
- dst20id
- dst21id
- dst22id
- dst23id
- dst24id
- amt0sint64
- amt1sint64
- amt2sint64
- amt3sint64
- amt4sint64
- amt5sint64
- amt6sint64
- amt7sint64
- amt8sint64
- amt9sint64
- amt10sint64
- amt11sint64
- amt12sint64
- amt13sint64
- amt14sint64
- amt15sint64
- amt16sint64
- amt17sint64
- amt18sint64
- amt19sint64
- amt20sint64
- amt21sint64
- amt22sint64
- amt23sint64
- amt24sint64
Output1
- returnCodesint32
BurnQubicinput 2
Practicing burning qubic in the QChurch
Input1
- amountsint64
Output1
- amountsint64
SendToManyBenchmarkinput 3
Send n transfers of 1 qu each from a single address to a specified number of addresses. If there are not enough entities in the spectrum, a single entity might be chosen multiple times.
Input2
- dstCountsint64
- numTransfersEachsint64
Output3
- dstCountsint64
- returnCodesint32
- totalsint64
CreatePollinput 4
Create a new poll with min amount, and GitHub link, and list of allowed assets
Input6
- poll_nameid
- poll_typeuint64
- min_amountuint64
- github_linkuint8[256]
- allowed_assetsstruct[16]
- num_assetsuint64
Output1
- poll_iduint64
Voteinput 5
Cast a vote in a poll, charging 100 QUs, limiting options to 0-63
Input4
- poll_iduint64
- addressid
- amountuint64
- chosen_optionuint64
Output1
- successbit
CancelPollinput 6
Input1
- poll_iduint64
Output1
- successbit
DistributeQuToShareholdersinput 7
Input1
- assetAsset
Output4
- shareholderssint64
- totalSharessint64
- amountPerSharesint64
- feessint64
BurnQubicForContractinput 8
Burn the qubic passed as invocation reward for the contract specified in the input
Input1
- contractIndexBurnedForuint32
Output1
- amountsint64
TransferSharesToManyV1input 9
Transfer asset shares from a single address to multiple addresses (up to 24)
Input50
- issuerid
- assetNameuint64
- dst0id
- dst1id
- dst2id
- dst3id
- dst4id
- dst5id
- dst6id
- dst7id
- dst8id
- dst9id
- dst10id
- dst11id
- dst12id
- dst13id
- dst14id
- dst15id
- dst16id
- dst17id
- dst18id
- dst19id
- dst20id
- dst21id
- dst22id
- dst23id
- amt0sint64
- amt1sint64
- amt2sint64
- amt3sint64
- amt4sint64
- amt5sint64
- amt6sint64
- amt7sint64
- amt8sint64
- amt9sint64
- amt10sint64
- amt11sint64
- amt12sint64
- amt13sint64
- amt14sint64
- amt15sint64
- amt16sint64
- amt17sint64
- amt18sint64
- amt19sint64
- amt20sint64
- amt21sint64
- amt22sint64
- amt23sint64
Output1
- returnCodesint32
TransferSharesManagementRightsinput 10
Releases share management rights from QUTIL to another contract. This procedure is used when a user's shares are currently managed by QUTIL and the user wants to transfer those management rights to a different managing contract, such as QX. Typical flow: - Shares are first moved under QUTIL management. - QUTIL performs share operations while it manages them. - The user later calls this procedure to release management rights from QUTIL to another contract.
Input3
- assetAsset
- numberOfSharessint64
- newManagingContractIndexuint32
Output1
- transferredNumberOfSharessint64
QueryPriceOracleinput 100
Input2
- priceOracleQueryOracleQuery
- timeoutMillisecondsuint32
Output1
- oracleQueryIdsint64
SubscribePriceOracleinput 101
Input3
- priceOracleQueryOracleQuery
- subscriptionPeriodMillisecondsuint32
- notifyPreviousValuebit
Output1
- oracleSubscriptionIdsint32
UnsubscribeOracleinput 102
Input1
- subscriptionIdsint32
Output1
- successbit
TriggerOCinput 103
Input1
- valueuint64
Output1
- invocationIdsint64
SetShareholderProposalinput 65534
Input1
- proposalProposalDataYesNo
Output1
- valueuint16
SetShareholderVotesinput 65535
Input1
- voteProposalMultiVoteDataV1
Output1
- valuebit
Functions
GetSendToManyV1Feeinput 1
********************************** *********CORE FUNCTIONS*********** **********************************
Input0
None
Output1
- feesint64
GetTotalNumberOfAssetSharesinput 2
Input2
- issuerid
- assetNameuint64
Output1
- valuesint64
GetCurrentResultinput 3
Get the current voting results for a poll
Input1
- poll_iduint64
Output3
- resultuint64[64]
- voter_countuint64[64]
- is_activeuint64
GetPollsByCreatorinput 4
Get all poll IDs created by a specific address
Input1
- creatorid
Output2
- poll_idsuint64[64]
- countuint64
GetCurrentPollIdinput 5
Get the current poll ID
Input0
None
Output3
- current_poll_iduint64
- active_poll_idsuint64[64]
- active_countuint64
GetPollInfoinput 6
Input1
- poll_iduint64
Output3
- founduint64
- poll_infoPoll
- poll_linkuint8[256]
GetFeesinput 7
Input0
None
Output11
- smt1InvocationFeesint64
- pollCreationFeesint64
- pollVoteFeesint64
- distributeQuToShareholderFeePerShareholdersint64
- shareholderProposalFeesint64
- _futureFeePlaceholder0sint64
- _futureFeePlaceholder1sint64
- _futureFeePlaceholder2sint64
- _futureFeePlaceholder3sint64
- _futureFeePlaceholder4sint64
- _futureFeePlaceholder5sint64
QueryFeeReserveinput 8
Query the amount of qubic in the fee reserve of the specified contract
Input1
- contractIndexuint32
Output1
- reserveAmountsint64
GetBalances16input 9
Input1
- publicKeysid[16]
Output1
- balancessint64[16]
GetShareholderProposalFeesinput 65531
Input0
None
Output2
- setProposalFeesint64
- setVoteFeesint64
GetShareholderProposalIndicesinput 65532
Input2
- activeProposalsbit
- prevProposalIndexsint32
Output2
- numOfIndicesuint16
- indicesuint16[64]
GetShareholderProposalinput 65533
Input1
- proposalIndexuint16
Output2
- proposalProposalDataYesNo
- proposerPubicKeyid
GetShareholderVotesinput 65534
Input2
- voterid
- proposalIndexuint16
Output1
- valueProposalMultiVoteDataV1
GetShareholderVotingResultsinput 65535
Input1
- proposalIndexuint16
Output1
- valueProposalSummarizedVotingDataV1
Notifications
NotifyPriceOracleReplynotification
Input7
- queryIdsint64
- subscriptionIdsint32
- statusuint8
- __reserved0uint8
- __reserved1uint16
- numeratorsint64
- denominatorsint64
Output0
None
Custom types
Pollstruct · 736 B
Fields7
- poll_nameid
- poll_typeuint64
- min_amountuint64
- is_activeuint64
- creatorid
- allowed_assetsstruct[16]
- num_assetsuint64
Loggerstruct · 88 B
Fields7
- contractIduint32
- paddinguint32
- srcid
- dstid
- amtsint64
- logtypeuint32
- _terminatorsint8
SendToManyBenchmarkLogstruct · 64 B
Fields6
- contractIduint32
- logTypeuint32
- startIdid
- dstCountsint64
- numTransfersEachsint64
- _terminatorsint8
Voterstruct · 48 B
Fields3
- addressid
- amountuint64
- chosen_optionuint64
