@bitgo/sdk-coin-sui 2.0.0 → 3.0.0

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 (122) hide show
  1. package/.eslintignore +1 -0
  2. package/CHANGELOG.md +37 -0
  3. package/dist/src/lib/constants.d.ts +3 -15
  4. package/dist/src/lib/constants.d.ts.map +1 -1
  5. package/dist/src/lib/constants.js +7 -20
  6. package/dist/src/lib/iface.d.ts +35 -181
  7. package/dist/src/lib/iface.d.ts.map +1 -1
  8. package/dist/src/lib/iface.js +11 -38
  9. package/dist/src/lib/index.d.ts +2 -0
  10. package/dist/src/lib/index.d.ts.map +1 -1
  11. package/dist/src/lib/index.js +6 -2
  12. package/dist/src/lib/keyPair.d.ts +4 -0
  13. package/dist/src/lib/keyPair.d.ts.map +1 -1
  14. package/dist/src/lib/keyPair.js +7 -10
  15. package/dist/src/lib/mystenlab/builder/Inputs.d.ts +66 -0
  16. package/dist/src/lib/mystenlab/builder/Inputs.d.ts.map +1 -0
  17. package/dist/src/lib/mystenlab/builder/Inputs.js +56 -0
  18. package/dist/src/lib/mystenlab/builder/TransactionBlock.d.ts +616 -0
  19. package/dist/src/lib/mystenlab/builder/TransactionBlock.d.ts.map +1 -0
  20. package/dist/src/lib/mystenlab/builder/TransactionBlock.js +260 -0
  21. package/dist/src/lib/mystenlab/builder/TransactionDataBlock.d.ts +566 -0
  22. package/dist/src/lib/mystenlab/builder/TransactionDataBlock.d.ts.map +1 -0
  23. package/dist/src/lib/mystenlab/builder/TransactionDataBlock.js +171 -0
  24. package/dist/src/lib/mystenlab/builder/Transactions.d.ts +992 -0
  25. package/dist/src/lib/mystenlab/builder/Transactions.d.ts.map +1 -0
  26. package/dist/src/lib/mystenlab/builder/Transactions.js +119 -0
  27. package/dist/src/lib/mystenlab/builder/bcs.d.ts +25 -0
  28. package/dist/src/lib/mystenlab/builder/bcs.d.ts.map +1 -0
  29. package/dist/src/lib/mystenlab/builder/bcs.js +141 -0
  30. package/dist/src/lib/mystenlab/builder/index.d.ts +5 -0
  31. package/dist/src/lib/mystenlab/builder/index.d.ts.map +1 -0
  32. package/dist/src/lib/mystenlab/builder/index.js +17 -0
  33. package/dist/src/lib/mystenlab/builder/serializer.d.ts +4 -0
  34. package/dist/src/lib/mystenlab/builder/serializer.d.ts.map +1 -0
  35. package/dist/src/lib/mystenlab/builder/serializer.js +101 -0
  36. package/dist/src/lib/mystenlab/builder/utils.d.ts +10 -0
  37. package/dist/src/lib/mystenlab/builder/utils.d.ts.map +1 -0
  38. package/dist/src/lib/mystenlab/builder/utils.js +10 -0
  39. package/dist/src/lib/mystenlab/cryptography/hash.d.ts +8 -0
  40. package/dist/src/lib/mystenlab/cryptography/hash.d.ts.map +1 -0
  41. package/dist/src/lib/mystenlab/cryptography/hash.js +22 -0
  42. package/dist/src/lib/mystenlab/framework/framework.d.ts +93 -0
  43. package/dist/src/lib/mystenlab/framework/framework.d.ts.map +1 -0
  44. package/dist/src/lib/mystenlab/framework/framework.js +138 -0
  45. package/dist/src/lib/mystenlab/framework/index.d.ts +3 -0
  46. package/dist/src/lib/mystenlab/framework/index.d.ts.map +1 -0
  47. package/dist/src/lib/mystenlab/framework/index.js +15 -0
  48. package/dist/src/lib/mystenlab/framework/sui-system-state.d.ts +12 -0
  49. package/dist/src/lib/mystenlab/framework/sui-system-state.d.ts.map +1 -0
  50. package/dist/src/lib/mystenlab/framework/sui-system-state.js +19 -0
  51. package/dist/src/lib/mystenlab/txn-data-serializers/type-tag-serializer.d.ts +7 -0
  52. package/dist/src/lib/mystenlab/txn-data-serializers/type-tag-serializer.d.ts.map +1 -0
  53. package/dist/src/lib/mystenlab/txn-data-serializers/type-tag-serializer.js +119 -0
  54. package/dist/src/lib/mystenlab/types/coin.d.ts +89 -0
  55. package/dist/src/lib/mystenlab/types/coin.d.ts.map +1 -0
  56. package/dist/src/lib/mystenlab/types/coin.js +32 -0
  57. package/dist/src/lib/mystenlab/types/common.d.ts +45 -0
  58. package/dist/src/lib/mystenlab/types/common.d.ts.map +1 -0
  59. package/dist/src/lib/mystenlab/types/common.js +84 -0
  60. package/dist/src/lib/mystenlab/types/events.d.ts +198 -0
  61. package/dist/src/lib/mystenlab/types/events.d.ts.map +1 -0
  62. package/dist/src/lib/mystenlab/types/events.js +46 -0
  63. package/dist/src/lib/mystenlab/types/index.d.ts +9 -0
  64. package/dist/src/lib/mystenlab/types/index.d.ts.map +1 -0
  65. package/dist/src/lib/mystenlab/types/index.js +21 -0
  66. package/dist/src/lib/mystenlab/types/normalized.d.ts +254 -0
  67. package/dist/src/lib/mystenlab/types/normalized.d.ts.map +1 -0
  68. package/dist/src/lib/mystenlab/types/normalized.js +111 -0
  69. package/dist/src/lib/mystenlab/types/objects.d.ts +806 -0
  70. package/dist/src/lib/mystenlab/types/objects.d.ts.map +1 -0
  71. package/dist/src/lib/mystenlab/types/objects.js +302 -0
  72. package/dist/src/lib/mystenlab/types/option.d.ts +8 -0
  73. package/dist/src/lib/mystenlab/types/option.d.ts.map +1 -0
  74. package/dist/src/lib/mystenlab/types/option.js +14 -0
  75. package/dist/src/lib/mystenlab/types/sui-bcs.d.ts +111 -0
  76. package/dist/src/lib/mystenlab/types/sui-bcs.d.ts.map +1 -0
  77. package/dist/src/lib/mystenlab/types/sui-bcs.js +107 -0
  78. package/dist/src/lib/mystenlab/types/transactions.d.ts +6703 -0
  79. package/dist/src/lib/mystenlab/types/transactions.d.ts.map +1 -0
  80. package/dist/src/lib/mystenlab/types/transactions.js +405 -0
  81. package/dist/src/lib/mystenlab/types/validator.d.ts +641 -0
  82. package/dist/src/lib/mystenlab/types/validator.d.ts.map +1 -0
  83. package/dist/src/lib/mystenlab/types/validator.js +156 -0
  84. package/dist/src/lib/stakingBuilder.d.ts +24 -35
  85. package/dist/src/lib/stakingBuilder.d.ts.map +1 -1
  86. package/dist/src/lib/stakingBuilder.js +93 -129
  87. package/dist/src/lib/stakingTransaction.d.ts +5 -21
  88. package/dist/src/lib/stakingTransaction.d.ts.map +1 -1
  89. package/dist/src/lib/stakingTransaction.js +77 -219
  90. package/dist/src/lib/transaction.d.ts +8 -6
  91. package/dist/src/lib/transaction.d.ts.map +1 -1
  92. package/dist/src/lib/transaction.js +74 -124
  93. package/dist/src/lib/transactionBuilder.d.ts +9 -9
  94. package/dist/src/lib/transactionBuilder.d.ts.map +1 -1
  95. package/dist/src/lib/transactionBuilder.js +27 -16
  96. package/dist/src/lib/transactionBuilderFactory.d.ts +8 -5
  97. package/dist/src/lib/transactionBuilderFactory.d.ts.map +1 -1
  98. package/dist/src/lib/transactionBuilderFactory.js +17 -11
  99. package/dist/src/lib/transferBuilder.d.ts +15 -10
  100. package/dist/src/lib/transferBuilder.d.ts.map +1 -1
  101. package/dist/src/lib/transferBuilder.js +38 -101
  102. package/dist/src/lib/transferTransaction.d.ts +5 -4
  103. package/dist/src/lib/transferTransaction.d.ts.map +1 -1
  104. package/dist/src/lib/transferTransaction.js +45 -96
  105. package/dist/src/lib/unstakingBuilder.d.ts +55 -0
  106. package/dist/src/lib/unstakingBuilder.d.ts.map +1 -0
  107. package/dist/src/lib/unstakingBuilder.js +148 -0
  108. package/dist/src/lib/unstakingTransaction.d.ts +51 -0
  109. package/dist/src/lib/unstakingTransaction.d.ts.map +1 -0
  110. package/dist/src/lib/unstakingTransaction.js +206 -0
  111. package/dist/src/lib/utils.d.ts +30 -92
  112. package/dist/src/lib/utils.d.ts.map +1 -1
  113. package/dist/src/lib/utils.js +115 -177
  114. package/dist/src/sui.d.ts.map +1 -1
  115. package/dist/src/sui.js +23 -13
  116. package/package.json +9 -9
  117. package/dist/src/lib/bcs.d.ts +0 -3
  118. package/dist/src/lib/bcs.d.ts.map +0 -1
  119. package/dist/src/lib/bcs.js +0 -109
  120. package/dist/src/lib/txnSchema.d.ts +0 -7
  121. package/dist/src/lib/txnSchema.d.ts.map +0 -1
  122. package/dist/src/lib/txnSchema.js +0 -81
