Snapshot Current
QDuel @ epoch 209
contractIndex 23 · effective e202 → now
XAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAXNMD
Procedures
7procCreateRoom#1
in 56Bout 1B
→input4 fields · 56B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| allowedPlayer | id | 0 | 32 | |
| stake | sint64 | 32 | 8 | |
| raiseStep | sint64 | 40 | 8 | |
| maxStake | sint64 | 48 | 8 |
←output1 field · 1B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| returnCode | uint8 | 0 | 1 |
procConnectToRoom#2
in 32Bout 33B
→input1 field · 32B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| roomId | id | 0 | 32 |
←output2 fields · 33B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| winner | id | 0 | 32 | |
| returnCode | uint8 | 32 | 1 |
procSetPercentFees#3
in 5Bout 1B
→input4 fields · 5B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| devFeePercentBps | uint8 | 0 | 1 | |
| burnFeePercentBps | uint8 | 1 | 1 | |
| shareholdersFeePercentBps | uint8 | 2 | 1 | |
| percentScale | uint16 | 3 | 2 |
←output1 field · 1B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| returnCode | uint8 | 0 | 1 |
procSetTTLHours#4
in 1Bout 1B
→input1 field · 1B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| ttlHours | uint8 | 0 | 1 |
←output1 field · 1B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| returnCode | uint8 | 0 | 1 |
procDeposit#5
in 0Bout 1B
←output1 field · 1B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| returnCode | uint8 | 0 | 1 |
procWithdraw#6
in 8Bout 1B
→input1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| amount | sint64 | 0 | 8 |
←output1 field · 1B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| returnCode | uint8 | 0 | 1 |
procCloseRoom#7
in 0Bout 1B
←output1 field · 1B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| returnCode | uint8 | 0 | 1 |
Functions
6funcGetPercentFees#1
in 0Bout 13B
←output5 fields · 13B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| devFeePercentBps | uint8 | 0 | 1 | |
| burnFeePercentBps | uint8 | 1 | 1 | |
| shareholdersFeePercentBps | uint8 | 2 | 1 | |
| percentScale | uint16 | 3 | 2 | |
| returnCode | uint64 | 5 | 8 |
funcGetRooms#2
in 0Bout 61441B
←output2 fields · 61441B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| rooms | RoomInfo[512] | 0 | 61440 | |
| returnCode | uint8 | 61440 | 1 |
funcGetTTLHours#3
in 0Bout 2B
←output2 fields · 2B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| ttlHours | uint8 | 0 | 1 | |
| returnCode | uint8 | 1 | 1 |
funcGetUserProfile#4
in 32Bout 73B
→input1 field · 32B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| userId | id | 0 | 32 |
←output7 fields · 73B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| roomId | id | 0 | 32 | |
| depositedAmount | uint64 | 32 | 8 | |
| locked | uint64 | 40 | 8 | |
| stake | uint64 | 48 | 8 | |
| raiseStep | uint64 | 56 | 8 | |
| maxStake | uint64 | 64 | 8 | |
| returnCode | uint8 | 72 | 1 |
funcCalculateRevenue#5
in 8Bout 32B
→input1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| amount | uint64 | 0 | 8 |
←output4 fields · 32B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| devFee | uint64 | 0 | 8 | |
| burnFee | uint64 | 8 | 8 | |
| shareholdersFee | uint64 | 16 | 8 | |
| winner | uint64 | 24 | 8 |
funcGetLastWinners#6
in 0Bout 13313B
←output2 fields · 13313B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| winners | WinnerData[128] | 0 | 13312 | |
| returnCode | uint8 | 13312 | 1 |
Structs
3structRoomInfo
120B6 fields
fields
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| roomId | id | 0 | 32 | |
| owner | id | 32 | 32 | |
| allowedPlayer | id | 64 | 32 | |
| amount | sint64 | 96 | 8 | |
| closeTimer | uint64 | 104 | 8 | |
| lastUpdate | DateAndTime | 112 | 8 |
structWinnerData
104B4 fields
fields
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| player1 | id | 0 | 32 | |
| player2 | id | 32 | 32 | |
| winner | id | 64 | 32 | |
| revenue | uint64 | 96 | 8 |
structDateAndTime
8B1 field
fields
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| value | uint64 | 0 | 8 |