-
Notifications
You must be signed in to change notification settings - Fork 55
/
Copy pathjettons.xml
180 lines (161 loc) · 5.99 KB
/
jettons.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
<abi>
<types>
set_status#eed236d3
query_id:uint64
status:uint4
= JettonForceAction;
burn#595f07bc query_id:uint64 amount:(VarUInteger 16)
response_destination:MsgAddress custom_payload:(Maybe ^JettonPayload)
= JettonForceAction;
transfer#0f8a7ea5 query_id:uint64 amount:(VarUInteger 16) destination:MsgAddress
response_destination:MsgAddress custom_payload:(Maybe ^Cell)
forward_ton_amount:(VarUInteger 16) forward_payload:(Either JettonPayload ^JettonPayload)
= JettonForceAction;
</types>
<interface name="jetton_master">
<get_method name="get_jetton_data"/>
<get_method name="get_wallet_address"/>
<msg_in>
<internal name="jetton_burn_notification"/>
</msg_in>
</interface>
<interface name="jetton_wallet">
<get_method name="get_wallet_data"/>
<msg_in>
<internal name="jetton_transfer"/>
<internal name="jetton_internal_transfer"/>
<internal name="jetton_burn"/>
</msg_in>
<msg_out>
<internal name="jetton_burn_notification"/>
<internal name="jetton_internal_transfer"/>
<internal name="jetton_notify"/>
</msg_out>
</interface>
<interface name="jetton_wallet_v1" inherits="jetton_wallet">
<code_hash>beb0683ebeb8927fe9fc8ec0a18bc7dd17899689825a121eab46c5a3a860d0ce</code_hash>
</interface>
<interface name="jetton_wallet_v2" inherits="jetton_wallet">
<code_hash>8d28ea421b77e805fea52acf335296499f03aec8e9fd21ddb5f2564aa65c48de</code_hash>
</interface>
<interface name="jetton_wallet_governed" inherits="jetton_wallet">
<code_hash>89468f02c78e570802e39979c8516fc38df07ea76a48357e0536f2ba7b3ee37b</code_hash>
</interface>
<!-- Jettons -->
<get_method name="get_jetton_data">
<output>
<int name="total_supply">int257</int>
<int name="mintable">bool</int>
<slice name="admin_address">msgaddress</slice>
<cell name="jetton_content">any</cell>
<cell name="jetton_wallet_code">any</cell>
</output>
</get_method>
<get_method name="get_wallet_address" >
<input>
<slice name="owner_address">msgaddress</slice>
</input>
<output>
<slice name="jetton_wallet_address">msgaddress</slice>
</output>
</get_method>
<get_method name="get_wallet_data">
<output>
<int name="balance">int257</int>
<slice name="owner">msgaddress</slice>
<slice name="jetton">msgaddress</slice>
<cell name="jetton_wallet_code">any</cell>
</output>
</get_method>
<!-- governance jettons -->
<get_method name="get_status">
<output name="jetton" fixed_length="true">
<int name="status">uint8</int>
</output>
</get_method>
<get_method name="get_next_admin_address">
<output name="jetton" fixed_length="true">
<slice name="next_admin_address">msgaddress</slice>
</output>
</get_method>
<get_method name="is_claimed">
<output name="simple" fixed_length="true">
<int name="claimed">bool</int>
</output>
</get_method>
<!-- Jettons -->
<internal name="jetton_transfer" >
transfer#0f8a7ea5 query_id:uint64 amount:(VarUInteger 16) destination:MsgAddress
response_destination:MsgAddress custom_payload:(Maybe ^Cell)
forward_ton_amount:(VarUInteger 16) forward_payload:(Either JettonPayload ^JettonPayload) <!-- todo: maybe replace custom non-standard types with xml like <JettonPayload>Cell</JettonPayload>-->
= InternalMsgBody;
</internal>
<internal name="jetton_internal_transfer">
internal_transfer#178d4519 query_id:uint64 amount:(VarUInteger 16) from:MsgAddress
response_address:MsgAddress
forward_ton_amount:(VarUInteger 16)
forward_payload:(Either JettonPayload ^JettonPayload)
= InternalMsgBody;
</internal>
<internal name="jetton_burn" >
burn#595f07bc query_id:uint64 amount:(VarUInteger 16)
response_destination:MsgAddress custom_payload:(Maybe ^JettonPayload)
= InternalMsgBody;
</internal>
<internal name="jetton_burn_notification" >
burn_notification#7bdd97de query_id:uint64 amount:(VarUInteger 16)
sender:MsgAddress response_destination:MsgAddress = InternalMsgBody;
</internal>
<internal name="jetton_notify" >
transfer_notification#7362d09c query_id:uint64 amount:(VarUInteger 16)
sender:MsgAddress forward_payload:(Either JettonPayload ^JettonPayload)
= InternalMsgBody;
</internal>
<!-- Governance jettons -->
<internal name="jetton_set_status">
set_status#eed236d3
query_id:uint64
status:uint4
= InternalMsgBody;
</internal>
<internal name="jetton_mint">
mint#642b7d07
query_id:uint64
to_address:MsgAddressInt
ton_amount:Coins
<!-- master_msg:^JettonInternalTransfer-->
= InternalMsgBody;
</internal>
<internal name="jetton_change_admin">
change_admin#6501f354
query_id:uint64
new_admin_address:MsgAddress
= InternalMsgBody;
</internal>
<internal name="jetton_claim_admin">
claim_admin#fb88e119
query_id:uint64
= JettonMinterMsg;
</internal>
<internal name="jetton_call_to">
call_to#235caf52
query_id:uint64
to_address:MsgAddressInt
ton_amount:Coins
master_msg:^JettonForceAction
= JettonMinterMsg;
</internal>
<internal name="jetton_upgrade">
upgrade#2508d66a
query_id:uint64
new_data:^Cell
new_code:^Cell
= JettonMinterMsg;
</internal>
<internal name="jetton_change_metadata">
change_metadata_uri#cb862902
query_id:uint64
metadata:Cell
= JettonMinterMsg;
</internal>
</abi>