@streamflow/distributor 6.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +674 -0
- package/README.md +127 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +27 -0
- package/dist/solana/client.d.ts +25 -0
- package/dist/solana/client.js +300 -0
- package/dist/solana/constants.d.ts +6 -0
- package/dist/solana/constants.js +11 -0
- package/dist/solana/generated/accounts/ClaimStatus.d.ts +72 -0
- package/dist/solana/generated/accounts/ClaimStatus.js +183 -0
- package/dist/solana/generated/accounts/MerkleDistributor.d.ts +138 -0
- package/dist/solana/generated/accounts/MerkleDistributor.js +238 -0
- package/dist/solana/generated/accounts/index.d.ts +4 -0
- package/dist/solana/generated/accounts/index.js +7 -0
- package/dist/solana/generated/errors/anchor.d.ts +434 -0
- package/dist/solana/generated/errors/anchor.js +889 -0
- package/dist/solana/generated/errors/custom.d.ts +162 -0
- package/dist/solana/generated/errors/custom.js +344 -0
- package/dist/solana/generated/errors/index.d.ts +5 -0
- package/dist/solana/generated/errors/index.js +104 -0
- package/dist/solana/generated/instructions/claimLocked.d.ts +21 -0
- package/dist/solana/generated/instructions/claimLocked.js +22 -0
- package/dist/solana/generated/instructions/clawback.d.ts +20 -0
- package/dist/solana/generated/instructions/clawback.js +22 -0
- package/dist/solana/generated/instructions/closeClaim.d.ts +13 -0
- package/dist/solana/generated/instructions/closeClaim.js +20 -0
- package/dist/solana/generated/instructions/index.d.ts +14 -0
- package/dist/solana/generated/instructions/index.js +17 -0
- package/dist/solana/generated/instructions/newClaim.d.ts +27 -0
- package/dist/solana/generated/instructions/newClaim.js +58 -0
- package/dist/solana/generated/instructions/newDistributor.d.ts +56 -0
- package/dist/solana/generated/instructions/newDistributor.js +94 -0
- package/dist/solana/generated/instructions/setAdmin.d.ts +10 -0
- package/dist/solana/generated/instructions/setAdmin.js +18 -0
- package/dist/solana/generated/instructions/setClawbackReceiver.d.ts +10 -0
- package/dist/solana/generated/instructions/setClawbackReceiver.js +18 -0
- package/dist/solana/generated/programId.d.ts +3 -0
- package/dist/solana/generated/programId.js +8 -0
- package/dist/solana/index.d.ts +4 -0
- package/dist/solana/index.js +37 -0
- package/dist/solana/types.d.ts +203 -0
- package/dist/solana/types.js +159 -0
- package/dist/solana/utils.d.ts +5 -0
- package/dist/solana/utils.js +87 -0
- package/package.json +46 -0
|
@@ -0,0 +1,889 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
+
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
|
+
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));
|
|
33
|
+
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));
|
|
47
|
+
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));
|
|
61
|
+
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));
|
|
75
|
+
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));
|
|
89
|
+
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));
|
|
103
|
+
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));
|
|
117
|
+
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));
|
|
131
|
+
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));
|
|
145
|
+
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));
|
|
159
|
+
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));
|
|
173
|
+
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));
|
|
187
|
+
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));
|
|
201
|
+
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));
|
|
215
|
+
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));
|
|
229
|
+
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));
|
|
243
|
+
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));
|
|
257
|
+
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));
|
|
271
|
+
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));
|
|
285
|
+
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));
|
|
299
|
+
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));
|
|
313
|
+
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));
|
|
327
|
+
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));
|
|
341
|
+
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));
|
|
355
|
+
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));
|
|
369
|
+
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));
|
|
383
|
+
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));
|
|
397
|
+
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));
|
|
411
|
+
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));
|
|
425
|
+
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));
|
|
439
|
+
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));
|
|
453
|
+
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));
|
|
467
|
+
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));
|
|
481
|
+
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));
|
|
495
|
+
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));
|
|
509
|
+
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));
|
|
523
|
+
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));
|
|
537
|
+
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));
|
|
551
|
+
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));
|
|
565
|
+
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));
|
|
579
|
+
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));
|
|
593
|
+
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));
|
|
607
|
+
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));
|
|
621
|
+
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));
|
|
635
|
+
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));
|
|
649
|
+
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));
|
|
663
|
+
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));
|
|
677
|
+
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));
|
|
691
|
+
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));
|
|
705
|
+
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));
|
|
719
|
+
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));
|
|
733
|
+
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));
|
|
747
|
+
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));
|
|
761
|
+
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));
|
|
775
|
+
exports.Deprecated = Deprecated;
|
|
776
|
+
function fromCode(code, logs) {
|
|
777
|
+
switch (code) {
|
|
778
|
+
case 100:
|
|
779
|
+
return new InstructionMissing(logs);
|
|
780
|
+
case 101:
|
|
781
|
+
return new InstructionFallbackNotFound(logs);
|
|
782
|
+
case 102:
|
|
783
|
+
return new InstructionDidNotDeserialize(logs);
|
|
784
|
+
case 103:
|
|
785
|
+
return new InstructionDidNotSerialize(logs);
|
|
786
|
+
case 1000:
|
|
787
|
+
return new IdlInstructionStub(logs);
|
|
788
|
+
case 1001:
|
|
789
|
+
return new IdlInstructionInvalidProgram(logs);
|
|
790
|
+
case 2000:
|
|
791
|
+
return new ConstraintMut(logs);
|
|
792
|
+
case 2001:
|
|
793
|
+
return new ConstraintHasOne(logs);
|
|
794
|
+
case 2002:
|
|
795
|
+
return new ConstraintSigner(logs);
|
|
796
|
+
case 2003:
|
|
797
|
+
return new ConstraintRaw(logs);
|
|
798
|
+
case 2004:
|
|
799
|
+
return new ConstraintOwner(logs);
|
|
800
|
+
case 2005:
|
|
801
|
+
return new ConstraintRentExempt(logs);
|
|
802
|
+
case 2006:
|
|
803
|
+
return new ConstraintSeeds(logs);
|
|
804
|
+
case 2007:
|
|
805
|
+
return new ConstraintExecutable(logs);
|
|
806
|
+
case 2008:
|
|
807
|
+
return new ConstraintState(logs);
|
|
808
|
+
case 2009:
|
|
809
|
+
return new ConstraintAssociated(logs);
|
|
810
|
+
case 2010:
|
|
811
|
+
return new ConstraintAssociatedInit(logs);
|
|
812
|
+
case 2011:
|
|
813
|
+
return new ConstraintClose(logs);
|
|
814
|
+
case 2012:
|
|
815
|
+
return new ConstraintAddress(logs);
|
|
816
|
+
case 2013:
|
|
817
|
+
return new ConstraintZero(logs);
|
|
818
|
+
case 2014:
|
|
819
|
+
return new ConstraintTokenMint(logs);
|
|
820
|
+
case 2015:
|
|
821
|
+
return new ConstraintTokenOwner(logs);
|
|
822
|
+
case 2016:
|
|
823
|
+
return new ConstraintMintMintAuthority(logs);
|
|
824
|
+
case 2017:
|
|
825
|
+
return new ConstraintMintFreezeAuthority(logs);
|
|
826
|
+
case 2018:
|
|
827
|
+
return new ConstraintMintDecimals(logs);
|
|
828
|
+
case 2019:
|
|
829
|
+
return new ConstraintSpace(logs);
|
|
830
|
+
case 2020:
|
|
831
|
+
return new ConstraintAccountIsNone(logs);
|
|
832
|
+
case 2500:
|
|
833
|
+
return new RequireViolated(logs);
|
|
834
|
+
case 2501:
|
|
835
|
+
return new RequireEqViolated(logs);
|
|
836
|
+
case 2502:
|
|
837
|
+
return new RequireKeysEqViolated(logs);
|
|
838
|
+
case 2503:
|
|
839
|
+
return new RequireNeqViolated(logs);
|
|
840
|
+
case 2504:
|
|
841
|
+
return new RequireKeysNeqViolated(logs);
|
|
842
|
+
case 2505:
|
|
843
|
+
return new RequireGtViolated(logs);
|
|
844
|
+
case 2506:
|
|
845
|
+
return new RequireGteViolated(logs);
|
|
846
|
+
case 3000:
|
|
847
|
+
return new AccountDiscriminatorAlreadySet(logs);
|
|
848
|
+
case 3001:
|
|
849
|
+
return new AccountDiscriminatorNotFound(logs);
|
|
850
|
+
case 3002:
|
|
851
|
+
return new AccountDiscriminatorMismatch(logs);
|
|
852
|
+
case 3003:
|
|
853
|
+
return new AccountDidNotDeserialize(logs);
|
|
854
|
+
case 3004:
|
|
855
|
+
return new AccountDidNotSerialize(logs);
|
|
856
|
+
case 3005:
|
|
857
|
+
return new AccountNotEnoughKeys(logs);
|
|
858
|
+
case 3006:
|
|
859
|
+
return new AccountNotMutable(logs);
|
|
860
|
+
case 3007:
|
|
861
|
+
return new AccountOwnedByWrongProgram(logs);
|
|
862
|
+
case 3008:
|
|
863
|
+
return new InvalidProgramId(logs);
|
|
864
|
+
case 3009:
|
|
865
|
+
return new InvalidProgramExecutable(logs);
|
|
866
|
+
case 3010:
|
|
867
|
+
return new AccountNotSigner(logs);
|
|
868
|
+
case 3011:
|
|
869
|
+
return new AccountNotSystemOwned(logs);
|
|
870
|
+
case 3012:
|
|
871
|
+
return new AccountNotInitialized(logs);
|
|
872
|
+
case 3013:
|
|
873
|
+
return new AccountNotProgramData(logs);
|
|
874
|
+
case 3014:
|
|
875
|
+
return new AccountNotAssociatedTokenAccount(logs);
|
|
876
|
+
case 3015:
|
|
877
|
+
return new AccountSysvarMismatch(logs);
|
|
878
|
+
case 3016:
|
|
879
|
+
return new AccountReallocExceedsLimit(logs);
|
|
880
|
+
case 3017:
|
|
881
|
+
return new AccountDuplicateReallocs(logs);
|
|
882
|
+
case 4100:
|
|
883
|
+
return new DeclaredProgramIdMismatch(logs);
|
|
884
|
+
case 5000:
|
|
885
|
+
return new Deprecated(logs);
|
|
886
|
+
}
|
|
887
|
+
return null;
|
|
888
|
+
}
|
|
889
|
+
exports.fromCode = fromCode;
|