@streamflow/distributor 7.0.0-alpha.3 → 7.0.0-alpha.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.
@@ -1,778 +1,601 @@
1
1
  "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
2
  Object.defineProperty(exports, "__esModule", { value: true });
18
3
  exports.AccountSysvarMismatch = exports.AccountNotAssociatedTokenAccount = exports.AccountNotProgramData = exports.AccountNotInitialized = exports.AccountNotSystemOwned = exports.AccountNotSigner = exports.InvalidProgramExecutable = exports.InvalidProgramId = exports.AccountOwnedByWrongProgram = exports.AccountNotMutable = exports.AccountNotEnoughKeys = exports.AccountDidNotSerialize = exports.AccountDidNotDeserialize = exports.AccountDiscriminatorMismatch = exports.AccountDiscriminatorNotFound = exports.AccountDiscriminatorAlreadySet = exports.RequireGteViolated = exports.RequireGtViolated = exports.RequireKeysNeqViolated = exports.RequireNeqViolated = exports.RequireKeysEqViolated = exports.RequireEqViolated = exports.RequireViolated = exports.ConstraintAccountIsNone = exports.ConstraintSpace = exports.ConstraintMintDecimals = exports.ConstraintMintFreezeAuthority = exports.ConstraintMintMintAuthority = exports.ConstraintTokenOwner = exports.ConstraintTokenMint = exports.ConstraintZero = exports.ConstraintAddress = exports.ConstraintClose = exports.ConstraintAssociatedInit = exports.ConstraintAssociated = exports.ConstraintState = exports.ConstraintExecutable = exports.ConstraintSeeds = exports.ConstraintRentExempt = exports.ConstraintOwner = exports.ConstraintRaw = exports.ConstraintSigner = exports.ConstraintHasOne = exports.ConstraintMut = exports.IdlInstructionInvalidProgram = exports.IdlInstructionStub = exports.InstructionDidNotSerialize = exports.InstructionDidNotDeserialize = exports.InstructionFallbackNotFound = exports.InstructionMissing = void 0;
19
4
  exports.fromCode = exports.Deprecated = exports.DeclaredProgramIdMismatch = exports.AccountDuplicateReallocs = exports.AccountReallocExceedsLimit = void 0;
20
- var InstructionMissing = /** @class */ (function (_super) {
21
- __extends(InstructionMissing, _super);
22
- function InstructionMissing(logs) {
23
- var _this = _super.call(this, "100: 8 byte instruction identifier not provided") || this;
24
- _this.logs = logs;
25
- _this.code = 100;
26
- _this.name = "InstructionMissing";
27
- _this.msg = "8 byte instruction identifier not provided";
28
- return _this;
29
- }
30
- InstructionMissing.code = 100;
31
- return InstructionMissing;
32
- }(Error));
5
+ class InstructionMissing extends Error {
6
+ constructor(logs) {
7
+ super("100: 8 byte instruction identifier not provided");
8
+ this.logs = logs;
9
+ this.code = 100;
10
+ this.name = "InstructionMissing";
11
+ this.msg = "8 byte instruction identifier not provided";
12
+ }
13
+ }
33
14
  exports.InstructionMissing = InstructionMissing;
34
- var InstructionFallbackNotFound = /** @class */ (function (_super) {
35
- __extends(InstructionFallbackNotFound, _super);
36
- function InstructionFallbackNotFound(logs) {
37
- var _this = _super.call(this, "101: Fallback functions are not supported") || this;
38
- _this.logs = logs;
39
- _this.code = 101;
40
- _this.name = "InstructionFallbackNotFound";
41
- _this.msg = "Fallback functions are not supported";
42
- return _this;
43
- }
44
- InstructionFallbackNotFound.code = 101;
45
- return InstructionFallbackNotFound;
46
- }(Error));
15
+ InstructionMissing.code = 100;
16
+ class InstructionFallbackNotFound extends Error {
17
+ constructor(logs) {
18
+ super("101: Fallback functions are not supported");
19
+ this.logs = logs;
20
+ this.code = 101;
21
+ this.name = "InstructionFallbackNotFound";
22
+ this.msg = "Fallback functions are not supported";
23
+ }
24
+ }
47
25
  exports.InstructionFallbackNotFound = InstructionFallbackNotFound;
48
- var InstructionDidNotDeserialize = /** @class */ (function (_super) {
49
- __extends(InstructionDidNotDeserialize, _super);
50
- function InstructionDidNotDeserialize(logs) {
51
- var _this = _super.call(this, "102: The program could not deserialize the given instruction") || this;
52
- _this.logs = logs;
53
- _this.code = 102;
54
- _this.name = "InstructionDidNotDeserialize";
55
- _this.msg = "The program could not deserialize the given instruction";
56
- return _this;
57
- }
58
- InstructionDidNotDeserialize.code = 102;
59
- return InstructionDidNotDeserialize;
60
- }(Error));
26
+ InstructionFallbackNotFound.code = 101;
27
+ class InstructionDidNotDeserialize extends Error {
28
+ constructor(logs) {
29
+ super("102: The program could not deserialize the given instruction");
30
+ this.logs = logs;
31
+ this.code = 102;
32
+ this.name = "InstructionDidNotDeserialize";
33
+ this.msg = "The program could not deserialize the given instruction";
34
+ }
35
+ }
61
36
  exports.InstructionDidNotDeserialize = InstructionDidNotDeserialize;
62
- var InstructionDidNotSerialize = /** @class */ (function (_super) {
63
- __extends(InstructionDidNotSerialize, _super);
64
- function InstructionDidNotSerialize(logs) {
65
- var _this = _super.call(this, "103: The program could not serialize the given instruction") || this;
66
- _this.logs = logs;
67
- _this.code = 103;
68
- _this.name = "InstructionDidNotSerialize";
69
- _this.msg = "The program could not serialize the given instruction";
70
- return _this;
71
- }
72
- InstructionDidNotSerialize.code = 103;
73
- return InstructionDidNotSerialize;
74
- }(Error));
37
+ InstructionDidNotDeserialize.code = 102;
38
+ class InstructionDidNotSerialize extends Error {
39
+ constructor(logs) {
40
+ super("103: The program could not serialize the given instruction");
41
+ this.logs = logs;
42
+ this.code = 103;
43
+ this.name = "InstructionDidNotSerialize";
44
+ this.msg = "The program could not serialize the given instruction";
45
+ }
46
+ }
75
47
  exports.InstructionDidNotSerialize = InstructionDidNotSerialize;
76
- var IdlInstructionStub = /** @class */ (function (_super) {
77
- __extends(IdlInstructionStub, _super);
78
- function IdlInstructionStub(logs) {
79
- var _this = _super.call(this, "1000: The program was compiled without idl instructions") || this;
80
- _this.logs = logs;
81
- _this.code = 1000;
82
- _this.name = "IdlInstructionStub";
83
- _this.msg = "The program was compiled without idl instructions";
84
- return _this;
85
- }
86
- IdlInstructionStub.code = 1000;
87
- return IdlInstructionStub;
88
- }(Error));
48
+ InstructionDidNotSerialize.code = 103;
49
+ class IdlInstructionStub extends Error {
50
+ constructor(logs) {
51
+ super("1000: The program was compiled without idl instructions");
52
+ this.logs = logs;
53
+ this.code = 1000;
54
+ this.name = "IdlInstructionStub";
55
+ this.msg = "The program was compiled without idl instructions";
56
+ }
57
+ }
89
58
  exports.IdlInstructionStub = IdlInstructionStub;
