@sentio/sdk 2.10.2 → 2.11.0-rc.2
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/lib/aptos/codegen/codegen.js +0 -1
- package/lib/aptos/codegen/codegen.js.map +1 -1
- package/lib/move/abstract-codegen.d.ts +2 -1
- package/lib/move/abstract-codegen.js +9 -8
- package/lib/move/abstract-codegen.js.map +1 -1
- package/lib/move/abstract-move-coder.d.ts +2 -3
- package/lib/move/abstract-move-coder.js +6 -1
- package/lib/move/abstract-move-coder.js.map +1 -1
- package/lib/solana/builtin/types.d.ts +170 -170
- package/lib/solana/builtin/types.js +2 -1
- package/lib/solana/builtin/types.js.map +1 -1
- package/lib/sui/builtin/0x1.js +1 -1
- package/lib/sui/builtin/0x1.js.map +1 -1
- package/lib/sui/builtin/0x2.d.ts +235 -640
- package/lib/sui/builtin/0x2.js +294 -716
- package/lib/sui/builtin/0x2.js.map +1 -1
- package/lib/sui/builtin/0x3.d.ts +566 -0
- package/lib/sui/builtin/0x3.js +681 -0
- package/lib/sui/builtin/0x3.js.map +1 -0
- package/lib/sui/builtin/index.d.ts +1 -0
- package/lib/sui/builtin/index.js +1 -0
- package/lib/sui/builtin/index.js.map +1 -1
- package/lib/sui/codegen/codegen.js +4 -3
- package/lib/sui/codegen/codegen.js.map +1 -1
- package/lib/sui/context.d.ts +3 -3
- package/lib/sui/context.js +1 -1
- package/lib/sui/context.js.map +1 -1
- package/lib/sui/models.d.ts +8 -4
- package/lib/sui/models.js.map +1 -1
- package/lib/sui/move-coder.d.ts +9 -6
- package/lib/sui/move-coder.js +44 -8
- package/lib/sui/move-coder.js.map +1 -1
- package/lib/sui/move-types.js +7 -7
- package/lib/sui/move-types.js.map +1 -1
- package/lib/sui/sui-processor.d.ts +3 -3
- package/lib/sui/sui-processor.js +15 -9
- package/lib/sui/sui-processor.js.map +1 -1
- package/lib/sui/utils.d.ts +2 -2
- package/lib/sui/utils.js +18 -5
- package/lib/sui/utils.js.map +1 -1
- package/lib/testing/sui-facet.d.ts +4 -4
- package/lib/testing/sui-facet.js +7 -7
- package/lib/testing/sui-facet.js.map +1 -1
- package/package.json +7 -5
- package/src/aptos/codegen/codegen.ts +0 -1
- package/src/move/abstract-codegen.ts +9 -8
- package/src/move/abstract-move-coder.ts +7 -3
- package/src/solana/builtin/types.ts +2 -1
- package/src/sui/abis/0x1.json +357 -357
- package/src/sui/abis/0x2.json +5563 -8247
- package/src/sui/abis/0x3.json +8399 -0
- package/src/sui/builtin/0x1.ts +1 -1
- package/src/sui/builtin/0x2.ts +531 -1537
- package/src/sui/builtin/0x3.ts +1515 -0
- package/src/sui/builtin/index.ts +1 -0
- package/src/sui/codegen/codegen.ts +5 -3
- package/src/sui/context.ts +4 -4
- package/src/sui/models.ts +9 -4
- package/src/sui/move-coder.ts +53 -15
- package/src/sui/move-types.ts +7 -7
- package/src/sui/sui-processor.ts +28 -15
- package/src/sui/utils.ts +28 -5
- package/src/testing/sui-facet.ts +19 -15
- package/src/eth/codegen/tsconfig.json +0 -8
@@ -1,5 +1,5 @@
|
|
1
|
-
import { Infer } from "
|
2
|
-
export declare const PublicKeyFromString: import("
|
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("
|
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("
|
17
|
-
decimals: import("
|
18
|
-
uiAmountString: import("
|
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("
|
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("
|
28
|
-
decimals: import("
|
29
|
-
mintAuthority: import("
|
30
|
-
rentSysvar: import("
|
31
|
-
freezeAuthority: import("
|
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("
|
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("
|
40
|
-
mint: import("
|
41
|
-
owner: import("
|
42
|
-
rentSysvar: import("
|
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("
|
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("
|
51
|
-
mint: import("
|
52
|
-
rentSysvar: import("
|
53
|
-
owner: import("
|
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("
|
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("
|
61
|
-
mint: import("
|
62
|
-
owner: import("
|
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("
|
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("
|
71
|
-
rentSysvar: import("
|
72
|
-
signers: import("
|
73
|
-
m: import("
|
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("
|
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("
|
85
|
-
destination: import("
|
86
|
-
amount: import("
|
87
|
-
authority: import("
|
88
|
-
multisigAuthority: import("
|
89
|
-
signers: import("
|
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("
|
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("
|
101
|
-
delegate: import("
|
102
|
-
amount: import("
|
103
|
-
owner: import("
|
104
|
-
multisigOwner: import("
|
105
|
-
signers: import("
|
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("
|
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("
|
115
|
-
owner: import("
|
116
|
-
multisigOwner: import("
|
117
|
-
signers: import("
|
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("
|
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("
|
130
|
-
account: import("
|
131
|
-
authorityType: import("
|
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("
|
138
|
-
authority: import("
|
139
|
-
multisigAuthority: import("
|
140
|
-
signers: import("
|
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("
|
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("
|
151
|
-
account: import("
|
152
|
-
amount: import("
|
153
|
-
mintAuthority: import("
|
154
|
-
multisigMintAuthority: import("
|
155
|
-
signers: import("
|
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("
|
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("
|
166
|
-
mint: import("
|
167
|
-
amount: import("
|
168
|
-
authority: import("
|
169
|
-
multisigAuthority: import("
|
170
|
-
signers: import("
|
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("
|
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("
|
180
|
-
destination: import("
|
181
|
-
owner: import("
|
182
|
-
multisigOwner: import("
|
183
|
-
signers: import("
|
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("
|
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("
|
195
|
-
mint: import("
|
196
|
-
freezeAuthority: import("
|
197
|
-
multisigFreezeAuthority: import("
|
198
|
-
signers: import("
|
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("
|
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("
|
209
|
-
mint: import("
|
210
|
-
freezeAuthority: import("
|
211
|
-
multisigFreezeAuthority: import("
|
212
|
-
signers: import("
|
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("
|
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("
|
229
|
-
mint: import("
|
230
|
-
destination: import("
|
231
|
-
authority: import("
|
232
|
-
multisigAuthority: import("
|
233
|
-
signers: import("
|
234
|
-
tokenAmount: import("
|
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("
|
240
|
-
decimals: import("
|
241
|
-
uiAmountString: import("
|
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("
|
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("
|
259
|
-
mint: import("
|
260
|
-
delegate: import("
|
261
|
-
owner: import("
|
262
|
-
multisigOwner: import("
|
263
|
-
signers: import("
|
264
|
-
tokenAmount: import("
|
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("
|
270
|
-
decimals: import("
|
271
|
-
uiAmountString: import("
|
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("
|
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("
|
288
|
-
mint: import("
|
289
|
-
mintAuthority: import("
|
290
|
-
multisigMintAuthority: import("
|
291
|
-
signers: import("
|
292
|
-
tokenAmount: import("
|
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("
|
298
|
-
decimals: import("
|
299
|
-
uiAmountString: import("
|
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("
|
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("
|
316
|
-
mint: import("
|
317
|
-
authority: import("
|
318
|
-
multisigAuthority: import("
|
319
|
-
signers: import("
|
320
|
-
tokenAmount: import("
|
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("
|
326
|
-
decimals: import("
|
327
|
-
uiAmountString: import("
|
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("
|
332
|
+
declare const GetAccountDataSize: import("superstruct_solana").Struct<{
|
333
333
|
mint: String;
|
334
334
|
extensionTypes?: string[] | undefined;
|
335
335
|
}, {
|
336
|
-
mint: import("
|
337
|
-
extensionTypes: import("
|
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("
|
340
|
+
declare const InitializeImmutableOwner: import("superstruct_solana").Struct<{
|
341
341
|
account: String;
|
342
342
|
}, {
|
343
|
-
account: import("
|
343
|
+
account: import("superstruct_solana").Struct<String, null>;
|
344
344
|
}>;
|
345
345
|
export type AmountToUiAmount = Infer<typeof AmountToUiAmount>;
|
346
|
-
declare const AmountToUiAmount: import("
|
346
|
+
declare const AmountToUiAmount: import("superstruct_solana").Struct<{
|
347
347
|
amount: string | number;
|
348
348
|
mint: String;
|
349
349
|
}, {
|
350
|
-
mint: import("
|
351
|
-
amount: import("
|
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("
|
354
|
+
declare const UiAmountToAmount: import("superstruct_solana").Struct<{
|
355
355
|
mint: String;
|
356
356
|
uiAmount: string;
|
357
357
|
}, {
|
358
|
-
mint: import("
|
359
|
-
uiAmount: import("
|
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("
|
362
|
+
declare const InitializeMintCloseAuthority: import("superstruct_solana").Struct<{
|
363
363
|
mint: String;
|
364
364
|
newAuthority: String;
|
365
365
|
}, {
|
366
|
-
mint: import("
|
367
|
-
newAuthority: import("
|
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("
|
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("
|
378
|
-
transferFeeConfigAuthority: import("
|
379
|
-
withdrawWitheldAuthority: import("
|
380
|
-
transferFeeBasisPoints: import("
|
381
|
-
maximumFee: import("
|
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("
|
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("
|
390
|
-
accountState: import("
|
391
|
-
freezeAuthority: import("
|
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("
|
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("
|
401
|
-
payer: import("
|
402
|
-
systemProgram: import("
|
403
|
-
extensionTypes: import("
|
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("
|
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("
|
413
|
-
owner: import("
|
414
|
-
multisigOwner: import("
|
415
|
-
signers: import("
|
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("
|
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("
|
424
|
-
nativeMint: import("
|
425
|
-
systemProgram: import("
|
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
|
-
|
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({
|