@reflectmoney/stable.ts 1.1.4 → 1.1.6

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 (84) hide show
  1. package/dist/classes/ApiClient.d.ts +30 -2
  2. package/dist/classes/ApiClient.js +24 -2
  3. package/dist/classes/ReflectKeeper.d.ts +1 -1
  4. package/dist/classes/ReflectKeeper.js +4 -3
  5. package/dist/classes/Stablecoin.d.ts +1 -1
  6. package/dist/classes/Stablecoin.js +2 -0
  7. package/dist/classes/index.d.ts +1 -0
  8. package/dist/classes/index.js +1 -0
  9. package/dist/constants/lookupTables.js +1 -1
  10. package/dist/generated/reflect_main/accounts/DriftJlpController.js +1 -1
  11. package/dist/generated/reflect_main/accounts/DriftLstController.js +1 -1
  12. package/dist/generated/reflect_main/accounts/DriftUsdcController.d.ts +6 -25
  13. package/dist/generated/reflect_main/accounts/DriftUsdcController.js +8 -60
  14. package/dist/generated/reflect_main/accounts/Main.js +1 -1
  15. package/dist/generated/reflect_main/accounts/PerpMarket.js +1 -1
  16. package/dist/generated/reflect_main/accounts/PrelaunchOracle.js +1 -1
  17. package/dist/generated/reflect_main/accounts/PythLazerOracle.js +1 -1
  18. package/dist/generated/reflect_main/accounts/RebalanceLst.js +1 -1
  19. package/dist/generated/reflect_main/accounts/SpotMarket.js +1 -1
  20. package/dist/generated/reflect_main/accounts/User.js +1 -1
  21. package/dist/generated/reflect_main/accounts/UserPermissions.js +1 -1
  22. package/dist/generated/reflect_main/accounts/UserStats.js +1 -1
  23. package/dist/generated/reflect_main/errors/index.d.ts +14 -14
  24. package/dist/generated/reflect_main/errors/index.js +133 -133
  25. package/dist/generated/reflect_main/index.d.ts +1 -1
  26. package/dist/generated/reflect_main/index.js +1 -1
  27. package/dist/generated/reflect_main/instructions/addLstDrift.js +1 -1
  28. package/dist/generated/reflect_main/instructions/addSubAccount.js +1 -1
  29. package/dist/generated/reflect_main/instructions/captureSpreadDrift.d.ts +2 -2
  30. package/dist/generated/reflect_main/instructions/captureSpreadDrift.js +3 -3
  31. package/dist/generated/reflect_main/instructions/createAdminAccount.d.ts +1 -0
  32. package/dist/generated/reflect_main/instructions/createAdminAccount.js +2 -1
  33. package/dist/generated/reflect_main/instructions/createUserStatsAccount.js +1 -1
  34. package/dist/generated/reflect_main/instructions/depositDrift.js +1 -1
  35. package/dist/generated/reflect_main/instructions/freezeProgram.js +1 -1
  36. package/dist/generated/reflect_main/instructions/freezeProtocolAction.js +1 -1
  37. package/dist/generated/reflect_main/instructions/freezeStrategyAction.js +1 -1
  38. package/dist/generated/reflect_main/instructions/increaseAdminSize.d.ts +51 -0
  39. package/dist/generated/reflect_main/instructions/increaseAdminSize.js +89 -0
  40. package/dist/generated/reflect_main/instructions/index.d.ts +1 -1
  41. package/dist/generated/reflect_main/instructions/index.js +1 -1
  42. package/dist/generated/reflect_main/instructions/initDriftAccountsS1.js +1 -1
  43. package/dist/generated/reflect_main/instructions/initDriftControllerS1.js +1 -1
  44. package/dist/generated/reflect_main/instructions/initDriftControllerS3.js +1 -1
  45. package/dist/generated/reflect_main/instructions/initMain.js +1 -1
  46. package/dist/generated/reflect_main/instructions/mintDriftS1.js +1 -1
  47. package/dist/generated/reflect_main/instructions/mintDriftS3.js +1 -1
  48. package/dist/generated/reflect_main/instructions/processSwapDeposit.js +1 -1
  49. package/dist/generated/reflect_main/instructions/processSwapWithdraw.js +1 -1
  50. package/dist/generated/reflect_main/instructions/redeemDriftS1.js +1 -1
  51. package/dist/generated/reflect_main/instructions/redeemDriftS3.js +1 -1
  52. package/dist/generated/reflect_main/instructions/settlePnl.d.ts +0 -5
  53. package/dist/generated/reflect_main/instructions/settlePnl.js +1 -10
  54. package/dist/generated/reflect_main/instructions/settlePnlMulti.d.ts +0 -5
  55. package/dist/generated/reflect_main/instructions/settlePnlMulti.js +1 -10
  56. package/dist/generated/reflect_main/instructions/suspendSplProtocol.js +1 -1
  57. package/dist/generated/reflect_main/instructions/suspendSplStrategy.js +1 -1
  58. package/dist/generated/reflect_main/instructions/swapOrca.js +1 -1
  59. package/dist/generated/reflect_main/instructions/swapOrcaTwoHop.js +1 -1
  60. package/dist/generated/reflect_main/instructions/updateActionRoleProtocol.js +1 -1
  61. package/dist/generated/reflect_main/instructions/updateActionRoleStrategy.js +1 -1
  62. package/dist/generated/reflect_main/instructions/updateAttenuation.js +1 -1
  63. package/dist/generated/reflect_main/instructions/updateCap.js +1 -1
  64. package/dist/generated/reflect_main/instructions/updateRebalanceSlippage.js +1 -1
  65. package/dist/generated/reflect_main/instructions/updateRecipients.js +1 -1
  66. package/dist/generated/reflect_main/instructions/updateRoleHolderProtocol.js +1 -1
  67. package/dist/generated/reflect_main/instructions/updateRoleHolderStrategy.js +1 -1
  68. package/dist/generated/reflect_main/types/AutoCompound.d.ts +18 -0
  69. package/dist/generated/reflect_main/types/AutoCompound.js +43 -0
  70. package/dist/generated/reflect_main/types/Capture.d.ts +2 -0
  71. package/dist/generated/reflect_main/types/Capture.js +2 -0
  72. package/dist/generated/reflect_main/types/OrderParams.d.ts +1 -1
  73. package/dist/generated/reflect_main/types/OrderParams.js +1 -1
  74. package/dist/generated/reflect_main/types/Strategy.d.ts +2 -0
  75. package/dist/generated/reflect_main/types/Strategy.js +2 -0
  76. package/dist/generated/reflect_main/types/YieldDistribution.d.ts +20 -0
  77. package/dist/generated/reflect_main/types/YieldDistribution.js +47 -0
  78. package/dist/generated/reflect_main/types/index.d.ts +2 -0
  79. package/dist/generated/reflect_main/types/index.js +2 -0
  80. package/dist/index.d.ts +1 -0
  81. package/dist/index.js +1 -0
  82. package/dist/tsconfig.tsbuildinfo +1 -0
  83. package/dist/types/api.d.ts +212 -0
  84. package/package.json +2 -2
@@ -6,8 +6,8 @@
6
6
  * See: https://github.com/metaplex-foundation/solita
7
7
  */
8
8
  Object.defineProperty(exports, "__esModule", { value: true });
