jito-distributor-sdk
Version:
TypeScript SDK for JITO Merkle Distributor with production-ready versioning and double-hashing support
33 lines (32 loc) • 2.12 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.DistributorError = exports.PROGRAM_ID = void 0;
const web3_js_1 = require("@solana/web3.js");
/**
* Program ID for the Merkle Distributor program
*/
exports.PROGRAM_ID = new web3_js_1.PublicKey('mERKcfxMC5SqJn4Ld4BUris3WKZZ1ojjWJ3A3J5CKxv');
/**
* Error codes
*/
var DistributorError;
(function (DistributorError) {
DistributorError[DistributorError["InsufficientUnlockedTokens"] = 6000] = "InsufficientUnlockedTokens";
DistributorError[DistributorError["StartTooFarInFuture"] = 6001] = "StartTooFarInFuture";
DistributorError[DistributorError["InvalidProof"] = 6002] = "InvalidProof";
DistributorError[DistributorError["ExceededMaxClaim"] = 6003] = "ExceededMaxClaim";
DistributorError[DistributorError["MaxNodesExceeded"] = 6004] = "MaxNodesExceeded";
DistributorError[DistributorError["Unauthorized"] = 6005] = "Unauthorized";
DistributorError[DistributorError["OwnerMismatch"] = 6006] = "OwnerMismatch";
DistributorError[DistributorError["ClawbackDuringVesting"] = 6007] = "ClawbackDuringVesting";
DistributorError[DistributorError["ClawbackBeforeStart"] = 6008] = "ClawbackBeforeStart";
DistributorError[DistributorError["ClawbackAlreadyClaimed"] = 6009] = "ClawbackAlreadyClaimed";
DistributorError[DistributorError["InsufficientClawbackDelay"] = 6010] = "InsufficientClawbackDelay";
DistributorError[DistributorError["SameClawbackReceiver"] = 6011] = "SameClawbackReceiver";
DistributorError[DistributorError["SameAdmin"] = 6012] = "SameAdmin";
DistributorError[DistributorError["ClaimExpired"] = 6013] = "ClaimExpired";
DistributorError[DistributorError["ArithmeticError"] = 6014] = "ArithmeticError";
DistributorError[DistributorError["StartTimestampAfterEnd"] = 6015] = "StartTimestampAfterEnd";
DistributorError[DistributorError["TimestampsNotInFuture"] = 6016] = "TimestampsNotInFuture";
DistributorError[DistributorError["InvalidVersion"] = 6017] = "InvalidVersion";
})(DistributorError || (exports.DistributorError = DistributorError = {}));