Pular para o conteúdo

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.

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

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
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

Opcode 0x7362d09c.

Field Type
queryId uint64
jettonAmount coins
transferInitiator address?
forwardPayload ForwardPayload

Alias of RemainingBitsAndRefs.

Opcode 0x74e15b46.

Field Type
queryId uint64
amount coins

Opcode 0xe4638ca9.

Field Type
queryId uint64

Opcode 0x048a79f4.

Field Type
queryId uint64

Opcode 0xa639254d.

Field Type
queryId uint64
proof Cell<DrandProof>?
Field Type
round uint64
signature bitsN
q0 uint256
q1 uint256

Opcode 0x6de8dfc3.

Field Type
queryId uint64
totalCoins coins
totalShares coins
context cell

Opcode 0x85049128.

Field Type
queryId uint64
period uint32
lockPeriod uint32
keeperFeeBps uint16
minDeposit coins
winners uint8
jackpotBps uint16
jackpotOdds uint16

Opcode 0x03e37786.

Field Type
queryId uint64
code cell

Opcode 0x1c36fa16.

Field Type
queryId uint64
to address
shares coins

Opcode 0x07821870.

Field Type
queryId uint64
balance coins
context cell

Opcode 0xd53276db.

Field Type
queryId uint64

Opcode 0x0f8a7ea5.

Field Type
queryId uint64
jettonAmount coins
transferRecipient address
sendExcessesTo address?
customPayload cell?
forwardTonAmount coins
forwardPayload ForwardPayload

Opcode 0xcb0f8ba1.

Field Type
queryId uint64
context cell

Opcode 0x6c3eae4c.

Field Type
queryId uint64
context cell
Field Type
drawId uint32
targetRound uint64
Field Type
drawId uint32
round uint64
randomness uint256
principal coins
winner address?
Field Type
owner address
shares coins
principal coins
Field Type
owner address
shares coins
principal coins
Field Type
drawId uint32
winner address
shares coins
principal coins
jackpot bool
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
Field Type
index uint32
principal coins
lockedUntil uint32
Field Type
id uint32
nextAt uint32
closedAt uint32
targetRound uint64
status EnumRef
winner address?
randomness uint256
jackpot coins
Field Type
deposit coins
withdraw coins
reclaim coins
finalize coins
Field Type
chatId int64
treasury address
governor address
walletCode cell
period uint32
lockPeriod uint32
keeperFeeBps uint16
minDeposit coins
winners uint8
jackpotBps uint16
jackpotOdds uint16
Field Type
major uint8
minor uint8
patch uint8