Source on GitHub

QRaffle

Idx 19·Since e203·2 ABI versions
TAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAXRFC
8Procedures
9Functions
0Structs
2ABI Versions

Current ABI

e203Open Snapshot →

Procedures

8State-changing
procregisterInSystem#1
in 1Bout 4B
input1 field · 1B
nametypeoffsetbyteslayout
useQXMRuint801
output1 field · 4B
nametypeoffsetbyteslayout
returnCodesint3204
proclogoutInSystem#2
in 0Bout 4B
output1 field · 4B
nametypeoffsetbyteslayout
returnCodesint3204
procsubmitEntryAmount#3
in 8Bout 4B
input1 field · 8B
nametypeoffsetbyteslayout
amountuint6408
output1 field · 4B
nametypeoffsetbyteslayout
returnCodesint3204
procsubmitProposal#4
in 48Bout 4B
input3 fields · 48B
nametypeoffsetbyteslayout
tokenIssuerid032
tokenNameuint64328
entryAmountuint64408
output1 field · 4B
nametypeoffsetbyteslayout
returnCodesint3204
procvoteInProposal#5
in 5Bout 4B
input2 fields · 5B
nametypeoffsetbyteslayout
indexOfProposaluint3204
yesuint841
output1 field · 4B
nametypeoffsetbyteslayout
returnCodesint3204
procdepositInQuRaffle#6
in 0Bout 4B
output1 field · 4B
nametypeoffsetbyteslayout
returnCodesint3204
procdepositInTokenRaffle#7
in 4Bout 4B
input1 field · 4B
nametypeoffsetbyteslayout
indexOfTokenRaffleuint3204
output1 field · 4B
nametypeoffsetbyteslayout
returnCodesint3204
procTransferShareManagementRights#8
in 52Bout 8B
input4 fields · 52B
nametypeoffsetbyteslayout
tokenIssuerid032
tokenNameuint64328
numberOfSharessint64408
newManagingContractIndexuint32484
output1 field · 8B
nametypeoffsetbyteslayout
transferredNumberOfSharessint6408

Functions

9Read-only
funcgetRegisters#1
in 8Bout 36B
input2 fields · 8B
nametypeoffsetbyteslayout
offsetuint3204
limituint3244
output2 fields · 36B
nametypeoffsetbyteslayout
register1id032
returnCodesint32324
funcgetAnalytics#2
in 0Bout 92B
output15 fields · 92B
nametypeoffsetbyteslayout
currentQuRaffleAmountuint6408
totalBurnAmountuint6488
totalCharityAmountuint64168
totalShareholderAmountuint64248
totalRegisterAmountuint64328
totalFeeAmountuint64408
totalWinnerAmountuint64488
largestWinnerAmountuint64568
numberOfRegistersuint32644
numberOfProposalsuint32684
numberOfQuRaffleMembersuint32724
numberOfActiveTokenRaffleuint32764
numberOfEndedTokenRaffleuint32804
numberOfEntryAmountSubmitteduint32844
returnCodesint32884
funcgetActiveProposal#3
in 4Bout 92B
input1 field · 4B
nametypeoffsetbyteslayout
indexOfProposaluint3204
output7 fields · 92B
nametypeoffsetbyteslayout
tokenIssuerid032
proposerid3232
tokenNameuint64648
entryAmountuint64728
nYesuint32804
nNouint32844
returnCodesint32884
funcgetEndedTokenRaffle#4
in 4Bout 96B
input1 field · 4B
nametypeoffsetbyteslayout
indexOfRaffleuint3204
output8 fields · 96B
nametypeoffsetbyteslayout
epochWinnerid032
tokenIssuerid3232
tokenNameuint64648
entryAmountuint64728
numberOfMembersuint32804
winnerIndexuint32844
epochuint32884
returnCodesint32924
funcgetEndedQuRaffle#5
in 4Bout 64B
input1 field · 4B
nametypeoffsetbyteslayout
epochuint3204
output7 fields · 64B
nametypeoffsetbyteslayout
epochWinnerid032
receivedAmountuint64328
entryAmountuint64408
numberOfMembersuint32484
winnerIndexuint32524
numberOfDaoMembersuint32564
returnCodesint32604
funcgetActiveTokenRaffle#6
in 4Bout 56B
input1 field · 4B
nametypeoffsetbyteslayout
indexOfTokenRaffleuint3204
output5 fields · 56B
nametypeoffsetbyteslayout
tokenIssuerid032
tokenNameuint64328
entryAmountuint64408
numberOfMembersuint32484
returnCodesint32524
funcgetEpochRaffleIndexes#7
in 4Bout 12B
input1 field · 4B
nametypeoffsetbyteslayout
epochuint3204
output3 fields · 12B
nametypeoffsetbyteslayout
StartIndexuint3204
EndIndexuint3244
returnCodesint3284
funcgetQuRaffleEntryAmountPerUser#8
in 32Bout 12B
input1 field · 32B
nametypeoffsetbyteslayout
userid032
output2 fields · 12B
nametypeoffsetbyteslayout
entryAmountuint6408
returnCodesint3284
funcgetQuRaffleEntryAverageAmount#9
in 0Bout 12B
output2 fields · 12B
nametypeoffsetbyteslayout
entryAverageAmountuint6408
returnCodesint3284