90
- var IdlInstructionInvalidProgram = /** @class */ (function (_super) {
91
- __extends(IdlInstructionInvalidProgram, _super);
92
- function IdlInstructionInvalidProgram(logs) {
93
- var _this = _super.call(this, "1001: The transaction was given an invalid program for the IDL instruction") || this;
94
- _this.logs = logs;
95
- _this.code = 1001;
96
- _this.name = "IdlInstructionInvalidProgram";
97
- _this.msg = "The transaction was given an invalid program for the IDL instruction";
98
- return _this;
99
- }
100
- IdlInstructionInvalidProgram.code = 1001;
101
- return IdlInstructionInvalidProgram;
102
- }(Error));
59
+ IdlInstructionStub.code = 1000;
60
+ class IdlInstructionInvalidProgram extends Error {
61
+ constructor(logs) {
62
+ super("1001: The transaction was given an invalid program for the IDL instruction");
63
+ this.logs = logs;
64
+ this.code = 1001;
65
+ this.name = "IdlInstructionInvalidProgram";
66
+ this.msg = "The transaction was given an invalid program for the IDL instruction";
67
+ }
68
+ }
103
69
  exports.IdlInstructionInvalidProgram = IdlInstructionInvalidProgram;
104
- var ConstraintMut = /** @class */ (function (_super) {
105
- __extends(ConstraintMut, _super);
106
- function ConstraintMut(logs) {
107
- var _this = _super.call(this, "2000: A mut constraint was violated") || this;
108
- _this.logs = logs;
109
- _this.code = 2000;
110
- _this.name = "ConstraintMut";
111
- _this.msg = "A mut constraint was violated";
112
- return _this;
113
- }
114
- ConstraintMut.code = 2000;
115
- return ConstraintMut;
116
- }(Error));
70
+ IdlInstructionInvalidProgram.code = 1001;
71
+ class ConstraintMut extends Error {
72
+ constructor(logs) {
73
+ super("2000: A mut constraint was violated");
74
+ this.logs = logs;
75
+ this.code = 2000;
76
+ this.name = "ConstraintMut";
77
+ this.msg = "A mut constraint was violated";
78
+ }
79
+ }
117
80
  exports.ConstraintMut = ConstraintMut;
118
- var ConstraintHasOne = /** @class */ (function (_super) {
119
- __extends(ConstraintHasOne, _super);
120
- function ConstraintHasOne(logs) {
121
- var _this = _super.call(this, "2001: A has one constraint was violated") || this;
122
- _this.logs = logs;
123
- _this.code = 2001;
124
- _this.name = "ConstraintHasOne";
125
- _this.msg = "A has one constraint was violated";
126
- return _this;
127
- }
128
- ConstraintHasOne.code = 2001;
129
- return ConstraintHasOne;
130
- }(Error));
81
+ ConstraintMut.code = 2000;
82
+ class ConstraintHasOne extends Error {
83
+ constructor(logs) {
84
+ super("2001: A has one constraint was violated");
85
+ this.logs = logs;
86
+ this.code = 2001;
87
+ this.name = "ConstraintHasOne";
88
+ this.msg = "A has one constraint was violated";
89
+ }
90
+ }
131
91
  exports.ConstraintHasOne = ConstraintHasOne;
132
- var ConstraintSigner = /** @class */ (function (_super) {
133
- __extends(ConstraintSigner, _super);
134
- function ConstraintSigner(logs) {
135
- var _this = _super.call(this, "2002: A signer constraint was violated") || this;
136
- _this.logs = logs;
137
- _this.code = 2002;
138
- _this.name = "ConstraintSigner";
139
- _this.msg = "A signer constraint was violated";
140
- return _this;
141
- }
142
- ConstraintSigner.code = 2002;
143
- return ConstraintSigner;
144
- }(Error));
92
+ ConstraintHasOne.code = 2001;
93
+ class ConstraintSigner extends Error {
94
+ constructor(logs) {
95
+ super("2002: A signer constraint was violated");
96
+ this.logs = logs;
97
+ this.code = 2002;
98
+ this.name = "ConstraintSigner";
99
+ this.msg = "A signer constraint was violated";
100
+ }
101
+ }
145
102
  exports.ConstraintSigner = ConstraintSigner;
146
- var ConstraintRaw = /** @class */ (function (_super) {
147
- __extends(ConstraintRaw, _super);
148
- function ConstraintRaw(logs) {
149
- var _this = _super.call(this, "2003: A raw constraint was violated") || this;
150
- _this.logs = logs;
151
- _this.code = 2003;
152
- _this.name = "ConstraintRaw";
153
- _this.msg = "A raw constraint was violated";
154
- return _this;
155
- }
156
- ConstraintRaw.code = 2003;
157
- return ConstraintRaw;
158
- }(Error));
103
+ ConstraintSigner.code = 2002;
104
+ class ConstraintRaw extends Error {
105
+ constructor(logs) {
106
+ super("2003: A raw constraint was violated");
107
+ this.logs = logs;
108
+ this.code = 2003;
109
+ this.name = "ConstraintRaw";
110
+ this.msg = "A raw constraint was violated";
111
+ }
112
+ }
159
113
  exports.ConstraintRaw = ConstraintRaw;
160
- var ConstraintOwner = /** @class */ (function (_super) {
161
- __extends(ConstraintOwner, _super);
162
- function ConstraintOwner(logs) {
163
- var _this = _super.call(this, "2004: An owner constraint was violated") || this;
164
- _this.logs = logs;
165
- _this.code = 2004;
166
- _this.name = "ConstraintOwner";
167
- _this.msg = "An owner constraint was violated";
168
- return _this;
169
- }
170
- ConstraintOwner.code = 2004;
171
- return ConstraintOwner;
172
- }(Error));
114
+ ConstraintRaw.code = 2003;
115
+ class ConstraintOwner extends Error {
116
+ constructor(logs) {
117
+ super("2004: An owner constraint was violated");
118
+ this.logs = logs;
119
+ this.code = 2004;
120
+ this.name = "ConstraintOwner";
121
+ this.msg = "An owner constraint was violated";
122
+ }
123
+ }
173
124
  exports.ConstraintOwner = ConstraintOwner;
174
- var ConstraintRentExempt = /** @class */ (function (_super) {
175
- __extends(ConstraintRentExempt, _super);
176
- function ConstraintRentExempt(logs) {
177
- var _this = _super.call(this, "2005: A rent exemption constraint was violated") || this;
178
- _this.logs = logs;
179
- _this.code = 2005;
180
- _this.name = "ConstraintRentExempt";
181
- _this.msg = "A rent exemption constraint was violated";
182
- return _this;
183
- }
184
- ConstraintRentExempt.code = 2005;
185
- return ConstraintRentExempt;
186
- }(Error));
125
+ ConstraintOwner.code = 2004;
126
+ class ConstraintRentExempt extends Error {
127
+ constructor(logs) {
128
+ super("2005: A rent exemption constraint was violated");
129
+ this.logs = logs;
130
+ this.code = 2005;
131
+ this.name = "ConstraintRentExempt";
132
+ this.msg = "A rent exemption constraint was violated";
133
+ }
134
+ }
187
135
  exports.ConstraintRentExempt = ConstraintRentExempt;
