Source on GitHub

Qusino

Idx 26·Since e208·1 ABI version
ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYYHH
8Procedures
5Functions
2Structs
1ABI Version

Current ABI

e208Open Snapshot →

Procedures

8State-changing
procearnSTAR#1
in 8Bout 4B
input1 field · 8B
nametypeoffsetbyteslayout
amountuint6408
output1 field · 4B
nametypeoffsetbyteslayout
returnCodesint3204
proctransferSTAROrQSC#2
in 41Bout 4B
input3 fields · 41B
nametypeoffsetbyteslayout
destid032
amountuint64328
typeuint8401
output1 field · 4B
nametypeoffsetbyteslayout
returnCodesint3204
procsubmitGame#3
in 64Bout 4B
input1 field · 64B
nametypeoffsetbyteslayout
URIuint8[64]064
output1 field · 4B
nametypeoffsetbyteslayout
returnCodesint3204
procvoteInGameProposal#4
in 73Bout 4B
input3 fields · 73B
nametypeoffsetbyteslayout
URIuint8[64]064
gameIndexuint64648
yesNouint8721
output1 field · 4B
nametypeoffsetbyteslayout
returnCodesint3204
procTransferShareManagementRights#5
in 52Bout 8B
input3 fields · 52B
nametypeoffsetbyteslayout
assetAsset040
numberOfSharessint64408
newManagingContractIndexuint32484
output1 field · 8B
nametypeoffsetbyteslayout
transferredNumberOfSharessint6408
procdepositBonus#6
in 8Bout 4B
input1 field · 8B
nametypeoffsetbyteslayout
amountuint6408
output1 field · 4B
nametypeoffsetbyteslayout
returnCodesint3204
procdailyClaimBonus#7
in 0Bout 4B
output1 field · 4B
nametypeoffsetbyteslayout
returnCodesint3204
procredemptionQSCToQubic#8
in 8Bout 4B
input1 field · 8B
nametypeoffsetbyteslayout
amountuint6408
output1 field · 4B
nametypeoffsetbyteslayout
returnCodesint3204

Functions

5Read-only
funcgetUserAssetVolume#1
in 32Bout 16B
input1 field · 32B
nametypeoffsetbyteslayout
userid032
output2 fields · 16B
nametypeoffsetbyteslayout
STARAmountuint6408
QSCAmountuint6488
funcgetFailedGameList#2
in 4Bout 3456B
input1 field · 4B
nametypeoffsetbyteslayout
offsetuint3204
output1 field · 3456B
nametypeoffsetbyteslayout
gamesGameInfo[32]03456
funcgetSCInfo#3
in 0Bout 48B
output6 fields · 48B
nametypeoffsetbyteslayout
QSCCirclatingSupplyuint6408
STARCirclatingSupplyuint6488
burntSTARuint64168
epochRevenueuint64248
maxGameIndexuint64328
bonusAmountuint64408
funcgetActiveGameList#4
in 4Bout 3712B
input1 field · 4B
nametypeoffsetbyteslayout
offsetuint3204
output2 fields · 3712B
nametypeoffsetbyteslayout
gamesGameInfo[32]03456
gameIndexesuint64[32]3456256
funcgetProposerEarnedQSCInfo#5
in 36Bout 8B
input2 fields · 36B
nametypeoffsetbyteslayout
proposerid032
epochuint32324
output1 field · 8B
nametypeoffsetbyteslayout
earnedQSCuint6408

Structs

2Shared types
structAsset
40B2 fields
fields
nametypeoffsetbyteslayout
issuerid032
assetNameuint64328
structGameInfo
108B5 fields
fields
nametypeoffsetbyteslayout
URIuint8[64]064
proposerid6432
yesVotesuint32964
noVotesuint321004
proposedEpochuint321044

Raw JSON

