@sentio/sdk 1.37.0-rc.1 → 1.37.0-rc.3

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.
Files changed (136) hide show
  1. package/lib/builtin/index.d.ts +0 -2
  2. package/lib/builtin/index.js +1 -3
  3. package/lib/builtin/index.js.map +1 -1
  4. package/lib/core/eth-plugin.js +12 -15
  5. package/lib/core/eth-plugin.js.map +1 -1
  6. package/lib/core/index.d.ts +0 -4
  7. package/lib/core/index.js +1 -9
  8. package/lib/core/index.js.map +1 -1
  9. package/lib/core/numberish.d.ts +1 -1
  10. package/lib/core/numberish.js +5 -13
  11. package/lib/core/numberish.js.map +1 -1
  12. package/lib/core/sui-plugin.js +1 -1
  13. package/lib/core/sui-plugin.js.map +1 -1
  14. package/lib/index.d.ts +1 -1
  15. package/lib/index.js +3 -14
  16. package/lib/index.js.map +1 -1
  17. package/lib/service.d.ts +0 -4
  18. package/lib/service.js +40 -71
  19. package/lib/service.js.map +1 -1
  20. package/package.json +5 -15
  21. package/src/builtin/index.ts +1 -4
  22. package/src/core/eth-plugin.ts +5 -8
  23. package/src/core/index.ts +0 -5
  24. package/src/core/numberish.ts +8 -15
  25. package/src/core/sui-plugin.ts +2 -2
  26. package/src/index.ts +3 -1
  27. package/src/service.ts +13 -71
  28. package/lib/aptos/api.d.ts +0 -2
  29. package/lib/aptos/api.js +0 -14
  30. package/lib/aptos/api.js.map +0 -1
  31. package/lib/aptos/aptos-plugin.d.ts +0 -14
  32. package/lib/aptos/aptos-plugin.js +0 -185
  33. package/lib/aptos/aptos-plugin.js.map +0 -1
  34. package/lib/aptos/aptos-processor.d.ts +0 -75
  35. package/lib/aptos/aptos-processor.js +0 -193
  36. package/lib/aptos/aptos-processor.js.map +0 -1
  37. package/lib/aptos/context.d.ts +0 -22
  38. package/lib/aptos/context.js +0 -65
  39. package/lib/aptos/context.js.map +0 -1
  40. package/lib/aptos/index.d.ts +0 -9
  41. package/lib/aptos/index.js +0 -34
  42. package/lib/aptos/index.js.map +0 -1
  43. package/lib/aptos/models.d.ts +0 -23
  44. package/lib/aptos/models.js +0 -3
  45. package/lib/aptos/models.js.map +0 -1
  46. package/lib/aptos/network.d.ts +0 -14
  47. package/lib/aptos/network.js +0 -46
  48. package/lib/aptos/network.js.map +0 -1
  49. package/lib/aptos/runtime.d.ts +0 -2
  50. package/lib/aptos/runtime.js +0 -16
  51. package/lib/aptos/runtime.js.map +0 -1
  52. package/lib/aptos/type-registry.d.ts +0 -21
  53. package/lib/aptos/type-registry.js +0 -156
  54. package/lib/aptos/type-registry.js.map +0 -1
  55. package/lib/aptos/types.d.ts +0 -9
  56. package/lib/aptos/types.js +0 -135
  57. package/lib/aptos/types.js.map +0 -1
  58. package/lib/aptos/types.test.d.ts +0 -1
  59. package/lib/aptos/types.test.js.map +0 -1
  60. package/lib/aptos/utils.d.ts +0 -7
  61. package/lib/aptos/utils.js +0 -27
  62. package/lib/aptos/utils.js.map +0 -1
  63. package/lib/aptos-codegen/codegen.d.ts +0 -23
  64. package/lib/aptos-codegen/codegen.js +0 -364
  65. package/lib/aptos-codegen/codegen.js.map +0 -1
  66. package/lib/aptos-codegen/typegen.d.ts +0 -17
  67. package/lib/aptos-codegen/typegen.js +0 -142
  68. package/lib/aptos-codegen/typegen.js.map +0 -1
  69. package/lib/builtin/aptos/0x1.d.ts +0 -1913
  70. package/lib/builtin/aptos/0x1.js +0 -2748
  71. package/lib/builtin/aptos/0x1.js.map +0 -1
  72. package/lib/builtin/aptos/0x3.d.ts +0 -482
  73. package/lib/builtin/aptos/0x3.js +0 -526
  74. package/lib/builtin/aptos/0x3.js.map +0 -1
  75. package/lib/builtin/aptos/index.d.ts +0 -2
  76. package/lib/builtin/aptos/index.js +0 -29
  77. package/lib/builtin/aptos/index.js.map +0 -1
  78. package/lib/builtin/solana/index.d.ts +0 -2
  79. package/lib/builtin/solana/index.js +0 -19
  80. package/lib/builtin/solana/index.js.map +0 -1
  81. package/lib/builtin/solana/spl-token-processor.d.ts +0 -39
  82. package/lib/builtin/solana/spl-token-processor.js +0 -258
  83. package/lib/builtin/solana/spl-token-processor.js.map +0 -1
  84. package/lib/builtin/solana/types.d.ts +0 -427
  85. package/lib/builtin/solana/types.js +0 -203
  86. package/lib/builtin/solana/types.js.map +0 -1
  87. package/lib/builtin/solana/wormhole-processor.d.ts +0 -16
  88. package/lib/builtin/solana/wormhole-processor.js +0 -195
  89. package/lib/builtin/solana/wormhole-processor.js.map +0 -1
  90. package/lib/core/solana-context.d.ts +0 -11
  91. package/lib/core/solana-context.js +0 -34
  92. package/lib/core/solana-context.js.map +0 -1
  93. package/lib/core/solana-options.d.ts +0 -8
  94. package/lib/core/solana-options.js +0 -13
  95. package/lib/core/solana-options.js.map +0 -1
  96. package/lib/core/solana-plugin.d.ts +0 -9
  97. package/lib/core/solana-plugin.js +0 -79
  98. package/lib/core/solana-plugin.js.map +0 -1
  99. package/lib/core/solana-processor.d.ts +0 -40
  100. package/lib/core/solana-processor.js +0 -80
  101. package/lib/core/solana-processor.js.map +0 -1
  102. package/lib/solana-codegen/codegen.d.ts +0 -1
  103. package/lib/solana-codegen/codegen.js +0 -113
  104. package/lib/solana-codegen/codegen.js.map +0 -1
  105. package/lib/test-abi-code-gen.d.ts +0 -2
  106. package/lib/test-abi-code-gen.js +0 -20
  107. package/lib/test-abi-code-gen.js.map +0 -1
  108. package/src/abis/aptos/0x1.json +0 -9205
  109. package/src/abis/aptos/0x3.json +0 -1515
  110. package/src/aptos/api.ts +0 -11
  111. package/src/aptos/aptos-plugin.ts +0 -216
  112. package/src/aptos/aptos-processor.ts +0 -305
  113. package/src/aptos/context.ts +0 -74
  114. package/src/aptos/index.ts +0 -10
  115. package/src/aptos/models.ts +0 -34
  116. package/src/aptos/network.ts +0 -42
  117. package/src/aptos/runtime.ts +0 -13
  118. package/src/aptos/type-registry.ts +0 -187
  119. package/src/aptos/types.ts +0 -149
  120. package/src/aptos/utils.ts +0 -26
  121. package/src/aptos-codegen/codegen.ts +0 -428
  122. package/src/aptos-codegen/tsconfig.json +0 -9
  123. package/src/aptos-codegen/typegen.ts +0 -153
  124. package/src/builtin/aptos/0x1.ts +0 -4210
  125. package/src/builtin/aptos/0x3.ts +0 -888
  126. package/src/builtin/aptos/index.ts +0 -2
  127. package/src/builtin/solana/index.ts +0 -2
  128. package/src/builtin/solana/spl-token-processor.ts +0 -298
  129. package/src/builtin/solana/types.ts +0 -279
  130. package/src/builtin/solana/wormhole-processor.ts +0 -178
  131. package/src/core/solana-context.ts +0 -34
  132. package/src/core/solana-options.ts +0 -8
  133. package/src/core/solana-plugin.ts +0 -97
  134. package/src/core/solana-processor.ts +0 -102
  135. package/src/solana-codegen/codegen.ts +0 -116
  136. package/src/test-abi-code-gen.ts +0 -16