188
- var ConstraintSeeds = /** @class */ (function (_super) {
189
- __extends(ConstraintSeeds, _super);
190
- function ConstraintSeeds(logs) {
191
- var _this = _super.call(this, "2006: A seeds constraint was violated") || this;
192
- _this.logs = logs;
193
- _this.code = 2006;
194
- _this.name = "ConstraintSeeds";
195
- _this.msg = "A seeds constraint was violated";
196
- return _this;
197
- }
198
- ConstraintSeeds.code = 2006;
199
- return ConstraintSeeds;
200
- }(Error));
136
+ ConstraintRentExempt.code = 2005;
137
+ class ConstraintSeeds extends Error {
138
+ constructor(logs) {
139
+ super("2006: A seeds constraint was violated");
140
+ this.logs = logs;
141
+ this.code = 2006;
142
+ this.name = "ConstraintSeeds";
143
+ this.msg = "A seeds constraint was violated";
144
+ }
145
+ }
201
146
  exports.ConstraintSeeds = ConstraintSeeds;
202
- var ConstraintExecutable = /** @class */ (function (_super) {
203
- __extends(ConstraintExecutable, _super);
204
- function ConstraintExecutable(logs) {
205
- var _this = _super.call(this, "2007: An executable constraint was violated") || this;
206
- _this.logs = logs;
207
- _this.code = 2007;
208
- _this.name = "ConstraintExecutable";
209
- _this.msg = "An executable constraint was violated";
210
- return _this;
211
- }
212
- ConstraintExecutable.code = 2007;
213
- return ConstraintExecutable;
214
- }(Error));
147
+ ConstraintSeeds.code = 2006;
148
+ class ConstraintExecutable extends Error {
149
+ constructor(logs) {
150
+ super("2007: An executable constraint was violated");
151
+ this.logs = logs;
152
+ this.code = 2007;
153
+ this.name = "ConstraintExecutable";
154
+ this.msg = "An executable constraint was violated";
155
+ }
156
+ }
215
157
  exports.ConstraintExecutable = ConstraintExecutable;
216
- var ConstraintState = /** @class */ (function (_super) {
217
- __extends(ConstraintState, _super);
218
- function ConstraintState(logs) {
219
- var _this = _super.call(this, "2008: Deprecated Error, feel free to replace with something else") || this;
220
- _this.logs = logs;
221
- _this.code = 2008;
222
- _this.name = "ConstraintState";
223
- _this.msg = "Deprecated Error, feel free to replace with something else";
224
- return _this;
225
- }
226
- ConstraintState.code = 2008;
227
- return ConstraintState;
228
- }(Error));
158
+ ConstraintExecutable.code = 2007;
159
+ class ConstraintState extends Error {
160
+ constructor(logs) {
161
+ super("2008: Deprecated Error, feel free to replace with something else");
162
+ this.logs = logs;
163
+ this.code = 2008;
164
+ this.name = "ConstraintState";
165
+ this.msg = "Deprecated Error, feel free to replace with something else";
166
+ }
167
+ }
229
168
  exports.ConstraintState = ConstraintState;
230
- var ConstraintAssociated = /** @class */ (function (_super) {
231
- __extends(ConstraintAssociated, _super);
232
- function ConstraintAssociated(logs) {
233
- var _this = _super.call(this, "2009: An associated constraint was violated") || this;
234
- _this.logs = logs;
235
- _this.code = 2009;
236
- _this.name = "ConstraintAssociated";
237
- _this.msg = "An associated constraint was violated";
238
- return _this;
239
- }
240
- ConstraintAssociated.code = 2009;
241
- return ConstraintAssociated;
242
- }(Error));
169
+ ConstraintState.code = 2008;
170
+ class ConstraintAssociated extends Error {
171
+ constructor(logs) {
172
+ super("2009: An associated constraint was violated");
173
+ this.logs = logs;
174
+ this.code = 2009;
175
+ this.name = "ConstraintAssociated";
176
+ this.msg = "An associated constraint was violated";
177
+ }
178
+ }
243
179
  exports.ConstraintAssociated = ConstraintAssociated;
244
- var ConstraintAssociatedInit = /** @class */ (function (_super) {
245
- __extends(ConstraintAssociatedInit, _super);
246
- function ConstraintAssociatedInit(logs) {
247
- var _this = _super.call(this, "2010: An associated init constraint was violated") || this;
248
- _this.logs = logs;
249
- _this.code = 2010;
250
- _this.name = "ConstraintAssociatedInit";
251
- _this.msg = "An associated init constraint was violated";
252
- return _this;
253
- }
254
- ConstraintAssociatedInit.code = 2010;
255
- return ConstraintAssociatedInit;
256
- }(Error));
180
+ ConstraintAssociated.code = 2009;
181
+ class ConstraintAssociatedInit extends Error {
182
+ constructor(logs) {
183
+ super("2010: An associated init constraint was violated");
184
+ this.logs = logs;
185
+ this.code = 2010;
186
+ this.name = "ConstraintAssociatedInit";
187
+ this.msg = "An associated init constraint was violated";
188
+ }
189
+ }
257
190
  exports.ConstraintAssociatedInit = ConstraintAssociatedInit;
258
- var ConstraintClose = /** @class */ (function (_super) {
259
- __extends(ConstraintClose, _super);
260
- function ConstraintClose(logs) {
261
- var _this = _super.call(this, "2011: A close constraint was violated") || this;
262
- _this.logs = logs;
263
- _this.code = 2011;
264
- _this.name = "ConstraintClose";
265
- _this.msg = "A close constraint was violated";
266
- return _this;
267
- }
268
- ConstraintClose.code = 2011;
269
- return ConstraintClose;
270
- }(Error));
191
+ ConstraintAssociatedInit.code = 2010;
192
+ class ConstraintClose extends Error {
193
+ constructor(logs) {
194
+ super("2011: A close constraint was violated");
195
+ this.logs = logs;
196
+ this.code = 2011;
197
+ this.name = "ConstraintClose";
198
+ this.msg = "A close constraint was violated";
199
+ }
200
+ }
271
201
  exports.ConstraintClose = ConstraintClose;
272
- var ConstraintAddress = /** @class */ (function (_super) {
273
- __extends(ConstraintAddress, _super);
274
- function ConstraintAddress(logs) {
275
- var _this = _super.call(this, "2012: An address constraint was violated") || this;
276
- _this.logs = logs;
277
- _this.code = 2012;
278
- _this.name = "ConstraintAddress";
279
- _this.msg = "An address constraint was violated";
280
- return _this;
281
- }
282
- ConstraintAddress.code = 2012;
283
- return ConstraintAddress;
284
- }(Error));
202
+ ConstraintClose.code = 2011;
203
+ class ConstraintAddress extends Error {
204
+ constructor(logs) {
205
+ super("2012: An address constraint was violated");
206
+ this.logs = logs;
207
+ this.code = 2012;
208
+ this.name = "ConstraintAddress";
209
+ this.msg = "An address constraint was violated";
210
+ }
211
+ }
285
212
  exports.ConstraintAddress = ConstraintAddress;
286
- var ConstraintZero = /** @class */ (function (_super) {
287
- __extends(ConstraintZero, _super);
288
- function ConstraintZero(logs) {
289
- var _this = _super.call(this, "2013: Expected zero account discriminant") || this;
290
- _this.logs = logs;
291
- _this.code = 2013;
292
- _this.name = "ConstraintZero";
293
- _this.msg = "Expected zero account discriminant";
294
- return _this;
295
- }
296
- ConstraintZero.code = 2013;
297
- return ConstraintZero;
298
- }(Error));
213
+ ConstraintAddress.code = 2012;
214
+ class ConstraintZero extends Error {
215
+ constructor(logs) {
216
+ super("2013: Expected zero account discriminant");
217
+ this.logs = logs;
218
+ this.code = 2013;
219
+ this.name = "ConstraintZero";
220
+ this.msg = "Expected zero account discriminant";
221
+ }
222
+ }
299
223
  exports.ConstraintZero = ConstraintZero;