Raw JSON

/v1/contracts/19
contracts/19.json
{
  "contractIndex": 19,
  "contractName": "QRaffle",
  "contractAddress": "TAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAXRFC",
  "epoch": 203,
  "coreVersion": "v1.281.0",
  "structs": {},
  "procedures": [
    {
      "kind": "procedure",
      "inputType": 1,
      "name": "registerInSystem",
      "inputFields": [
        {
          "name": "useQXMR",
          "type": "uint8",
          "offset": 0,
          "byteLength": 1
        }
      ],
      "outputFields": [
        {
          "name": "returnCode",
          "type": "sint32",
          "offset": 0,
          "byteLength": 4
        }
      ],
      "inputSize": 1,
      "outputSize": 4
    },
    {
      "kind": "procedure",
      "inputType": 2,
      "name": "logoutInSystem",
      "inputFields": [],
      "outputFields": [
        {
          "name": "returnCode",
          "type": "sint32",
          "offset": 0,
          "byteLength": 4
        }
      ],
      "inputSize": 0,
      "outputSize": 4
    },
    {
      "kind": "procedure",
      "inputType": 3,
      "name": "submitEntryAmount",
      "inputFields": [
        {
          "name": "amount",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "outputFields": [
        {
          "name": "returnCode",
          "type": "sint32",
          "offset": 0,
          "byteLength": 4
        }
      ],
      "inputSize": 8,
      "outputSize": 4
    },
    {
      "kind": "procedure",
      "inputType": 4,
      "name": "submitProposal",
      "inputFields": [
        {
          "name": "tokenIssuer",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        },
        {
          "name": "tokenName",
          "type": "uint64",
          "offset": 32,
          "byteLength": 8
        },
        {
          "name": "entryAmount",
          "type": "uint64",
          "offset": 40,
          "byteLength": 8
        }
      ],
      "outputFields": [
        {
          "name": "returnCode",
          "type": "sint32",
          "offset": 0,
          "byteLength": 4
        }
      ],
      "inputSize": 48,
      "outputSize": 4
    },
    {
      "kind": "procedure",
      "inputType": 5,
      "name": "voteInProposal",
      "inputFields": [
        {
          "name": "indexOfProposal",
          "type": "uint32",
          "offset": 0,
          "byteLength": 4
        },
        {
          "name": "yes",
          "type": "uint8",
          "offset": 4,
          "byteLength": 1
        }
      ],
      "outputFields": [
        {
          "name": "returnCode",
          "type": "sint32",
          "offset": 0,
          "byteLength": 4
        }
      ],
      "inputSize": 5,
      "outputSize": 4
    },
    {
      "kind": "procedure",
      "inputType": 6,
      "name": "depositInQuRaffle",
      "inputFields": [],
      "outputFields": [
        {
          "name": "returnCode",
          "type": "sint32",
          "offset": 0,
          "byteLength": 4
        }
      ],
      "inputSize": 0,
      "outputSize": 4
    },
    {
      "kind": "procedure",
      "inputType": 7,
      "name": "depositInTokenRaffle",
      "inputFields": [
        {
          "name": "indexOfTokenRaffle",
          "type": "uint32",
          "offset": 0,
          "byteLength": 4
        }
      ],
      "outputFields": [
        {
          "name": "returnCode",
          "type": "sint32",
          "offset": 0,
          "byteLength": 4
        }
      ],
      "inputSize": 4,
      "outputSize": 4
    },
    {
      "kind": "procedure",
      "inputType": 8,
      "name": "TransferShareManagementRights",
      "inputFields": [
        {
          "name": "tokenIssuer",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        },
        {
          "name": "tokenName",
          "type": "uint64",
          "offset": 32,
          "byteLength": 8
        },
        {
          "name": "numberOfShares",
          "type": "sint64",
          "offset": 40,
          "byteLength": 8
        },
        {
          "name": "newManagingContractIndex",
          "type": "uint32",
          "offset": 48,
          "byteLength": 4
        }
      ],
      "outputFields": [
        {
          "name": "transferredNumberOfShares",
          "type": "sint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "inputSize": 52,
      "outputSize": 8
    }
  ],
  "functions": [
    {
      "kind": "function",
      "inputType": 1,
      "name": "getRegisters",
      "inputFields": [
        {
          "name": "offset",
          "type": "uint32",
          "offset": 0,
          "byteLength": 4
        },
        {
          "name": "limit",
          "type": "uint32",
          "offset": 4,
          "byteLength": 4
        }
      ],
      "outputFields": [
        {
          "name": "register1",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        },
        {
          "name": "returnCode",
          "type": "sint32",
          "offset": 32,
          "byteLength": 4
        }
      ],
      "inputSize": 8,
      "outputSize": 36
    },
    {
      "kind": "function",
      "inputType": 2,
      "name": "getAnalytics",
      "inputFields": [],
      "outputFields": [
        {
          "name": "currentQuRaffleAmount",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "totalBurnAmount",
          "type": "uint64",
          "offset": 8,
          "byteLength": 8
        },
        {
          "name": "totalCharityAmount",
          "type": "uint64",
          "offset": 16,
          "byteLength": 8
        },
        {
          "name": "totalShareholderAmount",
          "type": "uint64",
          "offset": 24,
          "byteLength": 8
        },
        {
          "name": "totalRegisterAmount",
          "type": "uint64",
          "offset": 32,
          "byteLength": 8
        },
        {
          "name": "totalFeeAmount",
          "type": "uint64",
          "offset": 40,
          "byteLength": 8
        },
        {
          "name": "totalWinnerAmount",
          "type": "uint64",
          "offset": 48,
          "byteLength": 8
        },
        {
          "name": "largestWinnerAmount",
          "type": "uint64",
          "offset": 56,
          "byteLength": 8
        },
        {
          "name": "numberOfRegisters",
          "type": "uint32",
          "offset": 64,
          "byteLength": 4
        },
        {
          "name": "numberOfProposals",
          "type": "uint32",
          "offset": 68,
          "byteLength": 4
        },
        {
          "name": "numberOfQuRaffleMembers",
          "type": "uint32",
          "offset": 72,
          "byteLength": 4
        },
        {
          "name": "numberOfActiveTokenRaffle",
          "type": "uint32",
          "offset": 76,
          "byteLength": 4
        },
        {
          "name": "numberOfEndedTokenRaffle",
          "type": "uint32",
          "offset": 80,
          "byteLength": 4
        },
        {
          "name": "numberOfEntryAmountSubmitted",
          "type": "uint32",
          "offset": 84,
          "byteLength": 4
        },
        {
          "name": "returnCode",
          "type": "sint32",
          "offset": 88,
          "byteLength": 4
        }
      ],
      "inputSize": 0,
      "outputSize": 92
    },
    {
      "kind": "function",
      "inputType": 3,
      "name": "getActiveProposal",
      "inputFields": [
        {
          "name": "indexOfProposal",
          "type": "uint32",
          "offset": 0,
          "byteLength": 4
        }
      ],
      "outputFields": [
        {
          "name": "tokenIssuer",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        },
        {
          "name": "proposer",
          "type": "id",
          "offset": 32,
          "byteLength": 32
        },
        {
          "name": "tokenName",
          "type": "uint64",
          "offset": 64,
          "byteLength": 8
        },
        {
          "name": "entryAmount",
          "type": "uint64",
          "offset": 72,
          "byteLength": 8
        },
        {
          "name": "nYes",
          "type": "uint32",
          "offset": 80,
          "byteLength": 4
        },
        {
          "name": "nNo",
          "type": "uint32",
          "offset": 84,
          "byteLength": 4
        },
        {
          "name": "returnCode",
          "type": "sint32",
          "offset": 88,
          "byteLength": 4
        }
      ],
      "inputSize": 4,
      "outputSize": 92
    },
    {
      "kind": "function",
      "inputType": 4,
      "name": "getEndedTokenRaffle",
      "inputFields": [
        {
          "name": "indexOfRaffle",
          "type": "uint32",
          "offset": 0,
          "byteLength": 4
        }
      ],
      "outputFields": [
        {
          "name": "epochWinner",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        },
        {
          "name": "tokenIssuer",
          "type": "id",
          "offset": 32,
          "byteLength": 32
        },
        {
          "name": "tokenName",
          "type": "uint64",
          "offset": 64,
          "byteLength": 8
        },
        {
          "name": "entryAmount",
          "type": "uint64",
          "offset": 72,
          "byteLength": 8
        },
        {
          "name": "numberOfMembers",
          "type": "uint32",
          "offset": 80,
          "byteLength": 4
        },
        {
          "name": "winnerIndex",
          "type": "uint32",
          "offset": 84,
          "byteLength": 4
        },
        {
          "name": "epoch",
          "type": "uint32",
          "offset": 88,
          "byteLength": 4
        },
        {
          "name": "returnCode",
          "type": "sint32",
          "offset": 92,
          "byteLength": 4
        }
      ],
      "inputSize": 4,
      "outputSize": 96
    },
    {
      "kind": "function",
      "inputType": 5,
      "name": "getEndedQuRaffle",
      "inputFields": [
        {
          "name": "epoch",
          "type": "uint32",
          "offset": 0,
          "byteLength": 4
        }
      ],
      "outputFields": [
        {
          "name": "epochWinner",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        },
        {
          "name": "receivedAmount",
          "type": "uint64",
          "offset": 32,
          "byteLength": 8
        },
        {
          "name": "entryAmount",
          "type": "uint64",
          "offset": 40,
          "byteLength": 8
        },
        {
          "name": "numberOfMembers",
          "type": "uint32",
          "offset": 48,
          "byteLength": 4
        },
        {
          "name": "winnerIndex",
          "type": "uint32",
          "offset": 52,
          "byteLength": 4
        },
        {
          "name": "numberOfDaoMembers",
          "type": "uint32",
          "offset": 56,
          "byteLength": 4
        },
        {
          "name": "returnCode",
          "type": "sint32",
          "offset": 60,
          "byteLength": 4
        }
      ],
      "inputSize": 4,
      "outputSize": 64
    },
    {
      "kind": "function",
      "inputType": 6,
      "name": "getActiveTokenRaffle",
      "inputFields": [
        {
          "name": "indexOfTokenRaffle",
          "type": "uint32",
          "offset": 0,
          "byteLength": 4
        }
      ],
      "outputFields": [
        {
          "name": "tokenIssuer",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        },
        {
          "name": "tokenName",
          "type": "uint64",
          "offset": 32,
          "byteLength": 8
        },
        {
          "name": "entryAmount",
          "type": "uint64",
          "offset": 40,
          "byteLength": 8
        },
        {
          "name": "numberOfMembers",
          "type": "uint32",
          "offset": 48,
          "byteLength": 4
        },
        {
          "name": "returnCode",
          "type": "sint32",
          "offset": 52,
          "byteLength": 4
        }
      ],
      "inputSize": 4,
      "outputSize": 56
    },
    {
      "kind": "function",
      "inputType": 7,
      "name": "getEpochRaffleIndexes",
      "inputFields": [
        {
          "name": "epoch",
          "type": "uint32",
          "offset": 0,
          "byteLength": 4
        }
      ],
      "outputFields": [
        {
          "name": "StartIndex",
          "type": "uint32",
          "offset": 0,
          "byteLength": 4
        },
        {
          "name": "EndIndex",
          "type": "uint32",
          "offset": 4,
          "byteLength": 4
        },
        {
          "name": "returnCode",
          "type": "sint32",
          "offset": 8,
          "byteLength": 4
        }
      ],
      "inputSize": 4,
      "outputSize": 12
    },
    {
      "kind": "function",
      "inputType": 8,
      "name": "getQuRaffleEntryAmountPerUser",
      "inputFields": [
        {
          "name": "user",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        }
      ],
      "outputFields": [
        {
          "name": "entryAmount",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "returnCode",
          "type": "sint32",
          "offset": 8,
          "byteLength": 4
        }
      ],
      "inputSize": 32,
      "outputSize": 12
    },
    {
      "kind": "function",
      "inputType": 9,
      "name": "getQuRaffleEntryAverageAmount",
      "inputFields": [],
      "outputFields": [
        {
          "name": "entryAverageAmount",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "returnCode",
          "type": "sint32",
          "offset": 8,
          "byteLength": 4
        }
      ],
      "inputSize": 0,
      "outputSize": 12
    }
  ],
  "effectiveFromEpoch": 203,
  "effectiveToEpoch": null
}