9
- exports.InvalidControllerError = exports.NoEntriesLeftError = exports.DeserialisationFailedError = exports.SerialisationFailedError = exports.SpreadTooSmallError = exports.FailedUnwrapError = exports.PythErrorError = exports.InvalidStateError = exports.MathOverflowError = exports.ConversionFailedError = exports.MathErrorError = exports.InvalidProgramAccountError = exports.InvalidProgramError = exports.ProgramAlreadyExistsError = exports.AlreadyUnfrozenError = exports.AlreadyFrozenError = exports.AlreadyThereError = exports.CannotAssignSupremoError = exports.SupremoOnlyActionError = exports.ActionHasAssignedRoleError = exports.ActionNotFoundError = exports.RoleNotUnderActionError = exports.UserAlreadyHasRoleError = exports.UserLacksRoleError = exports.SameAdminError = exports.SupremoOnlyError = exports.LastAdminError = exports.MissingAdminPrivallagesError = exports.IncorrectAdminAccountError = exports.InvalidTokenAccountError = exports.IncorrectWithdrawMintError = exports.SplMintFrozenError = exports.OutputAmountTooLowError = exports.IncorrectReflectTokenAccountError = exports.IncorrectReflectStrategyMintError = exports.IncorrectNumberOfAccountsError = exports.IncorrectMintError = exports.StrategyDoesNotSupportSplError = exports.NotEnoughStableError = exports.SplNotFoundError = exports.NotEnoughSplError = exports.ProtocolAlreadySupportsSplError = exports.StrategyAlreadySupportsSplError = exports.CapExceededError = exports.TooLowCapError = exports.IncorrectRecipientError = exports.IncorrectPayoutDistributionError = exports.TooManyRecipientsError = exports.NoRecipientsError = exports.MissingRecipientError = void 0;
10
- exports.ToDoError = exports.IncorrectJlpAccountError = exports.CustodyNotHedgedError = exports.InvalidJlpOracleError = exports.PerpPositionNotFoundError = exports.UsdcSplTooLowError = exports.SubAccountNotFullError = exports.IncorrectIncreaseError = exports.IncorrectReductionError = exports.IncorrectReflectStateError = exports.DriftMarketIndexNotSupportedError = exports.IncorrectSpotError = exports.SplNotSupportedError = exports.DriftWithdrawlFeeError = exports.DriftMaxSpotsError = exports.BelowMinPositionError = exports.BelowMinPositionChangeError = exports.MissingPositonError = exports.InvalidOracleSourceError = exports.SpotMarketNotFoundError = exports.InvalidOracleError = exports.OracleNotFoundError = exports.UnableToLoadOracleError = exports.CouldNotLoadSpotMarketDataError = exports.InvalidSpotMarketAccountError = exports.UnableToLoadSpotMarketAccountError = exports.SpotMarketWrongMutabilityError = exports.MarketWrongMutabilityError = exports.CouldNotLoadMarketDataError = exports.InvalidMarketAccountError = exports.UnableToLoadPerpMarketAccountError = exports.PerpMarketNotFoundError = exports.CaptureProblemError = exports.InvalidAttenuationParametersError = exports.AttenuationExceedsMaximumError = exports.ActionFrozenError = void 0;
9
+ exports.ActionFrozenError = exports.InvalidControllerError = exports.NoEntriesLeftError = exports.DeserialisationFailedError = exports.SerialisationFailedError = exports.SpreadTooSmallError = exports.FailedUnwrapError = exports.PythErrorError = exports.InvalidStateError = exports.MathOverflowError = exports.ConversionFailedError = exports.MathErrorError = exports.InvalidProgramAccountError = exports.InvalidProgramError = exports.ProgramAlreadyExistsError = exports.AlreadyUnfrozenError = exports.AlreadyFrozenError = exports.AlreadyThereError = exports.CannotAssignSupremoError = exports.SupremoOnlyActionError = exports.ActionHasAssignedRoleError = exports.ActionNotFoundError = exports.RoleNotUnderActionError = exports.UserAlreadyHasRoleError = exports.UserLacksRoleError = exports.SameAdminError = exports.SupremoOnlyError = exports.LastAdminError = exports.MissingAdminPrivallagesError = exports.IncorrectAdminAccountError = exports.InvalidTokenAccountError = exports.IncorrectWithdrawMintError = exports.SplMintFrozenError = exports.OutputAmountTooLowError = exports.IncorrectReflectTokenAccountError = exports.IncorrectReflectStrategyMintError = exports.IncorrectNumberOfAccountsError = exports.IncorrectMintError = exports.StrategyDoesNotSupportSplError = exports.SplNotFoundError = exports.NotEnoughSplInputError = exports.ProtocolAlreadySupportsSplError = exports.StrategyAlreadySupportsSplError = exports.CapExceededError = exports.TooLowCapError = exports.IncorrectRecipientError = exports.IncorrectPayoutDistributionError = exports.TooManyRecipientsError = exports.NoRecipientsError = exports.MissingRecipientError = void 0;
10
+ exports.ToDoError = exports.IncorrectJlpAccountError = exports.CustodyNotHedgedError = exports.InvalidJlpOracleError = exports.PerpPositionNotFoundError = exports.UsdcSplTooLowError = exports.SubAccountNotFullError = exports.IncorrectIncreaseError = exports.IncorrectReductionError = exports.IncorrectReflectStateError = exports.DriftMarketIndexNotSupportedError = exports.IncorrectSpotError = exports.SplNotSupportedError = exports.DriftWithdrawlFeeError = exports.DriftMaxSpotsError = exports.BelowMinPositionError = exports.BelowMinPositionChangeError = exports.MissingPositonError = exports.InvalidOracleSourceError = exports.SpotMarketNotFoundError = exports.InvalidOracleError = exports.OracleNotFoundError = exports.UnableToLoadOracleError = exports.UnsettledPnlError = exports.CouldNotLoadSpotMarketDataError = exports.InvalidSpotMarketAccountError = exports.UnableToLoadSpotMarketAccountError = exports.SpotMarketWrongMutabilityError = exports.MarketWrongMutabilityError = exports.CouldNotLoadMarketDataError = exports.InvalidMarketAccountError = exports.UnableToLoadPerpMarketAccountError = exports.PerpMarketNotFoundError = exports.CaptureProblemError = exports.InvalidAttenuationParametersError = exports.AttenuationExceedsMaximumError = void 0;
11
11
  exports.errorFromCode = errorFromCode;
12
12
  exports.errorFromName = errorFromName;
13
13
  const createErrorFromCodeLookup = new Map();
@@ -184,24 +184,24 @@ exports.ProtocolAlreadySupportsSplError = ProtocolAlreadySupportsSplError;
184
184
  createErrorFromCodeLookup.set(0x1778, () => new ProtocolAlreadySupportsSplError());
185
185
  createErrorFromNameLookup.set('ProtocolAlreadySupportsSpl', () => new ProtocolAlreadySupportsSplError());
186
186
  /**
187
- * NotEnoughSpl: 'Not enough stable funds for this transaction'
187
+ * NotEnoughSplInput: 'Not enough funds for this transaction'
188
188
  *
189
189
  * @category Errors
190
190
  * @category generated
191
191
  */