300
- var ConstraintTokenMint = /** @class */ (function (_super) {
301
- __extends(ConstraintTokenMint, _super);
302
- function ConstraintTokenMint(logs) {
303
- var _this = _super.call(this, "2014: A token mint constraint was violated") || this;
304
- _this.logs = logs;
305
- _this.code = 2014;
306
- _this.name = "ConstraintTokenMint";
307
- _this.msg = "A token mint constraint was violated";
308
- return _this;
309
- }
310
- ConstraintTokenMint.code = 2014;
311
- return ConstraintTokenMint;
312
- }(Error));
224
+ ConstraintZero.code = 2013;
225
+ class ConstraintTokenMint extends Error {
226
+ constructor(logs) {
227
+ super("2014: A token mint constraint was violated");
228
+ this.logs = logs;
229
+ this.code = 2014;
230
+ this.name = "ConstraintTokenMint";
231
+ this.msg = "A token mint constraint was violated";
232
+ }
233
+ }
313
234
  exports.ConstraintTokenMint = ConstraintTokenMint;
314
- var ConstraintTokenOwner = /** @class */ (function (_super) {
315
- __extends(ConstraintTokenOwner, _super);
316
- function ConstraintTokenOwner(logs) {
317
- var _this = _super.call(this, "2015: A token owner constraint was violated") || this;
318
- _this.logs = logs;
319
- _this.code = 2015;
320
- _this.name = "ConstraintTokenOwner";
321
- _this.msg = "A token owner constraint was violated";
322
- return _this;
323
- }
324
- ConstraintTokenOwner.code = 2015;
325
- return ConstraintTokenOwner;
326
- }(Error));
235
+ ConstraintTokenMint.code = 2014;
236
+ class ConstraintTokenOwner extends Error {
237
+ constructor(logs) {
238
+ super("2015: A token owner constraint was violated");
239
+ this.logs = logs;
240
+ this.code = 2015;
241
+ this.name = "ConstraintTokenOwner";
242
+ this.msg = "A token owner constraint was violated";
243
+ }
244
+ }
327
245
  exports.ConstraintTokenOwner = ConstraintTokenOwner;
328
- var ConstraintMintMintAuthority = /** @class */ (function (_super) {
329
- __extends(ConstraintMintMintAuthority, _super);
330
- function ConstraintMintMintAuthority(logs) {
331
- var _this = _super.call(this, "2016: A mint mint authority constraint was violated") || this;
332
- _this.logs = logs;
333
- _this.code = 2016;
334
- _this.name = "ConstraintMintMintAuthority";
335
- _this.msg = "A mint mint authority constraint was violated";
336
- return _this;
337
- }
338
- ConstraintMintMintAuthority.code = 2016;
339
- return ConstraintMintMintAuthority;
340
- }(Error));
246
+ ConstraintTokenOwner.code = 2015;
247
+ class ConstraintMintMintAuthority extends Error {
248
+ constructor(logs) {
249
+ super("2016: A mint mint authority constraint was violated");
250
+ this.logs = logs;
251
+ this.code = 2016;
252
+ this.name = "ConstraintMintMintAuthority";
253
+ this.msg = "A mint mint authority constraint was violated";
254
+ }
255
+ }
341
256
  exports.ConstraintMintMintAuthority = ConstraintMintMintAuthority;
342
- var ConstraintMintFreezeAuthority = /** @class */ (function (_super) {
343
- __extends(ConstraintMintFreezeAuthority, _super);
344
- function ConstraintMintFreezeAuthority(logs) {
345
- var _this = _super.call(this, "2017: A mint freeze authority constraint was violated") || this;
346
- _this.logs = logs;
347
- _this.code = 2017;
348
- _this.name = "ConstraintMintFreezeAuthority";
349
- _this.msg = "A mint freeze authority constraint was violated";
350
- return _this;
351
- }
352
- ConstraintMintFreezeAuthority.code = 2017;
353
- return ConstraintMintFreezeAuthority;
354
- }(Error));
257
+ ConstraintMintMintAuthority.code = 2016;
258
+ class ConstraintMintFreezeAuthority extends Error {
259
+ constructor(logs) {
260
+ super("2017: A mint freeze authority constraint was violated");
261
+ this.logs = logs;
262
+ this.code = 2017;
263
+ this.name = "ConstraintMintFreezeAuthority";
264
+ this.msg = "A mint freeze authority constraint was violated";
265
+ }
266
+ }
355
267
  exports.ConstraintMintFreezeAuthority = ConstraintMintFreezeAuthority;
356
- var ConstraintMintDecimals = /** @class */ (function (_super) {
357
- __extends(ConstraintMintDecimals, _super);
358
- function ConstraintMintDecimals(logs) {
359
- var _this = _super.call(this, "2018: A mint decimals constraint was violated") || this;
360
- _this.logs = logs;
361
- _this.code = 2018;
362
- _this.name = "ConstraintMintDecimals";
363
- _this.msg = "A mint decimals constraint was violated";
364
- return _this;
365
- }
366
- ConstraintMintDecimals.code = 2018;
367
- return ConstraintMintDecimals;
368
- }(Error));
268
+ ConstraintMintFreezeAuthority.code = 2017;
269
+ class ConstraintMintDecimals extends Error {
270
+ constructor(logs) {
271
+ super("2018: A mint decimals constraint was violated");
272
+ this.logs = logs;
273
+ this.code = 2018;
274
+ this.name = "ConstraintMintDecimals";
275
+ this.msg = "A mint decimals constraint was violated";
276
+ }
277
+ }
369
278
  exports.ConstraintMintDecimals = ConstraintMintDecimals;
370
- var ConstraintSpace = /** @class */ (function (_super) {
371
- __extends(ConstraintSpace, _super);
372
- function ConstraintSpace(logs) {
373
- var _this = _super.call(this, "2019: A space constraint was violated") || this;
374
- _this.logs = logs;
375
- _this.code = 2019;
376
- _this.name = "ConstraintSpace";
377
- _this.msg = "A space constraint was violated";
378
- return _this;
379
- }
380
- ConstraintSpace.code = 2019;
381
- return ConstraintSpace;
382
- }(Error));
279
+ ConstraintMintDecimals.code = 2018;
280
+ class ConstraintSpace extends Error {
281
+ constructor(logs) {
282
+ super("2019: A space constraint was violated");
283
+ this.logs = logs;
284
+ this.code = 2019;
285
+ this.name = "ConstraintSpace";
286
+ this.msg = "A space constraint was violated";
287
+ }
288
+ }
383
289
  exports.ConstraintSpace = ConstraintSpace;
384
- var ConstraintAccountIsNone = /** @class */ (function (_super) {
385
- __extends(ConstraintAccountIsNone, _super);
386
- function ConstraintAccountIsNone(logs) {
387
- var _this = _super.call(this, "2020: A required account for the constraint is None") || this;
388
- _this.logs = logs;
389
- _this.code = 2020;
390
- _this.name = "ConstraintAccountIsNone";
391
- _this.msg = "A required account for the constraint is None";
392
- return _this;
393
- }
394
- ConstraintAccountIsNone.code = 2020;
395
- return ConstraintAccountIsNone;
396
- }(Error));
290
+ ConstraintSpace.code = 2019;
291
+ class ConstraintAccountIsNone extends Error {
292
+ constructor(logs) {
293
+ super("2020: A required account for the constraint is None");
294
+ this.logs = logs;
295
+ this.code = 2020;
296
+ this.name = "ConstraintAccountIsNone";
297
+ this.msg = "A required account for the constraint is None";
298
+ }
299
+ }
397
300
  exports.ConstraintAccountIsNone = ConstraintAccountIsNone;
