@sentio/sdk 2.10.2 → 2.11.0-rc.1

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 (60) hide show
  1. package/lib/aptos/codegen/codegen.js +0 -1
  2. package/lib/aptos/codegen/codegen.js.map +1 -1
  3. package/lib/move/abstract-codegen.d.ts +2 -1
  4. package/lib/move/abstract-codegen.js +9 -8
  5. package/lib/move/abstract-codegen.js.map +1 -1
  6. package/lib/solana/builtin/types.d.ts +170 -170
  7. package/lib/solana/builtin/types.js +2 -1
  8. package/lib/solana/builtin/types.js.map +1 -1
  9. package/lib/sui/builtin/0x1.js +1 -1
  10. package/lib/sui/builtin/0x1.js.map +1 -1
  11. package/lib/sui/builtin/0x2.d.ts +235 -640
  12. package/lib/sui/builtin/0x2.js +294 -716
  13. package/lib/sui/builtin/0x2.js.map +1 -1
  14. package/lib/sui/builtin/0x3.d.ts +566 -0
  15. package/lib/sui/builtin/0x3.js +681 -0
  16. package/lib/sui/builtin/0x3.js.map +1 -0
  17. package/lib/sui/builtin/index.d.ts +1 -0
  18. package/lib/sui/builtin/index.js +1 -0
  19. package/lib/sui/builtin/index.js.map +1 -1
  20. package/lib/sui/codegen/codegen.js +4 -3
  21. package/lib/sui/codegen/codegen.js.map +1 -1
  22. package/lib/sui/context.d.ts +3 -3
  23. package/lib/sui/context.js +1 -1
  24. package/lib/sui/context.js.map +1 -1
  25. package/lib/sui/models.d.ts +4 -4
  26. package/lib/sui/models.js.map +1 -1
  27. package/lib/sui/move-coder.d.ts +5 -5
  28. package/lib/sui/move-coder.js +19 -7
  29. package/lib/sui/move-coder.js.map +1 -1
  30. package/lib/sui/move-types.js +7 -7
  31. package/lib/sui/move-types.js.map +1 -1
  32. package/lib/sui/sui-processor.d.ts +3 -3
  33. package/lib/sui/sui-processor.js +15 -9
  34. package/lib/sui/sui-processor.js.map +1 -1
  35. package/lib/sui/utils.d.ts +2 -2
  36. package/lib/sui/utils.js +13 -5
  37. package/lib/sui/utils.js.map +1 -1
  38. package/lib/testing/sui-facet.d.ts +4 -4
  39. package/lib/testing/sui-facet.js +7 -7
  40. package/lib/testing/sui-facet.js.map +1 -1
  41. package/package.json +7 -5
  42. package/src/aptos/codegen/codegen.ts +0 -1
  43. package/src/move/abstract-codegen.ts +9 -8
  44. package/src/solana/builtin/types.ts +2 -1
  45. package/src/sui/abis/0x1.json +357 -357
  46. package/src/sui/abis/0x2.json +5563 -8247
  47. package/src/sui/abis/0x3.json +8399 -0
  48. package/src/sui/builtin/0x1.ts +1 -1
  49. package/src/sui/builtin/0x2.ts +531 -1537
  50. package/src/sui/builtin/0x3.ts +1515 -0
  51. package/src/sui/builtin/index.ts +1 -0
  52. package/src/sui/codegen/codegen.ts +5 -3
  53. package/src/sui/context.ts +4 -4
  54. package/src/sui/models.ts +4 -4
  55. package/src/sui/move-coder.ts +24 -12
  56. package/src/sui/move-types.ts +7 -7
  57. package/src/sui/sui-processor.ts +28 -15
  58. package/src/sui/utils.ts +21 -5
  59. package/src/testing/sui-facet.ts +19 -15
  60. package/src/eth/codegen/tsconfig.json +0 -8
