-
Notifications
You must be signed in to change notification settings - Fork 3
/
constants.js
31 lines (31 loc) · 1.08 KB
/
constants.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
const { PublicKey, Connection, clusterApiUrl } = require("@solana/web3.js");
const base58publicKey = new PublicKey(
"AknC341xog56SrnoK6j3mUvaD1Y7tYayx1sxUGpeYWdX"
);
const PROGRAM_ID = "AknC341xog56SrnoK6j3mUvaD1Y7tYayx1sxUGpeYWdX"; // Zebec program id
const CLUSTER = "mainnet-beta";
const connection = new Connection(clusterApiUrl(CLUSTER)); // cluster
const SPL_ASSOCIATED_TOKEN_ACCOUNT_PROGRAM_ID = new PublicKey(
"ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL"
);
const wallettokenaddress = new PublicKey(
"2ibSirDWk5P68ZKmQQSxUMtiWQFRuanpPfMfaYzxgSRv"
);
const ATOKEN = "ATokenGPvbdGVxr1b2hvZbsiqW5xWH25efTNsLJA8knL";
const stringofwithdraw = "withdraw_sol";
const FEEADDRESS = "EsDV3m3xUZ7g8QKa1kFdbZT18nNz8ddGJRcTK84WDQ7k";
const TOKENPROGRAMID = "TokenkegQfeZyiNwAJbNbGKPFXCWuBvf9Ss623VQ5DA";
const SYSTEMRENT = "SysvarRent111111111111111111111111111111111";
module.exports.constants = {
base58publicKey,
PROGRAM_ID,
CLUSTER,
connection,
SPL_ASSOCIATED_TOKEN_ACCOUNT_PROGRAM_ID,
wallettokenaddress,
stringofwithdraw,
FEEADDRESS,
ATOKEN,
TOKENPROGRAMID,
SYSTEMRENT,
};