398
- var RequireViolated = /** @class */ (function (_super) {
399
- __extends(RequireViolated, _super);
400
- function RequireViolated(logs) {
401
- var _this = _super.call(this, "2500: A require expression was violated") || this;
402
- _this.logs = logs;
403
- _this.code = 2500;
404
- _this.name = "RequireViolated";
405
- _this.msg = "A require expression was violated";
406
- return _this;
407
- }
408
- RequireViolated.code = 2500;
409
- return RequireViolated;
410
- }(Error));
301
+ ConstraintAccountIsNone.code = 2020;
302
+ class RequireViolated extends Error {
303
+ constructor(logs) {
304
+ super("2500: A require expression was violated");
305
+ this.logs = logs;
306
+ this.code = 2500;
307
+ this.name = "RequireViolated";
308
+ this.msg = "A require expression was violated";
309
+ }
310
+ }
411
311
  exports.RequireViolated = RequireViolated;
412
- var RequireEqViolated = /** @class */ (function (_super) {
413
- __extends(RequireEqViolated, _super);
414
- function RequireEqViolated(logs) {
415
- var _this = _super.call(this, "2501: A require_eq expression was violated") || this;
416
- _this.logs = logs;
417
- _this.code = 2501;
418
- _this.name = "RequireEqViolated";
419
- _this.msg = "A require_eq expression was violated";
420
- return _this;
421
- }
422
- RequireEqViolated.code = 2501;
423
- return RequireEqViolated;
424
- }(Error));
312
+ RequireViolated.code = 2500;
313
+ class RequireEqViolated extends Error {
314
+ constructor(logs) {
315
+ super("2501: A require_eq expression was violated");
316
+ this.logs = logs;
317
+ this.code = 2501;
318
+ this.name = "RequireEqViolated";
319
+ this.msg = "A require_eq expression was violated";
320
+ }
321
+ }
425
322
  exports.RequireEqViolated = RequireEqViolated;
426
- var RequireKeysEqViolated = /** @class */ (function (_super) {
427
- __extends(RequireKeysEqViolated, _super);
428
- function RequireKeysEqViolated(logs) {
429
- var _this = _super.call(this, "2502: A require_keys_eq expression was violated") || this;
430
- _this.logs = logs;
431
- _this.code = 2502;
432
- _this.name = "RequireKeysEqViolated";
433
- _this.msg = "A require_keys_eq expression was violated";
434
- return _this;
435
- }
436
- RequireKeysEqViolated.code = 2502;
437
- return RequireKeysEqViolated;
438
- }(Error));
323
+ RequireEqViolated.code = 2501;
324
+ class RequireKeysEqViolated extends Error {
325
+ constructor(logs) {
326
+ super("2502: A require_keys_eq expression was violated");
327
+ this.logs = logs;
328
+ this.code = 2502;
329
+ this.name = "RequireKeysEqViolated";
330
+ this.msg = "A require_keys_eq expression was violated";
331
+ }
332
+ }
439
333
  exports.RequireKeysEqViolated = RequireKeysEqViolated;
440
- var RequireNeqViolated = /** @class */ (function (_super) {
441
- __extends(RequireNeqViolated, _super);
442
- function RequireNeqViolated(logs) {
443
- var _this = _super.call(this, "2503: A require_neq expression was violated") || this;
444
- _this.logs = logs;
445
- _this.code = 2503;
446
- _this.name = "RequireNeqViolated";
447
- _this.msg = "A require_neq expression was violated";
448
- return _this;
449
- }
450
- RequireNeqViolated.code = 2503;
451
- return RequireNeqViolated;
452
- }(Error));
334
+ RequireKeysEqViolated.code = 2502;
335
+ class RequireNeqViolated extends Error {
336
+ constructor(logs) {
337
+ super("2503: A require_neq expression was violated");
338
+ this.logs = logs;
339
+ this.code = 2503;
340
+ this.name = "RequireNeqViolated";
341
+ this.msg = "A require_neq expression was violated";
342
+ }
343
+ }
453
344
  exports.RequireNeqViolated = RequireNeqViolated;
454
- var RequireKeysNeqViolated = /** @class */ (function (_super) {
455
- __extends(RequireKeysNeqViolated, _super);
456
- function RequireKeysNeqViolated(logs) {
457
- var _this = _super.call(this, "2504: A require_keys_neq expression was violated") || this;
458
- _this.logs = logs;
459
- _this.code = 2504;
460
- _this.name = "RequireKeysNeqViolated";
461
- _this.msg = "A require_keys_neq expression was violated";
462
- return _this;
463
- }
464
- RequireKeysNeqViolated.code = 2504;
465
- return RequireKeysNeqViolated;
466
- }(Error));
345
+ RequireNeqViolated.code = 2503;
346
+ class RequireKeysNeqViolated extends Error {
347
+ constructor(logs) {
348
+ super("2504: A require_keys_neq expression was violated");
349
+ this.logs = logs;
350
+ this.code = 2504;
351
+ this.name = "RequireKeysNeqViolated";
352
+ this.msg = "A require_keys_neq expression was violated";
353
+ }
354
+ }
467
355
  exports.RequireKeysNeqViolated = RequireKeysNeqViolated;
468
- var RequireGtViolated = /** @class */ (function (_super) {
469
- __extends(RequireGtViolated, _super);
470
- function RequireGtViolated(logs) {
471
- var _this = _super.call(this, "2505: A require_gt expression was violated") || this;
472
- _this.logs = logs;
473
- _this.code = 2505;
474
- _this.name = "RequireGtViolated";
475
- _this.msg = "A require_gt expression was violated";
476
- return _this;
477
- }
478
- RequireGtViolated.code = 2505;
479
- return RequireGtViolated;
480
- }(Error));
356
+ RequireKeysNeqViolated.code = 2504;
357
+ class RequireGtViolated extends Error {
358
+ constructor(logs) {
359
+ super("2505: A require_gt expression was violated");
360
+ this.logs = logs;
361
+ this.code = 2505;
362
+ this.name = "RequireGtViolated";
363
+ this.msg = "A require_gt expression was violated";
364
+ }
365
+ }
481
366
  exports.RequireGtViolated = RequireGtViolated;
482
- var RequireGteViolated = /** @class */ (function (_super) {
483
- __extends(RequireGteViolated, _super);
484
- function RequireGteViolated(logs) {
485
- var _this = _super.call(this, "2506: A require_gte expression was violated") || this;
486
- _this.logs = logs;
487
- _this.code = 2506;
488
- _this.name = "RequireGteViolated";
489
- _this.msg = "A require_gte expression was violated";
490
- return _this;
491
- }
492
- RequireGteViolated.code = 2506;
493
- return RequireGteViolated;
494
- }(Error));
367
+ RequireGtViolated.code = 2505;
368
+ class RequireGteViolated extends Error {
369
+ constructor(logs) {
370
+ super("2506: A require_gte expression was violated");
371
+ this.logs = logs;
372
+ this.code = 2506;
373
+ this.name = "RequireGteViolated";
374
+ this.msg = "A require_gte expression was violated";
375
+ }
376
+ }
495
377
  exports.RequireGteViolated = RequireGteViolated;