/v1/contracts/26
contracts/26.json
{
  "contractIndex": 26,
  "contractName": "Qusino",
  "contractAddress": "ABAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAYYHH",
  "epoch": 208,
  "coreVersion": "v1.286.1",
  "structs": {
    "Asset": {
      "name": "Asset",
      "byteLength": 40,
      "fields": [
        {
          "name": "issuer",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        },
        {
          "name": "assetName",
          "type": "uint64",
          "offset": 32,
          "byteLength": 8
        }
      ]
    },
    "GameInfo": {
      "name": "GameInfo",
      "fields": [
        {
          "name": "URI",
          "type": "array",
          "offset": 0,
          "byteLength": 64,
          "arrayLength": 64,
          "arrayItemType": "uint8",
          "arrayItemByteLength": 1
        },
        {
          "name": "proposer",
          "type": "id",
          "offset": 64,
          "byteLength": 32
        },
        {
          "name": "yesVotes",
          "type": "uint32",
          "offset": 96,
          "byteLength": 4
        },
        {
          "name": "noVotes",
          "type": "uint32",
          "offset": 100,
          "byteLength": 4
        },
        {
          "name": "proposedEpoch",
          "type": "uint32",
          "offset": 104,
          "byteLength": 4
        }
      ],
      "byteLength": 108
    }
  },
  "procedures": [
    {
      "kind": "procedure",
      "inputType": 1,
      "name": "earnSTAR",
      "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": 2,
      "name": "transferSTAROrQSC",
      "inputFields": [
        {
          "name": "dest",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        },
        {
          "name": "amount",
          "type": "uint64",
          "offset": 32,
          "byteLength": 8
        },
        {
          "name": "type",
          "type": "uint8",
          "offset": 40,
          "byteLength": 1
        }
      ],
      "outputFields": [
        {
          "name": "returnCode",
          "type": "sint32",
          "offset": 0,
          "byteLength": 4
        }
      ],
      "inputSize": 41,
      "outputSize": 4
    },
    {
      "kind": "procedure",
      "inputType": 3,
      "name": "submitGame",
      "inputFields": [
        {
          "name": "URI",
          "type": "array",
          "offset": 0,
          "byteLength": 64,
          "arrayLength": 64,
          "arrayItemType": "uint8",
          "arrayItemByteLength": 1
        }
      ],
      "outputFields": [
        {
          "name": "returnCode",
          "type": "sint32",
          "offset": 0,
          "byteLength": 4
        }
      ],
      "inputSize": 64,
      "outputSize": 4
    },
    {
      "kind": "procedure",
      "inputType": 4,
      "name": "voteInGameProposal",
      "inputFields": [
        {
          "name": "URI",
          "type": "array",
          "offset": 0,
          "byteLength": 64,
          "arrayLength": 64,
          "arrayItemType": "uint8",
          "arrayItemByteLength": 1
        },
        {
          "name": "gameIndex",
          "type": "uint64",
          "offset": 64,
          "byteLength": 8
        },
        {
          "name": "yesNo",
          "type": "uint8",
          "offset": 72,
          "byteLength": 1
        }
      ],
      "outputFields": [
        {
          "name": "returnCode",
          "type": "sint32",
          "offset": 0,
          "byteLength": 4
        }
      ],
      "inputSize": 73,
      "outputSize": 4
    },
    {
      "kind": "procedure",
      "inputType": 5,
      "name": "TransferShareManagementRights",
      "inputFields": [
        {
          "name": "asset",
          "type": "struct",
          "offset": 0,
          "byteLength": 40,
          "structRef": "Asset"
        },
        {
          "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
    },
    {
      "kind": "procedure",
      "inputType": 6,
      "name": "depositBonus",
      "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": 7,
      "name": "dailyClaimBonus",
      "inputFields": [],
      "outputFields": [
        {
          "name": "returnCode",
          "type": "sint32",
          "offset": 0,
          "byteLength": 4
        }
      ],
      "inputSize": 0,
      "outputSize": 4
    },
    {
      "kind": "procedure",
      "inputType": 8,
      "name": "redemptionQSCToQubic",
      "inputFields": [
        {
          "name": "amount",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "outputFields": [
        {
          "name": "returnCode",
          "type": "sint32",
          "offset": 0,
          "byteLength": 4
        }
      ],
      "inputSize": 8,
      "outputSize": 4
    }
  ],
  "functions": [
    {
      "kind": "function",
      "inputType": 1,
      "name": "getUserAssetVolume",
      "inputFields": [
        {
          "name": "user",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        }
      ],
      "outputFields": [
        {
          "name": "STARAmount",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "QSCAmount",
          "type": "uint64",
          "offset": 8,
          "byteLength": 8
        }
      ],
      "inputSize": 32,
      "outputSize": 16
    },
    {
      "kind": "function",
      "inputType": 2,
      "name": "getFailedGameList",
      "inputFields": [
        {
          "name": "offset",
          "type": "uint32",
          "offset": 0,
          "byteLength": 4
        }
      ],
      "outputFields": [
        {
          "name": "games",
          "type": "array",
          "offset": 0,
          "byteLength": 3456,
          "arrayLength": 32,
          "arrayItemStructRef": "GameInfo",
          "arrayItemByteLength": 108
        }
      ],
      "inputSize": 4,
      "outputSize": 3456
    },
    {
      "kind": "function",
      "inputType": 3,
      "name": "getSCInfo",
      "inputFields": [],
      "outputFields": [
        {
          "name": "QSCCirclatingSupply",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        },
        {
          "name": "STARCirclatingSupply",
          "type": "uint64",
          "offset": 8,
          "byteLength": 8
        },
        {
          "name": "burntSTAR",
          "type": "uint64",
          "offset": 16,
          "byteLength": 8
        },
        {
          "name": "epochRevenue",
          "type": "uint64",
          "offset": 24,
          "byteLength": 8
        },
        {
          "name": "maxGameIndex",
          "type": "uint64",
          "offset": 32,
          "byteLength": 8
        },
        {
          "name": "bonusAmount",
          "type": "uint64",
          "offset": 40,
          "byteLength": 8
        }
      ],
      "inputSize": 0,
      "outputSize": 48
    },
    {
      "kind": "function",
      "inputType": 4,
      "name": "getActiveGameList",
      "inputFields": [
        {
          "name": "offset",
          "type": "uint32",
          "offset": 0,
          "byteLength": 4
        }
      ],
      "outputFields": [
        {
          "name": "games",
          "type": "array",
          "offset": 0,
          "byteLength": 3456,
          "arrayLength": 32,
          "arrayItemStructRef": "GameInfo",
          "arrayItemByteLength": 108
        },
        {
          "name": "gameIndexes",
          "type": "array",
          "offset": 3456,
          "byteLength": 256,
          "arrayLength": 32,
          "arrayItemType": "uint64",
          "arrayItemByteLength": 8
        }
      ],
      "inputSize": 4,
      "outputSize": 3712
    },
    {
      "kind": "function",
      "inputType": 5,
      "name": "getProposerEarnedQSCInfo",
      "inputFields": [
        {
          "name": "proposer",
          "type": "id",
          "offset": 0,
          "byteLength": 32
        },
        {
          "name": "epoch",
          "type": "uint32",
          "offset": 32,
          "byteLength": 4
        }
      ],
      "outputFields": [
        {
          "name": "earnedQSC",
          "type": "uint64",
          "offset": 0,
          "byteLength": 8
        }
      ],
      "inputSize": 36,
      "outputSize": 8
    }
  ],
  "effectiveFromEpoch": 208,
  "effectiveToEpoch": null
}