sememe 0.0.0-stage → 0.4.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +2777 -2
- package/bin/sememe.mjs +556 -0
- package/index.mjs +48 -0
- package/interface/ata-ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL.json +62 -0
- package/interface/native-11111111111111111111111111111111.json +226 -0
- package/interface/native-ComputeBudget111111111111111111111111111111.json +72 -0
- package/interface/raydium-675kPX9MHTjS2zt1qfr1NYHuzeLXfQM9H24wFSUt1Mp8.json +352 -0
- package/interface/token-TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA.json +334 -0
- package/interface/token-TokenzQdBNbLqP5VEhdkAS6EPFLC1PHnBqCXEpPxuEb.json +535 -0
- package/interface/token-metadata.json +132 -0
- package/package.json +71 -4
- package/src/account-list.mjs +308 -0
- package/src/account-union.mjs +523 -0
- package/src/account.mjs +199 -0
- package/src/acquire.mjs +145 -0
- package/src/adopt.mjs +206 -0
- package/src/ata-interface.mjs +276 -0
- package/src/ata.mjs +223 -0
- package/src/base58.mjs +96 -0
- package/src/canonical.mjs +24 -0
- package/src/cli-surface.mjs +300 -0
- package/src/codec.mjs +1118 -0
- package/src/conformance.mjs +431 -0
- package/src/corpus/harvest-compute-budget-2026-10-31.json +19122 -0
- package/src/corpus/harvest-system-2026-10-31.json +26090 -0
- package/src/decode.mjs +286 -0
- package/src/dialect.mjs +180 -0
- package/src/discriminators.mjs +192 -0
- package/src/drift.mjs +172 -0
- package/src/gap.mjs +205 -0
- package/src/lighthouse.mjs +168 -0
- package/src/lock.mjs +440 -0
- package/src/native-audit.mjs +56 -0
- package/src/native-corpus.mjs +57 -0
- package/src/native-interface.mjs +252 -0
- package/src/native.mjs +324 -0
- package/src/peer.mjs +95 -0
- package/src/program-id.mjs +74 -0
- package/src/pull.mjs +117 -0
- package/src/rawle.mjs +454 -0
- package/src/raydium-interface.mjs +747 -0
- package/src/raydium.mjs +391 -0
- package/src/receipt-digest.mjs +84 -0
- package/src/receipt-name.mjs +128 -0
- package/src/receipt-order.mjs +56 -0
- package/src/shank.mjs +73 -0
- package/src/short-forms.mjs +209 -0
- package/src/store-read.mjs +253 -0
- package/src/store-write.mjs +46 -0
- package/src/token-interface.mjs +394 -0
- package/src/token-metadata-interface.mjs +371 -0
- package/src/token-metadata.mjs +317 -0
- package/src/token.mjs +443 -0
- package/src/union.mjs +428 -0
- package/vendor/anza-solana-sdk/8db406e2edfafa25939ec782b77b5b6f30de164d/LICENSE.txt +201 -0
- package/vendor/anza-solana-sdk/8db406e2edfafa25939ec782b77b5b6f30de164d/compute-budget-interface/src/lib.rs +93 -0
- package/vendor/anza-solana-sdk/8db406e2edfafa25939ec782b77b5b6f30de164d/system-interface/src/instruction.rs +1899 -0
- package/vendor/lighthouse/4c579479c98635e419b1b167f08be02a71604a71/LICENSE +21 -0
- package/vendor/lighthouse/4c579479c98635e419b1b167f08be02a71604a71/lighthouse.json +2769 -0
- package/vendor/raydium-amm/91739d8d9f5cf347e0ce14ebe4d2bb7069fb31b6/LICENSE +201 -0
- package/vendor/raydium-amm/91739d8d9f5cf347e0ce14ebe4d2bb7069fb31b6/program/src/instruction.rs +1189 -0
- package/vendor/raydium-amm/91739d8d9f5cf347e0ce14ebe4d2bb7069fb31b6/program/src/state.rs +1348 -0
- package/vendor/spl-associated-token-account/fbf5379e7398ac8b231c73ee8a9ff677b43dd0ec/LICENSE +201 -0
- package/vendor/spl-associated-token-account/fbf5379e7398ac8b231c73ee8a9ff677b43dd0ec/interface/src/instruction.rs +169 -0
- package/vendor/spl-associated-token-account/fbf5379e7398ac8b231c73ee8a9ff677b43dd0ec/interface/src/lib.rs +12 -0
- package/vendor/spl-associated-token-account/fbf5379e7398ac8b231c73ee8a9ff677b43dd0ec/program/src/processor.rs +308 -0
- package/vendor/spl-token/737788ff5bcc3f1f44cfb222f25483187650be76/LICENSE.txt +176 -0
- package/vendor/spl-token/737788ff5bcc3f1f44cfb222f25483187650be76/interface/src/instruction.rs +1963 -0
- package/vendor/spl-token-2022/5251dcc07ecbcb721d6c4f0231090defadf00311/LICENSE.txt +176 -0
- package/vendor/spl-token-2022/5251dcc07ecbcb721d6c4f0231090defadf00311/interface/src/instruction.rs +2868 -0
- package/vendor/spl-token-metadata-interface/7038969ec74a89f1afdb9bc97c112d4d26fead9a/LICENSE +201 -0
- package/vendor/spl-token-metadata-interface/7038969ec74a89f1afdb9bc97c112d4d26fead9a/interface/src/error.rs +58 -0
- package/vendor/spl-token-metadata-interface/7038969ec74a89f1afdb9bc97c112d4d26fead9a/interface/src/instruction.rs +596 -0
- package/vendor/spl-token-metadata-interface/7038969ec74a89f1afdb9bc97c112d4d26fead9a/interface/src/lib.rs +21 -0
- package/vendor/spl-token-metadata-interface/7038969ec74a89f1afdb9bc97c112d4d26fead9a/interface/src/state.rs +229 -0
|
@@ -0,0 +1,334 @@
|
|
|
1
|
+
{
|
|
2
|
+
"program": "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA",
|
|
3
|
+
"label": "SPL Token",
|
|
4
|
+
"scheme": "native-token",
|
|
5
|
+
"source": {
|
|
6
|
+
"repo": "solana-program/token",
|
|
7
|
+
"pin": "737788ff5bcc3f1f44cfb222f25483187650be76",
|
|
8
|
+
"file": "interface/src/instruction.rs",
|
|
9
|
+
"enum": "TokenInstruction (explicit tags, not declaration order)",
|
|
10
|
+
"fileSha256": "sha256:4f26ecac09a04fd307adb52024061996fff3b660c12693bb050313eedeed2fcc",
|
|
11
|
+
"vendoredAt": "vendor/spl-token/737788ff5bcc3f1f44cfb222f25483187650be76",
|
|
12
|
+
"derivation": "src/token-interface.mjs: tag = the integer upstream pack() writes and unpack() matches; args = the pack arm's byte-write sequence; option encoding = upstream pack_pubkey_option/pack_u64_option (1 tag byte + payload)"
|
|
13
|
+
},
|
|
14
|
+
"runtime": "solana-program/token program at this pin: unpack matches the same explicit tag set; an unknown tag is InvalidInstruction",
|
|
15
|
+
"selector": {
|
|
16
|
+
"width": 1,
|
|
17
|
+
"encoding": "u8 enum tag (explicit, sparse)"
|
|
18
|
+
},
|
|
19
|
+
"argEncoding": "u8/u16/u64 LE; pubkey 32 raw bytes; COption = 1 tag byte (0 none / 1 some) + payload; utf8_rest = whole remainder; u16_vec = run of 2-byte extension-type ids; bytes = raw remainder",
|
|
20
|
+
"authorityType": [
|
|
21
|
+
{
|
|
22
|
+
"byte": 0,
|
|
23
|
+
"name": "MintTokens"
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
"byte": 1,
|
|
27
|
+
"name": "FreezeAccount"
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
"byte": 2,
|
|
31
|
+
"name": "AccountOwner"
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
"byte": 3,
|
|
35
|
+
"name": "CloseAccount"
|
|
36
|
+
}
|
|
37
|
+
],
|
|
38
|
+
"instructions": [
|
|
39
|
+
{
|
|
40
|
+
"tag": 0,
|
|
41
|
+
"name": "InitializeMint",
|
|
42
|
+
"wire": "accepted",
|
|
43
|
+
"args": [
|
|
44
|
+
{
|
|
45
|
+
"name": "decimals",
|
|
46
|
+
"type": "u8"
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"name": "mint_authority",
|
|
50
|
+
"type": "pubkey"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
"name": "freeze_authority",
|
|
54
|
+
"type": "coption_pubkey"
|
|
55
|
+
}
|
|
56
|
+
]
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"tag": 1,
|
|
60
|
+
"name": "InitializeAccount",
|
|
61
|
+
"wire": "accepted",
|
|
62
|
+
"args": []
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
"tag": 2,
|
|
66
|
+
"name": "InitializeMultisig",
|
|
67
|
+
"wire": "accepted",
|
|
68
|
+
"args": [
|
|
69
|
+
{
|
|
70
|
+
"name": "m",
|
|
71
|
+
"type": "u8"
|
|
72
|
+
}
|
|
73
|
+
]
|
|
74
|
+
},
|
|
75
|
+
{
|
|
76
|
+
"tag": 3,
|
|
77
|
+
"name": "Transfer",
|
|
78
|
+
"wire": "accepted",
|
|
79
|
+
"args": [
|
|
80
|
+
{
|
|
81
|
+
"name": "amount",
|
|
82
|
+
"type": "u64"
|
|
83
|
+
}
|
|
84
|
+
]
|
|
85
|
+
},
|
|
86
|
+
{
|
|
87
|
+
"tag": 4,
|
|
88
|
+
"name": "Approve",
|
|
89
|
+
"wire": "accepted",
|
|
90
|
+
"args": [
|
|
91
|
+
{
|
|
92
|
+
"name": "amount",
|
|
93
|
+
"type": "u64"
|
|
94
|
+
}
|
|
95
|
+
]
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"tag": 5,
|
|
99
|
+
"name": "Revoke",
|
|
100
|
+
"wire": "accepted",
|
|
101
|
+
"args": []
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"tag": 6,
|
|
105
|
+
"name": "SetAuthority",
|
|
106
|
+
"wire": "accepted",
|
|
107
|
+
"args": [
|
|
108
|
+
{
|
|
109
|
+
"name": "authority_type",
|
|
110
|
+
"type": "authority_type"
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"name": "new_authority",
|
|
114
|
+
"type": "coption_pubkey"
|
|
115
|
+
}
|
|
116
|
+
]
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"tag": 7,
|
|
120
|
+
"name": "MintTo",
|
|
121
|
+
"wire": "accepted",
|
|
122
|
+
"args": [
|
|
123
|
+
{
|
|
124
|
+
"name": "amount",
|
|
125
|
+
"type": "u64"
|
|
126
|
+
}
|
|
127
|
+
]
|
|
128
|
+
},
|
|
129
|
+
{
|
|
130
|
+
"tag": 8,
|
|
131
|
+
"name": "Burn",
|
|
132
|
+
"wire": "accepted",
|
|
133
|
+
"args": [
|
|
134
|
+
{
|
|
135
|
+
"name": "amount",
|
|
136
|
+
"type": "u64"
|
|
137
|
+
}
|
|
138
|
+
]
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"tag": 9,
|
|
142
|
+
"name": "CloseAccount",
|
|
143
|
+
"wire": "accepted",
|
|
144
|
+
"args": []
|
|
145
|
+
},
|
|
146
|
+
{
|
|
147
|
+
"tag": 10,
|
|
148
|
+
"name": "FreezeAccount",
|
|
149
|
+
"wire": "accepted",
|
|
150
|
+
"args": []
|
|
151
|
+
},
|
|
152
|
+
{
|
|
153
|
+
"tag": 11,
|
|
154
|
+
"name": "ThawAccount",
|
|
155
|
+
"wire": "accepted",
|
|
156
|
+
"args": []
|
|
157
|
+
},
|
|
158
|
+
{
|
|
159
|
+
"tag": 12,
|
|
160
|
+
"name": "TransferChecked",
|
|
161
|
+
"wire": "accepted",
|
|
162
|
+
"args": [
|
|
163
|
+
{
|
|
164
|
+
"name": "amount",
|
|
165
|
+
"type": "u64"
|
|
166
|
+
},
|
|
167
|
+
{
|
|
168
|
+
"name": "decimals",
|
|
169
|
+
"type": "u8"
|
|
170
|
+
}
|
|
171
|
+
]
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"tag": 13,
|
|
175
|
+
"name": "ApproveChecked",
|
|
176
|
+
"wire": "accepted",
|
|
177
|
+
"args": [
|
|
178
|
+
{
|
|
179
|
+
"name": "amount",
|
|
180
|
+
"type": "u64"
|
|
181
|
+
},
|
|
182
|
+
{
|
|
183
|
+
"name": "decimals",
|
|
184
|
+
"type": "u8"
|
|
185
|
+
}
|
|
186
|
+
]
|
|
187
|
+
},
|
|
188
|
+
{
|
|
189
|
+
"tag": 14,
|
|
190
|
+
"name": "MintToChecked",
|
|
191
|
+
"wire": "accepted",
|
|
192
|
+
"args": [
|
|
193
|
+
{
|
|
194
|
+
"name": "amount",
|
|
195
|
+
"type": "u64"
|
|
196
|
+
},
|
|
197
|
+
{
|
|
198
|
+
"name": "decimals",
|
|
199
|
+
"type": "u8"
|
|
200
|
+
}
|
|
201
|
+
]
|
|
202
|
+
},
|
|
203
|
+
{
|
|
204
|
+
"tag": 15,
|
|
205
|
+
"name": "BurnChecked",
|
|
206
|
+
"wire": "accepted",
|
|
207
|
+
"args": [
|
|
208
|
+
{
|
|
209
|
+
"name": "amount",
|
|
210
|
+
"type": "u64"
|
|
211
|
+
},
|
|
212
|
+
{
|
|
213
|
+
"name": "decimals",
|
|
214
|
+
"type": "u8"
|
|
215
|
+
}
|
|
216
|
+
]
|
|
217
|
+
},
|
|
218
|
+
{
|
|
219
|
+
"tag": 16,
|
|
220
|
+
"name": "InitializeAccount2",
|
|
221
|
+
"wire": "accepted",
|
|
222
|
+
"args": [
|
|
223
|
+
{
|
|
224
|
+
"name": "owner",
|
|
225
|
+
"type": "pubkey"
|
|
226
|
+
}
|
|
227
|
+
]
|
|
228
|
+
},
|
|
229
|
+
{
|
|
230
|
+
"tag": 17,
|
|
231
|
+
"name": "SyncNative",
|
|
232
|
+
"wire": "accepted",
|
|
233
|
+
"args": []
|
|
234
|
+
},
|
|
235
|
+
{
|
|
236
|
+
"tag": 18,
|
|
237
|
+
"name": "InitializeAccount3",
|
|
238
|
+
"wire": "accepted",
|
|
239
|
+
"args": [
|
|
240
|
+
{
|
|
241
|
+
"name": "owner",
|
|
242
|
+
"type": "pubkey"
|
|
243
|
+
}
|
|
244
|
+
]
|
|
245
|
+
},
|
|
246
|
+
{
|
|
247
|
+
"tag": 19,
|
|
248
|
+
"name": "InitializeMultisig2",
|
|
249
|
+
"wire": "accepted",
|
|
250
|
+
"args": [
|
|
251
|
+
{
|
|
252
|
+
"name": "m",
|
|
253
|
+
"type": "u8"
|
|
254
|
+
}
|
|
255
|
+
]
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"tag": 20,
|
|
259
|
+
"name": "InitializeMint2",
|
|
260
|
+
"wire": "accepted",
|
|
261
|
+
"args": [
|
|
262
|
+
{
|
|
263
|
+
"name": "decimals",
|
|
264
|
+
"type": "u8"
|
|
265
|
+
},
|
|
266
|
+
{
|
|
267
|
+
"name": "mint_authority",
|
|
268
|
+
"type": "pubkey"
|
|
269
|
+
},
|
|
270
|
+
{
|
|
271
|
+
"name": "freeze_authority",
|
|
272
|
+
"type": "coption_pubkey"
|
|
273
|
+
}
|
|
274
|
+
]
|
|
275
|
+
},
|
|
276
|
+
{
|
|
277
|
+
"tag": 21,
|
|
278
|
+
"name": "GetAccountDataSize",
|
|
279
|
+
"wire": "accepted",
|
|
280
|
+
"args": []
|
|
281
|
+
},
|
|
282
|
+
{
|
|
283
|
+
"tag": 22,
|
|
284
|
+
"name": "InitializeImmutableOwner",
|
|
285
|
+
"wire": "accepted",
|
|
286
|
+
"args": []
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"tag": 23,
|
|
290
|
+
"name": "AmountToUiAmount",
|
|
291
|
+
"wire": "accepted",
|
|
292
|
+
"args": [
|
|
293
|
+
{
|
|
294
|
+
"name": "amount",
|
|
295
|
+
"type": "u64"
|
|
296
|
+
}
|
|
297
|
+
]
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"tag": 24,
|
|
301
|
+
"name": "UiAmountToAmount",
|
|
302
|
+
"wire": "accepted",
|
|
303
|
+
"args": [
|
|
304
|
+
{
|
|
305
|
+
"name": "ui_amount",
|
|
306
|
+
"type": "utf8_rest"
|
|
307
|
+
}
|
|
308
|
+
]
|
|
309
|
+
},
|
|
310
|
+
{
|
|
311
|
+
"tag": 38,
|
|
312
|
+
"name": "WithdrawExcessLamports",
|
|
313
|
+
"wire": "accepted",
|
|
314
|
+
"args": []
|
|
315
|
+
},
|
|
316
|
+
{
|
|
317
|
+
"tag": 45,
|
|
318
|
+
"name": "UnwrapLamports",
|
|
319
|
+
"wire": "accepted",
|
|
320
|
+
"args": [
|
|
321
|
+
{
|
|
322
|
+
"name": "amount",
|
|
323
|
+
"type": "coption_u64"
|
|
324
|
+
}
|
|
325
|
+
]
|
|
326
|
+
},
|
|
327
|
+
{
|
|
328
|
+
"tag": 255,
|
|
329
|
+
"name": "Batch",
|
|
330
|
+
"wire": "accepted",
|
|
331
|
+
"args": []
|
|
332
|
+
}
|
|
333
|
+
]
|
|
334
|
+
}
|