Qearn
Idx 09·Since e144·3 ABI versions
JAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVKHO
Procedures
2proclock#1
in 0Bout 4B
←output1 field · 4B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| returnCode | sint32 | 0 | 4 |
procunlock#2
in 12Bout 4B
→input2 fields · 12B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| amount | uint64 | 0 | 8 | |
| lockedEpoch | uint32 | 8 | 4 |
←output1 field · 4B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| returnCode | sint32 | 0 | 4 |
Functions
8funcgetLockInfoPerEpoch#1
in 4Bout 40B
→input1 field · 4B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| Epoch | uint32 | 0 | 4 |
←output5 fields · 40B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| lockedAmount | uint64 | 0 | 8 | |
| bonusAmount | uint64 | 8 | 8 | |
| currentLockedAmount | uint64 | 16 | 8 | |
| currentBonusAmount | uint64 | 24 | 8 | |
| yield | uint64 | 32 | 8 |
funcgetUserLockedInfo#2
in 36Bout 8B
→input2 fields · 36B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| user | id | 0 | 32 | |
| epoch | uint32 | 32 | 4 |
←output1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| lockedAmount | uint64 | 0 | 8 |
funcgetStateOfRound#3
in 4Bout 4B
→input1 field · 4B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| epoch | uint32 | 0 | 4 |
←output1 field · 4B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| state | uint32 | 0 | 4 |
funcgetUserLockStatus#4
in 32Bout 8B
→input1 field · 32B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| user | id | 0 | 32 |
←output1 field · 8B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| status | uint64 | 0 | 8 |
funcgetEndedStatus#5
in 32Bout 32B
→input1 field · 32B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| user | id | 0 | 32 |
←output4 fields · 32B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| fullyUnlockedAmount | uint64 | 0 | 8 | |
| fullyRewardedAmount | uint64 | 8 | 8 | |
| earlyUnlockedAmount | uint64 | 16 | 8 | |
| earlyRewardedAmount | uint64 | 24 | 8 |
funcgetStatsPerEpoch#6
in 4Bout 32B
→input1 field · 4B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| epoch | uint32 | 0 | 4 |
←output4 fields · 32B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| earlyUnlockedAmount | uint64 | 0 | 8 | |
| earlyUnlockedPercent | uint64 | 8 | 8 | |
| totalLockedAmount | uint64 | 16 | 8 | |
| averageAPY | uint64 | 24 | 8 |
funcgetBurnedAndBoostedStats#7
in 0Bout 48B
←output6 fields · 48B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| burnedAmount | uint64 | 0 | 8 | |
| averageBurnedPercent | uint64 | 8 | 8 | |
| boostedAmount | uint64 | 16 | 8 | |
| averageBoostedPercent | uint64 | 24 | 8 | |
| rewardedAmount | uint64 | 32 | 8 | |
| averageRewardedPercent | uint64 | 40 | 8 |
funcgetBurnedAndBoostedStatsPerEpoch#8
in 4Bout 48B
→input1 field · 4B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| epoch | uint32 | 0 | 4 |
←output6 fields · 48B
| name | type | offset | bytes | layout |
|---|---|---|---|---|
| burnedAmount | uint64 | 0 | 8 | |
| burnedPercent | uint64 | 8 | 8 | |
| boostedAmount | uint64 | 16 | 8 | |
| boostedPercent | uint64 | 24 | 8 | |
| rewardedAmount | uint64 | 32 | 8 | |
| rewardedPercent | uint64 | 40 | 8 |
Raw JSON
{ "contractIndex": 9, "contractName": "Qearn", "contractAddress": "JAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAVKHO", "epoch": 144, "coreVersion": "v1.232.0", "structs": {}, "procedures": [ { "kind": "procedure", "inputType": 1, "name": "lock", "inputFields": [], "outputFields": [ { "name": "returnCode", "type": "sint32", "offset": 0, "byteLength": 4 } ], "inputSize": 0, "outputSize": 4 }, { "kind": "procedure", "inputType": 2, "name": "unlock", "inputFields": [ { "name": "amount", "type": "uint64", "offset": 0, "byteLength": 8 }, { "name": "lockedEpoch", "type": "uint32", "offset": 8, "byteLength": 4 } ], "outputFields": [ { "name": "returnCode", "type": "sint32", "offset": 0, "byteLength": 4 } ], "inputSize": 12, "outputSize": 4 } ], "functions": [ { "kind": "function", "inputType": 1, "name": "getLockInfoPerEpoch", "inputFields": [ { "name": "Epoch", "type": "uint32", "offset": 0, "byteLength": 4 } ], "outputFields": [ { "name": "lockedAmount", "type": "uint64", "offset": 0, "byteLength": 8 }, { "name": "bonusAmount", "type": "uint64", "offset": 8, "byteLength": 8 }, { "name": "currentLockedAmount", "type": "uint64", "offset": 16, "byteLength": 8 }, { "name": "currentBonusAmount", "type": "uint64", "offset": 24, "byteLength": 8 }, { "name": "yield", "type": "uint64", "offset": 32, "byteLength": 8 } ], "inputSize": 4, "outputSize": 40 }, { "kind": "function", "inputType": 2, "name": "getUserLockedInfo", "inputFields": [ { "name": "user", "type": "id", "offset": 0, "byteLength": 32 }, { "name": "epoch", "type": "uint32", "offset": 32, "byteLength": 4 } ], "outputFields": [ { "name": "lockedAmount", "type": "uint64", "offset": 0, "byteLength": 8 } ], "inputSize": 36, "outputSize": 8 }, { "kind": "function", "inputType": 3, "name": "getStateOfRound", "inputFields": [ { "name": "epoch", "type": "uint32", "offset": 0, "byteLength": 4 } ], "outputFields": [ { "name": "state", "type": "uint32", "offset": 0, "byteLength": 4 } ], "inputSize": 4, "outputSize": 4 }, { "kind": "function", "inputType": 4, "name": "getUserLockStatus", "inputFields": [ { "name": "user", "type": "id", "offset": 0, "byteLength": 32 } ], "outputFields": [ { "name": "status", "type": "uint64", "offset": 0, "byteLength": 8 } ], "inputSize": 32, "outputSize": 8 }, { "kind": "function", "inputType": 5, "name": "getEndedStatus", "inputFields": [ { "name": "user", "type": "id", "offset": 0, "byteLength": 32 } ], "outputFields": [ { "name": "fullyUnlockedAmount", "type": "uint64", "offset": 0, "byteLength": 8 }, { "name": "fullyRewardedAmount", "type": "uint64", "offset": 8, "byteLength": 8 }, { "name": "earlyUnlockedAmount", "type": "uint64", "offset": 16, "byteLength": 8 }, { "name": "earlyRewardedAmount", "type": "uint64", "offset": 24, "byteLength": 8 } ], "inputSize": 32, "outputSize": 32 }, { "kind": "function", "inputType": 6, "name": "getStatsPerEpoch", "inputFields": [ { "name": "epoch", "type": "uint32", "offset": 0, "byteLength": 4 } ], "outputFields": [ { "name": "earlyUnlockedAmount", "type": "uint64", "offset": 0, "byteLength": 8 }, { "name": "earlyUnlockedPercent", "type": "uint64", "offset": 8, "byteLength": 8 }, { "name": "totalLockedAmount", "type": "uint64", "offset": 16, "byteLength": 8 }, { "name": "averageAPY", "type": "uint64", "offset": 24, "byteLength": 8 } ], "inputSize": 4, "outputSize": 32 }, { "kind": "function", "inputType": 7, "name": "getBurnedAndBoostedStats", "inputFields": [], "outputFields": [ { "name": "burnedAmount", "type": "uint64", "offset": 0, "byteLength": 8 }, { "name": "averageBurnedPercent", "type": "uint64", "offset": 8, "byteLength": 8 }, { "name": "boostedAmount", "type": "uint64", "offset": 16, "byteLength": 8 }, { "name": "averageBoostedPercent", "type": "uint64", "offset": 24, "byteLength": 8 }, { "name": "rewardedAmount", "type": "uint64", "offset": 32, "byteLength": 8 }, { "name": "averageRewardedPercent", "type": "uint64", "offset": 40, "byteLength": 8 } ], "inputSize": 0, "outputSize": 48 }, { "kind": "function", "inputType": 8, "name": "getBurnedAndBoostedStatsPerEpoch", "inputFields": [ { "name": "epoch", "type": "uint32", "offset": 0, "byteLength": 4 } ], "outputFields": [ { "name": "burnedAmount", "type": "uint64", "offset": 0, "byteLength": 8 }, { "name": "burnedPercent", "type": "uint64", "offset": 8, "byteLength": 8 }, { "name": "boostedAmount", "type": "uint64", "offset": 16, "byteLength": 8 }, { "name": "boostedPercent", "type": "uint64", "offset": 24, "byteLength": 8 }, { "name": "rewardedAmount", "type": "uint64", "offset": 32, "byteLength": 8 }, { "name": "rewardedPercent", "type": "uint64", "offset": 40, "byteLength": 8 } ], "inputSize": 4, "outputSize": 48 } ], "effectiveFromEpoch": 144, "effectiveToEpoch": null }