496
- var AccountDiscriminatorAlreadySet = /** @class */ (function (_super) {
497
- __extends(AccountDiscriminatorAlreadySet, _super);
498
- function AccountDiscriminatorAlreadySet(logs) {
499
- var _this = _super.call(this, "3000: The account discriminator was already set on this account") || this;
500
- _this.logs = logs;
501
- _this.code = 3000;
502
- _this.name = "AccountDiscriminatorAlreadySet";
503
- _this.msg = "The account discriminator was already set on this account";
504
- return _this;
505
- }
506
- AccountDiscriminatorAlreadySet.code = 3000;
507
- return AccountDiscriminatorAlreadySet;
508
- }(Error));
378
+ RequireGteViolated.code = 2506;
379
+ class AccountDiscriminatorAlreadySet extends Error {
380
+ constructor(logs) {
381
+ super("3000: The account discriminator was already set on this account");
382
+ this.logs = logs;
383
+ this.code = 3000;
384
+ this.name = "AccountDiscriminatorAlreadySet";
385
+ this.msg = "The account discriminator was already set on this account";
386
+ }
387
+ }
509
388
  exports.AccountDiscriminatorAlreadySet = AccountDiscriminatorAlreadySet;
510
- var AccountDiscriminatorNotFound = /** @class */ (function (_super) {
511
- __extends(AccountDiscriminatorNotFound, _super);
512
- function AccountDiscriminatorNotFound(logs) {
513
- var _this = _super.call(this, "3001: No 8 byte discriminator was found on the account") || this;
514
- _this.logs = logs;
515
- _this.code = 3001;
516
- _this.name = "AccountDiscriminatorNotFound";
517
- _this.msg = "No 8 byte discriminator was found on the account";
518
- return _this;
519
- }
520
- AccountDiscriminatorNotFound.code = 3001;
521
- return AccountDiscriminatorNotFound;
522
- }(Error));
389
+ AccountDiscriminatorAlreadySet.code = 3000;
390
+ class AccountDiscriminatorNotFound extends Error {
391
+ constructor(logs) {
392
+ super("3001: No 8 byte discriminator was found on the account");
393
+ this.logs = logs;
394
+ this.code = 3001;
395
+ this.name = "AccountDiscriminatorNotFound";
396
+ this.msg = "No 8 byte discriminator was found on the account";
397
+ }
398
+ }
523
399
  exports.AccountDiscriminatorNotFound = AccountDiscriminatorNotFound;
524
- var AccountDiscriminatorMismatch = /** @class */ (function (_super) {
525
- __extends(AccountDiscriminatorMismatch, _super);
526
- function AccountDiscriminatorMismatch(logs) {
527
- var _this = _super.call(this, "3002: 8 byte discriminator did not match what was expected") || this;
528
- _this.logs = logs;
529
- _this.code = 3002;
530
- _this.name = "AccountDiscriminatorMismatch";
531
- _this.msg = "8 byte discriminator did not match what was expected";
532
- return _this;
533
- }
534
- AccountDiscriminatorMismatch.code = 3002;
535
- return AccountDiscriminatorMismatch;
536
- }(Error));
400
+ AccountDiscriminatorNotFound.code = 3001;
401
+ class AccountDiscriminatorMismatch extends Error {
402
+ constructor(logs) {
403
+ super("3002: 8 byte discriminator did not match what was expected");
404
+ this.logs = logs;
405
+ this.code = 3002;
406
+ this.name = "AccountDiscriminatorMismatch";
407
+ this.msg = "8 byte discriminator did not match what was expected";
408
+ }
409
+ }
537
410
  exports.AccountDiscriminatorMismatch = AccountDiscriminatorMismatch;
538
- var AccountDidNotDeserialize = /** @class */ (function (_super) {
539
- __extends(AccountDidNotDeserialize, _super);
540
- function AccountDidNotDeserialize(logs) {
541
- var _this = _super.call(this, "3003: Failed to deserialize the account") || this;
542
- _this.logs = logs;
543
- _this.code = 3003;
544
- _this.name = "AccountDidNotDeserialize";
545
- _this.msg = "Failed to deserialize the account";
546
- return _this;
547
- }
548
- AccountDidNotDeserialize.code = 3003;
549
- return AccountDidNotDeserialize;
550
- }(Error));
411
+ AccountDiscriminatorMismatch.code = 3002;
412
+ class AccountDidNotDeserialize extends Error {
413
+ constructor(logs) {
414
+ super("3003: Failed to deserialize the account");
415
+ this.logs = logs;
416
+ this.code = 3003;
417
+ this.name = "AccountDidNotDeserialize";
418
+ this.msg = "Failed to deserialize the account";
419
+ }
420
+ }
551
421
  exports.AccountDidNotDeserialize = AccountDidNotDeserialize;
552
- var AccountDidNotSerialize = /** @class */ (function (_super) {
553
- __extends(AccountDidNotSerialize, _super);
554
- function AccountDidNotSerialize(logs) {
555
- var _this = _super.call(this, "3004: Failed to serialize the account") || this;
556
- _this.logs = logs;
557
- _this.code = 3004;
558
- _this.name = "AccountDidNotSerialize";
559
- _this.msg = "Failed to serialize the account";
560
- return _this;
561
- }
562
- AccountDidNotSerialize.code = 3004;
563
- return AccountDidNotSerialize;
564
- }(Error));
422
+ AccountDidNotDeserialize.code = 3003;
423
+ class AccountDidNotSerialize extends Error {
424
+ constructor(logs) {
425
+ super("3004: Failed to serialize the account");
426
+ this.logs = logs;
427
+ this.code = 3004;
428
+ this.name = "AccountDidNotSerialize";
429
+ this.msg = "Failed to serialize the account";
430
+ }
431
+ }
565
432
  exports.AccountDidNotSerialize = AccountDidNotSerialize;
566
- var AccountNotEnoughKeys = /** @class */ (function (_super) {
567
- __extends(AccountNotEnoughKeys, _super);
568
- function AccountNotEnoughKeys(logs) {
569
- var _this = _super.call(this, "3005: Not enough account keys given to the instruction") || this;
570
- _this.logs = logs;
571
- _this.code = 3005;
572
- _this.name = "AccountNotEnoughKeys";
573
- _this.msg = "Not enough account keys given to the instruction";
574
- return _this;
575
- }
576
- AccountNotEnoughKeys.code = 3005;
577
- return AccountNotEnoughKeys;
578
- }(Error));
433
+ AccountDidNotSerialize.code = 3004;
434
+ class AccountNotEnoughKeys extends Error {
435
+ constructor(logs) {
436
+ super("3005: Not enough account keys given to the instruction");
437
+ this.logs = logs;
438
+ this.code = 3005;
439
+ this.name = "AccountNotEnoughKeys";
440
+ this.msg = "Not enough account keys given to the instruction";
441
+ }
442
+ }
579
443
  exports.AccountNotEnoughKeys = AccountNotEnoughKeys;
