Skip to content

Commit 04edd62

Browse files
Add OP Codes to the docs (#763)
* Transaction outcome Definition of success and some TVM details. * Upd transaction outcome * Update message-delivery-guarantees.mdx * Update tvm-overview.mdx * Update message-delivery-guarantees.mdx * Update academy-overview.md Button * op code update Added known op codes * Update contracts.md * Update contracts.md * Added DEX opcodes StonFi&DeDust * Update contracts.md
1 parent 2fbf84f commit 04edd62

File tree

1 file changed

+62
-2
lines changed

1 file changed

+62
-2
lines changed

docs/participate/wallets/contracts.md

Lines changed: 62 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,8 +130,6 @@ Highload v3 will never execute multiple externals containing the same `query_id`
130130
When iterating (incrementing) query ID, it is cheaper (in terms of TON spent on fees) to iterate through bit number first, and then the shift, like when incrementing a regular number. After you've reached the last query ID (remember about the emergency query ID - see above), you can reset query ID to 0, but if highload's timeout period has not passed yet, then the replay protection dictionary will be full and you will have to wait for the timeout period to pass.
131131

132132

133-
134-
135133
### Highload wallet v2
136134

137135
:::danger
@@ -180,6 +178,68 @@ This wallet's function is to act like a regular wallet, but restrict transfers t
180178
Wallet source code:
181179
* [EmelyanenkoK/nomination-contract/restricted-wallet](https://github.com/EmelyanenkoK/nomination-contract/tree/master/restricted-wallet)
182180

181+
## Known op codes
182+
183+
:::info
184+
Also op-code, op::code and operational code
185+
:::
186+
187+
188+
| Contract type | Hex code | OP::Code |
189+
|-----------------|-----------------|----------------------------|
190+
| Global | 0x00000000 | Text Comment |
191+
| Global | 0xffffffff | Bounce |
192+
| Global | 0x2167da4b | [Encrypted Comment](https://docs.ton.org/develop/smart-contracts/guidelines/internal-messages#messages-with-encrypted-comments) |
193+
| Global | 0xd53276db | Excesses |
194+
| Elector | 0x4e73744b | New Stake |
195+
| Elector | 0xf374484c | New Stake Confirmation |
196+
| Elector | 0x47657424 | Recover Stake Request |
197+
| Elector | 0x47657424 | Recover Stake Responce |
198+
| Wallet | 0x0f8a7ea5 | Jetton Transfer |
199+
| Wallet | 0x235caf52 | [Jetton Call To](https://testnet.tonviewer.com/transaction/1567b14ad43be6416e37de56af198ced5b1201bb652f02bc302911174e826ef7) |
200+
| Jetton | 0x178d4519 | Jetton Internal Transfer |
201+
| Jetton | 0x7362d09c | Jetton Notify |
202+
| Jetton | 0x595f07bc | Jetton Burn |
203+
| Jetton | 0x7bdd97de | Jetton Burn Notification |
204+
| Jetton | 0xeed236d3 | Jetton Set Status |
205+
| Jetton-Minter | 0x642b7d07 | Jetton Mint |
206+
| Jetton-Minter | 0x6501f354 | Jetton Change Admin |
207+
| Jetton-Minter | 0xfb88e119 | Jetton Claim Admin |
208+
| Jetton-Minter | 0x7431f221 | Jetton Drop Admin |
209+
| Jetton-Minter | 0xcb862902 | Jetton Change Metadata |
210+
| Jetton-Minter | 0x2508d66a | Jetton Upgrade |
211+
| Vesting | 0xd372158c | [Top Up](https://github.com/ton-blockchain/liquid-staking-contract/blob/be2ee6d1e746bd2bb0f13f7b21537fb30ef0bc3b/PoolConstants.ts#L28) |
212+
| Vesting | 0x7258a69b | Add Whitelist |
213+
| Vesting | 0xf258a69b | Add Whitelist Response |
214+
| Vesting | 0xa7733acd | Send |
215+
| Vesting | 0xf7733acd | Send Response |
216+
| Dedust | 0x9c610de3 | Dedust Swap ExtOut |
217+
| Dedust | 0xe3a0d482 | Dedust Swap Jetton |
218+
| Dedust | 0xea06185d | Dedust Swap Internal |
219+
| Dedust | 0x61ee542d | Swap External |
220+
| Dedust | 0x72aca8aa | Swap Peer |
221+
| Dedust | 0xd55e4686 | Deposit Liquidity Internal |
222+
| Dedust | 0x40e108d6 | Deposit Liquidity Jetton |
223+
| Dedust | 0xb56b9598 | Deposit Liquidity all |
224+
| Dedust | 0xad4eb6f5 | Pay Out From Pool |
225+
| Dedust | 0x474а86са | Payout |
226+
| Dedust | 0xb544f4a4 | Deposit |
227+
| Dedust | 0x3aa870a6 | Withdrawal |
228+
| Dedust | 0x21cfe02b | Create Vault |
229+
| Dedust | 0x97d51f2f | Create Volatile Pool |
230+
| Dedust | 0x166cedee | Cancel Deposit |
231+
| StonFi | 0x25938561 | Swap Internal |
232+
| StonFi | 0xf93bb43f | Payment Request |
233+
| StonFi | 0xfcf9e58f | Provide Liquidity |
234+
| StonFi | 0xc64370e5 | Swap Success |
235+
| StonFi | 0x45078540 | Swap Success ref |
236+
237+
:::info
238+
[DeDust docs](https://docs.dedust.io/docs/swaps)
239+
240+
[StonFi docs](https://docs.ston.fi/docs/developer-section/architecture#calls-descriptions)
241+
:::
242+
183243
## Conclusion
184244

185245
As you see, there are many different versions of wallets in TON. But in most cases, you only need `V3R2` or `V4R2`. You can also use one of the special wallets if you want to have some additional functionality like a periodic unlocking of funds.

0 commit comments

Comments
 (0)