tonlib_core/message/
sbt.rs

1//! Constants from soulbound nft standard
2//! https://github.com/ton-blockchain/TEPs/blob/master/text/0085-sbt-standard.md
3
4/// prove_ownership#04ded148
5///   query_id:uint64
6///   dest:MsgAddress
7///   forward_payload:^Cell
8///   with_content:Bool
9/// = InternalMsgBody;
10pub const SBT_PROVE_OWNERSHIP: u32 = 0x04ded148;
11
12/// ownership_proof#0524c7ae
13///   query_id:uint64
14///   item_id:uint256
15///   owner:MsgAddress
16///   data:^Cell
17///   revoked_at:uint64
18///   content:(Maybe ^Cell)
19/// = InternalMsgBody;
20pub const SBT_OWNERSHIP_PROOF: u32 = 0x0524c7ae;
21
22/// request_owner#d0c3bfea
23///   query_id:uint64
24///   dest:MsgAddress
25///   forward_payload:^Cell
26///   with_content:Bool
27/// = InternalMsgBody;
28pub const SBT_REQUEST_OWNER: u32 = 0xd0c3bfea;
29
30/// owner_info#0dd607e3
31///   query_id:uint64
32///   item_id:uint256
33///   initiator:MsgAddress
34///   owner:MsgAddress  
35///   data:^Cell
36///   revoked_at:uint64
37///   content:(Maybe ^Cell)
38/// = InternalMsgBody;
39pub const SBT_OWNER_INFO: u32 = 0x0dd607e3;
40
41/// destroy#1f04537a
42///   query_id:uint64
43/// = InternalMsgBody;
44pub const SBT_DESTROY: u32 = 0x1f04537a;
45
46/// revoke#6f89f5e3
47///    query_id:uint64
48/// = InternalMsgBody;
49pub const SBT_REVOKE: u32 = 0x1f04537a;
50
51mod destroy;
52mod owner_info;
53mod ownership_proof;
54mod prove_ownersip;
55mod request_owner;
56mod revoke;
57
58pub use destroy::*;
59pub use owner_info::*;
60pub use ownership_proof::*;
61pub use prove_ownersip::*;
62pub use request_owner::*;
63pub use revoke::*;