192
- class NotEnoughSplError extends Error {
192
+ class NotEnoughSplInputError extends Error {
193
193
  constructor() {
194
- super('Not enough stable funds for this transaction');
194
+ super('Not enough funds for this transaction');
195
195
  this.code = 0x1779;
196
- this.name = 'NotEnoughSpl';
196
+ this.name = 'NotEnoughSplInput';
197
197
  if (typeof Error.captureStackTrace === 'function') {
198
- Error.captureStackTrace(this, NotEnoughSplError);
198
+ Error.captureStackTrace(this, NotEnoughSplInputError);
199
199
  }
200
200
  }
201
201
  }
202
- exports.NotEnoughSplError = NotEnoughSplError;
203
- createErrorFromCodeLookup.set(0x1779, () => new NotEnoughSplError());
204
- createErrorFromNameLookup.set('NotEnoughSpl', () => new NotEnoughSplError());
202
+ exports.NotEnoughSplInputError = NotEnoughSplInputError;
203
+ createErrorFromCodeLookup.set(0x1779, () => new NotEnoughSplInputError());
204
+ createErrorFromNameLookup.set('NotEnoughSplInput', () => new NotEnoughSplInputError());
205
205
  /**
206
206
  * SplNotFound: 'SPL not found'
207
207
  *
@@ -221,25 +221,6 @@ class SplNotFoundError extends Error {
221
221
  exports.SplNotFoundError = SplNotFoundError;
222
222
  createErrorFromCodeLookup.set(0x177a, () => new SplNotFoundError());
223
223
  createErrorFromNameLookup.set('SplNotFound', () => new SplNotFoundError());
224
- /**
225
- * NotEnoughStable: 'Not enough SPL funds for this transaction'
226
- *
227
- * @category Errors
228
- * @category generated
229
- */
230
- class NotEnoughStableError extends Error {
231
- constructor() {
232
- super('Not enough SPL funds for this transaction');
233
- this.code = 0x177b;
234
- this.name = 'NotEnoughStable';
235
- if (typeof Error.captureStackTrace === 'function') {
236
- Error.captureStackTrace(this, NotEnoughStableError);
237
- }
238
- }
239
- }
240
- exports.NotEnoughStableError = NotEnoughStableError;
241
- createErrorFromCodeLookup.set(0x177b, () => new NotEnoughStableError());
242
- createErrorFromNameLookup.set('NotEnoughStable', () => new NotEnoughStableError());
243
224
  /**
244
225
  * StrategyDoesNotSupportSpl: 'Provided SPL mint is not supported at the strategy'
245
226
  *
@@ -249,7 +230,7 @@ createErrorFromNameLookup.set('NotEnoughStable', () => new NotEnoughStableError(
249
230
  class StrategyDoesNotSupportSplError extends Error {
250
231
  constructor() {
251
232
  super('Provided SPL mint is not supported at the strategy');
252
- this.code = 0x177c;
233
+ this.code = 0x177b;
253
234
  this.name = 'StrategyDoesNotSupportSpl';
254
235
  if (typeof Error.captureStackTrace === 'function') {
255
236
  Error.captureStackTrace(this, StrategyDoesNotSupportSplError);
@@ -257,7 +238,7 @@ class StrategyDoesNotSupportSplError extends Error {
257
238
  }
258
239
  }
259
240
  exports.StrategyDoesNotSupportSplError = StrategyDoesNotSupportSplError;
260
- createErrorFromCodeLookup.set(0x177c, () => new StrategyDoesNotSupportSplError());
241
+ createErrorFromCodeLookup.set(0x177b, () => new StrategyDoesNotSupportSplError());
261
242
  createErrorFromNameLookup.set('StrategyDoesNotSupportSpl', () => new StrategyDoesNotSupportSplError());
262
243
  /**
263
244
  * IncorrectMint: 'Provided wrong mint account'
@@ -268,7 +249,7 @@ createErrorFromNameLookup.set('StrategyDoesNotSupportSpl', () => new StrategyDoe
268
249
  class IncorrectMintError extends Error {
269
250
  constructor() {
270
251
  super('Provided wrong mint account');
271
- this.code = 0x177d;
252
+ this.code = 0x177c;
272
253
  this.name = 'IncorrectMint';
273
254
  if (typeof Error.captureStackTrace === 'function') {
274
255
  Error.captureStackTrace(this, IncorrectMintError);
@@ -276,7 +257,7 @@ class IncorrectMintError extends Error {
276
257
  }
277
258
  }
278
259
  exports.IncorrectMintError = IncorrectMintError;
279
- createErrorFromCodeLookup.set(0x177d, () => new IncorrectMintError());
260
+ createErrorFromCodeLookup.set(0x177c, () => new IncorrectMintError());
280
261
  createErrorFromNameLookup.set('IncorrectMint', () => new IncorrectMintError());
281
262
  /**
282
263
  * IncorrectNumberOfAccounts: 'Need the correct number of the accounts in the remaining'
@@ -287,7 +268,7 @@ createErrorFromNameLookup.set('IncorrectMint', () => new IncorrectMintError());
287
268
  class IncorrectNumberOfAccountsError extends Error {
288
269
  constructor() {
289
270
  super('Need the correct number of the accounts in the remaining');
290
- this.code = 0x177e;
271
+ this.code = 0x177d;
291
272
  this.name = 'IncorrectNumberOfAccounts';
292
273
  if (typeof Error.captureStackTrace === 'function') {
293
274
  Error.captureStackTrace(this, IncorrectNumberOfAccountsError);
@@ -295,7 +276,7 @@ class IncorrectNumberOfAccountsError extends Error {
295
276
  }
296
277
  }
297
278
  exports.IncorrectNumberOfAccountsError = IncorrectNumberOfAccountsError;
298
- createErrorFromCodeLookup.set(0x177e, () => new IncorrectNumberOfAccountsError());
279
+ createErrorFromCodeLookup.set(0x177d, () => new IncorrectNumberOfAccountsError());
299
280
  createErrorFromNameLookup.set('IncorrectNumberOfAccounts', () => new IncorrectNumberOfAccountsError());
300
281
  /**
301
282
  * IncorrectReflectStrategyMint: 'Incorrect mint address for this strategy'
@@ -306,7 +287,7 @@ createErrorFromNameLookup.set('IncorrectNumberOfAccounts', () => new IncorrectNu
306
287
  class IncorrectReflectStrategyMintError extends Error {
307
288
  constructor() {
308
289
  super('Incorrect mint address for this strategy');
309
- this.code = 0x177f;
290
+ this.code = 0x177e;
310
291
  this.name = 'IncorrectReflectStrategyMint';
311
292
  if (typeof Error.captureStackTrace === 'function') {
312
293
  Error.captureStackTrace(this, IncorrectReflectStrategyMintError);
@@ -314,7 +295,7 @@ class IncorrectReflectStrategyMintError extends Error {
314
295
  }
315
296
  }
316
297
  exports.IncorrectReflectStrategyMintError = IncorrectReflectStrategyMintError;
317
- createErrorFromCodeLookup.set(0x177f, () => new IncorrectReflectStrategyMintError());
298
+ createErrorFromCodeLookup.set(0x177e, () => new IncorrectReflectStrategyMintError());
318
299
  createErrorFromNameLookup.set('IncorrectReflectStrategyMint', () => new IncorrectReflectStrategyMintError());
319
300
  /**
320
301
  * IncorrectReflectTokenAccount: 'Incorrect token address for reflect token account'
@@ -325,7 +306,7 @@ createErrorFromNameLookup.set('IncorrectReflectStrategyMint', () => new Incorrec
325
306
  class IncorrectReflectTokenAccountError extends Error {
326
307
  constructor() {
327
308
  super('Incorrect token address for reflect token account');
328
- this.code = 0x1780;
309
+ this.code = 0x177f;
329
310
  this.name = 'IncorrectReflectTokenAccount';
330
311
  if (typeof Error.captureStackTrace === 'function') {
331
312
  Error.captureStackTrace(this, IncorrectReflectTokenAccountError);
@@ -333,7 +314,7 @@ class IncorrectReflectTokenAccountError extends Error {
333
314
  }
334
315
  }
335
316
  exports.IncorrectReflectTokenAccountError = IncorrectReflectTokenAccountError;
336
- createErrorFromCodeLookup.set(0x1780, () => new IncorrectReflectTokenAccountError());
317
+ createErrorFromCodeLookup.set(0x177f, () => new IncorrectReflectTokenAccountError());
337
318
  createErrorFromNameLookup.set('IncorrectReflectTokenAccount', () => new IncorrectReflectTokenAccountError());
338
319
  /**
339
320
  * OutputAmountTooLow: 'Slippage protection triggered for SPL redeem'
@@ -344,7 +325,7 @@ createErrorFromNameLookup.set('IncorrectReflectTokenAccount', () => new Incorrec
344
325
  class OutputAmountTooLowError extends Error {
345
326
  constructor() {
346
327
  super('Slippage protection triggered for SPL redeem');
347
- this.code = 0x1781;
328
+ this.code = 0x1780;
348
329
  this.name = 'OutputAmountTooLow';
349
330
  if (typeof Error.captureStackTrace === 'function') {
350
331
  Error.captureStackTrace(this, OutputAmountTooLowError);
@@ -352,7 +333,7 @@ class OutputAmountTooLowError extends Error {
352
333
  }
353
334
  }
354
335
  exports.OutputAmountTooLowError = OutputAmountTooLowError;
355
- createErrorFromCodeLookup.set(0x1781, () => new OutputAmountTooLowError());
336
+ createErrorFromCodeLookup.set(0x1780, () => new OutputAmountTooLowError());
356
337
  createErrorFromNameLookup.set('OutputAmountTooLow', () => new OutputAmountTooLowError());
357
338
  /**
358
339
  * SplMintFrozen: 'Cannot mint stable using this SPL at this strategy'
@@ -363,7 +344,7 @@ createErrorFromNameLookup.set('OutputAmountTooLow', () => new OutputAmountTooLow
363
344
  class SplMintFrozenError extends Error {
364
345
  constructor() {
365
346
  super('Cannot mint stable using this SPL at this strategy');
366
- this.code = 0x1782;
347
+ this.code = 0x1781;
367
348
  this.name = 'SplMintFrozen';
368
349
  if (typeof Error.captureStackTrace === 'function') {
369
350
  Error.captureStackTrace(this, SplMintFrozenError);
@@ -371,7 +352,7 @@ class SplMintFrozenError extends Error {
371
352
  }
372
353
  }
373
354
  exports.SplMintFrozenError = SplMintFrozenError;
374
- createErrorFromCodeLookup.set(0x1782, () => new SplMintFrozenError());
355
+ createErrorFromCodeLookup.set(0x1781, () => new SplMintFrozenError());
375
356
  createErrorFromNameLookup.set('SplMintFrozen', () => new SplMintFrozenError());
376
357
  /**
377
358
  * IncorrectWithdrawMint: 'Token account of a different accoutn is needed for withdraw'
@@ -382,7 +363,7 @@ createErrorFromNameLookup.set('SplMintFrozen', () => new SplMintFrozenError());
382
363
  class IncorrectWithdrawMintError extends Error {
383
364
  constructor() {
384
365
  super('Token account of a different accoutn is needed for withdraw');
385
- this.code = 0x1783;
366
+ this.code = 0x1782;
386
367
  this.name = 'IncorrectWithdrawMint';
387
368
  if (typeof Error.captureStackTrace === 'function') {
388
369
  Error.captureStackTrace(this, IncorrectWithdrawMintError);
@@ -390,7 +371,7 @@ class IncorrectWithdrawMintError extends Error {
390
371
  }
391
372
  }
392
373
  exports.IncorrectWithdrawMintError = IncorrectWithdrawMintError;
393
- createErrorFromCodeLookup.set(0x1783, () => new IncorrectWithdrawMintError());
374
+ createErrorFromCodeLookup.set(0x1782, () => new IncorrectWithdrawMintError());
394
375
  createErrorFromNameLookup.set('IncorrectWithdrawMint', () => new IncorrectWithdrawMintError());
395
376
  /**
396
377
  * InvalidTokenAccount: 'Provided wrong token account'
@@ -401,7 +382,7 @@ createErrorFromNameLookup.set('IncorrectWithdrawMint', () => new IncorrectWithdr
401
382
  class InvalidTokenAccountError extends Error {
402
383
  constructor() {
403
384
  super('Provided wrong token account');
404
- this.code = 0x1784;
385
+ this.code = 0x1783;
405
386
  this.name = 'InvalidTokenAccount';
406
387
  if (typeof Error.captureStackTrace === 'function') {
407
388
  Error.captureStackTrace(this, InvalidTokenAccountError);
@@ -409,7 +390,7 @@ class InvalidTokenAccountError extends Error {
409
390
  }
410
391
  }
411
392
  exports.InvalidTokenAccountError = InvalidTokenAccountError;
412
- createErrorFromCodeLookup.set(0x1784, () => new InvalidTokenAccountError());
393
+ createErrorFromCodeLookup.set(0x1783, () => new InvalidTokenAccountError());
413
394
  createErrorFromNameLookup.set('InvalidTokenAccount', () => new InvalidTokenAccountError());
414
395
  /**
415
396
  * IncorrectAdminAccount: 'Provided permissions account does not match the caller'
@@ -420,7 +401,7 @@ createErrorFromNameLookup.set('InvalidTokenAccount', () => new InvalidTokenAccou
420
401
  class IncorrectAdminAccountError extends Error {
421
402
  constructor() {
422
403
  super('Provided permissions account does not match the caller');
423
- this.code = 0x1785;
404
+ this.code = 0x1784;
424
405
  this.name = 'IncorrectAdminAccount';
425
406
  if (typeof Error.captureStackTrace === 'function') {
426
407
  Error.captureStackTrace(this, IncorrectAdminAccountError);
@@ -428,7 +409,7 @@ class IncorrectAdminAccountError extends Error {
428
409
  }
429
410
  }
430
411
  exports.IncorrectAdminAccountError = IncorrectAdminAccountError;
431
- createErrorFromCodeLookup.set(0x1785, () => new IncorrectAdminAccountError());
412
+ createErrorFromCodeLookup.set(0x1784, () => new IncorrectAdminAccountError());
432
413
  createErrorFromNameLookup.set('IncorrectAdminAccount', () => new IncorrectAdminAccountError());
433
414
  /**
434
415
  * MissingAdminPrivallages: 'Caller does not have the privilege for this action'
@@ -439,7 +420,7 @@ createErrorFromNameLookup.set('IncorrectAdminAccount', () => new IncorrectAdminA
439
420
  class MissingAdminPrivallagesError extends Error {
440
421
  constructor() {
441
422
  super('Caller does not have the privilege for this action');
442
- this.code = 0x1786;
423
+ this.code = 0x1785;
443
424
  this.name = 'MissingAdminPrivallages';
444
425
  if (typeof Error.captureStackTrace === 'function') {
445
426
  Error.captureStackTrace(this, MissingAdminPrivallagesError);
@@ -447,7 +428,7 @@ class MissingAdminPrivallagesError extends Error {
447
428
  }
448
429
  }
449
430
  exports.MissingAdminPrivallagesError = MissingAdminPrivallagesError;
450
- createErrorFromCodeLookup.set(0x1786, () => new MissingAdminPrivallagesError());
431
+ createErrorFromCodeLookup.set(0x1785, () => new MissingAdminPrivallagesError());
451
432
  createErrorFromNameLookup.set('MissingAdminPrivallages', () => new MissingAdminPrivallagesError());
452
433
  /**
453
434
  * LastAdmin: 'Can't remove the last admin'
@@ -458,7 +439,7 @@ createErrorFromNameLookup.set('MissingAdminPrivallages', () => new MissingAdminP
458
439
  class LastAdminError extends Error {
459
440
  constructor() {
460
441
  super("Can't remove the last admin");
461
- this.code = 0x1787;
442
+ this.code = 0x1786;
462
443
  this.name = 'LastAdmin';
463
444
  if (typeof Error.captureStackTrace === 'function') {
464
445
  Error.captureStackTrace(this, LastAdminError);
@@ -466,7 +447,7 @@ class LastAdminError extends Error {
466
447
  }
467
448
  }
468
449
  exports.LastAdminError = LastAdminError;
469
- createErrorFromCodeLookup.set(0x1787, () => new LastAdminError());
450
+ createErrorFromCodeLookup.set(0x1786, () => new LastAdminError());
470
451
  createErrorFromNameLookup.set('LastAdmin', () => new LastAdminError());
471
452
  /**
472
453
  * SupremoOnly: 'Special call for supremo removal'
@@ -477,7 +458,7 @@ createErrorFromNameLookup.set('LastAdmin', () => new LastAdminError());
477
458
  class SupremoOnlyError extends Error {
478
459
  constructor() {
479
460
  super('Special call for supremo removal');
480
- this.code = 0x1788;
461
+ this.code = 0x1787;
481
462
  this.name = 'SupremoOnly';
482
463
  if (typeof Error.captureStackTrace === 'function') {
483
464
  Error.captureStackTrace(this, SupremoOnlyError);
@@ -485,7 +466,7 @@ class SupremoOnlyError extends Error {
485
466
  }
486
467
  }
487
468
  exports.SupremoOnlyError = SupremoOnlyError;
488
- createErrorFromCodeLookup.set(0x1788, () => new SupremoOnlyError());
469
+ createErrorFromCodeLookup.set(0x1787, () => new SupremoOnlyError());
489
470
  createErrorFromNameLookup.set('SupremoOnly', () => new SupremoOnlyError());
490
471
  /**
491
472
  * SameAdmin: 'You've provided same admin account'
@@ -496,7 +477,7 @@ createErrorFromNameLookup.set('SupremoOnly', () => new SupremoOnlyError());
496
477
  class SameAdminError extends Error {
497
478
  constructor() {
498
479
  super("You've provided same admin account");
499
- this.code = 0x1789;
480
+ this.code = 0x1788;
500
481
  this.name = 'SameAdmin';
501
482
  if (typeof Error.captureStackTrace === 'function') {
502
483
  Error.captureStackTrace(this, SameAdminError);
@@ -504,7 +485,7 @@ class SameAdminError extends Error {
504
485
  }
505
486
  }
506
487
  exports.SameAdminError = SameAdminError;
507
- createErrorFromCodeLookup.set(0x1789, () => new SameAdminError());
488
+ createErrorFromCodeLookup.set(0x1788, () => new SameAdminError());
508
489
  createErrorFromNameLookup.set('SameAdmin', () => new SameAdminError());
509
490
  /**
510
491
  * UserLacksRole: 'User does not have such role'
@@ -515,7 +496,7 @@ createErrorFromNameLookup.set('SameAdmin', () => new SameAdminError());
515
496
  class UserLacksRoleError extends Error {
516
497
  constructor() {
517
498
  super('User does not have such role');
518
- this.code = 0x178a;
499
+ this.code = 0x1789;
519
500
  this.name = 'UserLacksRole';
520
501
  if (typeof Error.captureStackTrace === 'function') {
521
502
  Error.captureStackTrace(this, UserLacksRoleError);
@@ -523,7 +504,7 @@ class UserLacksRoleError extends Error {
523
504
  }
524
505
  }
525
506
  exports.UserLacksRoleError = UserLacksRoleError;
526
- createErrorFromCodeLookup.set(0x178a, () => new UserLacksRoleError());
507
+ createErrorFromCodeLookup.set(0x1789, () => new UserLacksRoleError());
527
508
  createErrorFromNameLookup.set('UserLacksRole', () => new UserLacksRoleError());
528
509
  /**
529
510
  * UserAlreadyHasRole: 'User already has requested role'
@@ -534,7 +515,7 @@ createErrorFromNameLookup.set('UserLacksRole', () => new UserLacksRoleError());
534
515
  class UserAlreadyHasRoleError extends Error {
535
516
  constructor() {
536
517
  super('User already has requested role');
537
- this.code = 0x178b;
518
+ this.code = 0x178a;
538
519
  this.name = 'UserAlreadyHasRole';
539
520
  if (typeof Error.captureStackTrace === 'function') {
540
521
  Error.captureStackTrace(this, UserAlreadyHasRoleError);
@@ -542,7 +523,7 @@ class UserAlreadyHasRoleError extends Error {
542
523
  }
543
524
  }
544
525
  exports.UserAlreadyHasRoleError = UserAlreadyHasRoleError;
545
- createErrorFromCodeLookup.set(0x178b, () => new UserAlreadyHasRoleError());
526
+ createErrorFromCodeLookup.set(0x178a, () => new UserAlreadyHasRoleError());
546
527
  createErrorFromNameLookup.set('UserAlreadyHasRole', () => new UserAlreadyHasRoleError());
547
528
  /**
548
529
  * RoleNotUnderAction: 'This action lacks specified role'
@@ -553,7 +534,7 @@ createErrorFromNameLookup.set('UserAlreadyHasRole', () => new UserAlreadyHasRole
553
534
  class RoleNotUnderActionError extends Error {
554
535
  constructor() {
555
536
  super('This action lacks specified role');
556
- this.code = 0x178c;
537
+ this.code = 0x178b;
557
538
  this.name = 'RoleNotUnderAction';
558
539
  if (typeof Error.captureStackTrace === 'function') {
559
540
  Error.captureStackTrace(this, RoleNotUnderActionError);
@@ -561,7 +542,7 @@ class RoleNotUnderActionError extends Error {
561
542
  }
562
543
  }
563
544
  exports.RoleNotUnderActionError = RoleNotUnderActionError;
564
- createErrorFromCodeLookup.set(0x178c, () => new RoleNotUnderActionError());
545
+ createErrorFromCodeLookup.set(0x178b, () => new RoleNotUnderActionError());
565
546
  createErrorFromNameLookup.set('RoleNotUnderAction', () => new RoleNotUnderActionError());
566
547
  /**
567
548
  * ActionNotFound: 'Action not found'
@@ -572,7 +553,7 @@ createErrorFromNameLookup.set('RoleNotUnderAction', () => new RoleNotUnderAction
572
553
  class ActionNotFoundError extends Error {
573
554
  constructor() {
574
555
  super('Action not found');
575
- this.code = 0x178d;
556
+ this.code = 0x178c;
576
557
  this.name = 'ActionNotFound';
577
558
  if (typeof Error.captureStackTrace === 'function') {
578
559
  Error.captureStackTrace(this, ActionNotFoundError);
@@ -580,7 +561,7 @@ class ActionNotFoundError extends Error {
580
561
  }
581
562
  }
582
563
  exports.ActionNotFoundError = ActionNotFoundError;
583
- createErrorFromCodeLookup.set(0x178d, () => new ActionNotFoundError());
564
+ createErrorFromCodeLookup.set(0x178c, () => new ActionNotFoundError());
584
565
  createErrorFromNameLookup.set('ActionNotFound', () => new ActionNotFoundError());
585
566
  /**
586
567
  * ActionHasAssignedRole: 'This action can already be performed by this role'
@@ -591,7 +572,7 @@ createErrorFromNameLookup.set('ActionNotFound', () => new ActionNotFoundError())
591
572
  class ActionHasAssignedRoleError extends Error {
592
573
  constructor() {
593
574
  super('This action can already be performed by this role');
594
- this.code = 0x178e;
575
+ this.code = 0x178d;
595
576
  this.name = 'ActionHasAssignedRole';
596
577
  if (typeof Error.captureStackTrace === 'function') {
597
578
  Error.captureStackTrace(this, ActionHasAssignedRoleError);
@@ -599,7 +580,7 @@ class ActionHasAssignedRoleError extends Error {
599
580
  }
600
581
  }
601
582
  exports.ActionHasAssignedRoleError = ActionHasAssignedRoleError;
602
- createErrorFromCodeLookup.set(0x178e, () => new ActionHasAssignedRoleError());
583
+ createErrorFromCodeLookup.set(0x178d, () => new ActionHasAssignedRoleError());
603
584
  createErrorFromNameLookup.set('ActionHasAssignedRole', () => new ActionHasAssignedRoleError());
604
585
  /**
605
586
  * SupremoOnlyAction: 'This action can only be performed by a supreme authority'
@@ -610,7 +591,7 @@ createErrorFromNameLookup.set('ActionHasAssignedRole', () => new ActionHasAssign
610
591
  class SupremoOnlyActionError extends Error {
611
592
  constructor() {
612
593
  super('This action can only be performed by a supreme authority');
613
- this.code = 0x178f;
594
+ this.code = 0x178e;
614
595
  this.name = 'SupremoOnlyAction';
615
596
  if (typeof Error.captureStackTrace === 'function') {
616
597
  Error.captureStackTrace(this, SupremoOnlyActionError);
@@ -618,7 +599,7 @@ class SupremoOnlyActionError extends Error {
618
599
  }
619
600
  }
620
601
  exports.SupremoOnlyActionError = SupremoOnlyActionError;
621
- createErrorFromCodeLookup.set(0x178f, () => new SupremoOnlyActionError());
602
+ createErrorFromCodeLookup.set(0x178e, () => new SupremoOnlyActionError());
622
603
  createErrorFromNameLookup.set('SupremoOnlyAction', () => new SupremoOnlyActionError());
623
604
  /**
624
605
  * CannotAssignSupremo: 'Only supreme authorities can assign supreme authority roles'
@@ -629,7 +610,7 @@ createErrorFromNameLookup.set('SupremoOnlyAction', () => new SupremoOnlyActionEr
629
610
  class CannotAssignSupremoError extends Error {
630
611
  constructor() {
631
612
  super('Only supreme authorities can assign supreme authority roles');
632
- this.code = 0x1790;
613
+ this.code = 0x178f;
633
614
  this.name = 'CannotAssignSupremo';
634
615
  if (typeof Error.captureStackTrace === 'function') {
635
616
  Error.captureStackTrace(this, CannotAssignSupremoError);
@@ -637,7 +618,7 @@ class CannotAssignSupremoError extends Error {
637
618
  }
638
619
  }
639
620
  exports.CannotAssignSupremoError = CannotAssignSupremoError;
640
- createErrorFromCodeLookup.set(0x1790, () => new CannotAssignSupremoError());
621
+ createErrorFromCodeLookup.set(0x178f, () => new CannotAssignSupremoError());
641
622
  createErrorFromNameLookup.set('CannotAssignSupremo', () => new CannotAssignSupremoError());
642
623
  /**
643
624
  * AlreadyThere: 'Desired state is already on'
@@ -648,7 +629,7 @@ createErrorFromNameLookup.set('CannotAssignSupremo', () => new CannotAssignSupre
648
629
  class AlreadyThereError extends Error {
649
630
  constructor() {
650
631
  super('Desired state is already on');
651
- this.code = 0x1791;
632
+ this.code = 0x1790;
652
633
  this.name = 'AlreadyThere';
653
634
  if (typeof Error.captureStackTrace === 'function') {
654
635
  Error.captureStackTrace(this, AlreadyThereError);
@@ -656,7 +637,7 @@ class AlreadyThereError extends Error {
656
637
  }
657
638
  }
658
639
  exports.AlreadyThereError = AlreadyThereError;
659
- createErrorFromCodeLookup.set(0x1791, () => new AlreadyThereError());
640
+ createErrorFromCodeLookup.set(0x1790, () => new AlreadyThereError());
660
641
  createErrorFromNameLookup.set('AlreadyThere', () => new AlreadyThereError());
661
642
  /**
662
643
  * AlreadyFrozen: 'Action already frozen'
@@ -667,7 +648,7 @@ createErrorFromNameLookup.set('AlreadyThere', () => new AlreadyThereError());
667
648
  class AlreadyFrozenError extends Error {
668
649
  constructor() {
669
650
  super('Action already frozen');
670
- this.code = 0x1792;
651
+ this.code = 0x1791;
671
652
  this.name = 'AlreadyFrozen';
672
653
  if (typeof Error.captureStackTrace === 'function') {
673
654
  Error.captureStackTrace(this, AlreadyFrozenError);
@@ -675,7 +656,7 @@ class AlreadyFrozenError extends Error {
675
656
  }
676
657
  }
677
658
  exports.AlreadyFrozenError = AlreadyFrozenError;
678
- createErrorFromCodeLookup.set(0x1792, () => new AlreadyFrozenError());
659
+ createErrorFromCodeLookup.set(0x1791, () => new AlreadyFrozenError());
679
660
  createErrorFromNameLookup.set('AlreadyFrozen', () => new AlreadyFrozenError());
680
661
  /**
681
662
  * AlreadyUnfrozen: 'Action already unfrozen'
@@ -686,7 +667,7 @@ createErrorFromNameLookup.set('AlreadyFrozen', () => new AlreadyFrozenError());
686
667
  class AlreadyUnfrozenError extends Error {
687
668
  constructor() {
688
669
  super('Action already unfrozen');
689
- this.code = 0x1793;
670
+ this.code = 0x1792;
690
671
  this.name = 'AlreadyUnfrozen';
691
672
  if (typeof Error.captureStackTrace === 'function') {
692
673
  Error.captureStackTrace(this, AlreadyUnfrozenError);
@@ -694,7 +675,7 @@ class AlreadyUnfrozenError extends Error {
694
675
  }
695
676
  }
696
677
  exports.AlreadyUnfrozenError = AlreadyUnfrozenError;
697
- createErrorFromCodeLookup.set(0x1793, () => new AlreadyUnfrozenError());
678
+ createErrorFromCodeLookup.set(0x1792, () => new AlreadyUnfrozenError());
698
679
  createErrorFromNameLookup.set('AlreadyUnfrozen', () => new AlreadyUnfrozenError());
699
680
  /**
700
681
  * ProgramAlreadyExists: 'Program already registered'
@@ -705,7 +686,7 @@ createErrorFromNameLookup.set('AlreadyUnfrozen', () => new AlreadyUnfrozenError(
705
686
  class ProgramAlreadyExistsError extends Error {
706
687
  constructor() {
707
688
  super('Program already registered');
708
- this.code = 0x1794;
689
+ this.code = 0x1793;
709
690
  this.name = 'ProgramAlreadyExists';
710
691
  if (typeof Error.captureStackTrace === 'function') {
711
692
  Error.captureStackTrace(this, ProgramAlreadyExistsError);
@@ -713,7 +694,7 @@ class ProgramAlreadyExistsError extends Error {
713
694
  }
714
695
  }
715
696
  exports.ProgramAlreadyExistsError = ProgramAlreadyExistsError;
716
- createErrorFromCodeLookup.set(0x1794, () => new ProgramAlreadyExistsError());
697
+ createErrorFromCodeLookup.set(0x1793, () => new ProgramAlreadyExistsError());
717
698
  createErrorFromNameLookup.set('ProgramAlreadyExists', () => new ProgramAlreadyExistsError());
718
699
  /**
719
700
  * InvalidProgram: 'Supplied program can not be used'
@@ -724,7 +705,7 @@ createErrorFromNameLookup.set('ProgramAlreadyExists', () => new ProgramAlreadyEx
724
705
  class InvalidProgramError extends Error {
725
706
  constructor() {
726
707
  super('Supplied program can not be used');
727
- this.code = 0x1795;
708
+ this.code = 0x1794;
728
709
  this.name = 'InvalidProgram';
729
710
  if (typeof Error.captureStackTrace === 'function') {
730
711
  Error.captureStackTrace(this, InvalidProgramError);
@@ -732,7 +713,7 @@ class InvalidProgramError extends Error {
732
713
  }
733
714
  }
734
715
  exports.InvalidProgramError = InvalidProgramError;
735
- createErrorFromCodeLookup.set(0x1795, () => new InvalidProgramError());
716
+ createErrorFromCodeLookup.set(0x1794, () => new InvalidProgramError());
736
717
  createErrorFromNameLookup.set('InvalidProgram', () => new InvalidProgramError());
737
718
  /**
738
719
  * InvalidProgramAccount: 'Supplied program account can not be used'
@@ -743,7 +724,7 @@ createErrorFromNameLookup.set('InvalidProgram', () => new InvalidProgramError())
743
724
  class InvalidProgramAccountError extends Error {
744
725
  constructor() {
745
726
  super('Supplied program account can not be used');
746
- this.code = 0x1796;
727
+ this.code = 0x1795;
747
728
  this.name = 'InvalidProgramAccount';
748
729
  if (typeof Error.captureStackTrace === 'function') {
749
730
  Error.captureStackTrace(this, InvalidProgramAccountError);
@@ -751,7 +732,7 @@ class InvalidProgramAccountError extends Error {
751
732
  }
752
733
  }
753
734
  exports.InvalidProgramAccountError = InvalidProgramAccountError;
754
- createErrorFromCodeLookup.set(0x1796, () => new InvalidProgramAccountError());
735
+ createErrorFromCodeLookup.set(0x1795, () => new InvalidProgramAccountError());
755
736
  createErrorFromNameLookup.set('InvalidProgramAccount', () => new InvalidProgramAccountError());
756
737
  /**
757
738
  * MathError: 'Math error'
@@ -762,7 +743,7 @@ createErrorFromNameLookup.set('InvalidProgramAccount', () => new InvalidProgramA
762
743
  class MathErrorError extends Error {
763
744
  constructor() {
764
745
  super('Math error');
765
- this.code = 0x1797;
746
+ this.code = 0x1796;
766
747
  this.name = 'MathError';
767
748
  if (typeof Error.captureStackTrace === 'function') {
768
749
  Error.captureStackTrace(this, MathErrorError);
@@ -770,7 +751,7 @@ class MathErrorError extends Error {
770
751
  }
771
752
  }
772
753
  exports.MathErrorError = MathErrorError;
773
- createErrorFromCodeLookup.set(0x1797, () => new MathErrorError());
754
+ createErrorFromCodeLookup.set(0x1796, () => new MathErrorError());
774
755
  createErrorFromNameLookup.set('MathError', () => new MathErrorError());
775
756
  /**
776
757
  * ConversionFailed: 'Can't transmute'
@@ -781,7 +762,7 @@ createErrorFromNameLookup.set('MathError', () => new MathErrorError());
781
762
  class ConversionFailedError extends Error {
782
763
  constructor() {
783
764
  super("Can't transmute");
784
- this.code = 0x1798;
765
+ this.code = 0x1797;
785
766
  this.name = 'ConversionFailed';
786
767
  if (typeof Error.captureStackTrace === 'function') {
787
768
  Error.captureStackTrace(this, ConversionFailedError);
@@ -789,7 +770,7 @@ class ConversionFailedError extends Error {
789
770
  }
790
771
  }
791
772
  exports.ConversionFailedError = ConversionFailedError;
792
- createErrorFromCodeLookup.set(0x1798, () => new ConversionFailedError());
773
+ createErrorFromCodeLookup.set(0x1797, () => new ConversionFailedError());
793
774
  createErrorFromNameLookup.set('ConversionFailed', () => new ConversionFailedError());
794
775
  /**
795
776
  * MathOverflow: 'Mathematical operation overflow'
@@ -800,7 +781,7 @@ createErrorFromNameLookup.set('ConversionFailed', () => new ConversionFailedErro
800
781
  class MathOverflowError extends Error {
801
782
  constructor() {
802
783
  super('Mathematical operation overflow');
803
- this.code = 0x1799;
784
+ this.code = 0x1798;
804
785
  this.name = 'MathOverflow';
805
786
  if (typeof Error.captureStackTrace === 'function') {
806
787
  Error.captureStackTrace(this, MathOverflowError);
@@ -808,7 +789,7 @@ class MathOverflowError extends Error {
808
789
  }
809
790
  }
810
791
  exports.MathOverflowError = MathOverflowError;
811
- createErrorFromCodeLookup.set(0x1799, () => new MathOverflowError());
792
+ createErrorFromCodeLookup.set(0x1798, () => new MathOverflowError());
812
793
  createErrorFromNameLookup.set('MathOverflow', () => new MathOverflowError());
813
794
  /**
814
795
  * InvalidState: 'Invalid state'
@@ -819,7 +800,7 @@ createErrorFromNameLookup.set('MathOverflow', () => new MathOverflowError());
819
800
  class InvalidStateError extends Error {
820
801
  constructor() {
821
802
  super('Invalid state');
822
- this.code = 0x179a;
803
+ this.code = 0x1799;
823
804
  this.name = 'InvalidState';
824
805
  if (typeof Error.captureStackTrace === 'function') {
825
806
  Error.captureStackTrace(this, InvalidStateError);
@@ -827,7 +808,7 @@ class InvalidStateError extends Error {
827
808
  }
828
809
  }
829
810
  exports.InvalidStateError = InvalidStateError;
830
- createErrorFromCodeLookup.set(0x179a, () => new InvalidStateError());
811
+ createErrorFromCodeLookup.set(0x1799, () => new InvalidStateError());
831
812
  createErrorFromNameLookup.set('InvalidState', () => new InvalidStateError());
832
813
  /**
833
814
  * PythError: 'Could not load the price account'
@@ -838,7 +819,7 @@ createErrorFromNameLookup.set('InvalidState', () => new InvalidStateError());
838
819
  class PythErrorError extends Error {
839
820
  constructor() {
840
821
  super('Could not load the price account');
841
- this.code = 0x179b;
822
+ this.code = 0x179a;
842
823
  this.name = 'PythError';
843
824
  if (typeof Error.captureStackTrace === 'function') {
844
825
  Error.captureStackTrace(this, PythErrorError);
@@ -846,7 +827,7 @@ class PythErrorError extends Error {
846
827
  }
847
828
  }
848
829
  exports.PythErrorError = PythErrorError;
849
- createErrorFromCodeLookup.set(0x179b, () => new PythErrorError());
830
+ createErrorFromCodeLookup.set(0x179a, () => new PythErrorError());
850
831
  createErrorFromNameLookup.set('PythError', () => new PythErrorError());
851
832
  /**
852
833
  * FailedUnwrap: 'Failed unwrap'
@@ -857,7 +838,7 @@ createErrorFromNameLookup.set('PythError', () => new PythErrorError());
857
838
  class FailedUnwrapError extends Error {
858
839
  constructor() {
859
840
  super('Failed unwrap');
860
- this.code = 0x179c;
841
+ this.code = 0x179b;
861
842
  this.name = 'FailedUnwrap';
862
843
  if (typeof Error.captureStackTrace === 'function') {
863
844
  Error.captureStackTrace(this, FailedUnwrapError);
@@ -865,18 +846,18 @@ class FailedUnwrapError extends Error {
865
846
  }
866
847
  }
867
848
  exports.FailedUnwrapError = FailedUnwrapError;
868
- createErrorFromCodeLookup.set(0x179c, () => new FailedUnwrapError());
849
+ createErrorFromCodeLookup.set(0x179b, () => new FailedUnwrapError());
869
850
  createErrorFromNameLookup.set('FailedUnwrap', () => new FailedUnwrapError());
870
851
  /**
871
- * SpreadTooSmall: 'Difference between short and combined spot needs to be greater'
852
+ * SpreadTooSmall: 'Difference is too small to capture'
872
853
  *
873
854
  * @category Errors
874
855
  * @category generated
875
856
  */
876
857
  class SpreadTooSmallError extends Error {
877
858
  constructor() {
878
- super('Difference between short and combined spot needs to be greater');
879
- this.code = 0x179d;
859
+ super('Difference is too small to capture');
860
+ this.code = 0x179c;
880
861
  this.name = 'SpreadTooSmall';
881
862
  if (typeof Error.captureStackTrace === 'function') {
882
863
  Error.captureStackTrace(this, SpreadTooSmallError);
@@ -884,7 +865,7 @@ class SpreadTooSmallError extends Error {
884
865
  }
885
866
  }
886
867
  exports.SpreadTooSmallError = SpreadTooSmallError;
887
- createErrorFromCodeLookup.set(0x179d, () => new SpreadTooSmallError());
868
+ createErrorFromCodeLookup.set(0x179c, () => new SpreadTooSmallError());
888
869
  createErrorFromNameLookup.set('SpreadTooSmall', () => new SpreadTooSmallError());
889
870
  /**
890
871
  * SerialisationFailed: 'Serialisation failed'
@@ -895,7 +876,7 @@ createErrorFromNameLookup.set('SpreadTooSmall', () => new SpreadTooSmallError())
895
876
  class SerialisationFailedError extends Error {
896
877
  constructor() {
897
878
  super('Serialisation failed');
898
- this.code = 0x179e;
879
+ this.code = 0x179d;
899
880
  this.name = 'SerialisationFailed';
900
881
  if (typeof Error.captureStackTrace === 'function') {
901
882
  Error.captureStackTrace(this, SerialisationFailedError);
@@ -903,7 +884,7 @@ class SerialisationFailedError extends Error {
903
884
  }
904
885
  }
905
886
  exports.SerialisationFailedError = SerialisationFailedError;
906
- createErrorFromCodeLookup.set(0x179e, () => new SerialisationFailedError());
887
+ createErrorFromCodeLookup.set(0x179d, () => new SerialisationFailedError());
907
888
  createErrorFromNameLookup.set('SerialisationFailed', () => new SerialisationFailedError());
908
889
  /**
909
890
  * DeserialisationFailed: 'Deserialisation failed'
@@ -914,7 +895,7 @@ createErrorFromNameLookup.set('SerialisationFailed', () => new SerialisationFail
914
895
  class DeserialisationFailedError extends Error {
915
896
  constructor() {
916
897
  super('Deserialisation failed');
917
- this.code = 0x179f;
898
+ this.code = 0x179e;
918
899
  this.name = 'DeserialisationFailed';
919
900
  if (typeof Error.captureStackTrace === 'function') {
920
901
  Error.captureStackTrace(this, DeserialisationFailedError);
@@ -922,7 +903,7 @@ class DeserialisationFailedError extends Error {
922
903
  }
923
904
  }
924
905
  exports.DeserialisationFailedError = DeserialisationFailedError;
925
- createErrorFromCodeLookup.set(0x179f, () => new DeserialisationFailedError());
906
+ createErrorFromCodeLookup.set(0x179e, () => new DeserialisationFailedError());
926
907
  createErrorFromNameLookup.set('DeserialisationFailed', () => new DeserialisationFailedError());
927
908
  /**
928
909
  * NoEntriesLeft: 'Item could not be added'
@@ -933,7 +914,7 @@ createErrorFromNameLookup.set('DeserialisationFailed', () => new Deserialisation
933
914
  class NoEntriesLeftError extends Error {
934
915
  constructor() {
935
916
  super('Item could not be added');
936
- this.code = 0x17a0;
917
+ this.code = 0x179f;
937
918
  this.name = 'NoEntriesLeft';
938
919
  if (typeof Error.captureStackTrace === 'function') {
939
920
  Error.captureStackTrace(this, NoEntriesLeftError);
@@ -941,7 +922,7 @@ class NoEntriesLeftError extends Error {
941
922
  }
942
923
  }
943
924
  exports.NoEntriesLeftError = NoEntriesLeftError;
944
- createErrorFromCodeLookup.set(0x17a0, () => new NoEntriesLeftError());
925
+ createErrorFromCodeLookup.set(0x179f, () => new NoEntriesLeftError());
945
926
  createErrorFromNameLookup.set('NoEntriesLeft', () => new NoEntriesLeftError());
946
927
  /**
947
928
  * InvalidController: 'Provided wrong controller'
@@ -952,7 +933,7 @@ createErrorFromNameLookup.set('NoEntriesLeft', () => new NoEntriesLeftError());
952
933
  class InvalidControllerError extends Error {
953
934
  constructor() {
954
935
  super('Provided wrong controller');
955
- this.code = 0x17a1;
936
+ this.code = 0x17a0;
956
937
  this.name = 'InvalidController';
957
938
  if (typeof Error.captureStackTrace === 'function') {
958
939
  Error.captureStackTrace(this, InvalidControllerError);
@@ -960,7 +941,7 @@ class InvalidControllerError extends Error {
960
941
  }
961
942
  }
962
943
  exports.InvalidControllerError = InvalidControllerError;
963
- createErrorFromCodeLookup.set(0x17a1, () => new InvalidControllerError());
944
+ createErrorFromCodeLookup.set(0x17a0, () => new InvalidControllerError());
964
945
  createErrorFromNameLookup.set('InvalidController', () => new InvalidControllerError());
965
946
  /**
966
947
  * ActionFrozen: 'This action is suspended'
@@ -971,7 +952,7 @@ createErrorFromNameLookup.set('InvalidController', () => new InvalidControllerEr
971
952
  class ActionFrozenError extends Error {
972
953
  constructor() {
973
954
  super('This action is suspended');
974
- this.code = 0x17a2;
955
+ this.code = 0x17a1;
975
956
  this.name = 'ActionFrozen';
976
957
  if (typeof Error.captureStackTrace === 'function') {
977
958
  Error.captureStackTrace(this, ActionFrozenError);
@@ -979,7 +960,7 @@ class ActionFrozenError extends Error {
979
960
  }
980
961
  }
981
962
  exports.ActionFrozenError = ActionFrozenError;
982
- createErrorFromCodeLookup.set(0x17a2, () => new ActionFrozenError());
963
+ createErrorFromCodeLookup.set(0x17a1, () => new ActionFrozenError());
983
964
  createErrorFromNameLookup.set('ActionFrozen', () => new ActionFrozenError());
984
965
  /**
985
966
  * AttenuationExceedsMaximum: 'This configuration leads to an impossibility'
@@ -990,7 +971,7 @@ createErrorFromNameLookup.set('ActionFrozen', () => new ActionFrozenError());
990
971
  class AttenuationExceedsMaximumError extends Error {
991
972
  constructor() {
992
973
  super('This configuration leads to an impossibility');
993
- this.code = 0x17a3;
974
+ this.code = 0x17a2;
994
975
  this.name = 'AttenuationExceedsMaximum';
995
976
  if (typeof Error.captureStackTrace === 'function') {
996
977
  Error.captureStackTrace(this, AttenuationExceedsMaximumError);
@@ -998,7 +979,7 @@ class AttenuationExceedsMaximumError extends Error {
998
979
  }
999
980
  }
1000
981
  exports.AttenuationExceedsMaximumError = AttenuationExceedsMaximumError;
1001
- createErrorFromCodeLookup.set(0x17a3, () => new AttenuationExceedsMaximumError());
982
+ createErrorFromCodeLookup.set(0x17a2, () => new AttenuationExceedsMaximumError());
1002
983
  createErrorFromNameLookup.set('AttenuationExceedsMaximum', () => new AttenuationExceedsMaximumError());
1003
984
  /**
1004
985
  * InvalidAttenuationParameters: 'At least one parameter must be provided'
@@ -1009,7 +990,7 @@ createErrorFromNameLookup.set('AttenuationExceedsMaximum', () => new Attenuation
1009
990
  class InvalidAttenuationParametersError extends Error {
1010
991
  constructor() {
1011
992
  super('At least one parameter must be provided');
1012
- this.code = 0x17a4;
993
+ this.code = 0x17a3;
1013
994
  this.name = 'InvalidAttenuationParameters';
1014
995
  if (typeof Error.captureStackTrace === 'function') {
1015
996
  Error.captureStackTrace(this, InvalidAttenuationParametersError);
@@ -1017,7 +998,7 @@ class InvalidAttenuationParametersError extends Error {
1017
998
  }
1018
999
  }
1019
1000
  exports.InvalidAttenuationParametersError = InvalidAttenuationParametersError;
1020
- createErrorFromCodeLookup.set(0x17a4, () => new InvalidAttenuationParametersError());
1001
+ createErrorFromCodeLookup.set(0x17a3, () => new InvalidAttenuationParametersError());
1021
1002
  createErrorFromNameLookup.set('InvalidAttenuationParameters', () => new InvalidAttenuationParametersError());
1022
1003
  /**
1023
1004
  * CaptureProblem: 'Capture failed'
@@ -1028,7 +1009,7 @@ createErrorFromNameLookup.set('InvalidAttenuationParameters', () => new InvalidA
1028
1009
  class CaptureProblemError extends Error {
1029
1010
  constructor() {
1030
1011
  super('Capture failed');
1031
- this.code = 0x17a5;
1012
+ this.code = 0x17a4;
1032
1013
  this.name = 'CaptureProblem';
1033
1014
  if (typeof Error.captureStackTrace === 'function') {
1034
1015
  Error.captureStackTrace(this, CaptureProblemError);
@@ -1036,7 +1017,7 @@ class CaptureProblemError extends Error {
1036
1017
  }
1037
1018
  }
1038
1019
  exports.CaptureProblemError = CaptureProblemError;
1039
- createErrorFromCodeLookup.set(0x17a5, () => new CaptureProblemError());
1020
+ createErrorFromCodeLookup.set(0x17a4, () => new CaptureProblemError());
1040
1021
  createErrorFromNameLookup.set('CaptureProblem', () => new CaptureProblemError());
1041
1022
  /**
1042
1023
  * PerpMarketNotFound: 'PerpMarketNotFound'
@@ -1047,7 +1028,7 @@ createErrorFromNameLookup.set('CaptureProblem', () => new CaptureProblemError())
1047
1028
  class PerpMarketNotFoundError extends Error {
1048
1029
  constructor() {
1049
1030
  super('PerpMarketNotFound');
1050
- this.code = 0x17a6;
1031
+ this.code = 0x17a5;
1051
1032
  this.name = 'PerpMarketNotFound';
1052
1033
  if (typeof Error.captureStackTrace === 'function') {
1053
1034
  Error.captureStackTrace(this, PerpMarketNotFoundError);
@@ -1055,7 +1036,7 @@ class PerpMarketNotFoundError extends Error {
1055
1036
  }
1056
1037
  }
1057
1038
  exports.PerpMarketNotFoundError = PerpMarketNotFoundError;
1058
- createErrorFromCodeLookup.set(0x17a6, () => new PerpMarketNotFoundError());
1039
+ createErrorFromCodeLookup.set(0x17a5, () => new PerpMarketNotFoundError());
1059
1040
  createErrorFromNameLookup.set('PerpMarketNotFound', () => new PerpMarketNotFoundError());
1060
1041
  /**
1061
1042
  * UnableToLoadPerpMarketAccount: 'UnableToLoadMarketAccount'
@@ -1066,7 +1047,7 @@ createErrorFromNameLookup.set('PerpMarketNotFound', () => new PerpMarketNotFound
1066
1047
  class UnableToLoadPerpMarketAccountError extends Error {
1067
1048
  constructor() {
1068
1049
  super('UnableToLoadMarketAccount');
1069
- this.code = 0x17a7;
1050
+ this.code = 0x17a6;
1070
1051
  this.name = 'UnableToLoadPerpMarketAccount';
1071
1052
  if (typeof Error.captureStackTrace === 'function') {
1072
1053
  Error.captureStackTrace(this, UnableToLoadPerpMarketAccountError);
@@ -1074,7 +1055,7 @@ class UnableToLoadPerpMarketAccountError extends Error {
1074
1055
  }
1075
1056
  }
1076
1057
  exports.UnableToLoadPerpMarketAccountError = UnableToLoadPerpMarketAccountError;
1077
- createErrorFromCodeLookup.set(0x17a7, () => new UnableToLoadPerpMarketAccountError());
1058
+ createErrorFromCodeLookup.set(0x17a6, () => new UnableToLoadPerpMarketAccountError());
1078
1059
  createErrorFromNameLookup.set('UnableToLoadPerpMarketAccount', () => new UnableToLoadPerpMarketAccountError());
1079
1060
  /**
1080
1061
  * InvalidMarketAccount: 'InvalidMarketAccount'
@@ -1085,7 +1066,7 @@ createErrorFromNameLookup.set('UnableToLoadPerpMarketAccount', () => new UnableT
1085
1066
  class InvalidMarketAccountError extends Error {
1086
1067
  constructor() {
1087
1068
  super('InvalidMarketAccount');
1088
- this.code = 0x17a8;
1069
+ this.code = 0x17a7;
1089
1070
  this.name = 'InvalidMarketAccount';
1090
1071
  if (typeof Error.captureStackTrace === 'function') {
1091
1072
  Error.captureStackTrace(this, InvalidMarketAccountError);
@@ -1093,7 +1074,7 @@ class InvalidMarketAccountError extends Error {
1093
1074
  }
1094
1075
  }
1095
1076
  exports.InvalidMarketAccountError = InvalidMarketAccountError;
1096
- createErrorFromCodeLookup.set(0x17a8, () => new InvalidMarketAccountError());
1077
+ createErrorFromCodeLookup.set(0x17a7, () => new InvalidMarketAccountError());
1097
1078
  createErrorFromNameLookup.set('InvalidMarketAccount', () => new InvalidMarketAccountError());
1098
1079
  /**
1099
1080
  * CouldNotLoadMarketData: 'CouldNotLoadMarketData'
@@ -1104,7 +1085,7 @@ createErrorFromNameLookup.set('InvalidMarketAccount', () => new InvalidMarketAcc
1104
1085
  class CouldNotLoadMarketDataError extends Error {
1105
1086
  constructor() {
1106
1087
  super('CouldNotLoadMarketData');
1107
- this.code = 0x17a9;
1088
+ this.code = 0x17a8;
1108
1089
  this.name = 'CouldNotLoadMarketData';
1109
1090
  if (typeof Error.captureStackTrace === 'function') {
1110
1091
  Error.captureStackTrace(this, CouldNotLoadMarketDataError);
@@ -1112,7 +1093,7 @@ class CouldNotLoadMarketDataError extends Error {
1112
1093
  }
1113
1094
  }
1114
1095
  exports.CouldNotLoadMarketDataError = CouldNotLoadMarketDataError;
1115
- createErrorFromCodeLookup.set(0x17a9, () => new CouldNotLoadMarketDataError());
1096
+ createErrorFromCodeLookup.set(0x17a8, () => new CouldNotLoadMarketDataError());
1116
1097
  createErrorFromNameLookup.set('CouldNotLoadMarketData', () => new CouldNotLoadMarketDataError());
1117
1098
  /**
1118
1099
  * MarketWrongMutability: 'MarketWrongMutability'
@@ -1123,7 +1104,7 @@ createErrorFromNameLookup.set('CouldNotLoadMarketData', () => new CouldNotLoadMa
1123
1104
  class MarketWrongMutabilityError extends Error {
1124
1105
  constructor() {
1125
1106
  super('MarketWrongMutability');
1126
- this.code = 0x17aa;
1107
+ this.code = 0x17a9;
1127
1108
  this.name = 'MarketWrongMutability';
1128
1109
  if (typeof Error.captureStackTrace === 'function') {
1129
1110
  Error.captureStackTrace(this, MarketWrongMutabilityError);
@@ -1131,7 +1112,7 @@ class MarketWrongMutabilityError extends Error {
1131
1112
  }
1132
1113
  }
1133
1114
  exports.MarketWrongMutabilityError = MarketWrongMutabilityError;
1134
- createErrorFromCodeLookup.set(0x17aa, () => new MarketWrongMutabilityError());
1115
+ createErrorFromCodeLookup.set(0x17a9, () => new MarketWrongMutabilityError());
1135
1116
  createErrorFromNameLookup.set('MarketWrongMutability', () => new MarketWrongMutabilityError());
1136
1117
  /**
1137
1118
  * SpotMarketWrongMutability: 'SpotMarketWrongMutability'
@@ -1142,7 +1123,7 @@ createErrorFromNameLookup.set('MarketWrongMutability', () => new MarketWrongMuta
1142
1123
  class SpotMarketWrongMutabilityError extends Error {
1143
1124
  constructor() {
1144
1125
  super('SpotMarketWrongMutability');
1145
- this.code = 0x17ab;
1126
+ this.code = 0x17aa;
1146
1127
  this.name = 'SpotMarketWrongMutability';
1147
1128
  if (typeof Error.captureStackTrace === 'function') {
1148
1129
  Error.captureStackTrace(this, SpotMarketWrongMutabilityError);
@@ -1150,7 +1131,7 @@ class SpotMarketWrongMutabilityError extends Error {
1150
1131
  }
1151
1132
  }
1152
1133
  exports.SpotMarketWrongMutabilityError = SpotMarketWrongMutabilityError;
1153
- createErrorFromCodeLookup.set(0x17ab, () => new SpotMarketWrongMutabilityError());
1134
+ createErrorFromCodeLookup.set(0x17aa, () => new SpotMarketWrongMutabilityError());
1154
1135
  createErrorFromNameLookup.set('SpotMarketWrongMutability', () => new SpotMarketWrongMutabilityError());
1155
1136
  /**
1156
1137
  * UnableToLoadSpotMarketAccount: 'UnableToLoadSpotMarketAccount'
@@ -1161,7 +1142,7 @@ createErrorFromNameLookup.set('SpotMarketWrongMutability', () => new SpotMarketW
1161
1142
  class UnableToLoadSpotMarketAccountError extends Error {
1162
1143
  constructor() {
1163
1144
  super('UnableToLoadSpotMarketAccount');
1164
- this.code = 0x17ac;
1145
+ this.code = 0x17ab;
1165
1146
  this.name = 'UnableToLoadSpotMarketAccount';
1166
1147
  if (typeof Error.captureStackTrace === 'function') {
1167
1148
  Error.captureStackTrace(this, UnableToLoadSpotMarketAccountError);
@@ -1169,7 +1150,7 @@ class UnableToLoadSpotMarketAccountError extends Error {
1169
1150
  }
1170
1151
  }
1171
1152
  exports.UnableToLoadSpotMarketAccountError = UnableToLoadSpotMarketAccountError;
1172
- createErrorFromCodeLookup.set(0x17ac, () => new UnableToLoadSpotMarketAccountError());
1153
+ createErrorFromCodeLookup.set(0x17ab, () => new UnableToLoadSpotMarketAccountError());
1173
1154
  createErrorFromNameLookup.set('UnableToLoadSpotMarketAccount', () => new UnableToLoadSpotMarketAccountError());
1174
1155
  /**
1175
1156
  * InvalidSpotMarketAccount: 'InvalidSpotMarketAccount'
@@ -1180,7 +1161,7 @@ createErrorFromNameLookup.set('UnableToLoadSpotMarketAccount', () => new UnableT
1180
1161
  class InvalidSpotMarketAccountError extends Error {
1181
1162
  constructor() {
1182
1163
  super('InvalidSpotMarketAccount');
1183
- this.code = 0x17ad;
1164
+ this.code = 0x17ac;
1184
1165
  this.name = 'InvalidSpotMarketAccount';
1185
1166
  if (typeof Error.captureStackTrace === 'function') {
1186
1167
  Error.captureStackTrace(this, InvalidSpotMarketAccountError);
@@ -1188,7 +1169,7 @@ class InvalidSpotMarketAccountError extends Error {
1188
1169
  }
1189
1170
  }
1190
1171
  exports.InvalidSpotMarketAccountError = InvalidSpotMarketAccountError;
1191
- createErrorFromCodeLookup.set(0x17ad, () => new InvalidSpotMarketAccountError());
1172
+ createErrorFromCodeLookup.set(0x17ac, () => new InvalidSpotMarketAccountError());
1192
1173
  createErrorFromNameLookup.set('InvalidSpotMarketAccount', () => new InvalidSpotMarketAccountError());
1193
1174
  /**
1194
1175
  * CouldNotLoadSpotMarketData: 'CouldNotLoadSpotMarketData'
@@ -1199,7 +1180,7 @@ createErrorFromNameLookup.set('InvalidSpotMarketAccount', () => new InvalidSpotM
1199
1180
  class CouldNotLoadSpotMarketDataError extends Error {
1200
1181
  constructor() {
1201
1182
  super('CouldNotLoadSpotMarketData');
1202
- this.code = 0x17ae;
1183
+ this.code = 0x17ad;
1203
1184
  this.name = 'CouldNotLoadSpotMarketData';
1204
1185
  if (typeof Error.captureStackTrace === 'function') {
1205
1186
  Error.captureStackTrace(this, CouldNotLoadSpotMarketDataError);
@@ -1207,8 +1188,27 @@ class CouldNotLoadSpotMarketDataError extends Error {
1207
1188
  }
1208
1189
  }
1209
1190
  exports.CouldNotLoadSpotMarketDataError = CouldNotLoadSpotMarketDataError;
1210
- createErrorFromCodeLookup.set(0x17ae, () => new CouldNotLoadSpotMarketDataError());
1191
+ createErrorFromCodeLookup.set(0x17ad, () => new CouldNotLoadSpotMarketDataError());
1211
1192
  createErrorFromNameLookup.set('CouldNotLoadSpotMarketData', () => new CouldNotLoadSpotMarketDataError());
1193
+ /**
1194
+ * UnsettledPnl: 'Position has unsettled PnL and must be settled first'
1195
+ *
1196
+ * @category Errors
1197
+ * @category generated
1198
+ */
1199
+ class UnsettledPnlError extends Error {
1200
+ constructor() {
1201
+ super('Position has unsettled PnL and must be settled first');
1202
+ this.code = 0x17ae;
1203
+ this.name = 'UnsettledPnl';
1204
+ if (typeof Error.captureStackTrace === 'function') {
1205
+ Error.captureStackTrace(this, UnsettledPnlError);
1206
+ }
1207
+ }
1208
+ }
1209
+ exports.UnsettledPnlError = UnsettledPnlError;
1210
+ createErrorFromCodeLookup.set(0x17ae, () => new UnsettledPnlError());
1211
+ createErrorFromNameLookup.set('UnsettledPnl', () => new UnsettledPnlError());
1212
1212
  /**
1213
1213
  * UnableToLoadOracle: 'Unable To Load Oracles'
1214
1214
  *