@streamflow/distributor 7.0.0-alpha.1 → 7.0.0-alpha.10
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/README.md +20 -5
- package/dist/cjs/index.js +1 -1
- package/dist/cjs/solana/client.js +199 -347
- package/dist/cjs/solana/constants.js +11 -9
- package/dist/cjs/solana/generated/accounts/ClaimStatus.js +52 -110
- package/dist/cjs/solana/generated/accounts/MerkleDistributor.js +67 -125
- package/dist/cjs/solana/generated/errors/anchor.js +540 -717
- package/dist/cjs/solana/generated/errors/custom.js +171 -243
- package/dist/cjs/solana/generated/errors/index.js +12 -51
- package/dist/cjs/solana/generated/instructions/claimLocked.js +7 -8
- package/dist/cjs/solana/generated/instructions/clawback.js +8 -9
- package/dist/cjs/solana/generated/instructions/closeClaim.js +8 -9
- package/dist/cjs/solana/generated/instructions/newClaim.js +10 -11
- package/dist/cjs/solana/generated/instructions/newDistributor.js +17 -12
- package/dist/cjs/solana/generated/instructions/setAdmin.js +8 -9
- package/dist/cjs/solana/generated/instructions/setClawbackReceiver.js +8 -9
- package/dist/cjs/solana/generated/programId.js +1 -1
- package/dist/cjs/solana/index.js +6 -6
- package/dist/cjs/solana/utils.js +38 -92
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/esm/solana/client.d.ts +3 -1
- package/dist/esm/solana/client.js +44 -18
- package/dist/esm/solana/constants.d.ts +3 -0
- package/dist/esm/solana/constants.js +3 -0
- package/dist/esm/solana/generated/accounts/ClaimStatus.d.ts +11 -11
- package/dist/esm/solana/generated/accounts/ClaimStatus.js +6 -6
- package/dist/esm/solana/generated/accounts/MerkleDistributor.d.ts +19 -19
- package/dist/esm/solana/generated/accounts/MerkleDistributor.js +10 -10
- package/dist/esm/solana/generated/instructions/newClaim.d.ts +3 -3
- package/dist/esm/solana/generated/instructions/newDistributor.d.ts +8 -8
- package/dist/esm/solana/generated/instructions/newDistributor.js +6 -0
- package/dist/esm/solana/index.d.ts +6 -6
- package/dist/esm/solana/index.js +6 -6
- package/dist/esm/solana/types.d.ts +9 -5
- package/package.json +7 -8
|
@@ -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
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
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
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
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
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
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
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
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
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
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
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
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
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
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
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
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
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
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
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
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
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
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
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
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
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
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
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
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
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
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
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
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
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
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
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
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
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
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
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
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
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
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
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
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
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
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
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
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
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
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
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
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
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
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
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
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
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
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
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
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
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
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
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
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
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
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
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
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
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
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
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
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
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
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
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
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
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
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
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
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
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
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
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
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
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
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
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
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
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
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
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
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
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
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
|
-
|
|
679
|
-
|
|
680
|
-
|
|
681
|
-
|
|
682
|
-
|
|
683
|
-
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
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
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
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
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
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
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
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
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
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
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
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
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
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:
|