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