580
- var AccountNotMutable = /** @class */ (function (_super) {
581
- __extends(AccountNotMutable, _super);
582
- function AccountNotMutable(logs) {
583
- var _this = _super.call(this, "3006: The given account is not mutable") || this;
584
- _this.logs = logs;
585
- _this.code = 3006;
586
- _this.name = "AccountNotMutable";
587
- _this.msg = "The given account is not mutable";
588
- return _this;
589
- }
590
- AccountNotMutable.code = 3006;
591
- return AccountNotMutable;
592
- }(Error));
444
+ AccountNotEnoughKeys.code = 3005;
445
+ class AccountNotMutable extends Error {
446
+ constructor(logs) {
447
+ super("3006: The given account is not mutable");
448
+ this.logs = logs;
449
+ this.code = 3006;
450
+ this.name = "AccountNotMutable";
451
+ this.msg = "The given account is not mutable";
452
+ }
453
+ }
593
454
  exports.AccountNotMutable = AccountNotMutable;
594
- var AccountOwnedByWrongProgram = /** @class */ (function (_super) {
595
- __extends(AccountOwnedByWrongProgram, _super);
596
- function AccountOwnedByWrongProgram(logs) {
597
- var _this = _super.call(this, "3007: The given account is owned by a different program than expected") || this;
598
- _this.logs = logs;
599
- _this.code = 3007;
600
- _this.name = "AccountOwnedByWrongProgram";
601
- _this.msg = "The given account is owned by a different program than expected";
602
- return _this;
603
- }
604
- AccountOwnedByWrongProgram.code = 3007;
605
- return AccountOwnedByWrongProgram;
606
- }(Error));
455
+ AccountNotMutable.code = 3006;
456
+ class AccountOwnedByWrongProgram extends Error {
457
+ constructor(logs) {
458
+ super("3007: The given account is owned by a different program than expected");
459
+ this.logs = logs;
460
+ this.code = 3007;
461
+ this.name = "AccountOwnedByWrongProgram";
462
+ this.msg = "The given account is owned by a different program than expected";
463
+ }
464
+ }
607
465
  exports.AccountOwnedByWrongProgram = AccountOwnedByWrongProgram;
608
- var InvalidProgramId = /** @class */ (function (_super) {
609
- __extends(InvalidProgramId, _super);
610
- function InvalidProgramId(logs) {
611
- var _this = _super.call(this, "3008: Program ID was not as expected") || this;
612
- _this.logs = logs;
613
- _this.code = 3008;
614
- _this.name = "InvalidProgramId";
615
- _this.msg = "Program ID was not as expected";
616
- return _this;
617
- }
618
- InvalidProgramId.code = 3008;
619
- return InvalidProgramId;
620
- }(Error));
466
+ AccountOwnedByWrongProgram.code = 3007;
467
+ class InvalidProgramId extends Error {
468
+ constructor(logs) {
469
+ super("3008: Program ID was not as expected");
470
+ this.logs = logs;
471
+ this.code = 3008;
472
+ this.name = "InvalidProgramId";
473
+ this.msg = "Program ID was not as expected";
474
+ }
475
+ }
621
476
  exports.InvalidProgramId = InvalidProgramId;
622
- var InvalidProgramExecutable = /** @class */ (function (_super) {
623
- __extends(InvalidProgramExecutable, _super);
624
- function InvalidProgramExecutable(logs) {
625
- var _this = _super.call(this, "3009: Program account is not executable") || this;
626
- _this.logs = logs;
627
- _this.code = 3009;
628
- _this.name = "InvalidProgramExecutable";
629
- _this.msg = "Program account is not executable";
630
- return _this;
631
- }
632
- InvalidProgramExecutable.code = 3009;
633
- return InvalidProgramExecutable;
634
- }(Error));
477
+ InvalidProgramId.code = 3008;
478
+ class InvalidProgramExecutable extends Error {
479
+ constructor(logs) {
480
+ super("3009: Program account is not executable");
481
+ this.logs = logs;
482
+ this.code = 3009;
483
+ this.name = "InvalidProgramExecutable";
484
+ this.msg = "Program account is not executable";
485
+ }
486
+ }
635
487
  exports.InvalidProgramExecutable = InvalidProgramExecutable;
636
- var AccountNotSigner = /** @class */ (function (_super) {
637
- __extends(AccountNotSigner, _super);
638
- function AccountNotSigner(logs) {
639
- var _this = _super.call(this, "3010: The given account did not sign") || this;
640
- _this.logs = logs;
641
- _this.code = 3010;
642
- _this.name = "AccountNotSigner";
643
- _this.msg = "The given account did not sign";
644
- return _this;
645
- }
646
- AccountNotSigner.code = 3010;
647
- return AccountNotSigner;
648
- }(Error));
488
+ InvalidProgramExecutable.code = 3009;
489
+ class AccountNotSigner extends Error {
490
+ constructor(logs) {
491
+ super("3010: The given account did not sign");
492
+ this.logs = logs;
493
+ this.code = 3010;
494
+ this.name = "AccountNotSigner";
495
+ this.msg = "The given account did not sign";
496
+ }
497
+ }
649
498
  exports.AccountNotSigner = AccountNotSigner;
650
- var AccountNotSystemOwned = /** @class */ (function (_super) {
651
- __extends(AccountNotSystemOwned, _super);
652
- function AccountNotSystemOwned(logs) {
653
- var _this = _super.call(this, "3011: The given account is not owned by the system program") || this;
654
- _this.logs = logs;
655
- _this.code = 3011;
656
- _this.name = "AccountNotSystemOwned";
657
- _this.msg = "The given account is not owned by the system program";
658
- return _this;
659
- }
660
- AccountNotSystemOwned.code = 3011;
661
- return AccountNotSystemOwned;
662
- }(Error));
499
+ AccountNotSigner.code = 3010;
500
+ class AccountNotSystemOwned extends Error {
501
+ constructor(logs) {
502
+ super("3011: The given account is not owned by the system program");
503
+ this.logs = logs;
504
+ this.code = 3011;
505
+ this.name = "AccountNotSystemOwned";
506
+ this.msg = "The given account is not owned by the system program";
507
+ }
508
+ }
663
509
  exports.AccountNotSystemOwned = AccountNotSystemOwned;
664
- var AccountNotInitialized = /** @class */ (function (_super) {
665
- __extends(AccountNotInitialized, _super);
666
- function AccountNotInitialized(logs) {
667
- var _this = _super.call(this, "3012: The program expected this account to be already initialized") || this;
668
- _this.logs = logs;
669
- _this.code = 3012;
670
- _this.name = "AccountNotInitialized";
671
- _this.msg = "The program expected this account to be already initialized";
672
- return _this;
673
- }
674
- AccountNotInitialized.code = 3012;
675
- return AccountNotInitialized;
676
- }(Error));
510
+ AccountNotSystemOwned.code = 3011;
511
+ class AccountNotInitialized extends Error {
512
+ constructor(logs) {
513
+ super("3012: The program expected this account to be already initialized");
514
+ this.logs = logs;
515
+ this.code = 3012;
516
+ this.name = "AccountNotInitialized";
517
+ this.msg = "The program expected this account to be already initialized";
518
+ }
519
+ }
677
520
  exports.AccountNotInitialized = AccountNotInitialized;
678
- var AccountNotProgramData = /** @class */ (function (_super) {
679
- __extends(AccountNotProgramData, _super);
680
- function AccountNotProgramData(logs) {
681
- var _this = _super.call(this, "3013: The given account is not a program data account") || this;
682
- _this.logs = logs;
683
- _this.code = 3013;
684
- _this.name = "AccountNotProgramData";
685
- _this.msg = "The given account is not a program data account";
686
- return _this;
687
- }
688
- AccountNotProgramData.code = 3013;
689
- return AccountNotProgramData;
690
- }(Error));
521
+ AccountNotInitialized.code = 3012;
522
+ class AccountNotProgramData extends Error {
523
+ constructor(logs) {
524
+ super("3013: The given account is not a program data account");
525
+ this.logs = logs;
526
+ this.code = 3013;
527
+ this.name = "AccountNotProgramData";
528
+ this.msg = "The given account is not a program data account";
529
+ }
530
+ }
691
531
  exports.AccountNotProgramData = AccountNotProgramData;
