@streamflow/distributor 6.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +674 -0
- package/README.md +127 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +27 -0
- package/dist/solana/client.d.ts +25 -0
- package/dist/solana/client.js +300 -0
- package/dist/solana/constants.d.ts +6 -0
- package/dist/solana/constants.js +11 -0
- package/dist/solana/generated/accounts/ClaimStatus.d.ts +72 -0
- package/dist/solana/generated/accounts/ClaimStatus.js +183 -0
- package/dist/solana/generated/accounts/MerkleDistributor.d.ts +138 -0
- package/dist/solana/generated/accounts/MerkleDistributor.js +238 -0
- package/dist/solana/generated/accounts/index.d.ts +4 -0
- package/dist/solana/generated/accounts/index.js +7 -0
- package/dist/solana/generated/errors/anchor.d.ts +434 -0
- package/dist/solana/generated/errors/anchor.js +889 -0
- package/dist/solana/generated/errors/custom.d.ts +162 -0
- package/dist/solana/generated/errors/custom.js +344 -0
- package/dist/solana/generated/errors/index.d.ts +5 -0
- package/dist/solana/generated/errors/index.js +104 -0
- package/dist/solana/generated/instructions/claimLocked.d.ts +21 -0
- package/dist/solana/generated/instructions/claimLocked.js +22 -0
- package/dist/solana/generated/instructions/clawback.d.ts +20 -0
- package/dist/solana/generated/instructions/clawback.js +22 -0
- package/dist/solana/generated/instructions/closeClaim.d.ts +13 -0
- package/dist/solana/generated/instructions/closeClaim.js +20 -0
- package/dist/solana/generated/instructions/index.d.ts +14 -0
- package/dist/solana/generated/instructions/index.js +17 -0
- package/dist/solana/generated/instructions/newClaim.d.ts +27 -0
- package/dist/solana/generated/instructions/newClaim.js +58 -0
- package/dist/solana/generated/instructions/newDistributor.d.ts +56 -0
- package/dist/solana/generated/instructions/newDistributor.js +94 -0
- package/dist/solana/generated/instructions/setAdmin.d.ts +10 -0
- package/dist/solana/generated/instructions/setAdmin.js +18 -0
- package/dist/solana/generated/instructions/setClawbackReceiver.d.ts +10 -0
- package/dist/solana/generated/instructions/setClawbackReceiver.js +18 -0
- package/dist/solana/generated/programId.d.ts +3 -0
- package/dist/solana/generated/programId.js +8 -0
- package/dist/solana/index.d.ts +4 -0
- package/dist/solana/index.js +37 -0
- package/dist/solana/types.d.ts +203 -0
- package/dist/solana/types.js +159 -0
- package/dist/solana/utils.d.ts +5 -0
- package/dist/solana/utils.js +87 -0
- package/package.json +46 -0
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ContractErrorCode = exports.AnchorErrorCode = void 0;
|
|
4
|
+
var AnchorErrorCode;
|
|
5
|
+
(function (AnchorErrorCode) {
|
|
6
|
+
/** 8 byte instruction identifier not provided */
|
|
7
|
+
AnchorErrorCode["InstructionMissing"] = "InstructionMissing";
|
|
8
|
+
/** Fallback functions are not supported */
|
|
9
|
+
AnchorErrorCode["InstructionFallbackNotFound"] = "InstructionFallbackNotFound";
|
|
10
|
+
/** The program could not deserialize the given instruction */
|
|
11
|
+
AnchorErrorCode["InstructionDidNotDeserialize"] = "InstructionDidNotDeserialize";
|
|
12
|
+
/** The program could not serialize the given instruction */
|
|
13
|
+
AnchorErrorCode["InstructionDidNotSerialize"] = "InstructionDidNotSerialize";
|
|
14
|
+
/** The program was compiled without idl instructions */
|
|
15
|
+
AnchorErrorCode["IdlInstructionStub"] = "IdlInstructionStub";
|
|
16
|
+
/** The transaction was given an invalid program for the IDL instruction */
|
|
17
|
+
AnchorErrorCode["IdlInstructionInvalidProgram"] = "IdlInstructionInvalidProgram";
|
|
18
|
+
/** A mut constraint was violated */
|
|
19
|
+
AnchorErrorCode["ConstraintMut"] = "ConstraintMut";
|
|
20
|
+
/** A has one constraint was violated */
|
|
21
|
+
AnchorErrorCode["ConstraintHasOne"] = "ConstraintHasOne";
|
|
22
|
+
/** A signer constraint was violated */
|
|
23
|
+
AnchorErrorCode["ConstraintSigner"] = "ConstraintSigner";
|
|
24
|
+
/** A raw constraint was violated */
|
|
25
|
+
AnchorErrorCode["ConstraintRaw"] = "ConstraintRaw";
|
|
26
|
+
/** An owner constraint was violated */
|
|
27
|
+
AnchorErrorCode["ConstraintOwner"] = "ConstraintOwner";
|
|
28
|
+
/** A rent exemption constraint was violated */
|
|
29
|
+
AnchorErrorCode["ConstraintRentExempt"] = "ConstraintRentExempt";
|
|
30
|
+
/** A seeds constraint was violated */
|
|
31
|
+
AnchorErrorCode["ConstraintSeeds"] = "ConstraintSeeds";
|
|
32
|
+
/** An executable constraint was violated */
|
|
33
|
+
AnchorErrorCode["ConstraintExecutable"] = "ConstraintExecutable";
|
|
34
|
+
/** Deprecated Error, feel free to replace with something else */
|
|
35
|
+
AnchorErrorCode["ConstraintState"] = "ConstraintState";
|
|
36
|
+
/** An associated constraint was violated */
|
|
37
|
+
AnchorErrorCode["ConstraintAssociated"] = "ConstraintAssociated";
|
|
38
|
+
/** An associated init constraint was violated */
|
|
39
|
+
AnchorErrorCode["ConstraintAssociatedInit"] = "ConstraintAssociatedInit";
|
|
40
|
+
/** A close constraint was violated */
|
|
41
|
+
AnchorErrorCode["ConstraintClose"] = "ConstraintClose";
|
|
42
|
+
/** An address constraint was violated */
|
|
43
|
+
AnchorErrorCode["ConstraintAddress"] = "ConstraintAddress";
|
|
44
|
+
/** Expected zero account discriminant */
|
|
45
|
+
AnchorErrorCode["ConstraintZero"] = "ConstraintZero";
|
|
46
|
+
/** A token mint constraint was violated */
|
|
47
|
+
AnchorErrorCode["ConstraintTokenMint"] = "ConstraintTokenMint";
|
|
48
|
+
/** A token owner constraint was violated */
|
|
49
|
+
AnchorErrorCode["ConstraintTokenOwner"] = "ConstraintTokenOwner";
|
|
50
|
+
/** A mint mint authority constraint was violated */
|
|
51
|
+
AnchorErrorCode["ConstraintMintMintAuthority"] = "ConstraintMintMintAuthority";
|
|
52
|
+
/** A mint freeze authority constraint was violated */
|
|
53
|
+
AnchorErrorCode["ConstraintMintFreezeAuthority"] = "ConstraintMintFreezeAuthority";
|
|
54
|
+
/** A mint decimals constraint was violated */
|
|
55
|
+
AnchorErrorCode["ConstraintMintDecimals"] = "ConstraintMintDecimals";
|
|
56
|
+
/** A space constraint was violated */
|
|
57
|
+
AnchorErrorCode["ConstraintSpace"] = "ConstraintSpace";
|
|
58
|
+
/** A required account for the constraint is None */
|
|
59
|
+
AnchorErrorCode["ConstraintAccountIsNone"] = "ConstraintAccountIsNone";
|
|
60
|
+
/** A require expression was violated */
|
|
61
|
+
AnchorErrorCode["RequireViolated"] = "RequireViolated";
|
|
62
|
+
/** A require_eq expression was violated */
|
|
63
|
+
AnchorErrorCode["RequireEqViolated"] = "RequireEqViolated";
|
|
64
|
+
/** A require_keys_eq expression was violated */
|
|
65
|
+
AnchorErrorCode["RequireKeysEqViolated"] = "RequireKeysEqViolated";
|
|
66
|
+
/** A require_neq expression was violated */
|
|
67
|
+
AnchorErrorCode["RequireNeqViolated"] = "RequireNeqViolated";
|
|
68
|
+
/** A require_keys_neq expression was violated */
|
|
69
|
+
AnchorErrorCode["RequireKeysNeqViolated"] = "RequireKeysNeqViolated";
|
|
70
|
+
/** A require_gt expression was violated */
|
|
71
|
+
AnchorErrorCode["RequireGtViolated"] = "RequireGtViolated";
|
|
72
|
+
/** A require_gte expression was violated */
|
|
73
|
+
AnchorErrorCode["RequireGteViolated"] = "RequireGteViolated";
|
|
74
|
+
/** The account discriminator was already set on this account */
|
|
75
|
+
AnchorErrorCode["AccountDiscriminatorAlreadySet"] = "AccountDiscriminatorAlreadySet";
|
|
76
|
+
/** No 8 byte discriminator was found on the account */
|
|
77
|
+
AnchorErrorCode["AccountDiscriminatorNotFound"] = "AccountDiscriminatorNotFound";
|
|
78
|
+
/** 8 byte discriminator did not match what was expected */
|
|
79
|
+
AnchorErrorCode["AccountDiscriminatorMismatch"] = "AccountDiscriminatorMismatch";
|
|
80
|
+
/** Failed to deserialize the account */
|
|
81
|
+
AnchorErrorCode["AccountDidNotDeserialize"] = "AccountDidNotDeserialize";
|
|
82
|
+
/** Failed to serialize the account */
|
|
83
|
+
AnchorErrorCode["AccountDidNotSerialize"] = "AccountDidNotSerialize";
|
|
84
|
+
/** Not enough account keys given to the instruction */
|
|
85
|
+
AnchorErrorCode["AccountNotEnoughKeys"] = "AccountNotEnoughKeys";
|
|
86
|
+
/** The given account is not mutable */
|
|
87
|
+
AnchorErrorCode["AccountNotMutable"] = "AccountNotMutable";
|
|
88
|
+
/** The given account is owned by a different program than expected */
|
|
89
|
+
AnchorErrorCode["AccountOwnedByWrongProgram"] = "AccountOwnedByWrongProgram";
|
|
90
|
+
/** Program ID was not as expected */
|
|
91
|
+
AnchorErrorCode["InvalidProgramId"] = "InvalidProgramId";
|
|
92
|
+
/** Program account is not executable */
|
|
93
|
+
AnchorErrorCode["InvalidProgramExecutable"] = "InvalidProgramExecutable";
|
|
94
|
+
/** The given account did not sign */
|
|
95
|
+
AnchorErrorCode["AccountNotSigner"] = "AccountNotSigner";
|
|
96
|
+
/** The given account is not owned by the system program */
|
|
97
|
+
AnchorErrorCode["AccountNotSystemOwned"] = "AccountNotSystemOwned";
|
|
98
|
+
/** The program expected this account to be already initialized */
|
|
99
|
+
AnchorErrorCode["AccountNotInitialized"] = "AccountNotInitialized";
|
|
100
|
+
/** The given account is not a program data account */
|
|
101
|
+
AnchorErrorCode["AccountNotProgramData"] = "AccountNotProgramData";
|
|
102
|
+
/** The given account is not the associated token account */
|
|
103
|
+
AnchorErrorCode["AccountNotAssociatedTokenAccount"] = "AccountNotAssociatedTokenAccount";
|
|
104
|
+
/** The given public key does not match the required sysvar */
|
|
105
|
+
AnchorErrorCode["AccountSysvarMismatch"] = "AccountSysvarMismatch";
|
|
106
|
+
/** The account reallocation exceeds the MAX_PERMITTED_DATA_INCREASE limit */
|
|
107
|
+
AnchorErrorCode["AccountReallocExceedsLimit"] = "AccountReallocExceedsLimit";
|
|
108
|
+
/** The account was duplicated for more than one reallocation */
|
|
109
|
+
AnchorErrorCode["AccountDuplicateReallocs"] = "AccountDuplicateReallocs";
|
|
110
|
+
/** The declared program id does not match the actual program id */
|
|
111
|
+
AnchorErrorCode["DeclaredProgramIdMismatch"] = "DeclaredProgramIdMismatch";
|
|
112
|
+
/** The API being used is deprecated and should no longer be used */
|
|
113
|
+
AnchorErrorCode["Deprecated"] = "Deprecated";
|
|
114
|
+
})(AnchorErrorCode = exports.AnchorErrorCode || (exports.AnchorErrorCode = {}));
|
|
115
|
+
var ContractErrorCode;
|
|
116
|
+
(function (ContractErrorCode) {
|
|
117
|
+
/** Insufficient unlocked tokens */
|
|
118
|
+
ContractErrorCode["InsufficientUnlockedTokens"] = "InsufficientUnlockedTokens";
|
|
119
|
+
/** Deposit Start too far in future */
|
|
120
|
+
ContractErrorCode["StartTooFarInFuture"] = "StartTooFarInFuture";
|
|
121
|
+
/** Invalid Merkle proof */
|
|
122
|
+
ContractErrorCode["InvalidProof"] = "InvalidProof";
|
|
123
|
+
/** Exceeded maximum claim amount */
|
|
124
|
+
ContractErrorCode["ExceededMaxClaim"] = "ExceededMaxClaim";
|
|
125
|
+
/** Exceeded maximum node count */
|
|
126
|
+
ContractErrorCode["MaxNodesExceeded"] = "MaxNodesExceeded";
|
|
127
|
+
/** Account is not authorized to execute this instruction */
|
|
128
|
+
ContractErrorCode["Unauthorized"] = "Unauthorized";
|
|
129
|
+
/** Token account owner did not match intended owner */
|
|
130
|
+
ContractErrorCode["OwnerMismatch"] = "OwnerMismatch";
|
|
131
|
+
/** Clawback cannot be before vesting starts */
|
|
132
|
+
ContractErrorCode["ClawbackBeforeVesting"] = "ClawbackBeforeVesting";
|
|
133
|
+
/** Attempted clawback before start */
|
|
134
|
+
ContractErrorCode["ClawbackBeforeStart"] = "ClawbackBeforeStart";
|
|
135
|
+
/** Clawback already claimed */
|
|
136
|
+
ContractErrorCode["ClawbackAlreadyClaimed"] = "ClawbackAlreadyClaimed";
|
|
137
|
+
/** Clawback start must be at least one day after vesting end */
|
|
138
|
+
ContractErrorCode["InsufficientClawbackDelay"] = "InsufficientClawbackDelay";
|
|
139
|
+
/** New and old Clawback receivers are identical */
|
|
140
|
+
ContractErrorCode["SameClawbackReceiver"] = "SameClawbackReceiver";
|
|
141
|
+
/** New and old admin are identical */
|
|
142
|
+
ContractErrorCode["SameAdmin"] = "SameAdmin";
|
|
143
|
+
/** Claim window expired */
|
|
144
|
+
ContractErrorCode["ClaimExpired"] = "ClaimExpired";
|
|
145
|
+
/** Arithmetic Error (overflow/underflow) */
|
|
146
|
+
ContractErrorCode["ArithmeticError"] = "ArithmeticError";
|
|
147
|
+
/** Start Timestamp cannot be after end Timestamp */
|
|
148
|
+
ContractErrorCode["StartTimestampAfterEnd"] = "StartTimestampAfterEnd";
|
|
149
|
+
/** Timestamps cannot be in the past */
|
|
150
|
+
ContractErrorCode["TimestampsNotInFuture"] = "TimestampsNotInFuture";
|
|
151
|
+
/** Airdrop Version Mismatch */
|
|
152
|
+
ContractErrorCode["InvalidVersion"] = "InvalidVersion";
|
|
153
|
+
/** Invalid Mint */
|
|
154
|
+
ContractErrorCode["InvalidMint"] = "InvalidMint";
|
|
155
|
+
/** Claim is closed */
|
|
156
|
+
ContractErrorCode["ClaimIsClosed"] = "ClaimIsClosed";
|
|
157
|
+
/** Claims are not closable */
|
|
158
|
+
ContractErrorCode["ClaimsAreNotClosable"] = "ClaimsAreNotClosable";
|
|
159
|
+
})(ContractErrorCode = exports.ContractErrorCode || (exports.ContractErrorCode = {}));
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { SignerWalletAdapter } from "@solana/wallet-adapter-base";
|
|
2
|
+
import { BlockhashWithExpiryBlockHeight, Connection, Keypair, PublicKey, Transaction } from "@solana/web3.js";
|
|
3
|
+
export declare function getDistributorPda(programId: PublicKey, mint: PublicKey, version: number): PublicKey;
|
|
4
|
+
export declare function getClaimantStatusPda(programId: PublicKey, distributor: PublicKey, claimant: PublicKey): PublicKey;
|
|
5
|
+
export declare function wrappedSignAndExecuteTransaction(connection: Connection, invoker: Keypair | SignerWalletAdapter, tx: Transaction, hash: BlockhashWithExpiryBlockHeight): Promise<string>;
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
3
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
4
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
5
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
6
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
7
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
8
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
9
|
+
});
|
|
10
|
+
};
|
|
11
|
+
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
|
+
function step(op) {
|
|
16
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
17
|
+
while (g && (g = 0, op[0] && (_ = 0)), _) try {
|
|
18
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
19
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
20
|
+
switch (op[0]) {
|
|
21
|
+
case 0: case 1: t = op; break;
|
|
22
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
23
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
24
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
25
|
+
default:
|
|
26
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
27
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
28
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
29
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
30
|
+
if (t[2]) _.ops.pop();
|
|
31
|
+
_.trys.pop(); continue;
|
|
32
|
+
}
|
|
33
|
+
op = body.call(thisArg, _);
|
|
34
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
35
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
36
|
+
}
|
|
37
|
+
};
|
|
38
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
+
exports.wrappedSignAndExecuteTransaction = exports.getClaimantStatusPda = exports.getDistributorPda = void 0;
|
|
40
|
+
var web3_js_1 = require("@solana/web3.js");
|
|
41
|
+
var common_1 = require("@streamflow/common");
|
|
42
|
+
var solana_1 = require("@streamflow/common/solana");
|
|
43
|
+
var errors_1 = require("./generated/errors");
|
|
44
|
+
function getDistributorPda(programId, mint, version) {
|
|
45
|
+
// Constructing the seed for the PDA
|
|
46
|
+
var seeds = [
|
|
47
|
+
Buffer.from("MerkleDistributor"),
|
|
48
|
+
mint.toBuffer(),
|
|
49
|
+
Buffer.from(new Uint8Array(new BigUint64Array([BigInt(version)]).buffer)),
|
|
50
|
+
];
|
|
51
|
+
// Finding the PDA
|
|
52
|
+
return web3_js_1.PublicKey.findProgramAddressSync(seeds, programId)[0];
|
|
53
|
+
}
|
|
54
|
+
exports.getDistributorPda = getDistributorPda;
|
|
55
|
+
function getClaimantStatusPda(programId, distributor, claimant) {
|
|
56
|
+
// Constructing the seed for the PDA
|
|
57
|
+
var seeds = [Buffer.from("ClaimStatus"), claimant.toBuffer(), distributor.toBuffer()];
|
|
58
|
+
// Finding the PDA
|
|
59
|
+
return web3_js_1.PublicKey.findProgramAddressSync(seeds, programId)[0];
|
|
60
|
+
}
|
|
61
|
+
exports.getClaimantStatusPda = getClaimantStatusPda;
|
|
62
|
+
function wrappedSignAndExecuteTransaction(connection, invoker, tx, hash) {
|
|
63
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
64
|
+
var signature, err_1, parsed;
|
|
65
|
+
return __generator(this, function (_a) {
|
|
66
|
+
switch (_a.label) {
|
|
67
|
+
case 0:
|
|
68
|
+
_a.trys.push([0, 2, , 3]);
|
|
69
|
+
return [4 /*yield*/, (0, solana_1.signAndExecuteTransaction)(connection, invoker, tx, hash)];
|
|
70
|
+
case 1:
|
|
71
|
+
signature = _a.sent();
|
|
72
|
+
return [2 /*return*/, signature];
|
|
73
|
+
case 2:
|
|
74
|
+
err_1 = _a.sent();
|
|
75
|
+
if (err_1 instanceof Error) {
|
|
76
|
+
parsed = (0, errors_1.fromTxError)(err_1);
|
|
77
|
+
if (parsed) {
|
|
78
|
+
throw new common_1.ContractError(err_1, parsed.name);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
throw err_1;
|
|
82
|
+
case 3: return [2 /*return*/];
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
exports.wrappedSignAndExecuteTransaction = wrappedSignAndExecuteTransaction;
|
package/package.json
ADDED
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@streamflow/distributor",
|
|
3
|
+
"version": "6.0.0-alpha.0",
|
|
4
|
+
"description": "JavaScript SDK to interact with Streamflow Airdrop protocol.",
|
|
5
|
+
"homepage": "https://github.com/streamflow-finance/js-sdk/",
|
|
6
|
+
"main": "dist/index.js",
|
|
7
|
+
"types": "dist/index.d.ts",
|
|
8
|
+
"exports": {
|
|
9
|
+
".": "./dist/index.js",
|
|
10
|
+
"./solana": "./dist/solana/index.js"
|
|
11
|
+
},
|
|
12
|
+
"typesVersions": {
|
|
13
|
+
"*": {
|
|
14
|
+
"solana": [
|
|
15
|
+
"dist/solana/index.d.ts"
|
|
16
|
+
]
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"scripts": {
|
|
20
|
+
"build": "rm -rf dist; tsc -p tsconfig.json",
|
|
21
|
+
"pack": "pnpm build && pnpm pack",
|
|
22
|
+
"lint": "eslint --fix .",
|
|
23
|
+
"prepublishOnly": "npm run lint && npm run build"
|
|
24
|
+
},
|
|
25
|
+
"gitHead": "5b1627a35ea628cf51c8b271db049211975302d1",
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"@streamflow/eslint-config": "6.0.0-alpha.0",
|
|
28
|
+
"@types/bn.js": "5.1.1",
|
|
29
|
+
"@types/jest": "29.2.4",
|
|
30
|
+
"date-fns": "2.28.0",
|
|
31
|
+
"jest": "29.3.1",
|
|
32
|
+
"ts-jest": "29.0.3",
|
|
33
|
+
"typescript": "^4.9.5"
|
|
34
|
+
},
|
|
35
|
+
"dependencies": {
|
|
36
|
+
"@coral-xyz/borsh": "^0.29.0",
|
|
37
|
+
"@solana/buffer-layout": "4.0.1 ",
|
|
38
|
+
"@solana/spl-token": "0.3.6",
|
|
39
|
+
"@solana/wallet-adapter-base": "0.9.19",
|
|
40
|
+
"@solana/web3.js": "1.70.1",
|
|
41
|
+
"@streamflow/common": "6.0.0-alpha.0",
|
|
42
|
+
"bn.js": "5.2.1",
|
|
43
|
+
"borsh": "^2.0.0",
|
|
44
|
+
"bs58": "5.0.0"
|
|
45
|
+
}
|
|
46
|
+
}
|