@@ -0,0 +1,641 @@
1
+ import { Infer } from 'superstruct';
2
+ export declare type DelegatedStake = Infer<typeof DelegatedStake>;
3
+ export declare type CommitteeInfo = Infer<typeof CommitteeInfo>;
4
+ export declare type StakeObject = Infer<typeof StakeObject>;
5
+ export declare const Balance: import("superstruct").Struct<{
6
+ value: number;
7
+ }, {
8
+ value: import("superstruct").Struct<number, null>;
9
+ }>;
10
+ export declare const StakeObject: import("superstruct").Struct<{
11
+ status: "Active" | "Pending" | "Unstaked";
12
+ stakedSuiId: string;
13
+ stakeRequestEpoch: string;
14
+ stakeActiveEpoch: string;
15
+ principal: number;
16
+ estimatedReward?: number | undefined;
17
+ }, {
18
+ stakedSuiId: import("superstruct").Struct<string, null>;
19
+ stakeRequestEpoch: import("superstruct").Struct<string, null>;
20
+ stakeActiveEpoch: import("superstruct").Struct<string, null>;
21
+ principal: import("superstruct").Struct<number, null>;
22
+ status: import("superstruct").Struct<"Active" | "Pending" | "Unstaked", null>;
23
+ estimatedReward: import("superstruct").Struct<number | undefined, null>;
24
+ }>;
25
+ export declare const DelegatedStake: import("superstruct").Struct<{
26
+ validatorAddress: string;
27
+ stakingPool: string;
28
+ stakes: {
29
+ status: "Active" | "Pending" | "Unstaked";
30
+ stakedSuiId: string;
31
+ stakeRequestEpoch: string;
32
+ stakeActiveEpoch: string;
33
+ principal: number;
34
+ estimatedReward?: number | undefined;
35
+ }[];
36
+ }, {
37
+ validatorAddress: import("superstruct").Struct<string, null>;
38
+ stakingPool: import("superstruct").Struct<string, null>;
39
+ stakes: import("superstruct").Struct<{
40
+ status: "Active" | "Pending" | "Unstaked";
41
+ stakedSuiId: string;
42
+ stakeRequestEpoch: string;
43
+ stakeActiveEpoch: string;
44
+ principal: number;
45
+ estimatedReward?: number | undefined;
46
+ }[], import("superstruct").Struct<{
47
+ status: "Active" | "Pending" | "Unstaked";
48
+ stakedSuiId: string;
49
+ stakeRequestEpoch: string;
50
+ stakeActiveEpoch: string;
51
+ principal: number;
52
+ estimatedReward?: number | undefined;
53
+ }, {
54
+ stakedSuiId: import("superstruct").Struct<string, null>;
55
+ stakeRequestEpoch: import("superstruct").Struct<string, null>;
56
+ stakeActiveEpoch: import("superstruct").Struct<string, null>;
57
+ principal: import("superstruct").Struct<number, null>;
58
+ status: import("superstruct").Struct<"Active" | "Pending" | "Unstaked", null>;
59
+ estimatedReward: import("superstruct").Struct<number | undefined, null>;
60
+ }>>;
61
+ }>;
62
+ export declare const StakeSubsidyFields: import("superstruct").Struct<{
63
+ balance: {
64
+ value: number;
65
+ };
66
+ distribution_counter: number;
67
+ current_distribution_amount: number;
68
+ stake_subsidy_period_length: number;
69
+ stake_subsidy_decrease_rate: number;
70
+ }, {
71
+ balance: import("superstruct").Struct<{
72
+ value: number;
73
+ }, {
74
+ value: import("superstruct").Struct<number, null>;
75
+ }>;
76
+ distribution_counter: import("superstruct").Struct<number, null>;
77
+ current_distribution_amount: import("superstruct").Struct<number, null>;
78
+ stake_subsidy_period_length: import("superstruct").Struct<number, null>;
79
+ stake_subsidy_decrease_rate: import("superstruct").Struct<number, null>;
80
+ }>;
81
+ export declare const StakeSubsidy: import("superstruct").Struct<{
82
+ type: string;
83
+ fields: {
84
+ balance: {
85
+ value: number;
86
+ };
87
+ distribution_counter: number;
88
+ current_distribution_amount: number;
89
+ stake_subsidy_period_length: number;
90
+ stake_subsidy_decrease_rate: number;
91
+ };
92
+ }, {
93
+ type: import("superstruct").Struct<string, null>;
94
+ fields: import("superstruct").Struct<{
95
+ balance: {
96
+ value: number;
97
+ };
98
+ distribution_counter: number;
99
+ current_distribution_amount: number;
100
+ stake_subsidy_period_length: number;
101
+ stake_subsidy_decrease_rate: number;
102
+ }, {
103
+ balance: import("superstruct").Struct<{
104
+ value: number;
105
+ }, {
106
+ value: import("superstruct").Struct<number, null>;
107
+ }>;
108
+ distribution_counter: import("superstruct").Struct<number, null>;
109
+ current_distribution_amount: import("superstruct").Struct<number, null>;
110
+ stake_subsidy_period_length: import("superstruct").Struct<number, null>;
111
+ stake_subsidy_decrease_rate: import("superstruct").Struct<number, null>;
112
+ }>;
113
+ }>;
114
+ export declare const SuiSupplyFields: import("superstruct").Struct<{
115
+ value: number;
116
+ }, {
117
+ value: import("superstruct").Struct<number, null>;
118
+ }>;
119
+ export declare const ContentsFields: import("superstruct").Struct<{
120
+ id: string;
121
+ size: number;
122
+ head: {
123
+ vec: unknown[];
124
+ };
125
+ tail: {
126
+ vec: unknown[];
127
+ };
128
+ }, {
129
+ id: import("superstruct").Struct<string, null>;
130
+ size: import("superstruct").Struct<number, null>;
131
+ head: import("superstruct").Struct<{
132
+ vec: unknown[];
133
+ }, {
134
+ vec: import("superstruct").Struct<unknown[], undefined>;
135
+ }>;
136
+ tail: import("superstruct").Struct<{
137
+ vec: unknown[];
138
+ }, {
139
+ vec: import("superstruct").Struct<unknown[], undefined>;
140
+ }>;
141
+ }>;
142
+ export declare const ContentsFieldsWithdraw: import("superstruct").Struct<{
143
+ id: string;
144
+ size: number;
145
+ }, {
146
+ id: import("superstruct").Struct<string, null>;
147
+ size: import("superstruct").Struct<number, null>;
148
+ }>;
149
+ export declare const Contents: import("superstruct").Struct<{
150
+ type: string;
151
+ fields: {
152
+ id: string;
153
+ size: number;
154
+ head: {
155
+ vec: unknown[];
156
+ };
157
+ tail: {
158
+ vec: unknown[];
159
+ };
160
+ };
161
+ }, {
162
+ type: import("superstruct").Struct<string, null>;
163
+ fields: import("superstruct").Struct<{
164
+ id: string;
165
+ size: number;
166
+ head: {
167
+ vec: unknown[];
168
+ };
169
+ tail: {
170
+ vec: unknown[];
171
+ };
172
+ }, {
173
+ id: import("superstruct").Struct<string, null>;
174
+ size: import("superstruct").Struct<number, null>;
175
+ head: import("superstruct").Struct<{
176
+ vec: unknown[];
177
+ }, {
178
+ vec: import("superstruct").Struct<unknown[], undefined>;
179
+ }>;
180
+ tail: import("superstruct").Struct<{
181
+ vec: unknown[];
182
+ }, {
183
+ vec: import("superstruct").Struct<unknown[], undefined>;
184
+ }>;
185
+ }>;
186
+ }>;
187
+ export declare const DelegationStakingPoolFields: import("superstruct").Struct<{
188
+ id: string;
189
+ exchangeRates: {
190
+ id: string;
191
+ size: number;
192
+ };
193
+ pendingStake: number;
194
+ pendingPoolTokenWithdraw: number;
195
+ pendingTotalSuiWithdraw: number;
196
+ poolTokenBalance: number;
197
+ rewardsPool: {
198
+ value: number;
199
+ };
200
+ activationEpoch: {
201
+ vec: unknown[];
202
+ };
203
+ deactivationEpoch: {
204
+ vec: unknown[];
205
+ };
206
+ suiBalance: number;
207
+ }, {
208
+ exchangeRates: import("superstruct").Struct<{
209
+ id: string;
210
+ size: number;
211
+ }, {
212
+ id: import("superstruct").Struct<string, null>;
213
+ size: import("superstruct").Struct<number, null>;
214
+ }>;
215
+ id: import("superstruct").Struct<string, null>;
216
+ pendingStake: import("superstruct").Struct<number, null>;
217
+ pendingPoolTokenWithdraw: import("superstruct").Struct<number, null>;
218
+ pendingTotalSuiWithdraw: import("superstruct").Struct<number, null>;
219
+ poolTokenBalance: import("superstruct").Struct<number, null>;
220
+ rewardsPool: import("superstruct").Struct<{
221
+ value: number;
222
+ }, {
223
+ value: import("superstruct").Struct<number, null>;
224
+ }>;
225
+ activationEpoch: import("superstruct").Struct<{
226
+ vec: unknown[];
227
+ }, {
228
+ vec: import("superstruct").Struct<unknown[], undefined>;
229
+ }>;
230
+ deactivationEpoch: import("superstruct").Struct<{
231
+ vec: unknown[];
232
+ }, {
233
+ vec: import("superstruct").Struct<unknown[], undefined>;
234
+ }>;
235
+ suiBalance: import("superstruct").Struct<number, null>;
236
+ }>;
237
+ export declare const DelegationStakingPool: import("superstruct").Struct<{
238
+ type: string;
239
+ fields: {
240
+ id: string;
241
+ exchangeRates: {
242
+ id: string;
243
+ size: number;
244
+ };
245
+ pendingStake: number;
246
+ pendingPoolTokenWithdraw: number;
247
+ pendingTotalSuiWithdraw: number;
248
+ poolTokenBalance: number;
249
+ rewardsPool: {
250
+ value: number;
251
+ };
252
+ activationEpoch: {
253
+ vec: unknown[];
254
+ };
255
+ deactivationEpoch: {
256
+ vec: unknown[];
257
+ };
258
+ suiBalance: number;
259
+ };
260
+ }, {
261
+ type: import("superstruct").Struct<string, null>;
262
+ fields: import("superstruct").Struct<{
263
+ id: string;
264
+ exchangeRates: {
265
+ id: string;
266
+ size: number;
267
+ };
268
+ pendingStake: number;
269
+ pendingPoolTokenWithdraw: number;
270
+ pendingTotalSuiWithdraw: number;
271
+ poolTokenBalance: number;
272
+ rewardsPool: {
273
+ value: number;
274
+ };
275
+ activationEpoch: {
276
+ vec: unknown[];
277
+ };
278
+ deactivationEpoch: {
279
+ vec: unknown[];
280
+ };
281
+ suiBalance: number;
282
+ }, {
283
+ exchangeRates: import("superstruct").Struct<{
284
+ id: string;
285
+ size: number;
286
+ }, {
287
+ id: import("superstruct").Struct<string, null>;
288
+ size: import("superstruct").Struct<number, null>;
289
+ }>;
290
+ id: import("superstruct").Struct<string, null>;
291
+ pendingStake: import("superstruct").Struct<number, null>;
292
+ pendingPoolTokenWithdraw: import("superstruct").Struct<number, null>;
293
+ pendingTotalSuiWithdraw: import("superstruct").Struct<number, null>;
294
+ poolTokenBalance: import("superstruct").Struct<number, null>;
295
+ rewardsPool: import("superstruct").Struct<{
296
+ value: number;
297
+ }, {
298
+ value: import("superstruct").Struct<number, null>;
299
+ }>;
300
+ activationEpoch: import("superstruct").Struct<{
301
+ vec: unknown[];
302
+ }, {
303
+ vec: import("superstruct").Struct<unknown[], undefined>;
304
+ }>;
305
+ deactivationEpoch: import("superstruct").Struct<{
306
+ vec: unknown[];
307
+ }, {
308
+ vec: import("superstruct").Struct<unknown[], undefined>;
309
+ }>;
310
+ suiBalance: import("superstruct").Struct<number, null>;
311
+ }>;
312
+ }>;
313
+ export declare const CommitteeInfo: import("superstruct").Struct<{
314
+ epoch: number;
315
+ validators?: [string, number][] | undefined;
316
+ }, {
317
+ epoch: import("superstruct").Struct<number, null>;
318
+ /** Array of (validator public key, stake unit) tuple */
319
+ validators: import("superstruct").Struct<[string, number][] | undefined, import("superstruct").Struct<[string, number], null>>;
320
+ }>;
321
+ export declare const SuiValidatorSummary: import("superstruct").Struct<{
322
+ name: string;
323
+ description: string;
324
+ pendingStake: number;
325
+ pendingPoolTokenWithdraw: number;
326
+ pendingTotalSuiWithdraw: number;
327
+ poolTokenBalance: number;
328
+ rewardsPool: number;
329
+ suiAddress: string;
330
+ protocolPubkeyBytes: string;
331
+ networkPubkeyBytes: string;
332
+ workerPubkeyBytes: string;
333
+ proofOfPossessionBytes: string;
334
+ operationCapId: string;
335
+ imageUrl: string;
336
+ projectUrl: string;
337
+ p2pAddress: string;
338
+ netAddress: string;
339
+ primaryAddress: string;
340
+ workerAddress: string;
341
+ nextEpochProtocolPubkeyBytes: string | null;
342
+ nextEpochProofOfPossession: string | null;
343
+ nextEpochNetworkPubkeyBytes: string | null;
344
+ nextEpochWorkerPubkeyBytes: string | null;
345
+ nextEpochNetAddress: string | null;
346
+ nextEpochP2pAddress: string | null;
347
+ nextEpochPrimaryAddress: string | null;
348
+ nextEpochWorkerAddress: string | null;
349
+ votingPower: number;
350
+ gasPrice: number;
351
+ commissionRate: number;
352
+ nextEpochStake: number;
353
+ nextEpochGasPrice: number;
354
+ nextEpochCommissionRate: number;
355
+ stakingPoolId: string;
356
+ stakingPoolActivationEpoch: number | null;
357
+ stakingPoolDeactivationEpoch: number | null;
358
+ stakingPoolSuiBalance: number;
359
+ exchangeRatesId: string;
360
+ exchangeRatesSize: number;
361
+ }, {
362
+ suiAddress: import("superstruct").Struct<string, null>;
363
+ protocolPubkeyBytes: import("superstruct").Struct<string, null>;
364
+ networkPubkeyBytes: import("superstruct").Struct<string, null>;
365
+ workerPubkeyBytes: import("superstruct").Struct<string, null>;
366
+ proofOfPossessionBytes: import("superstruct").Struct<string, null>;
367
+ operationCapId: import("superstruct").Struct<string, null>;
368
+ name: import("superstruct").Struct<string, null>;
369
+ description: import("superstruct").Struct<string, null>;
370
+ imageUrl: import("superstruct").Struct<string, null>;
371
+ projectUrl: import("superstruct").Struct<string, null>;
372
+ p2pAddress: import("superstruct").Struct<string, null>;
373
+ netAddress: import("superstruct").Struct<string, null>;
374
+ primaryAddress: import("superstruct").Struct<string, null>;
375
+ workerAddress: import("superstruct").Struct<string, null>;
376
+ nextEpochProtocolPubkeyBytes: import("superstruct").Struct<string | null, null>;
377
+ nextEpochProofOfPossession: import("superstruct").Struct<string | null, null>;
378
+ nextEpochNetworkPubkeyBytes: import("superstruct").Struct<string | null, null>;
379
+ nextEpochWorkerPubkeyBytes: import("superstruct").Struct<string | null, null>;
380
+ nextEpochNetAddress: import("superstruct").Struct<string | null, null>;
381
+ nextEpochP2pAddress: import("superstruct").Struct<string | null, null>;
382
+ nextEpochPrimaryAddress: import("superstruct").Struct<string | null, null>;
383
+ nextEpochWorkerAddress: import("superstruct").Struct<string | null, null>;
384
+ votingPower: import("superstruct").Struct<number, null>;
385
+ gasPrice: import("superstruct").Struct<number, null>;
386
+ commissionRate: import("superstruct").Struct<number, null>;
387
+ nextEpochStake: import("superstruct").Struct<number, null>;
388
+ nextEpochGasPrice: import("superstruct").Struct<number, null>;
389
+ nextEpochCommissionRate: import("superstruct").Struct<number, null>;
390
+ stakingPoolId: import("superstruct").Struct<string, null>;
391
+ stakingPoolActivationEpoch: import("superstruct").Struct<number | null, null>;
392
+ stakingPoolDeactivationEpoch: import("superstruct").Struct<number | null, null>;
393
+ stakingPoolSuiBalance: import("superstruct").Struct<number, null>;
394
+ rewardsPool: import("superstruct").Struct<number, null>;
395
+ poolTokenBalance: import("superstruct").Struct<number, null>;
396
+ pendingStake: import("superstruct").Struct<number, null>;
397
+ pendingPoolTokenWithdraw: import("superstruct").Struct<number, null>;
398
+ pendingTotalSuiWithdraw: import("superstruct").Struct<number, null>;
399
+ exchangeRatesId: import("superstruct").Struct<string, null>;
400
+ exchangeRatesSize: import("superstruct").Struct<number, null>;
401
+ }>;
402
+ export declare type SuiValidatorSummary = Infer<typeof SuiValidatorSummary>;
403
+ export declare const SuiSystemStateSummary: import("superstruct").Struct<{
404
+ epoch: number;
405
+ protocolVersion: number;
406
+ systemStateVersion: number;
407
+ storageFundTotalObjectStorageRebates: number;
408
+ storageFundNonRefundableBalance: number;
409
+ referenceGasPrice: number;
410
+ safeMode: boolean;
411
+ safeModeStorageRewards: number;
412
+ safeModeComputationRewards: number;
413
+ safeModeStorageRebates: number;
414
+ safeModeNonRefundableStorageFee: number;
415
+ epochStartTimestampMs: number;
416
+ epochDurationMs: number;
417
+ stakeSubsidyStartEpoch: number;
418
+ maxValidatorCount: number;
419
+ minValidatorJoiningStake: number;
420
+ validatorLowStakeThreshold: number;
421
+ validatorVeryLowStakeThreshold: number;
422
+ validatorLowStakeGracePeriod: number;
423
+ stakeSubsidyBalance: number;
424
+ stakeSubsidyDistributionCounter: number;
425
+ stakeSubsidyCurrentDistributionAmount: number;
426
+ stakeSubsidyPeriodLength: number;
427
+ stakeSubsidyDecreaseRate: number;
428
+ totalStake: number;
429
+ activeValidators: {
430
+ name: string;
431
+ description: string;
432
+ pendingStake: number;
433
+ pendingPoolTokenWithdraw: number;
434
+ pendingTotalSuiWithdraw: number;
435
+ poolTokenBalance: number;
436
+ rewardsPool: number;
437
+ suiAddress: string;
438
+ protocolPubkeyBytes: string;
439
+ networkPubkeyBytes: string;
440
+ workerPubkeyBytes: string;
441
+ proofOfPossessionBytes: string;
442
+ operationCapId: string;
443
+ imageUrl: string;
444
+ projectUrl: string;
445
+ p2pAddress: string;
446
+ netAddress: string;
447
+ primaryAddress: string;
448
+ workerAddress: string;
449
+ nextEpochProtocolPubkeyBytes: string | null;
450
+ nextEpochProofOfPossession: string | null;
451
+ nextEpochNetworkPubkeyBytes: string | null;
452
+ nextEpochWorkerPubkeyBytes: string | null;
453
+ nextEpochNetAddress: string | null;
454
+ nextEpochP2pAddress: string | null;
455
+ nextEpochPrimaryAddress: string | null;
456
+ nextEpochWorkerAddress: string | null;
457
+ votingPower: number;
458
+ gasPrice: number;
459
+ commissionRate: number;
460
+ nextEpochStake: number;
461
+ nextEpochGasPrice: number;
462
+ nextEpochCommissionRate: number;
463
+ stakingPoolId: string;
464
+ stakingPoolActivationEpoch: number | null;
465
+ stakingPoolDeactivationEpoch: number | null;
466
+ stakingPoolSuiBalance: number;
467
+ exchangeRatesId: string;
468
+ exchangeRatesSize: number;
469
+ }[];
470
+ pendingActiveValidatorsId: string;
471
+ pendingActiveValidatorsSize: number;
472
+ pendingRemovals: number[];
473
+ stakingPoolMappingsId: string;
474
+ stakingPoolMappingsSize: number;
475
+ inactivePoolsId: string;
476
+ inactivePoolsSize: number;
477
+ validatorCandidatesId: string;
478
+ validatorCandidatesSize: number;
479
+ atRiskValidators: [string, number][];
480
+ validatorReportRecords: [string, string[]][];
481
+ }, {
482
+ epoch: import("superstruct").Struct<number, null>;
483
+ protocolVersion: import("superstruct").Struct<number, null>;
484
+ systemStateVersion: import("superstruct").Struct<number, null>;
485
+ storageFundTotalObjectStorageRebates: import("superstruct").Struct<number, null>;
486
+ storageFundNonRefundableBalance: import("superstruct").Struct<number, null>;
487
+ referenceGasPrice: import("superstruct").Struct<number, null>;
488
+ safeMode: import("superstruct").Struct<boolean, null>;
489
+ safeModeStorageRewards: import("superstruct").Struct<number, null>;
490
+ safeModeComputationRewards: import("superstruct").Struct<number, null>;
491
+ safeModeStorageRebates: import("superstruct").Struct<number, null>;
492
+ safeModeNonRefundableStorageFee: import("superstruct").Struct<number, null>;
493
+ epochStartTimestampMs: import("superstruct").Struct<number, null>;
494
+ epochDurationMs: import("superstruct").Struct<number, null>;
495
+ stakeSubsidyStartEpoch: import("superstruct").Struct<number, null>;
496
+ maxValidatorCount: import("superstruct").Struct<number, null>;
497
+ minValidatorJoiningStake: import("superstruct").Struct<number, null>;
498
+ validatorLowStakeThreshold: import("superstruct").Struct<number, null>;
499
+ validatorVeryLowStakeThreshold: import("superstruct").Struct<number, null>;
500
+ validatorLowStakeGracePeriod: import("superstruct").Struct<number, null>;
501
+ stakeSubsidyBalance: import("superstruct").Struct<number, null>;
502
+ stakeSubsidyDistributionCounter: import("superstruct").Struct<number, null>;
503
+ stakeSubsidyCurrentDistributionAmount: import("superstruct").Struct<number, null>;
504
+ stakeSubsidyPeriodLength: import("superstruct").Struct<number, null>;
505
+ stakeSubsidyDecreaseRate: import("superstruct").Struct<number, null>;
506
+ totalStake: import("superstruct").Struct<number, null>;
507
+ activeValidators: import("superstruct").Struct<{
508
+ name: string;
509
+ description: string;
510
+ pendingStake: number;
511
+ pendingPoolTokenWithdraw: number;
512
+ pendingTotalSuiWithdraw: number;
513
+ poolTokenBalance: number;
514
+ rewardsPool: number;
515
+ suiAddress: string;
516
+ protocolPubkeyBytes: string;
517
+ networkPubkeyBytes: string;
518
+ workerPubkeyBytes: string;
519
+ proofOfPossessionBytes: string;
520
+ operationCapId: string;
521
+ imageUrl: string;
522
+ projectUrl: string;
523
+ p2pAddress: string;
524
+ netAddress: string;
525
+ primaryAddress: string;
526
+ workerAddress: string;
527
+ nextEpochProtocolPubkeyBytes: string | null;
528
+ nextEpochProofOfPossession: string | null;
529
+ nextEpochNetworkPubkeyBytes: string | null;
530
+ nextEpochWorkerPubkeyBytes: string | null;
531
+ nextEpochNetAddress: string | null;
532
+ nextEpochP2pAddress: string | null;
533
+ nextEpochPrimaryAddress: string | null;
534
+ nextEpochWorkerAddress: string | null;
535
+ votingPower: number;
536
+ gasPrice: number;
537
+ commissionRate: number;
538
+ nextEpochStake: number;
539
+ nextEpochGasPrice: number;
540
+ nextEpochCommissionRate: number;
541
+ stakingPoolId: string;
542
+ stakingPoolActivationEpoch: number | null;
543
+ stakingPoolDeactivationEpoch: number | null;
544
+ stakingPoolSuiBalance: number;
545
+ exchangeRatesId: string;
546
+ exchangeRatesSize: number;
547
+ }[], import("superstruct").Struct<{
548
+ name: string;
549
+ description: string;
550
+ pendingStake: number;
551
+ pendingPoolTokenWithdraw: number;
552
+ pendingTotalSuiWithdraw: number;
553
+ poolTokenBalance: number;
554
+ rewardsPool: number;
555
+ suiAddress: string;
556
+ protocolPubkeyBytes: string;
557
+ networkPubkeyBytes: string;
558
+ workerPubkeyBytes: string;
559
+ proofOfPossessionBytes: string;
560
+ operationCapId: string;
561
+ imageUrl: string;
562
+ projectUrl: string;
563
+ p2pAddress: string;
564
+ netAddress: string;
565
+ primaryAddress: string;
566
+ workerAddress: string;
567
+ nextEpochProtocolPubkeyBytes: string | null;
568
+ nextEpochProofOfPossession: string | null;
569
+ nextEpochNetworkPubkeyBytes: string | null;
570
+ nextEpochWorkerPubkeyBytes: string | null;
571
+ nextEpochNetAddress: string | null;
572
+ nextEpochP2pAddress: string | null;
573
+ nextEpochPrimaryAddress: string | null;
574
+ nextEpochWorkerAddress: string | null;
575
+ votingPower: number;
576
+ gasPrice: number;
577
+ commissionRate: number;
578
+ nextEpochStake: number;
579
+ nextEpochGasPrice: number;
580
+ nextEpochCommissionRate: number;
581
+ stakingPoolId: string;
582
+ stakingPoolActivationEpoch: number | null;
583
+ stakingPoolDeactivationEpoch: number | null;
584
+ stakingPoolSuiBalance: number;
585
+ exchangeRatesId: string;
586
+ exchangeRatesSize: number;
587
+ }, {
588
+ suiAddress: import("superstruct").Struct<string, null>;
589
+ protocolPubkeyBytes: import("superstruct").Struct<string, null>;
590
+ networkPubkeyBytes: import("superstruct").Struct<string, null>;
591
+ workerPubkeyBytes: import("superstruct").Struct<string, null>;
592
+ proofOfPossessionBytes: import("superstruct").Struct<string, null>;
593
+ operationCapId: import("superstruct").Struct<string, null>;
594
+ name: import("superstruct").Struct<string, null>;
595
+ description: import("superstruct").Struct<string, null>;
596
+ imageUrl: import("superstruct").Struct<string, null>;
597
+ projectUrl: import("superstruct").Struct<string, null>;
598
+ p2pAddress: import("superstruct").Struct<string, null>;
599
+ netAddress: import("superstruct").Struct<string, null>;
600
+ primaryAddress: import("superstruct").Struct<string, null>;
601
+ workerAddress: import("superstruct").Struct<string, null>;
602
+ nextEpochProtocolPubkeyBytes: import("superstruct").Struct<string | null, null>;
603
+ nextEpochProofOfPossession: import("superstruct").Struct<string | null, null>;
604
+ nextEpochNetworkPubkeyBytes: import("superstruct").Struct<string | null, null>;
605
+ nextEpochWorkerPubkeyBytes: import("superstruct").Struct<string | null, null>;
606
+ nextEpochNetAddress: import("superstruct").Struct<string | null, null>;
607
+ nextEpochP2pAddress: import("superstruct").Struct<string | null, null>;
608
+ nextEpochPrimaryAddress: import("superstruct").Struct<string | null, null>;
609
+ nextEpochWorkerAddress: import("superstruct").Struct<string | null, null>;
610
+ votingPower: import("superstruct").Struct<number, null>;
611
+ gasPrice: import("superstruct").Struct<number, null>;
612
+ commissionRate: import("superstruct").Struct<number, null>;
613
+ nextEpochStake: import("superstruct").Struct<number, null>;
614
+ nextEpochGasPrice: import("superstruct").Struct<number, null>;
615
+ nextEpochCommissionRate: import("superstruct").Struct<number, null>;
616
+ stakingPoolId: import("superstruct").Struct<string, null>;
617
+ stakingPoolActivationEpoch: import("superstruct").Struct<number | null, null>;
618
+ stakingPoolDeactivationEpoch: import("superstruct").Struct<number | null, null>;
619
+ stakingPoolSuiBalance: import("superstruct").Struct<number, null>;
620
+ rewardsPool: import("superstruct").Struct<number, null>;
621
+ poolTokenBalance: import("superstruct").Struct<number, null>;
622
+ pendingStake: import("superstruct").Struct<number, null>;
623
+ pendingPoolTokenWithdraw: import("superstruct").Struct<number, null>;
624
+ pendingTotalSuiWithdraw: import("superstruct").Struct<number, null>;
625
+ exchangeRatesId: import("superstruct").Struct<string, null>;
626
+ exchangeRatesSize: import("superstruct").Struct<number, null>;
627
+ }>>;
628
+ pendingActiveValidatorsId: import("superstruct").Struct<string, null>;
629
+ pendingActiveValidatorsSize: import("superstruct").Struct<number, null>;
630
+ pendingRemovals: import("superstruct").Struct<number[], import("superstruct").Struct<number, null>>;
631
+ stakingPoolMappingsId: import("superstruct").Struct<string, null>;
632
+ stakingPoolMappingsSize: import("superstruct").Struct<number, null>;
633
+ inactivePoolsId: import("superstruct").Struct<string, null>;
634
+ inactivePoolsSize: import("superstruct").Struct<number, null>;
635
+ validatorCandidatesId: import("superstruct").Struct<string, null>;
636
+ validatorCandidatesSize: import("superstruct").Struct<number, null>;
637
+ atRiskValidators: import("superstruct").Struct<[string, number][], import("superstruct").Struct<[string, number], null>>;
638
+ validatorReportRecords: import("superstruct").Struct<[string, string[]][], import("superstruct").Struct<[string, string[]], null>>;
639
+ }>;
640
+ export declare type SuiSystemStateSummary = Infer<typeof SuiSystemStateSummary>;
641
+ //# sourceMappingURL=validator.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validator.d.ts","sourceRoot":"","sources":["../../../../../src/lib/mystenlab/types/validator.ts"],"names":[],"mappings":"AAAA,OAAO,EAA0D,KAAK,EAA6B,MAAM,aAAa,CAAC;AAMvH,oBAAY,cAAc,GAAG,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAC1D,oBAAY,aAAa,GAAG,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AACxD,oBAAY,WAAW,GAAG,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAIpD,eAAO,MAAM,OAAO;;;;EAElB,CAAC;AAEH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;EAOtB,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAIzB,CAAC;AAEH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;EAM7B,CAAC;AAEH,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGvB,CAAC;AAEH,eAAO,MAAM,eAAe;;;;EAE1B,CAAC;AAEH,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;EAKzB,CAAC;AAEH,eAAO,MAAM,sBAAsB;;;;;;EAGjC,CAAC;AAEH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGnB,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EActC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGhC,CAAC;AAEH,eAAO,MAAM,aAAa;;;;;IAExB,wDAAwD;;EAExD,CAAC;AAEH,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAwC9B,CAAC;AAEH,oBAAY,mBAAmB,GAAG,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEpE,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAsChC,CAAC;AAEH,oBAAY,qBAAqB,GAAG,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC"}