@@ -1,5 +1,5 @@
1
- import { Infer } from "superstruct";
2
- export declare const PublicKeyFromString: import("superstruct").Struct<String, null>;
1
+ import { Infer } from "superstruct_solana";
2
+ export declare const PublicKeyFromString: import("superstruct_solana").Struct<String, null>;
3
3
  export type TokenAmountUi = Infer<typeof TokenAmountUi>;
4
4
  export type MintTo = Infer<typeof MintTo>;
5
5
  export type Burn = Infer<typeof Burn>;
@@ -8,72 +8,72 @@ export type InitializeAccount = Infer<typeof InitializeAccount>;
8
8
  export type InitializeAccount2 = Infer<typeof InitializeAccount2>;
9
9
  export type InitializeAccount3 = Infer<typeof InitializeAccount3>;
10
10
  export type InitializeMultisig = Infer<typeof InitializeMultisig>;
11
- export declare const TokenAmountUi: import("superstruct").Struct<{
11
+ export declare const TokenAmountUi: import("superstruct_solana").Struct<{
12
12
  decimals: number;
13
13
  amount: string;
14
14
  uiAmountString: string;
15
15
  }, {
16
- amount: import("superstruct").Struct<string, null>;
17
- decimals: import("superstruct").Struct<number, null>;
18
- uiAmountString: import("superstruct").Struct<string, null>;
16
+ amount: import("superstruct_solana").Struct<string, null>;
17
+ decimals: import("superstruct_solana").Struct<number, null>;
18
+ uiAmountString: import("superstruct_solana").Struct<string, null>;
19
19
  }>;
20
- declare const InitializeMint: import("superstruct").Struct<{
20
+ declare const InitializeMint: import("superstruct_solana").Struct<{
21
21
  decimals: number;
22
22
  mint: String;
23
23
  mintAuthority: String;
24
24
  rentSysvar: String;
25
25
  freezeAuthority?: String | undefined;
26
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>;
27
+ mint: import("superstruct_solana").Struct<String, null>;
28
+ decimals: import("superstruct_solana").Struct<number, null>;
29
+ mintAuthority: import("superstruct_solana").Struct<String, null>;
30
+ rentSysvar: import("superstruct_solana").Struct<String, null>;
31
+ freezeAuthority: import("superstruct_solana").Struct<String | undefined, null>;
32
32
  }>;
33
- declare const InitializeAccount: import("superstruct").Struct<{
33
+ declare const InitializeAccount: import("superstruct_solana").Struct<{
34
34
  account: String;
35
35
  owner: String;
36
36
  mint: String;
37
37
  rentSysvar: String;
38
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>;
39
+ account: import("superstruct_solana").Struct<String, null>;
40
+ mint: import("superstruct_solana").Struct<String, null>;
41
+ owner: import("superstruct_solana").Struct<String, null>;
42
+ rentSysvar: import("superstruct_solana").Struct<String, null>;
43
43
  }>;
44
- declare const InitializeAccount2: import("superstruct").Struct<{
44
+ declare const InitializeAccount2: import("superstruct_solana").Struct<{
45
45
  account: String;
46
46
  owner: String;
47
47
  mint: String;
48
48
  rentSysvar: String;
49
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>;
50
+ account: import("superstruct_solana").Struct<String, null>;
51
+ mint: import("superstruct_solana").Struct<String, null>;
52
+ rentSysvar: import("superstruct_solana").Struct<String, null>;
53
+ owner: import("superstruct_solana").Struct<String, null>;
54
54
  }>;
55
- declare const InitializeAccount3: import("superstruct").Struct<{
55
+ declare const InitializeAccount3: import("superstruct_solana").Struct<{
56
56
  account: String;
57
57
  owner: String;
58
58
  mint: String;
59
59
  }, {
60
- account: import("superstruct").Struct<String, null>;
61
- mint: import("superstruct").Struct<String, null>;
62
- owner: import("superstruct").Struct<String, null>;
60
+ account: import("superstruct_solana").Struct<String, null>;
61
+ mint: import("superstruct_solana").Struct<String, null>;
62
+ owner: import("superstruct_solana").Struct<String, null>;
63
63
  }>;
64
- declare const InitializeMultisig: import("superstruct").Struct<{
64
+ declare const InitializeMultisig: import("superstruct_solana").Struct<{
65
65
  signers: String[];
66
66
  rentSysvar: String;
67
67
  multisig: String;
68
68
  m: number;
69
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>;
70
+ multisig: import("superstruct_solana").Struct<String, null>;
71
+ rentSysvar: import("superstruct_solana").Struct<String, null>;
72
+ signers: import("superstruct_solana").Struct<String[], import("superstruct_solana").Struct<String, null>>;
73
+ m: import("superstruct_solana").Struct<number, null>;
74
74
  }>;
75
75
  export type Transfer = Infer<typeof Transfer>;
76
- export declare const Transfer: import("superstruct").Struct<{
76
+ export declare const Transfer: import("superstruct_solana").Struct<{
77
77
  amount: string | number;
78
78
  source: String;
79
79
  destination: String;
@@ -81,15 +81,15 @@ export declare const Transfer: import("superstruct").Struct<{
81
81
  authority?: String | undefined;
82
82
  multisigAuthority?: String | undefined;
83
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>>;
84
+ source: import("superstruct_solana").Struct<String, null>;
85
+ destination: import("superstruct_solana").Struct<String, null>;
86
+ amount: import("superstruct_solana").Struct<string | number, null>;
87
+ authority: import("superstruct_solana").Struct<String | undefined, null>;
88
+ multisigAuthority: import("superstruct_solana").Struct<String | undefined, null>;
89
+ signers: import("superstruct_solana").Struct<String[] | undefined, import("superstruct_solana").Struct<String, null>>;
90
90
  }>;
91
91
  export type Approve = Infer<typeof Approve>;
92
- declare const Approve: import("superstruct").Struct<{
92
+ declare const Approve: import("superstruct_solana").Struct<{
93
93
  amount: string | number;
94
94
  source: String;
95
95
  delegate: String;
@@ -97,27 +97,27 @@ declare const Approve: import("superstruct").Struct<{
97
97
  signers?: String[] | undefined;
98
98
  multisigOwner?: String | undefined;
99
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>>;
100
+ source: import("superstruct_solana").Struct<String, null>;
101
+ delegate: import("superstruct_solana").Struct<String, null>;
102
+ amount: import("superstruct_solana").Struct<string | number, null>;
103
+ owner: import("superstruct_solana").Struct<String | undefined, null>;
104
+ multisigOwner: import("superstruct_solana").Struct<String | undefined, null>;
105
+ signers: import("superstruct_solana").Struct<String[] | undefined, import("superstruct_solana").Struct<String, null>>;
106
106
  }>;
107
107
  export type Revoke = Infer<typeof Revoke>;
108
- declare const Revoke: import("superstruct").Struct<{
108
+ declare const Revoke: import("superstruct_solana").Struct<{
109
109
  source: String;
110
110
  owner?: String | undefined;
111
111
  signers?: String[] | undefined;
112
112
  multisigOwner?: String | undefined;
113
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>>;
114
+ source: import("superstruct_solana").Struct<String, null>;
115
+ owner: import("superstruct_solana").Struct<String | undefined, null>;
116
+ multisigOwner: import("superstruct_solana").Struct<String | undefined, null>;
117
+ signers: import("superstruct_solana").Struct<String[] | undefined, import("superstruct_solana").Struct<String, null>>;
118
118
  }>;
119
119
  export type SetAuthority = Infer<typeof SetAuthority>;
120
- declare const SetAuthority: import("superstruct").Struct<{
120
+ declare const SetAuthority: import("superstruct_solana").Struct<{
121
121
  authorityType: "mintTokens" | "freezeAccount" | "accountOwner" | "closeAccount";
122
122
  newAuthority: String | null;
123
123
  account?: String | undefined;
@@ -126,20 +126,20 @@ declare const SetAuthority: import("superstruct").Struct<{
126
126
  authority?: String | undefined;
127
127
  multisigAuthority?: String | undefined;
128
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", {
129
+ mint: import("superstruct_solana").Struct<String | undefined, null>;
130
+ account: import("superstruct_solana").Struct<String | undefined, null>;
131
+ authorityType: import("superstruct_solana").Struct<"mintTokens" | "freezeAccount" | "accountOwner" | "closeAccount", {
132
132
  mintTokens: "mintTokens";
133
133
  freezeAccount: "freezeAccount";
134
134
  accountOwner: "accountOwner";
135
135
  closeAccount: "closeAccount";
136
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>>;
137
+ newAuthority: import("superstruct_solana").Struct<String | null, null>;
138
+ authority: import("superstruct_solana").Struct<String | undefined, null>;
139
+ multisigAuthority: import("superstruct_solana").Struct<String | undefined, null>;
140
+ signers: import("superstruct_solana").Struct<String[] | undefined, import("superstruct_solana").Struct<String, null>>;
141
141
  }>;
142
- declare const MintTo: import("superstruct").Struct<{
142
+ declare const MintTo: import("superstruct_solana").Struct<{
143
143
  account: String;
144
144
  amount: string | number;
145
145
  mint: String;
@@ -147,14 +147,14 @@ declare const MintTo: import("superstruct").Struct<{
147
147
  multisigMintAuthority?: String | undefined;
148
148
  signers?: String[] | undefined;
149
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>>;
150
+ mint: import("superstruct_solana").Struct<String, null>;
151
+ account: import("superstruct_solana").Struct<String, null>;
152
+ amount: import("superstruct_solana").Struct<string | number, null>;
153
+ mintAuthority: import("superstruct_solana").Struct<String | undefined, null>;
154
+ multisigMintAuthority: import("superstruct_solana").Struct<String | undefined, null>;
155
+ signers: import("superstruct_solana").Struct<String[] | undefined, import("superstruct_solana").Struct<String, null>>;
156
156
  }>;
157
- declare const Burn: import("superstruct").Struct<{
157
+ declare const Burn: import("superstruct_solana").Struct<{
158
158
  account: String;
159
159
  amount: string | number;
160
160
  mint: String;
@@ -162,57 +162,57 @@ declare const Burn: import("superstruct").Struct<{
162
162
  authority?: String | undefined;
163
163
  multisigAuthority?: String | undefined;
164
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>>;
165
+ account: import("superstruct_solana").Struct<String, null>;
166
+ mint: import("superstruct_solana").Struct<String, null>;
167
+ amount: import("superstruct_solana").Struct<string | number, null>;
168
+ authority: import("superstruct_solana").Struct<String | undefined, null>;
169
+ multisigAuthority: import("superstruct_solana").Struct<String | undefined, null>;
170
+ signers: import("superstruct_solana").Struct<String[] | undefined, import("superstruct_solana").Struct<String, null>>;
171
171
  }>;
172
- declare const CloseAccount: import("superstruct").Struct<{
172
+ declare const CloseAccount: import("superstruct_solana").Struct<{
173
173
  account: String;
174
174
  destination: String;
175
175
  owner?: String | undefined;
176
176
  signers?: String[] | undefined;
177
177
  multisigOwner?: String | undefined;
178
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>>;
179
+ account: import("superstruct_solana").Struct<String, null>;
180
+ destination: import("superstruct_solana").Struct<String, null>;
181
+ owner: import("superstruct_solana").Struct<String | undefined, null>;
182
+ multisigOwner: import("superstruct_solana").Struct<String | undefined, null>;
183
+ signers: import("superstruct_solana").Struct<String[] | undefined, import("superstruct_solana").Struct<String, null>>;
184
184
  }>;
185
185
  export type CloseAccount = Infer<typeof CloseAccount>;
186
186
  export type FreezeAccount = Infer<typeof FreezeAccount>;
187
- declare const FreezeAccount: import("superstruct").Struct<{
187
+ declare const FreezeAccount: import("superstruct_solana").Struct<{
188
188
  account: String;
189
189
  mint: String;
190
190
  signers?: String[] | undefined;
191
191
  freezeAuthority?: String | undefined;
192
192
  multisigFreezeAuthority?: String | undefined;
193
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>>;
194
+ account: import("superstruct_solana").Struct<String, null>;
195
+ mint: import("superstruct_solana").Struct<String, null>;
196
+ freezeAuthority: import("superstruct_solana").Struct<String | undefined, null>;
197
+ multisigFreezeAuthority: import("superstruct_solana").Struct<String | undefined, null>;
198
+ signers: import("superstruct_solana").Struct<String[] | undefined, import("superstruct_solana").Struct<String, null>>;
199
199
  }>;
200
200
  export type ThawAccount = Infer<typeof ThawAccount>;
201
- declare const ThawAccount: import("superstruct").Struct<{
201
+ declare const ThawAccount: import("superstruct_solana").Struct<{
202
202
  account: String;
203
203
  mint: String;
204
204
  signers?: String[] | undefined;
205
205
  freezeAuthority?: String | undefined;
206
206
  multisigFreezeAuthority?: String | undefined;
207
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>>;
208
+ account: import("superstruct_solana").Struct<String, null>;
209
+ mint: import("superstruct_solana").Struct<String, null>;
210
+ freezeAuthority: import("superstruct_solana").Struct<String | undefined, null>;
211
+ multisigFreezeAuthority: import("superstruct_solana").Struct<String | undefined, null>;
212
+ signers: import("superstruct_solana").Struct<String[] | undefined, import("superstruct_solana").Struct<String, null>>;
213
213
  }>;
214
214
  export type TransferChecked = Infer<typeof TransferChecked>;
215
- export declare const TransferChecked: import("superstruct").Struct<{
215
+ export declare const TransferChecked: import("superstruct_solana").Struct<{
216
216
  mint: String;
217
217
  source: String;
218
218
  destination: String;
@@ -225,24 +225,24 @@ export declare const TransferChecked: import("superstruct").Struct<{
225
225
  authority?: String | undefined;
226
226
  multisigAuthority?: String | undefined;
227
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<{
228
+ source: import("superstruct_solana").Struct<String, null>;
229
+ mint: import("superstruct_solana").Struct<String, null>;
230
+ destination: import("superstruct_solana").Struct<String, null>;
231
+ authority: import("superstruct_solana").Struct<String | undefined, null>;
232
+ multisigAuthority: import("superstruct_solana").Struct<String | undefined, null>;
233
+ signers: import("superstruct_solana").Struct<String[] | undefined, import("superstruct_solana").Struct<String, null>>;
234
+ tokenAmount: import("superstruct_solana").Struct<{
235
235
  decimals: number;
236
236
  amount: string;
237
237
  uiAmountString: string;
238
238
  }, {
239
- amount: import("superstruct").Struct<string, null>;
240
- decimals: import("superstruct").Struct<number, null>;
241
- uiAmountString: import("superstruct").Struct<string, null>;
239
+ amount: import("superstruct_solana").Struct<string, null>;
240
+ decimals: import("superstruct_solana").Struct<number, null>;
241
+ uiAmountString: import("superstruct_solana").Struct<string, null>;
242
242
  }>;
243
243
  }>;
244
244
  export type ApproveChecked = Infer<typeof ApproveChecked>;
245
- declare const ApproveChecked: import("superstruct").Struct<{
245
+ declare const ApproveChecked: import("superstruct_solana").Struct<{
246
246
  mint: String;
247
247
  source: String;
248
248
  delegate: String;
@@ -255,24 +255,24 @@ declare const ApproveChecked: import("superstruct").Struct<{
255
255
  signers?: String[] | undefined;
256
256
  multisigOwner?: String | undefined;
257
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<{
258
+ source: import("superstruct_solana").Struct<String, null>;
259
+ mint: import("superstruct_solana").Struct<String, null>;
260
+ delegate: import("superstruct_solana").Struct<String, null>;
261
+ owner: import("superstruct_solana").Struct<String | undefined, null>;
262
+ multisigOwner: import("superstruct_solana").Struct<String | undefined, null>;
263
+ signers: import("superstruct_solana").Struct<String[] | undefined, import("superstruct_solana").Struct<String, null>>;
264
+ tokenAmount: import("superstruct_solana").Struct<{
265
265
  decimals: number;
266
266
  amount: string;
267
267
  uiAmountString: string;
268
268
  }, {
269
- amount: import("superstruct").Struct<string, null>;
270
- decimals: import("superstruct").Struct<number, null>;
271
- uiAmountString: import("superstruct").Struct<string, null>;
269
+ amount: import("superstruct_solana").Struct<string, null>;
270
+ decimals: import("superstruct_solana").Struct<number, null>;
271
+ uiAmountString: import("superstruct_solana").Struct<string, null>;
272
272
  }>;
273
273
  }>;
274
274
  export type MintToChecked = Infer<typeof MintToChecked>;
275
- declare const MintToChecked: import("superstruct").Struct<{
275
+ declare const MintToChecked: import("superstruct_solana").Struct<{
276
276
  account: String;
277
277
  mint: String;
278
278
  tokenAmount: {
@@ -284,23 +284,23 @@ declare const MintToChecked: import("superstruct").Struct<{
284
284
  multisigMintAuthority?: String | undefined;
285
285
  signers?: String[] | undefined;
286
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<{
287
+ account: import("superstruct_solana").Struct<String, null>;
288
+ mint: import("superstruct_solana").Struct<String, null>;
289
+ mintAuthority: import("superstruct_solana").Struct<String | undefined, null>;
290
+ multisigMintAuthority: import("superstruct_solana").Struct<String | undefined, null>;
291
+ signers: import("superstruct_solana").Struct<String[] | undefined, import("superstruct_solana").Struct<String, null>>;
292
+ tokenAmount: import("superstruct_solana").Struct<{
293
293
  decimals: number;
294
294
  amount: string;
295
295
  uiAmountString: string;
296
296
  }, {
297
- amount: import("superstruct").Struct<string, null>;
298
- decimals: import("superstruct").Struct<number, null>;
299
- uiAmountString: import("superstruct").Struct<string, null>;
297
+ amount: import("superstruct_solana").Struct<string, null>;
298
+ decimals: import("superstruct_solana").Struct<number, null>;
299
+ uiAmountString: import("superstruct_solana").Struct<string, null>;
300
300
  }>;
301
301
  }>;
302
302
  export type BurnChecked = Infer<typeof BurnChecked>;
303
- declare const BurnChecked: import("superstruct").Struct<{
303
+ declare const BurnChecked: import("superstruct_solana").Struct<{
304
304
  account: String;
305
305
  mint: String;
306
306
  tokenAmount: {
@@ -312,116 +312,116 @@ declare const BurnChecked: import("superstruct").Struct<{
312
312
  authority?: String | undefined;
313
313
  multisigAuthority?: String | undefined;
314
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<{
315
+ account: import("superstruct_solana").Struct<String, null>;
316
+ mint: import("superstruct_solana").Struct<String, null>;
317
+ authority: import("superstruct_solana").Struct<String | undefined, null>;
318
+ multisigAuthority: import("superstruct_solana").Struct<String | undefined, null>;
319
+ signers: import("superstruct_solana").Struct<String[] | undefined, import("superstruct_solana").Struct<String, null>>;
320
+ tokenAmount: import("superstruct_solana").Struct<{
321
321
  decimals: number;
322
322
  amount: string;
323
323
  uiAmountString: string;
324
324
  }, {
325
- amount: import("superstruct").Struct<string, null>;
326
- decimals: import("superstruct").Struct<number, null>;
327
- uiAmountString: import("superstruct").Struct<string, null>;
325
+ amount: import("superstruct_solana").Struct<string, null>;
326
+ decimals: import("superstruct_solana").Struct<number, null>;
327
+ uiAmountString: import("superstruct_solana").Struct<string, null>;
328
328
  }>;
329
329
  }>;
330
330
  export type SyncNative = Infer<typeof BurnChecked>;
331
331
  export type GetAccountDataSize = Infer<typeof GetAccountDataSize>;
332
- declare const GetAccountDataSize: import("superstruct").Struct<{
332
+ declare const GetAccountDataSize: import("superstruct_solana").Struct<{
333
333
  mint: String;
334
334
  extensionTypes?: string[] | undefined;
335
335
  }, {
336
- mint: import("superstruct").Struct<String, null>;
337
- extensionTypes: import("superstruct").Struct<string[] | undefined, import("superstruct").Struct<string, null>>;
336
+ mint: import("superstruct_solana").Struct<String, null>;
337
+ extensionTypes: import("superstruct_solana").Struct<string[] | undefined, import("superstruct_solana").Struct<string, null>>;
338
338
  }>;
339
339
  export type InitializeImmutableOwner = Infer<typeof InitializeImmutableOwner>;
340
- declare const InitializeImmutableOwner: import("superstruct").Struct<{
340
+ declare const InitializeImmutableOwner: import("superstruct_solana").Struct<{
341
341
  account: String;
342
342
  }, {
343
- account: import("superstruct").Struct<String, null>;
343
+ account: import("superstruct_solana").Struct<String, null>;
344
344
  }>;
345
345
  export type AmountToUiAmount = Infer<typeof AmountToUiAmount>;
346
- declare const AmountToUiAmount: import("superstruct").Struct<{
346
+ declare const AmountToUiAmount: import("superstruct_solana").Struct<{
347
347
  amount: string | number;
348
348
  mint: String;
349
349
  }, {
350
- mint: import("superstruct").Struct<String, null>;
351
- amount: import("superstruct").Struct<string | number, null>;
350
+ mint: import("superstruct_solana").Struct<String, null>;
351
+ amount: import("superstruct_solana").Struct<string | number, null>;
352
352
  }>;
353
353
  export type UiAmountToAmount = Infer<typeof UiAmountToAmount>;
354
- declare const UiAmountToAmount: import("superstruct").Struct<{
354
+ declare const UiAmountToAmount: import("superstruct_solana").Struct<{
355
355
  mint: String;
356
356
  uiAmount: string;
357
357
  }, {
358
- mint: import("superstruct").Struct<String, null>;
359
- uiAmount: import("superstruct").Struct<string, null>;
358
+ mint: import("superstruct_solana").Struct<String, null>;
359
+ uiAmount: import("superstruct_solana").Struct<string, null>;
360
360
  }>;
361
361
  export type InitializeMintCloseAuthority = Infer<typeof InitializeMintCloseAuthority>;
362
- declare const InitializeMintCloseAuthority: import("superstruct").Struct<{
362
+ declare const InitializeMintCloseAuthority: import("superstruct_solana").Struct<{
363
363
  mint: String;
364
364
  newAuthority: String;
365
365
  }, {
366
- mint: import("superstruct").Struct<String, null>;
367
- newAuthority: import("superstruct").Struct<String, null>;
366
+ mint: import("superstruct_solana").Struct<String, null>;
367
+ newAuthority: import("superstruct_solana").Struct<String, null>;
368
368
  }>;
369
369
  export type TransferFeeExtension = Infer<typeof TransferFeeExtension>;
370
- declare const TransferFeeExtension: import("superstruct").Struct<{
370
+ declare const TransferFeeExtension: import("superstruct_solana").Struct<{
371
371
  mint: String;
372
372
  transferFeeConfigAuthority: String;
373
373
  withdrawWitheldAuthority: String;
374
374
  transferFeeBasisPoints: number;
375
375
  maximumFee: number;
376
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>;
377
+ mint: import("superstruct_solana").Struct<String, null>;
378
+ transferFeeConfigAuthority: import("superstruct_solana").Struct<String, null>;
379
+ withdrawWitheldAuthority: import("superstruct_solana").Struct<String, null>;
380
+ transferFeeBasisPoints: import("superstruct_solana").Struct<number, null>;
381
+ maximumFee: import("superstruct_solana").Struct<number, null>;
382
382
  }>;
383
383
  export type DefaultAccountStateExtension = Infer<typeof DefaultAccountStateExtension>;
384
- declare const DefaultAccountStateExtension: import("superstruct").Struct<{
384
+ declare const DefaultAccountStateExtension: import("superstruct_solana").Struct<{
385
385
  mint: String;
386
386
  accountState: string;
387
387
  freezeAuthority?: String | undefined;
388
388
  }, {
389
- mint: import("superstruct").Struct<String, null>;
390
- accountState: import("superstruct").Struct<string, null>;
391
- freezeAuthority: import("superstruct").Struct<String | undefined, null>;
389
+ mint: import("superstruct_solana").Struct<String, null>;
390
+ accountState: import("superstruct_solana").Struct<string, null>;
391
+ freezeAuthority: import("superstruct_solana").Struct<String | undefined, null>;
392
392
  }>;
393
393
  export type Reallocate = Infer<typeof Reallocate>;
394
- declare const Reallocate: import("superstruct").Struct<{
394
+ declare const Reallocate: import("superstruct_solana").Struct<{
395
395
  account: String;
396
396
  extensionTypes: string[];
397
397
  payer: String;
398
398
  systemProgram: String;
399
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>>;
400
+ account: import("superstruct_solana").Struct<String, null>;
401
+ payer: import("superstruct_solana").Struct<String, null>;
402
+ systemProgram: import("superstruct_solana").Struct<String, null>;
403
+ extensionTypes: import("superstruct_solana").Struct<string[], import("superstruct_solana").Struct<string, null>>;
404
404
  }>;
405
405
  export type MemoTransferExtension = Infer<typeof MemoTransferExtension>;
406
- declare const MemoTransferExtension: import("superstruct").Struct<{
406
+ declare const MemoTransferExtension: import("superstruct_solana").Struct<{
407
407
  account: String;
408
408
  owner?: String | undefined;
409
409
  signers?: String[] | undefined;
410
410
  multisigOwner?: String | undefined;
411
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>>;
412
+ account: import("superstruct_solana").Struct<String, null>;
413
+ owner: import("superstruct_solana").Struct<String | undefined, null>;
414
+ multisigOwner: import("superstruct_solana").Struct<String | undefined, null>;
415
+ signers: import("superstruct_solana").Struct<String[] | undefined, import("superstruct_solana").Struct<String, null>>;
416
416
  }>;
417
417
  export type CreateNativeMint = Infer<typeof CreateNativeMint>;
418
- declare const CreateNativeMint: import("superstruct").Struct<{
418
+ declare const CreateNativeMint: import("superstruct_solana").Struct<{
419
419
  payer: String;
420
420
  systemProgram: String;
421
421
  nativeMint: String;
422
422
  }, {
423
- payer: import("superstruct").Struct<String, null>;
424
- nativeMint: import("superstruct").Struct<String, null>;
425
- systemProgram: import("superstruct").Struct<String, null>;
423
+ payer: import("superstruct_solana").Struct<String, null>;
424
+ nativeMint: import("superstruct_solana").Struct<String, null>;
425
+ systemProgram: import("superstruct_solana").Struct<String, null>;
426
426
  }>;
427
427
  export {};
@@ -1,6 +1,7 @@
1
1
  /* eslint-disable @typescript-eslint/no-redeclare */
2
2
  // copy from https://github.com/solana-labs/solana/blob/master/explorer/src/components/instruction/token/types.ts
3
- import { enums, type, number, string, optional, array, nullable, union, coerce, instance, } from "superstruct";
3
+ // https://github.com/solana-labs/explorer/blob/411b42439553262ef9036985d287a7249acaad77/src/components/instruction/token/types.ts
4
+ import { enums, type, number, string, optional, array, nullable, union, coerce, instance, } from "superstruct_solana";
4
5
  // Replace with string
5
6
  export const PublicKeyFromString = coerce(instance(String), string(), (value) => (value));
6
7
  export const TokenAmountUi = type({