@metaplex-foundation/genesis 0.36.1 → 0.37.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/dist/src/generated/accounts/bondingCurveCreatorFeeUnwrap.d.ts +30 -0
- package/dist/src/generated/accounts/bondingCurveCreatorFeeUnwrap.js +78 -0
- package/dist/src/generated/accounts/bondingCurveCreatorFeeUnwrap.js.map +1 -0
- package/dist/src/generated/accounts/index.d.ts +2 -0
- package/dist/src/generated/accounts/index.js +2 -0
- package/dist/src/generated/accounts/index.js.map +1 -1
- package/dist/src/generated/accounts/raydiumCreatorFeeUnwrap.d.ts +30 -0
- package/dist/src/generated/accounts/raydiumCreatorFeeUnwrap.js +78 -0
- package/dist/src/generated/accounts/raydiumCreatorFeeUnwrap.js.map +1 -0
- package/dist/src/generated/errors/genesis.d.ts +18 -0
- package/dist/src/generated/errors/genesis.js +34 -1
- package/dist/src/generated/errors/genesis.js.map +1 -1
- package/dist/src/generated/instructions/addLaunchPoolBucketV2.d.ts +3 -1
- package/dist/src/generated/instructions/addLaunchPoolBucketV2.js +43 -0
- package/dist/src/generated/instructions/addLaunchPoolBucketV2.js.map +1 -1
- package/dist/src/generated/instructions/claimBondingCurveCreatorFeeV2.d.ts +4 -2
- package/dist/src/generated/instructions/claimBondingCurveCreatorFeeV2.js +17 -5
- package/dist/src/generated/instructions/claimBondingCurveCreatorFeeV2.js.map +1 -1
- package/dist/src/generated/instructions/claimRaydiumCreatorFeeV2.d.ts +5 -3
- package/dist/src/generated/instructions/claimRaydiumCreatorFeeV2.js +16 -5
- package/dist/src/generated/instructions/claimRaydiumCreatorFeeV2.js.map +1 -1
- package/dist/src/generated/types/index.d.ts +1 -0
- package/dist/src/generated/types/index.js +1 -0
- package/dist/src/generated/types/index.js.map +1 -1
- package/dist/src/generated/types/launchPoolV2Extension.d.ts +8 -1
- package/dist/src/generated/types/launchPoolV2Extension.js +6 -0
- package/dist/src/generated/types/launchPoolV2Extension.js.map +1 -1
- package/dist/src/generated/types/launchPoolV2ExtensionType.d.ts +2 -1
- package/dist/src/generated/types/launchPoolV2ExtensionType.js +1 -0
- package/dist/src/generated/types/launchPoolV2ExtensionType.js.map +1 -1
- package/dist/src/generated/types/launchPoolV2Extensions.d.ts +3 -1
- package/dist/src/generated/types/launchPoolV2Extensions.js +44 -1
- package/dist/src/generated/types/launchPoolV2Extensions.js.map +1 -1
- package/dist/src/generated/types/softCap.d.ts +15 -0
- package/dist/src/generated/types/softCap.js +18 -0
- package/dist/src/generated/types/softCap.js.map +1 -0
- package/package.json +5 -2
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the kinobi library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun kinobi to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/metaplex-foundation/kinobi
|
|
7
|
+
*/
|
|
8
|
+
import { Account, Context, Pda, PublicKey, RpcAccount, RpcGetAccountOptions, RpcGetAccountsOptions } from '@metaplex-foundation/umi';
|
|
9
|
+
import { Serializer } from '@metaplex-foundation/umi/serializers';
|
|
10
|
+
export type BondingCurveCreatorFeeUnwrap = Account<BondingCurveCreatorFeeUnwrapAccountData>;
|
|
11
|
+
export type BondingCurveCreatorFeeUnwrapAccountData = {
|
|
12
|
+
data: Uint8Array;
|
|
13
|
+
};
|
|
14
|
+
export type BondingCurveCreatorFeeUnwrapAccountDataArgs = BondingCurveCreatorFeeUnwrapAccountData;
|
|
15
|
+
export declare function getBondingCurveCreatorFeeUnwrapAccountDataSerializer(): Serializer<BondingCurveCreatorFeeUnwrapAccountDataArgs, BondingCurveCreatorFeeUnwrapAccountData>;
|
|
16
|
+
export declare function deserializeBondingCurveCreatorFeeUnwrap(rawAccount: RpcAccount): BondingCurveCreatorFeeUnwrap;
|
|
17
|
+
export declare function fetchBondingCurveCreatorFeeUnwrap(context: Pick<Context, 'rpc'>, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise<BondingCurveCreatorFeeUnwrap>;
|
|
18
|
+
export declare function safeFetchBondingCurveCreatorFeeUnwrap(context: Pick<Context, 'rpc'>, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise<BondingCurveCreatorFeeUnwrap | null>;
|
|
19
|
+
export declare function fetchAllBondingCurveCreatorFeeUnwrap(context: Pick<Context, 'rpc'>, publicKeys: Array<PublicKey | Pda>, options?: RpcGetAccountsOptions): Promise<BondingCurveCreatorFeeUnwrap[]>;
|
|
20
|
+
export declare function safeFetchAllBondingCurveCreatorFeeUnwrap(context: Pick<Context, 'rpc'>, publicKeys: Array<PublicKey | Pda>, options?: RpcGetAccountsOptions): Promise<BondingCurveCreatorFeeUnwrap[]>;
|
|
21
|
+
export declare function getBondingCurveCreatorFeeUnwrapGpaBuilder(context: Pick<Context, 'rpc' | 'programs'>): import("@metaplex-foundation/umi").GpaBuilder<BondingCurveCreatorFeeUnwrap, {
|
|
22
|
+
data: Uint8Array;
|
|
23
|
+
}>;
|
|
24
|
+
export declare function getBondingCurveCreatorFeeUnwrapSize(): number;
|
|
25
|
+
export declare function findBondingCurveCreatorFeeUnwrapPda(context: Pick<Context, 'eddsa' | 'programs'>, seeds: {
|
|
26
|
+
/** The address of the bonding curve bucket */
|
|
27
|
+
bucket: PublicKey;
|
|
28
|
+
}): Pda;
|
|
29
|
+
export declare function fetchBondingCurveCreatorFeeUnwrapFromSeeds(context: Pick<Context, 'eddsa' | 'programs' | 'rpc'>, seeds: Parameters<typeof findBondingCurveCreatorFeeUnwrapPda>[1], options?: RpcGetAccountOptions): Promise<BondingCurveCreatorFeeUnwrap>;
|
|
30
|
+
export declare function safeFetchBondingCurveCreatorFeeUnwrapFromSeeds(context: Pick<Context, 'eddsa' | 'programs' | 'rpc'>, seeds: Parameters<typeof findBondingCurveCreatorFeeUnwrapPda>[1], options?: RpcGetAccountOptions): Promise<BondingCurveCreatorFeeUnwrap | null>;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This code was AUTOGENERATED using the kinobi library.
|
|
4
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
5
|
+
* to add features, then rerun kinobi to update it.
|
|
6
|
+
*
|
|
7
|
+
* @see https://github.com/metaplex-foundation/kinobi
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.safeFetchBondingCurveCreatorFeeUnwrapFromSeeds = exports.fetchBondingCurveCreatorFeeUnwrapFromSeeds = exports.findBondingCurveCreatorFeeUnwrapPda = exports.getBondingCurveCreatorFeeUnwrapSize = exports.getBondingCurveCreatorFeeUnwrapGpaBuilder = exports.safeFetchAllBondingCurveCreatorFeeUnwrap = exports.fetchAllBondingCurveCreatorFeeUnwrap = exports.safeFetchBondingCurveCreatorFeeUnwrap = exports.fetchBondingCurveCreatorFeeUnwrap = exports.deserializeBondingCurveCreatorFeeUnwrap = exports.getBondingCurveCreatorFeeUnwrapAccountDataSerializer = void 0;
|
|
11
|
+
const umi_1 = require("@metaplex-foundation/umi");
|
|
12
|
+
const serializers_1 = require("@metaplex-foundation/umi/serializers");
|
|
13
|
+
function getBondingCurveCreatorFeeUnwrapAccountDataSerializer() {
|
|
14
|
+
return (0, serializers_1.struct)([['data', (0, serializers_1.bytes)()]], {
|
|
15
|
+
description: 'BondingCurveCreatorFeeUnwrapAccountData',
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
exports.getBondingCurveCreatorFeeUnwrapAccountDataSerializer = getBondingCurveCreatorFeeUnwrapAccountDataSerializer;
|
|
19
|
+
function deserializeBondingCurveCreatorFeeUnwrap(rawAccount) {
|
|
20
|
+
return (0, umi_1.deserializeAccount)(rawAccount, getBondingCurveCreatorFeeUnwrapAccountDataSerializer());
|
|
21
|
+
}
|
|
22
|
+
exports.deserializeBondingCurveCreatorFeeUnwrap = deserializeBondingCurveCreatorFeeUnwrap;
|
|
23
|
+
async function fetchBondingCurveCreatorFeeUnwrap(context, publicKey, options) {
|
|
24
|
+
const maybeAccount = await context.rpc.getAccount((0, umi_1.publicKey)(publicKey, false), options);
|
|
25
|
+
(0, umi_1.assertAccountExists)(maybeAccount, 'BondingCurveCreatorFeeUnwrap');
|
|
26
|
+
return deserializeBondingCurveCreatorFeeUnwrap(maybeAccount);
|
|
27
|
+
}
|
|
28
|
+
exports.fetchBondingCurveCreatorFeeUnwrap = fetchBondingCurveCreatorFeeUnwrap;
|
|
29
|
+
async function safeFetchBondingCurveCreatorFeeUnwrap(context, publicKey, options) {
|
|
30
|
+
const maybeAccount = await context.rpc.getAccount((0, umi_1.publicKey)(publicKey, false), options);
|
|
31
|
+
return maybeAccount.exists
|
|
32
|
+
? deserializeBondingCurveCreatorFeeUnwrap(maybeAccount)
|
|
33
|
+
: null;
|
|
34
|
+
}
|
|
35
|
+
exports.safeFetchBondingCurveCreatorFeeUnwrap = safeFetchBondingCurveCreatorFeeUnwrap;
|
|
36
|
+
async function fetchAllBondingCurveCreatorFeeUnwrap(context, publicKeys, options) {
|
|
37
|
+
const maybeAccounts = await context.rpc.getAccounts(publicKeys.map((key) => (0, umi_1.publicKey)(key, false)), options);
|
|
38
|
+
return maybeAccounts.map((maybeAccount) => {
|
|
39
|
+
(0, umi_1.assertAccountExists)(maybeAccount, 'BondingCurveCreatorFeeUnwrap');
|
|
40
|
+
return deserializeBondingCurveCreatorFeeUnwrap(maybeAccount);
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
exports.fetchAllBondingCurveCreatorFeeUnwrap = fetchAllBondingCurveCreatorFeeUnwrap;
|
|
44
|
+
async function safeFetchAllBondingCurveCreatorFeeUnwrap(context, publicKeys, options) {
|
|
45
|
+
const maybeAccounts = await context.rpc.getAccounts(publicKeys.map((key) => (0, umi_1.publicKey)(key, false)), options);
|
|
46
|
+
return maybeAccounts
|
|
47
|
+
.filter((maybeAccount) => maybeAccount.exists)
|
|
48
|
+
.map((maybeAccount) => deserializeBondingCurveCreatorFeeUnwrap(maybeAccount));
|
|
49
|
+
}
|
|
50
|
+
exports.safeFetchAllBondingCurveCreatorFeeUnwrap = safeFetchAllBondingCurveCreatorFeeUnwrap;
|
|
51
|
+
function getBondingCurveCreatorFeeUnwrapGpaBuilder(context) {
|
|
52
|
+
const programId = context.programs.getPublicKey('genesis', 'GNS1S5J5AspKXgpjz6SvKL66kPaKWAhaGRhCqPRxii2B');
|
|
53
|
+
return (0, umi_1.gpaBuilder)(context, programId)
|
|
54
|
+
.registerFields({ data: [0, (0, serializers_1.bytes)()] })
|
|
55
|
+
.deserializeUsing((account) => deserializeBondingCurveCreatorFeeUnwrap(account));
|
|
56
|
+
}
|
|
57
|
+
exports.getBondingCurveCreatorFeeUnwrapGpaBuilder = getBondingCurveCreatorFeeUnwrapGpaBuilder;
|
|
58
|
+
function getBondingCurveCreatorFeeUnwrapSize() {
|
|
59
|
+
return 0;
|
|
60
|
+
}
|
|
61
|
+
exports.getBondingCurveCreatorFeeUnwrapSize = getBondingCurveCreatorFeeUnwrapSize;
|
|
62
|
+
function findBondingCurveCreatorFeeUnwrapPda(context, seeds) {
|
|
63
|
+
const programId = context.programs.getPublicKey('genesis', 'GNS1S5J5AspKXgpjz6SvKL66kPaKWAhaGRhCqPRxii2B');
|
|
64
|
+
return context.eddsa.findPda(programId, [
|
|
65
|
+
(0, serializers_1.string)({ size: 'variable' }).serialize('bonding_curve_creator_fee_unwrap'),
|
|
66
|
+
(0, serializers_1.publicKey)().serialize(seeds.bucket),
|
|
67
|
+
]);
|
|
68
|
+
}
|
|
69
|
+
exports.findBondingCurveCreatorFeeUnwrapPda = findBondingCurveCreatorFeeUnwrapPda;
|
|
70
|
+
async function fetchBondingCurveCreatorFeeUnwrapFromSeeds(context, seeds, options) {
|
|
71
|
+
return fetchBondingCurveCreatorFeeUnwrap(context, findBondingCurveCreatorFeeUnwrapPda(context, seeds), options);
|
|
72
|
+
}
|
|
73
|
+
exports.fetchBondingCurveCreatorFeeUnwrapFromSeeds = fetchBondingCurveCreatorFeeUnwrapFromSeeds;
|
|
74
|
+
async function safeFetchBondingCurveCreatorFeeUnwrapFromSeeds(context, seeds, options) {
|
|
75
|
+
return safeFetchBondingCurveCreatorFeeUnwrap(context, findBondingCurveCreatorFeeUnwrapPda(context, seeds), options);
|
|
76
|
+
}
|
|
77
|
+
exports.safeFetchBondingCurveCreatorFeeUnwrapFromSeeds = safeFetchBondingCurveCreatorFeeUnwrapFromSeeds;
|
|
78
|
+
//# sourceMappingURL=bondingCurveCreatorFeeUnwrap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"bondingCurveCreatorFeeUnwrap.js","sourceRoot":"","sources":["../../../../src/generated/accounts/bondingCurveCreatorFeeUnwrap.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;AAEH,kDAYkC;AAClC,sEAM8C;AAU9C,SAAgB,oDAAoD;IAIlE,OAAO,IAAA,oBAAM,EAA0C,CAAC,CAAC,MAAM,EAAE,IAAA,mBAAK,GAAE,CAAC,CAAC,EAAE;QAC1E,WAAW,EAAE,yCAAyC;KACvD,CAGA,CAAC;AACJ,CAAC;AAVD,oHAUC;AAED,SAAgB,uCAAuC,CACrD,UAAsB;IAEtB,OAAO,IAAA,wBAAkB,EACvB,UAAU,EACV,oDAAoD,EAAE,CACvD,CAAC;AACJ,CAAC;AAPD,0FAOC;AAEM,KAAK,UAAU,iCAAiC,CACrD,OAA6B,EAC7B,SAA0B,EAC1B,OAA8B;IAE9B,MAAM,YAAY,GAAG,MAAM,OAAO,CAAC,GAAG,CAAC,UAAU,CAC/C,IAAA,eAAW,EAAC,SAAS,EAAE,KAAK,CAAC,EAC7B,OAAO,CACR,CAAC;IACF,IAAA,yBAAmB,EAAC,YAAY,EAAE,8BAA8B,CAAC,CAAC;IAClE,OAAO,uCAAuC,CAAC,YAAY,CAAC,CAAC;AAC/D,CAAC;AAXD,8EAWC;AAEM,KAAK,UAAU,qC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ACR,CAAC;AACJ,CAAC;AAVD,wGAUC"}
|
|
@@ -10,6 +10,7 @@ export * from './auctionBidV1';
|
|
|
10
10
|
export * from './auctionBucketV1';
|
|
11
11
|
export * from './bondingCurveBucketV1';
|
|
12
12
|
export * from './bondingCurveBucketV2';
|
|
13
|
+
export * from './bondingCurveCreatorFeeUnwrap';
|
|
13
14
|
export * from './distributionBucketV1';
|
|
14
15
|
export * from './genesisAccountV1';
|
|
15
16
|
export * from './genesisAccountV2';
|
|
@@ -26,6 +27,7 @@ export * from './pumpBucketV1';
|
|
|
26
27
|
export * from './raydiumBucketSigner';
|
|
27
28
|
export * from './raydiumCpmmBucketV1';
|
|
28
29
|
export * from './raydiumCpmmBucketV2';
|
|
30
|
+
export * from './raydiumCreatorFeeUnwrap';
|
|
29
31
|
export * from './raydiumSigner';
|
|
30
32
|
export * from './streamflowBucketV1';
|
|
31
33
|
export * from './streamflowBucketV2';
|
|
@@ -26,6 +26,7 @@ __exportStar(require("./auctionBidV1"), exports);
|
|
|
26
26
|
__exportStar(require("./auctionBucketV1"), exports);
|
|
27
27
|
__exportStar(require("./bondingCurveBucketV1"), exports);
|
|
28
28
|
__exportStar(require("./bondingCurveBucketV2"), exports);
|
|
29
|
+
__exportStar(require("./bondingCurveCreatorFeeUnwrap"), exports);
|
|
29
30
|
__exportStar(require("./distributionBucketV1"), exports);
|
|
30
31
|
__exportStar(require("./genesisAccountV1"), exports);
|
|
31
32
|
__exportStar(require("./genesisAccountV2"), exports);
|
|
@@ -42,6 +43,7 @@ __exportStar(require("./pumpBucketV1"), exports);
|
|
|
42
43
|
__exportStar(require("./raydiumBucketSigner"), exports);
|
|
43
44
|
__exportStar(require("./raydiumCpmmBucketV1"), exports);
|
|
44
45
|
__exportStar(require("./raydiumCpmmBucketV2"), exports);
|
|
46
|
+
__exportStar(require("./raydiumCreatorFeeUnwrap"), exports);
|
|
45
47
|
__exportStar(require("./raydiumSigner"), exports);
|
|
46
48
|
__exportStar(require("./streamflowBucketV1"), exports);
|
|
47
49
|
__exportStar(require("./streamflowBucketV2"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/generated/accounts/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;;;;;;;;;;;AAEH,qDAAmC;AACnC,iDAA+B;AAC/B,oDAAkC;AAClC,yDAAuC;AACvC,yDAAuC;AACvC,yDAAuC;AACvC,qDAAmC;AACnC,qDAAmC;AACnC,uDAAqC;AACrC,uDAAqC;AACrC,wDAAsC;AACtC,wDAAsC;AACtC,oDAAkC;AAClC,oDAAkC;AAClC,oDAAkC;AAClC,qDAAmC;AACnC,qDAAmC;AACnC,iDAA+B;AAC/B,wDAAsC;AACtC,wDAAsC;AACtC,wDAAsC;AACtC,kDAAgC;AAChC,uDAAqC;AACrC,uDAAqC;AACrC,uDAAqC;AACrC,qDAAmC;AACnC,qDAAmC;AACnC,kDAAgC;AAChC,kDAAgC;AAChC,mDAAiC;AACjC,mDAAiC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/generated/accounts/index.ts"],"names":[],"mappings":";AAAA;;;;;;GAMG;;;;;;;;;;;;;;;;AAEH,qDAAmC;AACnC,iDAA+B;AAC/B,oDAAkC;AAClC,yDAAuC;AACvC,yDAAuC;AACvC,iEAA+C;AAC/C,yDAAuC;AACvC,qDAAmC;AACnC,qDAAmC;AACnC,uDAAqC;AACrC,uDAAqC;AACrC,wDAAsC;AACtC,wDAAsC;AACtC,oDAAkC;AAClC,oDAAkC;AAClC,oDAAkC;AAClC,qDAAmC;AACnC,qDAAmC;AACnC,iDAA+B;AAC/B,wDAAsC;AACtC,wDAAsC;AACtC,wDAAsC;AACtC,4DAA0C;AAC1C,kDAAgC;AAChC,uDAAqC;AACrC,uDAAqC;AACrC,uDAAqC;AACrC,qDAAmC;AACnC,qDAAmC;AACnC,kDAAgC;AAChC,kDAAgC;AAChC,mDAAiC;AACjC,mDAAiC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This code was AUTOGENERATED using the kinobi library.
|
|
3
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
4
|
+
* to add features, then rerun kinobi to update it.
|
|
5
|
+
*
|
|
6
|
+
* @see https://github.com/metaplex-foundation/kinobi
|
|
7
|
+
*/
|
|
8
|
+
import { Account, Context, Pda, PublicKey, RpcAccount, RpcGetAccountOptions, RpcGetAccountsOptions } from '@metaplex-foundation/umi';
|
|
9
|
+
import { Serializer } from '@metaplex-foundation/umi/serializers';
|
|
10
|
+
export type RaydiumCreatorFeeUnwrap = Account<RaydiumCreatorFeeUnwrapAccountData>;
|
|
11
|
+
export type RaydiumCreatorFeeUnwrapAccountData = {
|
|
12
|
+
data: Uint8Array;
|
|
13
|
+
};
|
|
14
|
+
export type RaydiumCreatorFeeUnwrapAccountDataArgs = RaydiumCreatorFeeUnwrapAccountData;
|
|
15
|
+
export declare function getRaydiumCreatorFeeUnwrapAccountDataSerializer(): Serializer<RaydiumCreatorFeeUnwrapAccountDataArgs, RaydiumCreatorFeeUnwrapAccountData>;
|
|
16
|
+
export declare function deserializeRaydiumCreatorFeeUnwrap(rawAccount: RpcAccount): RaydiumCreatorFeeUnwrap;
|
|
17
|
+
export declare function fetchRaydiumCreatorFeeUnwrap(context: Pick<Context, 'rpc'>, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise<RaydiumCreatorFeeUnwrap>;
|
|
18
|
+
export declare function safeFetchRaydiumCreatorFeeUnwrap(context: Pick<Context, 'rpc'>, publicKey: PublicKey | Pda, options?: RpcGetAccountOptions): Promise<RaydiumCreatorFeeUnwrap | null>;
|
|
19
|
+
export declare function fetchAllRaydiumCreatorFeeUnwrap(context: Pick<Context, 'rpc'>, publicKeys: Array<PublicKey | Pda>, options?: RpcGetAccountsOptions): Promise<RaydiumCreatorFeeUnwrap[]>;
|
|
20
|
+
export declare function safeFetchAllRaydiumCreatorFeeUnwrap(context: Pick<Context, 'rpc'>, publicKeys: Array<PublicKey | Pda>, options?: RpcGetAccountsOptions): Promise<RaydiumCreatorFeeUnwrap[]>;
|
|
21
|
+
export declare function getRaydiumCreatorFeeUnwrapGpaBuilder(context: Pick<Context, 'rpc' | 'programs'>): import("@metaplex-foundation/umi").GpaBuilder<RaydiumCreatorFeeUnwrap, {
|
|
22
|
+
data: Uint8Array;
|
|
23
|
+
}>;
|
|
24
|
+
export declare function getRaydiumCreatorFeeUnwrapSize(): number;
|
|
25
|
+
export declare function findRaydiumCreatorFeeUnwrapPda(context: Pick<Context, 'eddsa' | 'programs'>, seeds: {
|
|
26
|
+
/** The address of the Raydium CPMM bucket */
|
|
27
|
+
bucket: PublicKey;
|
|
28
|
+
}): Pda;
|
|
29
|
+
export declare function fetchRaydiumCreatorFeeUnwrapFromSeeds(context: Pick<Context, 'eddsa' | 'programs' | 'rpc'>, seeds: Parameters<typeof findRaydiumCreatorFeeUnwrapPda>[1], options?: RpcGetAccountOptions): Promise<RaydiumCreatorFeeUnwrap>;
|
|
30
|
+
export declare function safeFetchRaydiumCreatorFeeUnwrapFromSeeds(context: Pick<Context, 'eddsa' | 'programs' | 'rpc'>, seeds: Parameters<typeof findRaydiumCreatorFeeUnwrapPda>[1], options?: RpcGetAccountOptions): Promise<RaydiumCreatorFeeUnwrap | null>;
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* This code was AUTOGENERATED using the kinobi library.
|
|
4
|
+
* Please DO NOT EDIT THIS FILE, instead use visitors
|
|
5
|
+
* to add features, then rerun kinobi to update it.
|
|
6
|
+
*
|
|
7
|
+
* @see https://github.com/metaplex-foundation/kinobi
|
|
8
|
+
*/
|
|
9
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
10
|
+
exports.safeFetchRaydiumCreatorFeeUnwrapFromSeeds = exports.fetchRaydiumCreatorFeeUnwrapFromSeeds = exports.findRaydiumCreatorFeeUnwrapPda = exports.getRaydiumCreatorFeeUnwrapSize = exports.getRaydiumCreatorFeeUnwrapGpaBuilder = exports.safeFetchAllRaydiumCreatorFeeUnwrap = exports.fetchAllRaydiumCreatorFeeUnwrap = exports.safeFetchRaydiumCreatorFeeUnwrap = exports.fetchRaydiumCreatorFeeUnwrap = exports.deserializeRaydiumCreatorFeeUnwrap = exports.getRaydiumCreatorFeeUnwrapAccountDataSerializer = void 0;
|
|
11
|
+
const umi_1 = require("@metaplex-foundation/umi");
|
|
12
|
+
const serializers_1 = require("@metaplex-foundation/umi/serializers");
|
|
13
|
+
function getRaydiumCreatorFeeUnwrapAccountDataSerializer() {
|
|
14
|
+
return (0, serializers_1.struct)([['data', (0, serializers_1.bytes)()]], {
|
|
15
|
+
description: 'RaydiumCreatorFeeUnwrapAccountData',
|
|
16
|
+
});
|
|
17
|
+
}
|
|
18
|
+
exports.getRaydiumCreatorFeeUnwrapAccountDataSerializer = getRaydiumCreatorFeeUnwrapAccountDataSerializer;
|
|
19
|
+
function deserializeRaydiumCreatorFeeUnwrap(rawAccount) {
|
|
20
|
+
return (0, umi_1.deserializeAccount)(rawAccount, getRaydiumCreatorFeeUnwrapAccountDataSerializer());
|
|
21
|
+
}
|
|
22
|
+
exports.deserializeRaydiumCreatorFeeUnwrap = deserializeRaydiumCreatorFeeUnwrap;
|
|
23
|
+
async function fetchRaydiumCreatorFeeUnwrap(context, publicKey, options) {
|
|
24
|
+
const maybeAccount = await context.rpc.getAccount((0, umi_1.publicKey)(publicKey, false), options);
|
|
25
|
+
(0, umi_1.assertAccountExists)(maybeAccount, 'RaydiumCreatorFeeUnwrap');
|
|
26
|
+
return deserializeRaydiumCreatorFeeUnwrap(maybeAccount);
|
|
27
|
+
}
|
|
28
|
+
exports.fetchRaydiumCreatorFeeUnwrap = fetchRaydiumCreatorFeeUnwrap;
|
|
29
|
+
async function safeFetchRaydiumCreatorFeeUnwrap(context, publicKey, options) {
|
|
30
|
+
const maybeAccount = await context.rpc.getAccount((0, umi_1.publicKey)(publicKey, false), options);
|
|
31
|
+
return maybeAccount.exists
|
|
32
|
+
? deserializeRaydiumCreatorFeeUnwrap(maybeAccount)
|
|
33
|
+
: null;
|
|
34
|
+
}
|
|
35
|
+
exports.safeFetchRaydiumCreatorFeeUnwrap = safeFetchRaydiumCreatorFeeUnwrap;
|
|
36
|
+
async function fetchAllRaydiumCreatorFeeUnwrap(context, publicKeys, options) {
|
|
37
|
+
const maybeAccounts = await context.rpc.getAccounts(publicKeys.map((key) => (0, umi_1.publicKey)(key, false)), options);
|
|
38
|
+
return maybeAccounts.map((maybeAccount) => {
|
|
39
|
+
(0, umi_1.assertAccountExists)(maybeAccount, 'RaydiumCreatorFeeUnwrap');
|
|
40
|
+
return deserializeRaydiumCreatorFeeUnwrap(maybeAccount);
|
|
41
|
+
});
|
|
42
|
+
}
|
|
43
|
+
exports.fetchAllRaydiumCreatorFeeUnwrap = fetchAllRaydiumCreatorFeeUnwrap;
|
|
44
|
+
async function safeFetchAllRaydiumCreatorFeeUnwrap(context, publicKeys, options) {
|
|
45
|
+
const maybeAccounts = await context.rpc.getAccounts(publicKeys.map((key) => (0, umi_1.publicKey)(key, false)), options);
|
|
46
|
+
return maybeAccounts
|
|
47
|
+
.filter((maybeAccount) => maybeAccount.exists)
|
|
48
|
+
.map((maybeAccount) => deserializeRaydiumCreatorFeeUnwrap(maybeAccount));
|
|
49
|
+
}
|
|
50
|
+
exports.safeFetchAllRaydiumCreatorFeeUnwrap = safeFetchAllRaydiumCreatorFeeUnwrap;
|
|
51
|
+
function getRaydiumCreatorFeeUnwrapGpaBuilder(context) {
|
|
52
|
+
const programId = context.programs.getPublicKey('genesis', 'GNS1S5J5AspKXgpjz6SvKL66kPaKWAhaGRhCqPRxii2B');
|
|
53
|
+
return (0, umi_1.gpaBuilder)(context, programId)
|
|
54
|
+
.registerFields({ data: [0, (0, serializers_1.bytes)()] })
|
|
55
|
+
.deserializeUsing((account) => deserializeRaydiumCreatorFeeUnwrap(account));
|
|
56
|
+
}
|
|
57
|
+
exports.getRaydiumCreatorFeeUnwrapGpaBuilder = getRaydiumCreatorFeeUnwrapGpaBuilder;
|
|
58
|
+
function getRaydiumCreatorFeeUnwrapSize() {
|
|
59
|
+
return 0;
|
|
60
|
+
}
|
|
61
|
+
exports.getRaydiumCreatorFeeUnwrapSize = getRaydiumCreatorFeeUnwrapSize;
|
|
62
|
+
function findRaydiumCreatorFeeUnwrapPda(context, seeds) {
|
|
63
|
+
const programId = context.programs.getPublicKey('genesis', 'GNS1S5J5AspKXgpjz6SvKL66kPaKWAhaGRhCqPRxii2B');
|
|
64
|
+
return context.eddsa.findPda(programId, [
|
|
65
|
+
(0, serializers_1.string)({ size: 'variable' }).serialize('raydium_creator_fee_unwrap'),
|
|
66
|
+
(0, serializers_1.publicKey)().serialize(seeds.bucket),
|
|
67
|
+
]);
|
|
68
|
+
}
|
|
69
|
+
exports.findRaydiumCreatorFeeUnwrapPda = findRaydiumCreatorFeeUnwrapPda;
|
|
70
|
+
async function fetchRaydiumCreatorFeeUnwrapFromSeeds(context, seeds, options) {
|
|
71
|
+
return fetchRaydiumCreatorFeeUnwrap(context, findRaydiumCreatorFeeUnwrapPda(context, seeds), options);
|
|
72
|
+
}
|
|
73
|
+
exports.fetchRaydiumCreatorFeeUnwrapFromSeeds = fetchRaydiumCreatorFeeUnwrapFromSeeds;
|
|
74
|
+
async function safeFetchRaydiumCreatorFeeUnwrapFromSeeds(context, seeds, options) {
|
|
75
|
+
return safeFetchRaydiumCreatorFeeUnwrap(context, findRaydiumCreatorFeeUnwrapPda(context, seeds), options);
|
|
76
|
+
}
|
|
77
|
+
exports.safeFetchRaydiumCreatorFeeUnwrapFromSeeds = safeFetchRaydiumCreatorFeeUnwrapFromSeeds;
|
|
78
|
+
//# sourceMappingURL=raydiumCreatorFeeUnwrap.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"raydiumCreatorFeeUnwrap.js","sourceRoot":"","sources":["../../../../src/generated/acc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,wEAEC;AAED,SAAgB,8BAA8B,CAC5C,OAA4C,EAC5C,KAGC;IAED,MAAM,SAAS,GAAG,OAAO,CAAC,QAAQ,CAAC,YAAY,CAC7C,SAAS,EACT,8CAA8C,CAC/C,CAAC;IACF,OAAO,OAAO,CAAC,KAAK,CAAC,OAAO,CAAC,SAAS,EAAE;QACtC,IAAA,oBAAM,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,CAAC,CAAC,SAAS,CAAC,4BAA4B,CAAC;QACpE,IAAA,uBAAmB,GAAE,CAAC,SAAS,CAAC,KAAK,CAAC,MAAM,CAAC;KAC9C,CAAC,CAAC;AACL,CAAC;AAfD,wEAeC;AAEM,KAAK,UAAU,qCAAqC,CACzD,OAAoD,EACpD,KAA2D,EAC3D,OAA8B;IAE9B,OAAO,4BAA4B,CACjC,OAAO,EACP,8BAA8B,CAAC,OAAO,EAAE,KAAK,CAAC,EAC9C,OAAO,CACR,CAAC;AACJ,CAAC;AAVD,sFAUC;AAEM,KAAK,UAAU,yCAAyC,CAC7D,OAAoD,EACpD,KAA2D,EAC3D,OAA8B;IAE9B,OAAO,gCAAgC,CACrC,OAAO,EACP,8BAA8B,CAAC,OAAO,EAAE,KAAK,CAAC,EAC9C,OAAO,CACR,CAAC;AACJ,CAAC;AAVD,8FAUC"}
|
|
@@ -1326,6 +1326,24 @@ export declare class InvalidPoolStatePdaError extends ProgramError {
|
|
|
1326
1326
|
readonly code: number;
|
|
1327
1327
|
constructor(program: Program, cause?: Error);
|
|
1328
1328
|
}
|
|
1329
|
+
/** InvalidTransientAccountState: Transient account must be system-owned and empty */
|
|
1330
|
+
export declare class InvalidTransientAccountStateError extends ProgramError {
|
|
1331
|
+
readonly name: string;
|
|
1332
|
+
readonly code: number;
|
|
1333
|
+
constructor(program: Program, cause?: Error);
|
|
1334
|
+
}
|
|
1335
|
+
/** InvalidSoftCap: The soft cap must be greater than zero */
|
|
1336
|
+
export declare class InvalidSoftCapError extends ProgramError {
|
|
1337
|
+
readonly name: string;
|
|
1338
|
+
readonly code: number;
|
|
1339
|
+
constructor(program: Program, cause?: Error);
|
|
1340
|
+
}
|
|
1341
|
+
/** SoftCapBelowThreshold: The soft cap must be greater than or equal to the minimum quote token threshold */
|
|
1342
|
+
export declare class SoftCapBelowThresholdError extends ProgramError {
|
|
1343
|
+
readonly name: string;
|
|
1344
|
+
readonly code: number;
|
|
1345
|
+
constructor(program: Program, cause?: Error);
|
|
1346
|
+
}
|
|
1329
1347
|
/**
|
|
1330
1348
|
* Attempts to resolve a custom program error from the provided error code.
|
|
1331
1349
|
* @category Errors
|
|
@@ -11,7 +11,7 @@ exports.DepositAlreadyClaimedError = exports.InvalidBucketIndexError = exports.I
|
|
|
11
11
|
exports.InvalidAuctionTreeError = exports.BucketPausedError = exports.VaultDepositConsumedError = exports.VaultWithdrawNotAllowedError = exports.InvalidActionsAuthorityError = exports.InvalidOrdinalError = exports.BondingCurveInsufficientFundsError = exports.BondingCurveConstantProductDecreasedError = exports.BondingCurveEndedError = exports.BondingCurveNotStartedError = exports.InvalidConstantProductError = exports.BondingCurveNotEndedError = exports.InsufficientOutputAmountError = exports.InvalidAmountError = exports.VaultEndedError = exports.VaultNotStartedError = exports.VaultNotEndedError = exports.InvalidScheduleTimingError = exports.InsufficientFundsForPenaltyFeeError = exports.InvalidLinearScheduleError = exports.InvalidPenaltyWalletError = exports.FeeTransferFailedError = exports.InvalidFeeOverrideError = exports.InvalidFeeOverrideTypeError = exports.InvalidFeeAuthorityError = exports.InvalidMerkleProofError = exports.PresalePerCooldownDepositLimitExceededError = exports.PresaleDepositCooldownActiveError = exports.PresaleDepositLimitExceededError = exports.InvalidPresaleDepositAmountError = exports.InvalidBackendSignerError = exports.PresaleBucketWithdrawNotAllowedError = exports.PresaleBucketNotEndedError = exports.PresaleBucketAlreadyFundedError = exports.PresaleSaleEndedError = exports.PresaleSaleNotStartedError = exports.DistributionEndedError = exports.InvalidMintForDistributionError = exports.InvalidSolAllocationBpsError = exports.GenesisAccountAlreadyFinalizedError = exports.DistributionNotStartedError = exports.InvalidAtaDerivationError = exports.InflowsMustBeCompletedError = exports.BucketDoesNotSupportFundingError = exports.UnlockedBucketNotInitializedError = exports.StreamflowNotInitializedError = exports.BucketIsNotYetFundedError = exports.InvalidProgramOwnerForBucketError = exports.UnlockedBucketAlreadyClaimedError = exports.InvalidBucketAddressError = void 0;
|
|
12
12
|
exports.InvalidPrimaryBucketError = exports.InvalidPrimaryBucketOwnerError = exports.DestinationBucketNotFoundError = exports.PresaleClaimEndedError = exports.MissingBackendSignerError = exports.InvalidDepositPdaAccountError = exports.InvalidQuoteTokenAccountOwnerError = exports.InvalidQuoteTokenAccountMintError = exports.InvalidGenesisAccountIndexError = exports.InvalidQuoteMintForGenesisAccountError = exports.InvalidQuoteMintError = exports.InvalidNativeSolMintError = exports.InvalidRaydiumProgramError = exports.InvalidRaydiumBucketSignerError = exports.RaydiumBucketNotFundedError = exports.MissingRaydiumBucketSignerError = exports.RaydiumBucketNotInitializedError = exports.RefundNotClaimedError = exports.TokensNotClaimedError = exports.TokensAlreadyClaimedError = exports.InvalidAuctionCapacityError = exports.LosingBidderCannotRebidError = exports.BidNotWinningError = exports.RefundAlreadyClaimedError = exports.CannotCloseWinningBidError = exports.BidQuantityCannotDecreaseError = exports.BidPriceCannotDecreaseError = exports.BidNotCompetitiveError = exports.BidQuantityExceedsTotalAllocationError = exports.BidQuantityExceedsMaximumError = exports.BidQuantityBelowMinimumError = exports.BidPriceBelowMinimumError = exports.BidQuantityCannotBeZeroError = exports.BidPriceCannotBeZeroError = exports.UnauthorizedBidderError = exports.InvalidBidIndexError = exports.InvalidBucketForAuctionBidError = exports.InvalidAuctionBidPdaDerivationError = exports.InvalidAuctionBidError = exports.AuctionNotEndedError = exports.AuctionEndedError = exports.AuctionNotStartedError = exports.InvalidAuctionExtensionConfigError = exports.MaximumBidQuantityExceedsAllocationError = exports.InvalidMaximumBidQuantityError = exports.InvalidMinimumPriceError = exports.InvalidTokenQuantityBpsError = exports.InvalidBidIncrementError = exports.InvalidTokenAllocationError = exports.InvalidAuctionTreeStateError = void 0;
|
|
13
13
|
exports.InsufficientUnlockedAmountError = exports.InvalidRemainingAccountsLengthError = exports.InvalidConditionTypeError = exports.InvalidAuthorityDestinationTokenAccountError = exports.MissingAuthorityDestinationTokenAccountError = exports.SupplyBelowAllocatedError = exports.InvalidMintAndBurnError = exports.InvalidMintAuthorityError = exports.InvalidSupplyDeltaError = exports.InvalidStreamflowMetadataAccountError = exports.GraduationNotStartedError = exports.BucketAlreadyGraduatedError = exports.TotalSupplyNotFullyAllocatedError = exports.InvalidStreamflowConfigError = exports.LockEndedError = exports.StreamflowBucketAlreadyLockedError = exports.MissingFinalizeBucketAccountsError = exports.LaunchPoolMissingGraduationBehaviorError = exports.InvalidRaydiumPermissionPdaError = exports.InvalidRaydiumSignerError = exports.InvalidAllocationQuoteTokenCapError = exports.InvalidBaseTokenAllocationError = exports.DepositAlreadyRefundedError = exports.MissingPenaltyQuoteTokenAccountError = exports.BehaviorNotSupportedForBucketTypeError = exports.InvalidMinimumQuoteTokenThresholdError = exports.LaunchPoolThresholdMetError = exports.LaunchPoolFundingThresholdNotMetError = exports.LaunchPoolClaimEndedError = exports.InvalidMetadataAccountError = exports.InvalidTokenAccountProgramOwnerError = exports.BehaviorPercentageOverflowError = exports.PresaleDepositBelowMinimumError = exports.InvalidMinimumDepositAmountError = exports.SourceBucketNotFoundError = exports.PresaleNotFullyClaimedError = exports.BucketDoesNotSupportUnsoldWithdrawalError = exports.InvalidUnsoldWithdrawalAmountError = exports.NoUnsoldTokensError = exports.SaleNotEndedError = exports.ClaimScheduleDurationTooShortError = exports.InvalidClaimScheduleCliffAmountError = exports.InvalidClaimScheduleDurationError = exports.InvalidClaimSchedulePeriodError = exports.InvalidPresaleDepositError = exports.InvalidAuthoritySourceTokenAccountError = exports.MissingAuthoritySourceTokenAccountError = exports.UnlockedBucketClaimEndedError = exports.InvalidFundingModeError = exports.InvalidSecondaryBucketError = void 0;
|
|
14
|
-
exports.getGenesisErrorFromName = exports.getGenesisErrorFromCode = exports.InvalidPoolStatePdaError = exports.InvalidCreatorFeeWalletError = exports.MissingCreatorFeeAccountError = exports.InvalidCreatorFeeConfigError = exports.SwapAmountBelowMinimumError = exports.MissingFirstBuySignerError = exports.InvalidBehaviorTypeError = exports.InvalidFirstBuyConfigError = exports.FirstBuyAmountMismatchError = exports.FirstBuyRestrictedError = exports.BondingCurveMissingGraduationBehaviorError = exports.InvalidSwapDirectionError = exports.InvalidLaunchTypeError = exports.InvalidRaydiumPoolStateError = exports.InstructionDeprecatedError = exports.InvalidConditionTypeForSlotError = exports.UninitializedConditionError = exports.InvalidRaydiumAmmConfigError = exports.InvalidLpClaimAuthorityError = exports.NoLpTokensToClaimError = void 0;
|
|
14
|
+
exports.getGenesisErrorFromName = exports.getGenesisErrorFromCode = exports.SoftCapBelowThresholdError = exports.InvalidSoftCapError = exports.InvalidTransientAccountStateError = exports.InvalidPoolStatePdaError = exports.InvalidCreatorFeeWalletError = exports.MissingCreatorFeeAccountError = exports.InvalidCreatorFeeConfigError = exports.SwapAmountBelowMinimumError = exports.MissingFirstBuySignerError = exports.InvalidBehaviorTypeError = exports.InvalidFirstBuyConfigError = exports.FirstBuyAmountMismatchError = exports.FirstBuyRestrictedError = exports.BondingCurveMissingGraduationBehaviorError = exports.InvalidSwapDirectionError = exports.InvalidLaunchTypeError = exports.InvalidRaydiumPoolStateError = exports.InstructionDeprecatedError = exports.InvalidConditionTypeForSlotError = exports.UninitializedConditionError = exports.InvalidRaydiumAmmConfigError = exports.InvalidLpClaimAuthorityError = exports.NoLpTokensToClaimError = void 0;
|
|
15
15
|
const umi_1 = require("@metaplex-foundation/umi");
|
|
16
16
|
const codeToErrorMap = new Map();
|
|
17
17
|
const nameToErrorMap = new Map();
|
|
@@ -2435,6 +2435,39 @@ class InvalidPoolStatePdaError extends umi_1.ProgramError {
|
|
|
2435
2435
|
exports.InvalidPoolStatePdaError = InvalidPoolStatePdaError;
|
|
2436
2436
|
codeToErrorMap.set(0xdb, InvalidPoolStatePdaError);
|
|
2437
2437
|
nameToErrorMap.set('InvalidPoolStatePda', InvalidPoolStatePdaError);
|
|
2438
|
+
/** InvalidTransientAccountState: Transient account must be system-owned and empty */
|
|
2439
|
+
class InvalidTransientAccountStateError extends umi_1.ProgramError {
|
|
2440
|
+
constructor(program, cause) {
|
|
2441
|
+
super('Transient account must be system-owned and empty', program, cause);
|
|
2442
|
+
this.name = 'InvalidTransientAccountState';
|
|
2443
|
+
this.code = 0xdc; // 220
|
|
2444
|
+
}
|
|
2445
|
+
}
|
|
2446
|
+
exports.InvalidTransientAccountStateError = InvalidTransientAccountStateError;
|
|
2447
|
+
codeToErrorMap.set(0xdc, InvalidTransientAccountStateError);
|
|
2448
|
+
nameToErrorMap.set('InvalidTransientAccountState', InvalidTransientAccountStateError);
|
|
2449
|
+
/** InvalidSoftCap: The soft cap must be greater than zero */
|
|
2450
|
+
class InvalidSoftCapError extends umi_1.ProgramError {
|
|
2451
|
+
constructor(program, cause) {
|
|
2452
|
+
super('The soft cap must be greater than zero', program, cause);
|
|
2453
|
+
this.name = 'InvalidSoftCap';
|
|
2454
|
+
this.code = 0xdd; // 221
|
|
2455
|
+
}
|
|
2456
|
+
}
|
|
2457
|
+
exports.InvalidSoftCapError = InvalidSoftCapError;
|
|
2458
|
+
codeToErrorMap.set(0xdd, InvalidSoftCapError);
|
|
2459
|
+
nameToErrorMap.set('InvalidSoftCap', InvalidSoftCapError);
|
|
2460
|
+
/** SoftCapBelowThreshold: The soft cap must be greater than or equal to the minimum quote token threshold */
|
|
2461
|
+
class SoftCapBelowThresholdError extends umi_1.ProgramError {
|
|
2462
|
+
constructor(program, cause) {
|
|
2463
|
+
super('The soft cap must be greater than or equal to the minimum quote token threshold', program, cause);
|
|
2464
|
+
this.name = 'SoftCapBelowThreshold';
|
|
2465
|
+
this.code = 0xde; // 222
|
|
2466
|
+
}
|
|
2467
|
+
}
|
|
2468
|
+
exports.SoftCapBelowThresholdError = SoftCapBelowThresholdError;
|
|
2469
|
+
codeToErrorMap.set(0xde, SoftCapBelowThresholdError);
|
|
2470
|
+
nameToErrorMap.set('SoftCapBelowThreshold', SoftCapBelowThresholdError);
|
|
2438
2471
|
/**
|
|
2439
2472
|
* Attempts to resolve a custom program error from the provided error code.
|
|
2440
2473
|
* @category Errors
|