692
- var AccountNotAssociatedTokenAccount = /** @class */ (function (_super) {
693
- __extends(AccountNotAssociatedTokenAccount, _super);
694
- function AccountNotAssociatedTokenAccount(logs) {
695
- var _this = _super.call(this, "3014: The given account is not the associated token account") || this;
696
- _this.logs = logs;
697
- _this.code = 3014;
698
- _this.name = "AccountNotAssociatedTokenAccount";
699
- _this.msg = "The given account is not the associated token account";
700
- return _this;
701
- }
702
- AccountNotAssociatedTokenAccount.code = 3014;
703
- return AccountNotAssociatedTokenAccount;
704
- }(Error));
532
+ AccountNotProgramData.code = 3013;
533
+ class AccountNotAssociatedTokenAccount extends Error {
534
+ constructor(logs) {
535
+ super("3014: The given account is not the associated token account");
536
+ this.logs = logs;
537
+ this.code = 3014;
538
+ this.name = "AccountNotAssociatedTokenAccount";
539
+ this.msg = "The given account is not the associated token account";
540
+ }
541
+ }
705
542
  exports.AccountNotAssociatedTokenAccount = AccountNotAssociatedTokenAccount;
706
- var AccountSysvarMismatch = /** @class */ (function (_super) {
707
- __extends(AccountSysvarMismatch, _super);
708
- function AccountSysvarMismatch(logs) {
709
- var _this = _super.call(this, "3015: The given public key does not match the required sysvar") || this;
710
- _this.logs = logs;
711
- _this.code = 3015;
712
- _this.name = "AccountSysvarMismatch";
713
- _this.msg = "The given public key does not match the required sysvar";
714
- return _this;
715
- }
716
- AccountSysvarMismatch.code = 3015;
717
- return AccountSysvarMismatch;
718
- }(Error));
543
+ AccountNotAssociatedTokenAccount.code = 3014;
544
+ class AccountSysvarMismatch extends Error {
545
+ constructor(logs) {
546
+ super("3015: The given public key does not match the required sysvar");
547
+ this.logs = logs;
548
+ this.code = 3015;
549
+ this.name = "AccountSysvarMismatch";
550
+ this.msg = "The given public key does not match the required sysvar";
551
+ }
552
+ }
719
553
  exports.AccountSysvarMismatch = AccountSysvarMismatch;
720
- var AccountReallocExceedsLimit = /** @class */ (function (_super) {
721
- __extends(AccountReallocExceedsLimit, _super);
722
- function AccountReallocExceedsLimit(logs) {
723
- var _this = _super.call(this, "3016: The account reallocation exceeds the MAX_PERMITTED_DATA_INCREASE limit") || this;
724
- _this.logs = logs;
725
- _this.code = 3016;
726
- _this.name = "AccountReallocExceedsLimit";
727
- _this.msg = "The account reallocation exceeds the MAX_PERMITTED_DATA_INCREASE limit";
728
- return _this;
729
- }
730
- AccountReallocExceedsLimit.code = 3016;
731
- return AccountReallocExceedsLimit;
732
- }(Error));
554
+ AccountSysvarMismatch.code = 3015;
555
+ class AccountReallocExceedsLimit extends Error {
556
+ constructor(logs) {
557
+ super("3016: The account reallocation exceeds the MAX_PERMITTED_DATA_INCREASE limit");
558
+ this.logs = logs;
559
+ this.code = 3016;
560
+ this.name = "AccountReallocExceedsLimit";
561
+ this.msg = "The account reallocation exceeds the MAX_PERMITTED_DATA_INCREASE limit";
562
+ }
563
+ }
733
564
  exports.AccountReallocExceedsLimit = AccountReallocExceedsLimit;
734
- var AccountDuplicateReallocs = /** @class */ (function (_super) {
735
- __extends(AccountDuplicateReallocs, _super);
736
- function AccountDuplicateReallocs(logs) {
737
- var _this = _super.call(this, "3017: The account was duplicated for more than one reallocation") || this;
738
- _this.logs = logs;
739
- _this.code = 3017;
740
- _this.name = "AccountDuplicateReallocs";
741
- _this.msg = "The account was duplicated for more than one reallocation";
742
- return _this;
743
- }
744
- AccountDuplicateReallocs.code = 3017;
745
- return AccountDuplicateReallocs;
746
- }(Error));
565
+ AccountReallocExceedsLimit.code = 3016;
566
+ class AccountDuplicateReallocs extends Error {
567
+ constructor(logs) {
568
+ super("3017: The account was duplicated for more than one reallocation");
569
+ this.logs = logs;
570
+ this.code = 3017;
571
+ this.name = "AccountDuplicateReallocs";
572
+ this.msg = "The account was duplicated for more than one reallocation";
573
+ }
574
+ }
747
575
  exports.AccountDuplicateReallocs = AccountDuplicateReallocs;
748
- var DeclaredProgramIdMismatch = /** @class */ (function (_super) {
749
- __extends(DeclaredProgramIdMismatch, _super);
750
- function DeclaredProgramIdMismatch(logs) {
751
- var _this = _super.call(this, "4100: The declared program id does not match the actual program id") || this;
752
- _this.logs = logs;
753
- _this.code = 4100;
754
- _this.name = "DeclaredProgramIdMismatch";
755
- _this.msg = "The declared program id does not match the actual program id";
756
- return _this;
757
- }
758
- DeclaredProgramIdMismatch.code = 4100;
759
- return DeclaredProgramIdMismatch;
760
- }(Error));
576
+ AccountDuplicateReallocs.code = 3017;
577
+ class DeclaredProgramIdMismatch extends Error {
578
+ constructor(logs) {
579
+ super("4100: The declared program id does not match the actual program id");
580
+ this.logs = logs;
581
+ this.code = 4100;
582
+ this.name = "DeclaredProgramIdMismatch";
583
+ this.msg = "The declared program id does not match the actual program id";
584
+ }
585
+ }
761
586
  exports.DeclaredProgramIdMismatch = DeclaredProgramIdMismatch;
762
- var Deprecated = /** @class */ (function (_super) {
763
- __extends(Deprecated, _super);
764
- function Deprecated(logs) {
765
- var _this = _super.call(this, "5000: The API being used is deprecated and should no longer be used") || this;
766
- _this.logs = logs;
767
- _this.code = 5000;
768
- _this.name = "Deprecated";
769
- _this.msg = "The API being used is deprecated and should no longer be used";
770
- return _this;
771
- }
772
- Deprecated.code = 5000;
773
- return Deprecated;
774
- }(Error));
587
+ DeclaredProgramIdMismatch.code = 4100;
588
+ class Deprecated extends Error {
589
+ constructor(logs) {
590
+ super("5000: The API being used is deprecated and should no longer be used");
591
+ this.logs = logs;
592
+ this.code = 5000;
593
+ this.name = "Deprecated";
594
+ this.msg = "The API being used is deprecated and should no longer be used";
595
+ }
596
+ }
775
597
  exports.Deprecated = Deprecated;
598
+ Deprecated.code = 5000;
776
599
  function fromCode(code, logs) {
777
600
  switch (code) {
778
601
  case 100: