Prize vault
Este conteúdo não está disponível em sua língua ainda.
Holds takoGRAM, keeps every deposit whole and draws the yield as prizes.
Accepts
Section titled “Accepts”| Message | Opcode | Fields |
|---|---|---|
TransferNotificationForRecipient |
0x7362d09c |
queryId: uint64, jettonAmount: coins, transferInitiator: address?, forwardPayload: ForwardPayload |
VaultWithdraw |
0x74e15b46 |
queryId: uint64, amount: coins |
ReclaimParked |
0xe4638ca9 |
queryId: uint64 |
CloseDraw |
0x048a79f4 |
queryId: uint64 |
FinalizeDraw |
0xa639254d |
queryId: uint64, proof: Cell<DrandProof>? |
RateReply |
0x6de8dfc3 |
queryId: uint64, totalCoins: coins, totalShares: coins, context: cell |
SetVaultParams |
0x85049128 |
queryId: uint64, period: uint32, lockPeriod: uint32, keeperFeeBps: uint16, minDeposit: coins, winners: uint8, jackpotBps: uint16, jackpotOdds: uint16 |
UpgradeCode |
0x03e37786 |
queryId: uint64, code: cell |
RecoverStray |
0x1c36fa16 |
queryId: uint64, to: address, shares: coins |
TakeShareBalance |
0x07821870 |
queryId: uint64, balance: coins, context: cell |
ReturnExcessesBack |
0xd53276db |
queryId: uint64 |
| Message | Opcode | Fields |
|---|---|---|
AskToTransfer |
0x0f8a7ea5 |
queryId: uint64, jettonAmount: coins, transferRecipient: address, sendExcessesTo: address?, customPayload: cell?, forwardTonAmount: coins, forwardPayload: ForwardPayload |
ReturnExcessesBack |
0xd53276db |
queryId: uint64 |
QueryRate |
0xcb0f8ba1 |
queryId: uint64, context: cell |
ProvideShareBalance |
0x6c3eae4c |
queryId: uint64, context: cell |
Events
Section titled “Events”Logged as external messages whose destination is the topic number.
| Message | Opcode | Fields |
|---|---|---|
DrawClosedEvent |
— | drawId: uint32, targetRound: uint64 |
DrawRevealedEvent |
— | drawId: uint32, round: uint64, randomness: uint256, principal: coins, winner: address? |
VaultDepositEvent |
— | owner: address, shares: coins, principal: coins |
VaultWithdrawEvent |
— | owner: address, shares: coins, principal: coins |
PrizeEvent |
— | drawId: uint32, winner: address, shares: coins, principal: coins, jackpot: bool |
Getters
Section titled “Getters”| Getter | Parameters | Returns |
|---|---|---|
get_vault_state |
— | VaultState |
get_account |
owner: address |
Account? |
get_draw |
— | DrawState |
get_vault_fees |
— | VaultFees |
get_parked |
owner: address |
coins |
get_storage_version |
— | int |
get_vault_config |
— | VaultConfig |
get_code_version |
— | CodeVersion |
TransferNotificationForRecipient
Section titled “TransferNotificationForRecipient”Opcode 0x7362d09c.
| Field | Type |
|---|---|
queryId |
uint64 |
jettonAmount |
coins |
transferInitiator |
address? |
forwardPayload |
ForwardPayload |
ForwardPayload
Section titled “ForwardPayload”Alias of RemainingBitsAndRefs.
VaultWithdraw
Section titled “VaultWithdraw”Opcode 0x74e15b46.
| Field | Type |
|---|---|
queryId |
uint64 |
amount |
coins |
ReclaimParked
Section titled “ReclaimParked”Opcode 0xe4638ca9.
| Field | Type |
|---|---|
queryId |
uint64 |
CloseDraw
Section titled “CloseDraw”Opcode 0x048a79f4.
| Field | Type |
|---|---|
queryId |
uint64 |
FinalizeDraw
Section titled “FinalizeDraw”Opcode 0xa639254d.
| Field | Type |
|---|---|
queryId |
uint64 |
proof |
Cell<DrandProof>? |
DrandProof
Section titled “DrandProof”| Field | Type |
|---|---|
round |
uint64 |
signature |
bitsN |
q0 |
uint256 |
q1 |
uint256 |
RateReply
Section titled “RateReply”Opcode 0x6de8dfc3.
| Field | Type |
|---|---|
queryId |
uint64 |
totalCoins |
coins |
totalShares |
coins |
context |
cell |
SetVaultParams
Section titled “SetVaultParams”Opcode 0x85049128.
| Field | Type |
|---|---|
queryId |
uint64 |
period |
uint32 |
lockPeriod |
uint32 |
keeperFeeBps |
uint16 |
minDeposit |
coins |
winners |
uint8 |
jackpotBps |
uint16 |
jackpotOdds |
uint16 |
UpgradeCode
Section titled “UpgradeCode”Opcode 0x03e37786.
| Field | Type |
|---|---|
queryId |
uint64 |
code |
cell |
RecoverStray
Section titled “RecoverStray”Opcode 0x1c36fa16.
| Field | Type |
|---|---|
queryId |
uint64 |
to |
address |
shares |
coins |
TakeShareBalance
Section titled “TakeShareBalance”Opcode 0x07821870.
| Field | Type |
|---|---|
queryId |
uint64 |
balance |
coins |
context |
cell |
ReturnExcessesBack
Section titled “ReturnExcessesBack”Opcode 0xd53276db.
| Field | Type |
|---|---|
queryId |
uint64 |
AskToTransfer
Section titled “AskToTransfer”Opcode 0x0f8a7ea5.
| Field | Type |
|---|---|
queryId |
uint64 |
jettonAmount |
coins |
transferRecipient |
address |
sendExcessesTo |
address? |
customPayload |
cell? |
forwardTonAmount |
coins |
forwardPayload |
ForwardPayload |
QueryRate
Section titled “QueryRate”Opcode 0xcb0f8ba1.
| Field | Type |
|---|---|
queryId |
uint64 |
context |
cell |
ProvideShareBalance
Section titled “ProvideShareBalance”Opcode 0x6c3eae4c.
| Field | Type |
|---|---|
queryId |
uint64 |
context |
cell |
DrawClosedEvent
Section titled “DrawClosedEvent”| Field | Type |
|---|---|
drawId |
uint32 |
targetRound |
uint64 |
DrawRevealedEvent
Section titled “DrawRevealedEvent”| Field | Type |
|---|---|
drawId |
uint32 |
round |
uint64 |
randomness |
uint256 |
principal |
coins |
winner |
address? |
VaultDepositEvent
Section titled “VaultDepositEvent”| Field | Type |
|---|---|
owner |
address |
shares |
coins |
principal |
coins |
VaultWithdrawEvent
Section titled “VaultWithdrawEvent”| Field | Type |
|---|---|
owner |
address |
shares |
coins |
principal |
coins |
PrizeEvent
Section titled “PrizeEvent”| Field | Type |
|---|---|
drawId |
uint32 |
winner |
address |
shares |
coins |
principal |
coins |
jackpot |
bool |
VaultState
Section titled “VaultState”| Field | Type |
|---|---|
shares |
coins |
pendingShares |
coins |
principal |
coins |
withdrawing |
coins |
prize |
coins |
rateCoins |
coins |
rateShares |
coins |
players |
uint32 |
drawId |
uint32 |
nextDrawAt |
uint32 |
status |
EnumRef |
jackpot |
coins |
Account
Section titled “Account”| Field | Type |
|---|---|
index |
uint32 |
principal |
coins |
lockedUntil |
uint32 |
DrawState
Section titled “DrawState”| Field | Type |
|---|---|
id |
uint32 |
nextAt |
uint32 |
closedAt |
uint32 |
targetRound |
uint64 |
status |
EnumRef |
winner |
address? |
randomness |
uint256 |
jackpot |
coins |
VaultFees
Section titled “VaultFees”| Field | Type |
|---|---|
deposit |
coins |
withdraw |
coins |
reclaim |
coins |
finalize |
coins |
VaultConfig
Section titled “VaultConfig”| Field | Type |
|---|---|
chatId |
int64 |
treasury |
address |
governor |
address |
walletCode |
cell |
period |
uint32 |
lockPeriod |
uint32 |
keeperFeeBps |
uint16 |
minDeposit |
coins |
winners |
uint8 |
jackpotBps |
uint16 |
jackpotOdds |
uint16 |
CodeVersion
Section titled “CodeVersion”| Field | Type |
|---|---|
major |
uint8 |
minor |
uint8 |
patch |
uint8 |