Treasury
The pool: jetton master of takoGRAM, accounting, claims collection, validator lending and governance.
Accepts
Section titled “Accepts”| Message | Opcode | Fields |
|---|---|---|
Deposit |
0x95db9d39 |
queryId: uint64, recipient: address?, referrer: address? |
TonstakersDeposit |
0x47d54391 |
queryId: uint64, rest: RemainingBitsAndRefs |
TextComment |
0x00000000 |
text: RemainingBitsAndRefs |
BurnNotificationForMinter |
0x7bdd97de |
queryId: uint64, jettonAmount: coins, burnInitiator: address, sendExcessesTo: address?, customPayload: cell? |
RedeemClaim |
0xb226937d |
queryId: uint64, index: uint64, owner: address, amount: coins, factor: uint96 |
Donate |
0xdda20471 |
queryId: uint64 |
TopUp |
0x34813b76 |
queryId: uint64 |
RequestWalletAddress |
0x2c76b973 |
queryId: uint64, ownerAddress: address, includeOwnerAddress: bool |
SetPaused |
0xe2f47b0a |
queryId: uint64, paused: bool |
SetInstantFee |
0x10a6b03a |
queryId: uint64, feeBps: uint16 |
ProposeGovernor |
0xaef13838 |
queryId: uint64, newGovernor: address |
AcceptGovernor |
0x8761092a |
queryId: uint64 |
SetHalter |
0xd1fb403d |
queryId: uint64, newHalter: address |
SetContent |
0x7969d64e |
queryId: uint64, content: cell |
RequestLoan |
0xba742af9 |
queryId: uint64, roundSince: uint32, amount: coins, minAmount: coins, minPayment: coins, stake: Cell<StakeRequest> |
DecideRound |
0xc82949e6 |
queryId: uint64, roundSince: uint32 |
LoanReturned |
0x7534449b |
queryId: uint64, borrower: address, roundSince: uint32 |
SetLendingParams |
0x0e8e2211 |
queryId: uint64, params: Cell<LendingParams> |
RecoverRound |
0x12a64918 |
queryId: uint64, roundSince: uint32 |
FundKeepers |
0x00141859 |
queryId: uint64 |
ReturnExcessesBack |
0xd53276db |
queryId: uint64 |
SetKeeperParams |
0xdd775170 |
queryId: uint64, decideBounty: coins, recoverBounty: coins, profitShareBps: uint16 |
QueryRate |
0xcb0f8ba1 |
queryId: uint64, context: cell |
FundInsurance |
0xe9094e44 |
queryId: uint64 |
UpgradeCode |
0x03e37786 |
queryId: uint64, code: cell |
| Message | Opcode | Fields |
|---|---|---|
TextComment |
0x00000000 |
text: RemainingBitsAndRefs |
ReturnExcessesBack |
0xd53276db |
queryId: uint64 |
InternalTransferStep |
0x178d4519 |
queryId: uint64, jettonAmount: coins, transferInitiator: address?, sendExcessesTo: address?, forwardTonAmount: coins, forwardPayload: ForwardPayload |
InitClaim |
0x11c9c14a |
queryId: uint64, owner: address, amount: coins, factor: uint96, sendExcessesTo: address, relayer: Cell<RelayerFee>? |
WithdrawAll |
0x6172775d |
queryId: uint64 |
ClaimPaid |
0xb3813c1c |
queryId: uint64, amount: coins |
StakeLoan |
0xc0a668e2 |
queryId: uint64, heldFor: uint32, stake: Cell<StakeRequest> |
RecoverLoan |
0x80a2cfe2 |
queryId: uint64 |
RateReply |
0x6de8dfc3 |
queryId: uint64, totalCoins: coins, totalShares: coins, context: cell |
ResponseWalletAddress |
0xd1735400 |
queryId: uint64, jettonWalletAddress: address?, ownerAddress: Cell<address>? |
Events
Section titled “Events”Logged as external messages whose destination is the topic number.
| Message | Opcode | Fields |
|---|---|---|
DepositEvent |
— | owner: address, amount: coins, shares: coins, referrer: address? |
UnstakeEvent |
— | owner: address, shares: coins, amount: coins, claim: uint64? |
RedeemEvent |
— | claim: uint64, owner: address, amount: coins |
ProfitEvent |
— | amount: coins |
LoanRequestedEvent |
— | round: uint32, borrower: address, amount: coins, minPayment: coins, collateral: coins, evicted: address? |
LoanFundedEvent |
— | round: uint32, borrower: address, principal: coins, collateral: coins, minPayment: coins |
RoundDecidedEvent |
— | round: uint32, lent: coins, loans: uint16 |
LoanSettledEvent |
— | round: uint32, borrower: address, principal: coins, poolTake: int128, payout: coins |
KeeperPaidEvent |
— | keeper: address, amount: coins |
Getters
Section titled “Getters”| Getter | Parameters | Returns |
|---|---|---|
get_jetton_data |
— | JettonDataReply |
get_wallet_address |
ownerAddress: address |
address |
get_pool_state |
— | PoolState |
get_fees |
— | FeesReply |
get_roles |
— | RolesReply |
get_collection_data |
— | CollectionDataReply |
get_nft_address_by_index |
index: uint64 |
address |
get_claim_quote |
amount: coins, factor: uint96 |
ClaimQuote |
get_nft_content |
index: uint64, individualContent: cell |
cell |
get_lending_params |
— | LendingParams |
get_next_election |
— | Election |
get_round |
since: uint32 |
RoundReply |
get_active_loan |
since: uint32, borrower: address |
ActiveLoan? |
get_loan_request |
since: uint32, borrower: address |
LoanRequest? |
get_loan_address |
borrower: address, since: uint32 |
address |
get_keepers |
— | KeeperState |
get_due_actions |
— | DueActions |
get_storage_version |
— | int |
get_code_version |
— | CodeVersion |
Deposit
Section titled “Deposit”Opcode 0x95db9d39.
| Field | Type |
|---|---|
queryId |
uint64 |
recipient |
address? |
referrer |
address? |
TonstakersDeposit
Section titled “TonstakersDeposit”Opcode 0x47d54391.
| Field | Type |
|---|---|
queryId |
uint64 |
rest |
RemainingBitsAndRefs |
TextComment
Section titled “TextComment”Opcode 0x00000000.
| Field | Type |
|---|---|
text |
RemainingBitsAndRefs |
BurnNotificationForMinter
Section titled “BurnNotificationForMinter”Opcode 0x7bdd97de.
| Field | Type |
|---|---|
queryId |
uint64 |
jettonAmount |
coins |
burnInitiator |
address |
sendExcessesTo |
address? |
customPayload |
cell? |
RedeemClaim
Section titled “RedeemClaim”Opcode 0xb226937d.
| Field | Type |
|---|---|
queryId |
uint64 |
index |
uint64 |
owner |
address |
amount |
coins |
factor |
uint96 |
Donate
Section titled “Donate”Opcode 0xdda20471.
| Field | Type |
|---|---|
queryId |
uint64 |
Opcode 0x34813b76.
| Field | Type |
|---|---|
queryId |
uint64 |
RequestWalletAddress
Section titled “RequestWalletAddress”Opcode 0x2c76b973.
| Field | Type |
|---|---|
queryId |
uint64 |
ownerAddress |
address |
includeOwnerAddress |
bool |
SetPaused
Section titled “SetPaused”Opcode 0xe2f47b0a.
| Field | Type |
|---|---|
queryId |
uint64 |
paused |
bool |
SetInstantFee
Section titled “SetInstantFee”Opcode 0x10a6b03a.
| Field | Type |
|---|---|
queryId |
uint64 |
feeBps |
uint16 |
ProposeGovernor
Section titled “ProposeGovernor”Opcode 0xaef13838.
| Field | Type |
|---|---|
queryId |
uint64 |
newGovernor |
address |
AcceptGovernor
Section titled “AcceptGovernor”Opcode 0x8761092a.
| Field | Type |
|---|---|
queryId |
uint64 |
SetHalter
Section titled “SetHalter”Opcode 0xd1fb403d.
| Field | Type |
|---|---|
queryId |
uint64 |
newHalter |
address |
SetContent
Section titled “SetContent”Opcode 0x7969d64e.
| Field | Type |
|---|---|
queryId |
uint64 |
content |
cell |
RequestLoan
Section titled “RequestLoan”Opcode 0xba742af9.
| Field | Type |
|---|---|
queryId |
uint64 |
roundSince |
uint32 |
amount |
coins |
minAmount |
coins |
minPayment |
coins |
stake |
Cell<StakeRequest> |
StakeRequest
Section titled “StakeRequest”| Field | Type |
|---|---|
validatorPubkey |
uint256 |
stakeAt |
uint32 |
maxFactor |
uint32 |
adnlAddr |
uint256 |
signature |
cell |
DecideRound
Section titled “DecideRound”Opcode 0xc82949e6.
| Field | Type |
|---|---|
queryId |
uint64 |
roundSince |
uint32 |
LoanReturned
Section titled “LoanReturned”Opcode 0x7534449b.
| Field | Type |
|---|---|
queryId |
uint64 |
borrower |
address |
roundSince |
uint32 |
SetLendingParams
Section titled “SetLendingParams”Opcode 0x0e8e2211.
| Field | Type |
|---|---|
queryId |
uint64 |
params |
Cell<LendingParams> |
LendingParams
Section titled “LendingParams”| Field | Type |
|---|---|
minLoan |
coins |
maxLoan |
coins |
minCollateral |
coins |
poolShareBps |
uint16 |
cohortShareBps |
uint16 |
bufferBps |
uint16 |
minRateBps |
uint16 |
insuranceShareBps |
uint16 |
maxRequests |
uint8 |
RecoverRound
Section titled “RecoverRound”Opcode 0x12a64918.
| Field | Type |
|---|---|
queryId |
uint64 |
roundSince |
uint32 |
FundKeepers
Section titled “FundKeepers”Opcode 0x00141859.
| Field | Type |
|---|---|
queryId |
uint64 |
ReturnExcessesBack
Section titled “ReturnExcessesBack”Opcode 0xd53276db.
| Field | Type |
|---|---|
queryId |
uint64 |
SetKeeperParams
Section titled “SetKeeperParams”Opcode 0xdd775170.
| Field | Type |
|---|---|
queryId |
uint64 |
decideBounty |
coins |
recoverBounty |
coins |
profitShareBps |
uint16 |
QueryRate
Section titled “QueryRate”Opcode 0xcb0f8ba1.
| Field | Type |
|---|---|
queryId |
uint64 |
context |
cell |
FundInsurance
Section titled “FundInsurance”Opcode 0xe9094e44.
| Field | Type |
|---|---|
queryId |
uint64 |
UpgradeCode
Section titled “UpgradeCode”Opcode 0x03e37786.
| Field | Type |
|---|---|
queryId |
uint64 |
code |
cell |
InternalTransferStep
Section titled “InternalTransferStep”Opcode 0x178d4519.
| Field | Type |
|---|---|
queryId |
uint64 |
jettonAmount |
coins |
transferInitiator |
address? |
sendExcessesTo |
address? |
forwardTonAmount |
coins |
forwardPayload |
ForwardPayload |
ForwardPayload
Section titled “ForwardPayload”Alias of RemainingBitsAndRefs.
InitClaim
Section titled “InitClaim”Opcode 0x11c9c14a.
| Field | Type |
|---|---|
queryId |
uint64 |
owner |
address |
amount |
coins |
factor |
uint96 |
sendExcessesTo |
address |
relayer |
Cell<RelayerFee>? |
RelayerFee
Section titled “RelayerFee”| Field | Type |
|---|---|
relayer |
address |
fee |
coins |
WithdrawAll
Section titled “WithdrawAll”Opcode 0x6172775d.
| Field | Type |
|---|---|
queryId |
uint64 |
ClaimPaid
Section titled “ClaimPaid”Opcode 0xb3813c1c.
| Field | Type |
|---|---|
queryId |
uint64 |
amount |
coins |
StakeLoan
Section titled “StakeLoan”Opcode 0xc0a668e2.
| Field | Type |
|---|---|
queryId |
uint64 |
heldFor |
uint32 |
stake |
Cell<StakeRequest> |
RecoverLoan
Section titled “RecoverLoan”Opcode 0x80a2cfe2.
| Field | Type |
|---|---|
queryId |
uint64 |
RateReply
Section titled “RateReply”Opcode 0x6de8dfc3.
| Field | Type |
|---|---|
queryId |
uint64 |
totalCoins |
coins |
totalShares |
coins |
context |
cell |
ResponseWalletAddress
Section titled “ResponseWalletAddress”Opcode 0xd1735400.
| Field | Type |
|---|---|
queryId |
uint64 |
jettonWalletAddress |
address? |
ownerAddress |
Cell<address>? |
DepositEvent
Section titled “DepositEvent”| Field | Type |
|---|---|
owner |
address |
amount |
coins |
shares |
coins |
referrer |
address? |
UnstakeEvent
Section titled “UnstakeEvent”| Field | Type |
|---|---|
owner |
address |
shares |
coins |
amount |
coins |
claim |
uint64? |
RedeemEvent
Section titled “RedeemEvent”| Field | Type |
|---|---|
claim |
uint64 |
owner |
address |
amount |
coins |
ProfitEvent
Section titled “ProfitEvent”| Field | Type |
|---|---|
amount |
coins |
LoanRequestedEvent
Section titled “LoanRequestedEvent”| Field | Type |
|---|---|
round |
uint32 |
borrower |
address |
amount |
coins |
minPayment |
coins |
collateral |
coins |
evicted |
address? |
LoanFundedEvent
Section titled “LoanFundedEvent”| Field | Type |
|---|---|
round |
uint32 |
borrower |
address |
principal |
coins |
collateral |
coins |
minPayment |
coins |
RoundDecidedEvent
Section titled “RoundDecidedEvent”| Field | Type |
|---|---|
round |
uint32 |
lent |
coins |
loans |
uint16 |
LoanSettledEvent
Section titled “LoanSettledEvent”| Field | Type |
|---|---|
round |
uint32 |
borrower |
address |
principal |
coins |
poolTake |
int128 |
payout |
coins |
KeeperPaidEvent
Section titled “KeeperPaidEvent”| Field | Type |
|---|---|
keeper |
address |
amount |
coins |
JettonDataReply
Section titled “JettonDataReply”| Field | Type |
|---|---|
totalSupply |
coins |
mintable |
bool |
adminAddress |
address |
jettonContent |
cell |
jettonWalletCode |
cell |
PoolState
Section titled “PoolState”| Field | Type |
|---|---|
totalCoins |
coins |
totalShares |
coins |
pendingProfit |
coins |
profitEnd |
uint32 |
queued |
coins |
lent |
coins |
held |
coins |
insurance |
coins |
badDebt |
coins |
nextClaim |
uint64 |
instantLiquidity |
coins |
instantFeeBps |
uint16 |
paused |
bool |
FeesReply
Section titled “FeesReply”| Field | Type |
|---|---|
deposit |
coins |
unstake |
coins |
redeem |
coins |
request |
coins |
recover |
coins |
RolesReply
Section titled “RolesReply”| Field | Type |
|---|---|
governor |
address |
pendingGovernor |
address? |
halter |
address |
CollectionDataReply
Section titled “CollectionDataReply”| Field | Type |
|---|---|
nextItemIndex |
uint64 |
collectionContent |
cell |
ownerAddress |
address |
ClaimQuote
Section titled “ClaimQuote”| Field | Type |
|---|---|
value |
coins |
ready |
bool |
Election
Section titled “Election”| Field | Type |
|---|---|
since |
uint32 |
requestsUntil |
uint32 |
closesAt |
uint32 |
RoundReply
Section titled “RoundReply”| Field | Type |
|---|---|
exists |
bool |
requestCount |
uint8 |
held |
coins |
lent |
coins |
open |
uint16 |
decided |
bool |
ActiveLoan
Section titled “ActiveLoan”| Field | Type |
|---|---|
principal |
coins |
collateral |
coins |
minPayment |
coins |
poolShareBps |
uint16 |
LoanRequest
Section titled “LoanRequest”| Field | Type |
|---|---|
amount |
coins |
minAmount |
coins |
minPayment |
coins |
collateral |
coins |
stake |
Cell<StakeRequest> |
KeeperState
Section titled “KeeperState”| Field | Type |
|---|---|
fund |
coins |
decideBounty |
coins |
recoverBounty |
coins |
profitShareBps |
uint16 |
DueActions
Section titled “DueActions”| Field | Type |
|---|---|
decide |
uint32 |
decideValue |
coins |
recover |
uint32 |
recoverValue |
coins |
CodeVersion
Section titled “CodeVersion”| Field | Type |
|---|---|
major |
uint8 |
minor |
uint8 |
patch |
uint8 |