@@ -1,427 +0,0 @@
1
- import { Infer } from "superstruct";
2
- export declare const PublicKeyFromString: import("superstruct").Struct<String, null>;
3
- export declare type TokenAmountUi = Infer<typeof TokenAmountUi>;
4
- export declare type MintTo = Infer<typeof MintTo>;
5
- export declare type Burn = Infer<typeof Burn>;
6
- export declare type InitializeMint = Infer<typeof InitializeMint>;
7
- export declare type InitializeAccount = Infer<typeof InitializeAccount>;
8
- export declare type InitializeAccount2 = Infer<typeof InitializeAccount2>;
9
- export declare type InitializeAccount3 = Infer<typeof InitializeAccount3>;
10
- export declare type InitializeMultisig = Infer<typeof InitializeMultisig>;
11
- export declare const TokenAmountUi: import("superstruct").Struct<{
12
- decimals: number;
13
- amount: string;
14
- uiAmountString: string;
15
- }, {
16
- amount: import("superstruct").Struct<string, null>;
17
- decimals: import("superstruct").Struct<number, null>;
18
- uiAmountString: import("superstruct").Struct<string, null>;
19
- }>;
20
- declare const InitializeMint: import("superstruct").Struct<{
21
- decimals: number;
22
- mint: String;
23
- mintAuthority: String;
24
- rentSysvar: String;
25
- freezeAuthority?: String | undefined;
26
- }, {
27
- mint: import("superstruct").Struct<String, null>;
28
- decimals: import("superstruct").Struct<number, null>;
29
- mintAuthority: import("superstruct").Struct<String, null>;
30
- rentSysvar: import("superstruct").Struct<String, null>;
31
- freezeAuthority: import("superstruct").Struct<String | undefined, null>;
32
- }>;
33
- declare const InitializeAccount: import("superstruct").Struct<{
34
- account: String;
35
- owner: String;
36
- mint: String;
37
- rentSysvar: String;
38
- }, {
39
- account: import("superstruct").Struct<String, null>;
40
- mint: import("superstruct").Struct<String, null>;
41
- owner: import("superstruct").Struct<String, null>;
42
- rentSysvar: import("superstruct").Struct<String, null>;
43
- }>;
44
- declare const InitializeAccount2: import("superstruct").Struct<{
45
- account: String;
46
- owner: String;
47
- mint: String;
48
- rentSysvar: String;
49
- }, {
50
- account: import("superstruct").Struct<String, null>;
51
- mint: import("superstruct").Struct<String, null>;
52
- rentSysvar: import("superstruct").Struct<String, null>;
53
- owner: import("superstruct").Struct<String, null>;
54
- }>;
55
- declare const InitializeAccount3: import("superstruct").Struct<{
56
- account: String;
57
- owner: String;
58
- mint: String;
59
- }, {
60
- account: import("superstruct").Struct<String, null>;
61
- mint: import("superstruct").Struct<String, null>;
62
- owner: import("superstruct").Struct<String, null>;
63
- }>;
64
- declare const InitializeMultisig: import("superstruct").Struct<{
65
- signers: String[];
66
- rentSysvar: String;
67
- multisig: String;
68
- m: number;
69
- }, {
70
- multisig: import("superstruct").Struct<String, null>;
71
- rentSysvar: import("superstruct").Struct<String, null>;
72
- signers: import("superstruct").Struct<String[], import("superstruct").Struct<String, null>>;
73
- m: import("superstruct").Struct<number, null>;
74
- }>;
75
- export declare type Transfer = Infer<typeof Transfer>;
76
- export declare const Transfer: import("superstruct").Struct<{
77
- amount: string | number;
78
- source: String;
79
- destination: String;
80
- signers?: String[] | undefined;
81
- authority?: String | undefined;
82
- multisigAuthority?: String | undefined;
83
- }, {
84
- source: import("superstruct").Struct<String, null>;
85
- destination: import("superstruct").Struct<String, null>;
86
- amount: import("superstruct").Struct<string | number, null>;
87
- authority: import("superstruct").Struct<String | undefined, null>;
88
- multisigAuthority: import("superstruct").Struct<String | undefined, null>;
89
- signers: import("superstruct").Struct<String[] | undefined, import("superstruct").Struct<String, null>>;
90
- }>;
91
- export declare type Approve = Infer<typeof Approve>;
92
- declare const Approve: import("superstruct").Struct<{
93
- amount: string | number;
94
- source: String;
95
- delegate: String;
96
- owner?: String | undefined;
97
- signers?: String[] | undefined;
98
- multisigOwner?: String | undefined;
99
- }, {
100
- source: import("superstruct").Struct<String, null>;
101
- delegate: import("superstruct").Struct<String, null>;
102
- amount: import("superstruct").Struct<string | number, null>;
103
- owner: import("superstruct").Struct<String | undefined, null>;
104
- multisigOwner: import("superstruct").Struct<String | undefined, null>;
105
- signers: import("superstruct").Struct<String[] | undefined, import("superstruct").Struct<String, null>>;
106
- }>;
107
- export declare type Revoke = Infer<typeof Revoke>;
108
- declare const Revoke: import("superstruct").Struct<{
109
- source: String;
110
- owner?: String | undefined;
111
- signers?: String[] | undefined;
112
- multisigOwner?: String | undefined;
113
- }, {
114
- source: import("superstruct").Struct<String, null>;
115
- owner: import("superstruct").Struct<String | undefined, null>;
116
- multisigOwner: import("superstruct").Struct<String | undefined, null>;
117
- signers: import("superstruct").Struct<String[] | undefined, import("superstruct").Struct<String, null>>;
118
- }>;
119
- export declare type SetAuthority = Infer<typeof SetAuthority>;
120
- declare const SetAuthority: import("superstruct").Struct<{
121
- authorityType: "mintTokens" | "freezeAccount" | "accountOwner" | "closeAccount";
122
- newAuthority: String | null;
123
- account?: String | undefined;
124
- mint?: String | undefined;
125
- signers?: String[] | undefined;
126
- authority?: String | undefined;
127
- multisigAuthority?: String | undefined;
128
- }, {
129
- mint: import("superstruct").Struct<String | undefined, null>;
130
- account: import("superstruct").Struct<String | undefined, null>;
131
- authorityType: import("superstruct").Struct<"mintTokens" | "freezeAccount" | "accountOwner" | "closeAccount", {
132
- mintTokens: "mintTokens";
133
- freezeAccount: "freezeAccount";
134
- accountOwner: "accountOwner";
135
- closeAccount: "closeAccount";
136
- }>;
137
- newAuthority: import("superstruct").Struct<String | null, null>;
138
- authority: import("superstruct").Struct<String | undefined, null>;
139
- multisigAuthority: import("superstruct").Struct<String | undefined, null>;
140
- signers: import("superstruct").Struct<String[] | undefined, import("superstruct").Struct<String, null>>;
141
- }>;
142
- declare const MintTo: import("superstruct").Struct<{
143
- account: String;
144
- amount: string | number;
145
- mint: String;
146
- mintAuthority?: String | undefined;
147
- multisigMintAuthority?: String | undefined;
148
- signers?: String[] | undefined;
149
- }, {
150
- mint: import("superstruct").Struct<String, null>;
151
- account: import("superstruct").Struct<String, null>;
152
- amount: import("superstruct").Struct<string | number, null>;
153
- mintAuthority: import("superstruct").Struct<String | undefined, null>;
154
- multisigMintAuthority: import("superstruct").Struct<String | undefined, null>;
155
- signers: import("superstruct").Struct<String[] | undefined, import("superstruct").Struct<String, null>>;
156
- }>;
157
- declare const Burn: import("superstruct").Struct<{
158
- account: String;
159
- amount: string | number;
160
- mint: String;
161
- signers?: String[] | undefined;
162
- authority?: String | undefined;
163
- multisigAuthority?: String | undefined;
164
- }, {
165
- account: import("superstruct").Struct<String, null>;
166
- mint: import("superstruct").Struct<String, null>;
167
- amount: import("superstruct").Struct<string | number, null>;
168
- authority: import("superstruct").Struct<String | undefined, null>;
169
- multisigAuthority: import("superstruct").Struct<String | undefined, null>;
170
- signers: import("superstruct").Struct<String[] | undefined, import("superstruct").Struct<String, null>>;
171
- }>;
172
- declare const CloseAccount: import("superstruct").Struct<{
173
- account: String;
174
- destination: String;
175
- owner?: String | undefined;
176
- signers?: String[] | undefined;
177
- multisigOwner?: String | undefined;
178
- }, {
179
- account: import("superstruct").Struct<String, null>;
180
- destination: import("superstruct").Struct<String, null>;
181
- owner: import("superstruct").Struct<String | undefined, null>;
182
- multisigOwner: import("superstruct").Struct<String | undefined, null>;
183
- signers: import("superstruct").Struct<String[] | undefined, import("superstruct").Struct<String, null>>;
184
- }>;
185
- export declare type CloseAccount = Infer<typeof CloseAccount>;
186
- export declare type FreezeAccount = Infer<typeof FreezeAccount>;
187
- declare const FreezeAccount: import("superstruct").Struct<{
188
- account: String;
189
- mint: String;
190
- signers?: String[] | undefined;
191
- freezeAuthority?: String | undefined;
192
- multisigFreezeAuthority?: String | undefined;
193
- }, {
194
- account: import("superstruct").Struct<String, null>;
195
- mint: import("superstruct").Struct<String, null>;
196
- freezeAuthority: import("superstruct").Struct<String | undefined, null>;
197
- multisigFreezeAuthority: import("superstruct").Struct<String | undefined, null>;
198
- signers: import("superstruct").Struct<String[] | undefined, import("superstruct").Struct<String, null>>;
199
- }>;
200
- export declare type ThawAccount = Infer<typeof ThawAccount>;
201
- declare const ThawAccount: import("superstruct").Struct<{
202
- account: String;
203
- mint: String;
204
- signers?: String[] | undefined;
205
- freezeAuthority?: String | undefined;
206
- multisigFreezeAuthority?: String | undefined;
207
- }, {
208
- account: import("superstruct").Struct<String, null>;
209
- mint: import("superstruct").Struct<String, null>;
210
- freezeAuthority: import("superstruct").Struct<String | undefined, null>;
211
- multisigFreezeAuthority: import("superstruct").Struct<String | undefined, null>;
212
- signers: import("superstruct").Struct<String[] | undefined, import("superstruct").Struct<String, null>>;
213
- }>;
214
- export declare type TransferChecked = Infer<typeof TransferChecked>;
215
- export declare const TransferChecked: import("superstruct").Struct<{
216
- mint: String;
217
- source: String;
218
- destination: String;
219
- tokenAmount: {
220
- decimals: number;
221
- amount: string;
222
- uiAmountString: string;
223
- };
224
- signers?: String[] | undefined;
225
- authority?: String | undefined;
226
- multisigAuthority?: String | undefined;
227
- }, {
228
- source: import("superstruct").Struct<String, null>;
229
- mint: import("superstruct").Struct<String, null>;
230
- destination: import("superstruct").Struct<String, null>;
231
- authority: import("superstruct").Struct<String | undefined, null>;
232
- multisigAuthority: import("superstruct").Struct<String | undefined, null>;
233
- signers: import("superstruct").Struct<String[] | undefined, import("superstruct").Struct<String, null>>;
234
- tokenAmount: import("superstruct").Struct<{
235
- decimals: number;
236
- amount: string;
237
- uiAmountString: string;
238
- }, {
239
- amount: import("superstruct").Struct<string, null>;
240
- decimals: import("superstruct").Struct<number, null>;
241
- uiAmountString: import("superstruct").Struct<string, null>;
242
- }>;
243
- }>;
244
- export declare type ApproveChecked = Infer<typeof ApproveChecked>;
245
- declare const ApproveChecked: import("superstruct").Struct<{
246
- mint: String;
247
- source: String;
248
- delegate: String;
249
- tokenAmount: {
250
- decimals: number;
251
- amount: string;
252
- uiAmountString: string;
253
- };
254
- owner?: String | undefined;
255
- signers?: String[] | undefined;
256
- multisigOwner?: String | undefined;
257
- }, {
258
- source: import("superstruct").Struct<String, null>;
259
- mint: import("superstruct").Struct<String, null>;
260
- delegate: import("superstruct").Struct<String, null>;
261
- owner: import("superstruct").Struct<String | undefined, null>;
262
- multisigOwner: import("superstruct").Struct<String | undefined, null>;
263
- signers: import("superstruct").Struct<String[] | undefined, import("superstruct").Struct<String, null>>;
264
- tokenAmount: import("superstruct").Struct<{
265
- decimals: number;
266
- amount: string;
267
- uiAmountString: string;
268
- }, {
269
- amount: import("superstruct").Struct<string, null>;
270
- decimals: import("superstruct").Struct<number, null>;
271
- uiAmountString: import("superstruct").Struct<string, null>;
272
- }>;
273
- }>;
274
- export declare type MintToChecked = Infer<typeof MintToChecked>;
275
- declare const MintToChecked: import("superstruct").Struct<{
276
- account: String;
277
- mint: String;
278
- tokenAmount: {
279
- decimals: number;
280
- amount: string;
281
- uiAmountString: string;
282
- };
283
- mintAuthority?: String | undefined;
284
- multisigMintAuthority?: String | undefined;
285
- signers?: String[] | undefined;
286
- }, {
287
- account: import("superstruct").Struct<String, null>;
288
- mint: import("superstruct").Struct<String, null>;
289
- mintAuthority: import("superstruct").Struct<String | undefined, null>;
290
- multisigMintAuthority: import("superstruct").Struct<String | undefined, null>;
291
- signers: import("superstruct").Struct<String[] | undefined, import("superstruct").Struct<String, null>>;
292
- tokenAmount: import("superstruct").Struct<{
293
- decimals: number;
294
- amount: string;
295
- uiAmountString: string;
296
- }, {
297
- amount: import("superstruct").Struct<string, null>;
298
- decimals: import("superstruct").Struct<number, null>;
299
- uiAmountString: import("superstruct").Struct<string, null>;
300
- }>;
301
- }>;
302
- export declare type BurnChecked = Infer<typeof BurnChecked>;
303
- declare const BurnChecked: import("superstruct").Struct<{
304
- account: String;
305
- mint: String;
306
- tokenAmount: {
307
- decimals: number;
308
- amount: string;
309
- uiAmountString: string;
310
- };
311
- signers?: String[] | undefined;
312
- authority?: String | undefined;
313
- multisigAuthority?: String | undefined;
314
- }, {
315
- account: import("superstruct").Struct<String, null>;
316
- mint: import("superstruct").Struct<String, null>;
317
- authority: import("superstruct").Struct<String | undefined, null>;
318
- multisigAuthority: import("superstruct").Struct<String | undefined, null>;
319
- signers: import("superstruct").Struct<String[] | undefined, import("superstruct").Struct<String, null>>;
320
- tokenAmount: import("superstruct").Struct<{
321
- decimals: number;
322
- amount: string;
323
- uiAmountString: string;
324
- }, {
325
- amount: import("superstruct").Struct<string, null>;
326
- decimals: import("superstruct").Struct<number, null>;
327
- uiAmountString: import("superstruct").Struct<string, null>;
328
- }>;
329
- }>;
330
- export declare type SyncNative = Infer<typeof BurnChecked>;
331
- export declare type GetAccountDataSize = Infer<typeof GetAccountDataSize>;
332
- declare const GetAccountDataSize: import("superstruct").Struct<{
333
- mint: String;
334
- extensionTypes?: string[] | undefined;
335
- }, {
336
- mint: import("superstruct").Struct<String, null>;
337
- extensionTypes: import("superstruct").Struct<string[] | undefined, import("superstruct").Struct<string, null>>;
338
- }>;
339
- export declare type InitializeImmutableOwner = Infer<typeof InitializeImmutableOwner>;
340
- declare const InitializeImmutableOwner: import("superstruct").Struct<{
341
- account: String;
342
- }, {
343
- account: import("superstruct").Struct<String, null>;
344
- }>;
345
- export declare type AmountToUiAmount = Infer<typeof AmountToUiAmount>;
346
- declare const AmountToUiAmount: import("superstruct").Struct<{
347
- amount: string | number;
348
- mint: String;
349
- }, {
350
- mint: import("superstruct").Struct<String, null>;
351
- amount: import("superstruct").Struct<string | number, null>;
352
- }>;
353
- export declare type UiAmountToAmount = Infer<typeof UiAmountToAmount>;
354
- declare const UiAmountToAmount: import("superstruct").Struct<{
355
- mint: String;
356
- uiAmount: string;
357
- }, {
358
- mint: import("superstruct").Struct<String, null>;
359
- uiAmount: import("superstruct").Struct<string, null>;
360
- }>;
361
- export declare type InitializeMintCloseAuthority = Infer<typeof InitializeMintCloseAuthority>;
362
- declare const InitializeMintCloseAuthority: import("superstruct").Struct<{
363
- mint: String;
364
- newAuthority: String;
365
- }, {
366
- mint: import("superstruct").Struct<String, null>;
367
- newAuthority: import("superstruct").Struct<String, null>;
368
- }>;
369
- export declare type TransferFeeExtension = Infer<typeof TransferFeeExtension>;
370
- declare const TransferFeeExtension: import("superstruct").Struct<{
371
- mint: String;
372
- transferFeeConfigAuthority: String;
373
- withdrawWitheldAuthority: String;
374
- transferFeeBasisPoints: number;
375
- maximumFee: number;
376
- }, {
377
- mint: import("superstruct").Struct<String, null>;
378
- transferFeeConfigAuthority: import("superstruct").Struct<String, null>;
379
- withdrawWitheldAuthority: import("superstruct").Struct<String, null>;
380
- transferFeeBasisPoints: import("superstruct").Struct<number, null>;
381
- maximumFee: import("superstruct").Struct<number, null>;
382
- }>;
383
- export declare type DefaultAccountStateExtension = Infer<typeof DefaultAccountStateExtension>;
384
- declare const DefaultAccountStateExtension: import("superstruct").Struct<{
385
- mint: String;
386
- accountState: string;
387
- freezeAuthority?: String | undefined;
388
- }, {
389
- mint: import("superstruct").Struct<String, null>;
390
- accountState: import("superstruct").Struct<string, null>;
391
- freezeAuthority: import("superstruct").Struct<String | undefined, null>;
392
- }>;
393
- export declare type Reallocate = Infer<typeof Reallocate>;
394
- declare const Reallocate: import("superstruct").Struct<{
395
- account: String;
396
- extensionTypes: string[];
397
- payer: String;
398
- systemProgram: String;
399
- }, {
400
- account: import("superstruct").Struct<String, null>;
401
- payer: import("superstruct").Struct<String, null>;
402
- systemProgram: import("superstruct").Struct<String, null>;
403
- extensionTypes: import("superstruct").Struct<string[], import("superstruct").Struct<string, null>>;
404
- }>;
405
- export declare type MemoTransferExtension = Infer<typeof MemoTransferExtension>;
406
- declare const MemoTransferExtension: import("superstruct").Struct<{
407
- account: String;
408
- owner?: String | undefined;
409
- signers?: String[] | undefined;
410
- multisigOwner?: String | undefined;
411
- }, {
412
- account: import("superstruct").Struct<String, null>;
413
- owner: import("superstruct").Struct<String | undefined, null>;
414
- multisigOwner: import("superstruct").Struct<String | undefined, null>;
415
- signers: import("superstruct").Struct<String[] | undefined, import("superstruct").Struct<String, null>>;
416
- }>;
417
- export declare type CreateNativeMint = Infer<typeof CreateNativeMint>;
418
- declare const CreateNativeMint: import("superstruct").Struct<{
419
- payer: String;
420
- systemProgram: String;
421
- nativeMint: String;
422
- }, {
423
- payer: import("superstruct").Struct<String, null>;
424
- nativeMint: import("superstruct").Struct<String, null>;
425
- systemProgram: import("superstruct").Struct<String, null>;
426
- }>;
427
- export {};
@@ -1,203 +0,0 @@
1
- "use strict";
2
- /* eslint-disable @typescript-eslint/no-redeclare */
3
- // copy from https://github.com/solana-labs/solana/blob/master/explorer/src/components/instruction/token/types.ts
4
- Object.defineProperty(exports, "__esModule", { value: true });
5
- exports.TransferChecked = exports.Transfer = exports.TokenAmountUi = exports.PublicKeyFromString = void 0;
6
- const superstruct_1 = require("superstruct");
7
- // Replace with string
8
- exports.PublicKeyFromString = (0, superstruct_1.coerce)((0, superstruct_1.instance)(String), (0, superstruct_1.string)(), (value) => (value));
9
- exports.TokenAmountUi = (0, superstruct_1.type)({
10
- amount: (0, superstruct_1.string)(),
11
- decimals: (0, superstruct_1.number)(),
12
- uiAmountString: (0, superstruct_1.string)(),
13
- });
14
- const InitializeMint = (0, superstruct_1.type)({
15
- mint: exports.PublicKeyFromString,
16
- decimals: (0, superstruct_1.number)(),
17
- mintAuthority: exports.PublicKeyFromString,
18
- rentSysvar: exports.PublicKeyFromString,
19
- freezeAuthority: (0, superstruct_1.optional)(exports.PublicKeyFromString),
20
- });
21
- const InitializeAccount = (0, superstruct_1.type)({
22
- account: exports.PublicKeyFromString,
23
- mint: exports.PublicKeyFromString,
24
- owner: exports.PublicKeyFromString,
25
- rentSysvar: exports.PublicKeyFromString,
26
- });
27
- const InitializeAccount2 = (0, superstruct_1.type)({
28
- account: exports.PublicKeyFromString,
29
- mint: exports.PublicKeyFromString,
30
- rentSysvar: exports.PublicKeyFromString,
31
- owner: exports.PublicKeyFromString,
32
- });
33
- const InitializeAccount3 = (0, superstruct_1.type)({
34
- account: exports.PublicKeyFromString,
35
- mint: exports.PublicKeyFromString,
36
- owner: exports.PublicKeyFromString,
37
- });
38
- const InitializeMultisig = (0, superstruct_1.type)({
39
- multisig: exports.PublicKeyFromString,
40
- rentSysvar: exports.PublicKeyFromString,
41
- signers: (0, superstruct_1.array)(exports.PublicKeyFromString),
42
- m: (0, superstruct_1.number)(),
43
- });
44
- exports.Transfer = (0, superstruct_1.type)({
45
- source: exports.PublicKeyFromString,
46
- destination: exports.PublicKeyFromString,
47
- amount: (0, superstruct_1.union)([(0, superstruct_1.string)(), (0, superstruct_1.number)()]),
48
- authority: (0, superstruct_1.optional)(exports.PublicKeyFromString),
49
- multisigAuthority: (0, superstruct_1.optional)(exports.PublicKeyFromString),
50
- signers: (0, superstruct_1.optional)((0, superstruct_1.array)(exports.PublicKeyFromString)),
51
- });
52
- const Approve = (0, superstruct_1.type)({
53
- source: exports.PublicKeyFromString,
54
- delegate: exports.PublicKeyFromString,
55
- amount: (0, superstruct_1.union)([(0, superstruct_1.string)(), (0, superstruct_1.number)()]),
56
- owner: (0, superstruct_1.optional)(exports.PublicKeyFromString),
57
- multisigOwner: (0, superstruct_1.optional)(exports.PublicKeyFromString),
58
- signers: (0, superstruct_1.optional)((0, superstruct_1.array)(exports.PublicKeyFromString)),
59
- });
60
- const Revoke = (0, superstruct_1.type)({
61
- source: exports.PublicKeyFromString,
62
- owner: (0, superstruct_1.optional)(exports.PublicKeyFromString),
63
- multisigOwner: (0, superstruct_1.optional)(exports.PublicKeyFromString),
64
- signers: (0, superstruct_1.optional)((0, superstruct_1.array)(exports.PublicKeyFromString)),
65
- });
66
- const AuthorityType = (0, superstruct_1.enums)([
67
- "mintTokens",
68
- "freezeAccount",
69
- "accountOwner",
70
- "closeAccount",
71
- ]);
72
- const SetAuthority = (0, superstruct_1.type)({
73
- mint: (0, superstruct_1.optional)(exports.PublicKeyFromString),
74
- account: (0, superstruct_1.optional)(exports.PublicKeyFromString),
75
- authorityType: AuthorityType,
76
- newAuthority: (0, superstruct_1.nullable)(exports.PublicKeyFromString),
77
- authority: (0, superstruct_1.optional)(exports.PublicKeyFromString),
78
- multisigAuthority: (0, superstruct_1.optional)(exports.PublicKeyFromString),
79
- signers: (0, superstruct_1.optional)((0, superstruct_1.array)(exports.PublicKeyFromString)),
80
- });
81
- const MintTo = (0, superstruct_1.type)({
82
- mint: exports.PublicKeyFromString,
83
- account: exports.PublicKeyFromString,
84
- amount: (0, superstruct_1.union)([(0, superstruct_1.string)(), (0, superstruct_1.number)()]),
85
- mintAuthority: (0, superstruct_1.optional)(exports.PublicKeyFromString),
86
- multisigMintAuthority: (0, superstruct_1.optional)(exports.PublicKeyFromString),
87
- signers: (0, superstruct_1.optional)((0, superstruct_1.array)(exports.PublicKeyFromString)),
88
- });
89
- const Burn = (0, superstruct_1.type)({
90
- account: exports.PublicKeyFromString,
91
- mint: exports.PublicKeyFromString,
92
- amount: (0, superstruct_1.union)([(0, superstruct_1.string)(), (0, superstruct_1.number)()]),
93
- authority: (0, superstruct_1.optional)(exports.PublicKeyFromString),
94
- multisigAuthority: (0, superstruct_1.optional)(exports.PublicKeyFromString),
95
- signers: (0, superstruct_1.optional)((0, superstruct_1.array)(exports.PublicKeyFromString)),
96
- });
97
- const CloseAccount = (0, superstruct_1.type)({
98
- account: exports.PublicKeyFromString,
99
- destination: exports.PublicKeyFromString,
100
- owner: (0, superstruct_1.optional)(exports.PublicKeyFromString),
101
- multisigOwner: (0, superstruct_1.optional)(exports.PublicKeyFromString),
102
- signers: (0, superstruct_1.optional)((0, superstruct_1.array)(exports.PublicKeyFromString)),
103
- });
104
- const FreezeAccount = (0, superstruct_1.type)({
105
- account: exports.PublicKeyFromString,
106
- mint: exports.PublicKeyFromString,
107
- freezeAuthority: (0, superstruct_1.optional)(exports.PublicKeyFromString),
108
- multisigFreezeAuthority: (0, superstruct_1.optional)(exports.PublicKeyFromString),
109
- signers: (0, superstruct_1.optional)((0, superstruct_1.array)(exports.PublicKeyFromString)),
110
- });
111
- const ThawAccount = (0, superstruct_1.type)({
112
- account: exports.PublicKeyFromString,
113
- mint: exports.PublicKeyFromString,
114
- freezeAuthority: (0, superstruct_1.optional)(exports.PublicKeyFromString),
115
- multisigFreezeAuthority: (0, superstruct_1.optional)(exports.PublicKeyFromString),
116
- signers: (0, superstruct_1.optional)((0, superstruct_1.array)(exports.PublicKeyFromString)),
117
- });
118
- exports.TransferChecked = (0, superstruct_1.type)({
119
- source: exports.PublicKeyFromString,
120
- mint: exports.PublicKeyFromString,
121
- destination: exports.PublicKeyFromString,
122
- authority: (0, superstruct_1.optional)(exports.PublicKeyFromString),
123
- multisigAuthority: (0, superstruct_1.optional)(exports.PublicKeyFromString),
124
- signers: (0, superstruct_1.optional)((0, superstruct_1.array)(exports.PublicKeyFromString)),
125
- tokenAmount: exports.TokenAmountUi,
126
- });
127
- const ApproveChecked = (0, superstruct_1.type)({
128
- source: exports.PublicKeyFromString,
129
- mint: exports.PublicKeyFromString,
130
- delegate: exports.PublicKeyFromString,
131
- owner: (0, superstruct_1.optional)(exports.PublicKeyFromString),
132
- multisigOwner: (0, superstruct_1.optional)(exports.PublicKeyFromString),
133
- signers: (0, superstruct_1.optional)((0, superstruct_1.array)(exports.PublicKeyFromString)),
134
- tokenAmount: exports.TokenAmountUi,
135
- });
136
- const MintToChecked = (0, superstruct_1.type)({
137
- account: exports.PublicKeyFromString,
138
- mint: exports.PublicKeyFromString,
139
- mintAuthority: (0, superstruct_1.optional)(exports.PublicKeyFromString),
140
- multisigMintAuthority: (0, superstruct_1.optional)(exports.PublicKeyFromString),
141
- signers: (0, superstruct_1.optional)((0, superstruct_1.array)(exports.PublicKeyFromString)),
142
- tokenAmount: exports.TokenAmountUi,
143
- });
144
- const BurnChecked = (0, superstruct_1.type)({
145
- account: exports.PublicKeyFromString,
146
- mint: exports.PublicKeyFromString,
147
- authority: (0, superstruct_1.optional)(exports.PublicKeyFromString),
148
- multisigAuthority: (0, superstruct_1.optional)(exports.PublicKeyFromString),
149
- signers: (0, superstruct_1.optional)((0, superstruct_1.array)(exports.PublicKeyFromString)),
150
- tokenAmount: exports.TokenAmountUi,
151
- });
152
- const SyncNative = (0, superstruct_1.type)({
153
- account: exports.PublicKeyFromString,
154
- });
155
- const GetAccountDataSize = (0, superstruct_1.type)({
156
- mint: exports.PublicKeyFromString,
157
- extensionTypes: (0, superstruct_1.optional)((0, superstruct_1.array)((0, superstruct_1.string)())),
158
- });
159
- const InitializeImmutableOwner = (0, superstruct_1.type)({
160
- account: exports.PublicKeyFromString,
161
- });
162
- const AmountToUiAmount = (0, superstruct_1.type)({
163
- mint: exports.PublicKeyFromString,
164
- amount: (0, superstruct_1.union)([(0, superstruct_1.string)(), (0, superstruct_1.number)()]),
165
- });
166
- const UiAmountToAmount = (0, superstruct_1.type)({
167
- mint: exports.PublicKeyFromString,
168
- uiAmount: (0, superstruct_1.string)(),
169
- });
170
- const InitializeMintCloseAuthority = (0, superstruct_1.type)({
171
- mint: exports.PublicKeyFromString,
172
- newAuthority: exports.PublicKeyFromString,
173
- });
174
- const TransferFeeExtension = (0, superstruct_1.type)({
175
- mint: exports.PublicKeyFromString,
176
- transferFeeConfigAuthority: exports.PublicKeyFromString,
177
- withdrawWitheldAuthority: exports.PublicKeyFromString,
178
- transferFeeBasisPoints: (0, superstruct_1.number)(),
179
- maximumFee: (0, superstruct_1.number)(),
180
- });
181
- const DefaultAccountStateExtension = (0, superstruct_1.type)({
182
- mint: exports.PublicKeyFromString,
183
- accountState: (0, superstruct_1.string)(),
184
- freezeAuthority: (0, superstruct_1.optional)(exports.PublicKeyFromString),
185
- });
186
- const Reallocate = (0, superstruct_1.type)({
187
- account: exports.PublicKeyFromString,
188
- payer: exports.PublicKeyFromString,
189
- systemProgram: exports.PublicKeyFromString,
190
- extensionTypes: (0, superstruct_1.array)((0, superstruct_1.string)()),
191
- });
192
- const MemoTransferExtension = (0, superstruct_1.type)({
193
- account: exports.PublicKeyFromString,
194
- owner: (0, superstruct_1.optional)(exports.PublicKeyFromString),
195
- multisigOwner: (0, superstruct_1.optional)(exports.PublicKeyFromString),
196
- signers: (0, superstruct_1.optional)((0, superstruct_1.array)(exports.PublicKeyFromString)),
197
- });
198
- const CreateNativeMint = (0, superstruct_1.type)({
199
- payer: exports.PublicKeyFromString,
200
- nativeMint: exports.PublicKeyFromString,
201
- systemProgram: exports.PublicKeyFromString,
202
- });
203
- //# sourceMappingURL=types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/builtin/solana/types.ts"],"names":[],"mappings":";AAAA,oDAAoD;AACpD,iHAAiH;;;AAEjH,6CAYqB;AAErB,sBAAsB;AACT,QAAA,mBAAmB,GAAG,IAAA,oBAAM,EACvC,IAAA,sBAAQ,EAAC,MAAM,CAAC,EAChB,IAAA,oBAAM,GAAE,EACR,CAAC,KAAK,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,CACnB,CAAC;AAWW,QAAA,aAAa,GAAG,IAAA,kBAAI,EAAC;IAChC,MAAM,EAAE,IAAA,oBAAM,GAAE;IAChB,QAAQ,EAAE,IAAA,oBAAM,GAAE;IAClB,cAAc,EAAE,IAAA,oBAAM,GAAE;CACzB,CAAC,CAAC;AAEH,MAAM,cAAc,GAAG,IAAA,kBAAI,EAAC;IAC1B,IAAI,EAAE,2BAAmB;IACzB,QAAQ,EAAE,IAAA,oBAAM,GAAE;IAClB,aAAa,EAAE,2BAAmB;IAClC,UAAU,EAAE,2BAAmB;IAC/B,eAAe,EAAE,IAAA,sBAAQ,EAAC,2BAAmB,CAAC;CAC/C,CAAC,CAAC;AAEH,MAAM,iBAAiB,GAAG,IAAA,kBAAI,EAAC;IAC7B,OAAO,EAAE,2BAAmB;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AM,oBAAoB,GAAG,IAAA,kBAAI,EAAC;IAChC,IAAI,EAAE,2BAAmB;IACzB,0BAA0B,EAAE,2BAAmB;IAC/C,wBAAwB,EAAE,2BAAmB;IAC7C,sBAAsB,EAAE,IAAA,oBAAM,GAAE;IAChC,UAAU,EAAE,IAAA,oBAAM,GAAE;CACrB,CAAC,CAAC;AAGH,MAAM,4BAA4B,GAAG,IAAA,kBAAI,EAAC;IACxC,IAAI,EAAE,2BAAmB;IACzB,YAAY,EAAE,IAAA,oBAAM,GAAE;IACtB,eAAe,EAAE,IAAA,sBAAQ,EAAC,2BAAmB,CAAC;CAC/C,CAAC,CAAC;AAGH,MAAM,UAAU,GAAG,IAAA,kBAAI,EAAC;IACtB,OAAO,EAAE,2BAAmB;IAC5B,KAAK,EAAE,2BAAmB;IAC1B,aAAa,EAAE,2BAAmB;IAClC,cAAc,EAAE,IAAA,mBAAK,EAAC,IAAA,oBAAM,GAAE,CAAC;CAChC,CAAC,CAAC;AAGH,MAAM,qBAAqB,GAAG,IAAA,kBAAI,EAAC;IACjC,OAAO,EAAE,2BAAmB;IAC5B,KAAK,EAAE,IAAA,sBAAQ,EAAC,2BAAmB,CAAC;IACpC,aAAa,EAAE,IAAA,sBAAQ,EAAC,2BAAmB,CAAC;IAC5C,OAAO,EAAE,IAAA,sBAAQ,EAAC,IAAA,mBAAK,EAAC,2BAAmB,CAAC,CAAC;CAC9C,CAAC,CAAC;AAGH,MAAM,gBAAgB,GAAG,IAAA,kBAAI,EAAC;IAC5B,KAAK,EAAE,2BAAmB;IAC1B,UAAU,EAAE,2BAAmB;IAC/B,aAAa,EAAE,2BAAmB;CACnC,CAAC,CAAC","sourcesContent":["/* eslint-disable @typescript-eslint/no-redeclare */\n// copy from https://github.com/solana-labs/solana/blob/master/explorer/src/components/instruction/token/types.ts\n\nimport {\n enums,\n type,\n Infer,\n number,\n string,\n optional,\n array,\n nullable,\n union,\n coerce,\n instance,\n} from \"superstruct\";\n\n// Replace with string\nexport const PublicKeyFromString = coerce(\n instance(String),\n string(),\n (value) => (value)\n);\n\nexport type TokenAmountUi = Infer<typeof TokenAmountUi>;\nexport type MintTo = Infer<typeof MintTo>;\nexport type Burn = Infer<typeof Burn>;\nexport type InitializeMint = Infer<typeof InitializeMint>;\nexport type InitializeAccount = Infer<typeof InitializeAccount>;\nexport type InitializeAccount2 = Infer<typeof InitializeAccount2>;\nexport type InitializeAccount3 = Infer<typeof InitializeAccount3>;\nexport type InitializeMultisig = Infer<typeof InitializeMultisig>;\n\nexport const TokenAmountUi = type({\n amount: string(),\n decimals: number(),\n uiAmountString: string(),\n});\n\nconst InitializeMint = type({\n mint: PublicKeyFromString,\n decimals: number(),\n mintAuthority: PublicKeyFromString,\n rentSysvar: PublicKeyFromString,\n freezeAuthority: optional(PublicKeyFromString),\n});\n\nconst InitializeAccount = type({\n account: PublicKeyFromString,\n mint: PublicKeyFromString,\n owner: PublicKeyFromString,\n rentSysvar: PublicKeyFromString,\n});\n\nconst InitializeAccount2 = type({\n account: PublicKeyFromString,\n mint: PublicKeyFromString,\n rentSysvar: PublicKeyFromString,\n owner: PublicKeyFromString,\n});\n\nconst InitializeAccount3 = type({\n account: PublicKeyFromString,\n mint: PublicKeyFromString,\n owner: PublicKeyFromString,\n});\n\nconst InitializeMultisig = type({\n multisig: PublicKeyFromString,\n rentSysvar: PublicKeyFromString,\n signers: array(PublicKeyFromString),\n m: number(),\n});\n\nexport type Transfer = Infer<typeof Transfer>;\nexport const Transfer = type({\n source: PublicKeyFromString,\n destination: PublicKeyFromString,\n amount: union([string(), number()]),\n authority: optional(PublicKeyFromString),\n multisigAuthority: optional(PublicKeyFromString),\n signers: optional(array(PublicKeyFromString)),\n});\n\nexport type Approve = Infer<typeof Approve>;\nconst Approve = type({\n source: PublicKeyFromString,\n delegate: PublicKeyFromString,\n amount: union([string(), number()]),\n owner: optional(PublicKeyFromString),\n multisigOwner: optional(PublicKeyFromString),\n signers: optional(array(PublicKeyFromString)),\n});\n\nexport type Revoke = Infer<typeof Revoke>;\nconst Revoke = type({\n source: PublicKeyFromString,\n owner: optional(PublicKeyFromString),\n multisigOwner: optional(PublicKeyFromString),\n signers: optional(array(PublicKeyFromString)),\n});\n\nconst AuthorityType = enums([\n \"mintTokens\",\n \"freezeAccount\",\n \"accountOwner\",\n \"closeAccount\",\n]);\n\nexport type SetAuthority = Infer<typeof SetAuthority>;\nconst SetAuthority = type({\n mint: optional(PublicKeyFromString),\n account: optional(PublicKeyFromString),\n authorityType: AuthorityType,\n newAuthority: nullable(PublicKeyFromString),\n authority: optional(PublicKeyFromString),\n multisigAuthority: optional(PublicKeyFromString),\n signers: optional(array(PublicKeyFromString)),\n});\n\nconst MintTo = type({\n mint: PublicKeyFromString,\n account: PublicKeyFromString,\n amount: union([string(), number()]),\n mintAuthority: optional(PublicKeyFromString),\n multisigMintAuthority: optional(PublicKeyFromString),\n signers: optional(array(PublicKeyFromString)),\n});\n\nconst Burn = type({\n account: PublicKeyFromString,\n mint: PublicKeyFromString,\n amount: union([string(), number()]),\n authority: optional(PublicKeyFromString),\n multisigAuthority: optional(PublicKeyFromString),\n signers: optional(array(PublicKeyFromString)),\n});\n\nconst CloseAccount = type({\n account: PublicKeyFromString,\n destination: PublicKeyFromString,\n owner: optional(PublicKeyFromString),\n multisigOwner: optional(PublicKeyFromString),\n signers: optional(array(PublicKeyFromString)),\n});\nexport type CloseAccount = Infer<typeof CloseAccount>;\n\nexport type FreezeAccount = Infer<typeof FreezeAccount>;\nconst FreezeAccount = type({\n account: PublicKeyFromString,\n mint: PublicKeyFromString,\n freezeAuthority: optional(PublicKeyFromString),\n multisigFreezeAuthority: optional(PublicKeyFromString),\n signers: optional(array(PublicKeyFromString)),\n});\n\nexport type ThawAccount = Infer<typeof ThawAccount>;\nconst ThawAccount = type({\n account: PublicKeyFromString,\n mint: PublicKeyFromString,\n freezeAuthority: optional(PublicKeyFromString),\n multisigFreezeAuthority: optional(PublicKeyFromString),\n signers: optional(array(PublicKeyFromString)),\n});\n\nexport type TransferChecked = Infer<typeof TransferChecked>;\nexport const TransferChecked = type({\n source: PublicKeyFromString,\n mint: PublicKeyFromString,\n destination: PublicKeyFromString,\n authority: optional(PublicKeyFromString),\n multisigAuthority: optional(PublicKeyFromString),\n signers: optional(array(PublicKeyFromString)),\n tokenAmount: TokenAmountUi,\n});\n\nexport type ApproveChecked = Infer<typeof ApproveChecked>;\nconst ApproveChecked = type({\n source: PublicKeyFromString,\n mint: PublicKeyFromString,\n delegate: PublicKeyFromString,\n owner: optional(PublicKeyFromString),\n multisigOwner: optional(PublicKeyFromString),\n signers: optional(array(PublicKeyFromString)),\n tokenAmount: TokenAmountUi,\n});\n\nexport type MintToChecked = Infer<typeof MintToChecked>;\nconst MintToChecked = type({\n account: PublicKeyFromString,\n mint: PublicKeyFromString,\n mintAuthority: optional(PublicKeyFromString),\n multisigMintAuthority: optional(PublicKeyFromString),\n signers: optional(array(PublicKeyFromString)),\n tokenAmount: TokenAmountUi,\n});\n\nexport type BurnChecked = Infer<typeof BurnChecked>;\nconst BurnChecked = type({\n account: PublicKeyFromString,\n mint: PublicKeyFromString,\n authority: optional(PublicKeyFromString),\n multisigAuthority: optional(PublicKeyFromString),\n signers: optional(array(PublicKeyFromString)),\n tokenAmount: TokenAmountUi,\n});\n\nexport type SyncNative = Infer<typeof BurnChecked>;\nconst SyncNative = type({\n account: PublicKeyFromString,\n});\n\nexport type GetAccountDataSize = Infer<typeof GetAccountDataSize>;\nconst GetAccountDataSize = type({\n mint: PublicKeyFromString,\n extensionTypes: optional(array(string())),\n});\n\nexport type InitializeImmutableOwner = Infer<typeof InitializeImmutableOwner>;\nconst InitializeImmutableOwner = type({\n account: PublicKeyFromString,\n});\n\nexport type AmountToUiAmount = Infer<typeof AmountToUiAmount>;\nconst AmountToUiAmount = type({\n mint: PublicKeyFromString,\n amount: union([string(), number()]),\n});\n\nexport type UiAmountToAmount = Infer<typeof UiAmountToAmount>;\nconst UiAmountToAmount = type({\n mint: PublicKeyFromString,\n uiAmount: string(),\n});\n\nexport type InitializeMintCloseAuthority = Infer<typeof InitializeMintCloseAuthority>;\nconst InitializeMintCloseAuthority = type({\n mint: PublicKeyFromString,\n newAuthority: PublicKeyFromString,\n});\n\nexport type TransferFeeExtension = Infer<typeof TransferFeeExtension>;\nconst TransferFeeExtension = type({\n mint: PublicKeyFromString,\n transferFeeConfigAuthority: PublicKeyFromString,\n withdrawWitheldAuthority: PublicKeyFromString,\n transferFeeBasisPoints: number(),\n maximumFee: number(),\n});\n\nexport type DefaultAccountStateExtension = Infer<typeof DefaultAccountStateExtension>;\nconst DefaultAccountStateExtension = type({\n mint: PublicKeyFromString,\n accountState: string(),\n freezeAuthority: optional(PublicKeyFromString),\n});\n\nexport type Reallocate = Infer<typeof Reallocate>;\nconst Reallocate = type({\n account: PublicKeyFromString,\n payer: PublicKeyFromString,\n systemProgram: PublicKeyFromString,\n extensionTypes: array(string()),\n});\n\nexport type MemoTransferExtension = Infer<typeof MemoTransferExtension>;\nconst MemoTransferExtension = type({\n account: PublicKeyFromString,\n owner: optional(PublicKeyFromString),\n multisigOwner: optional(PublicKeyFromString),\n signers: optional(array(PublicKeyFromString)),\n});\n\nexport type CreateNativeMint = Infer<typeof CreateNativeMint>;\nconst CreateNativeMint = type({\n payer: PublicKeyFromString,\n nativeMint: PublicKeyFromString,\n systemProgram: PublicKeyFromString,\n});\n"]}