@mean-dao/ddca
Version:
Typescript library to interact with the Decentralized DCA program
21 lines (20 loc) • 979 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.tempoHeaders = exports.DDCA_ACTIONS = exports.MAX_FEE_PER_SWAP_IN_LAMPORTS = exports.SOL_MINT_DECIMALS = exports.SOL_MINT = void 0;
const web3_js_1 = require("@solana/web3.js");
exports.SOL_MINT = new web3_js_1.PublicKey("11111111111111111111111111111111");
exports.SOL_MINT_DECIMALS = 9;
exports.MAX_FEE_PER_SWAP_IN_LAMPORTS = 20000000;
/**
* DDCA Instructions types
*/
var DDCA_ACTIONS;
(function (DDCA_ACTIONS) {
DDCA_ACTIONS[DDCA_ACTIONS["create"] = 1] = "create";
DDCA_ACTIONS[DDCA_ACTIONS["addFunds"] = 2] = "addFunds";
DDCA_ACTIONS[DDCA_ACTIONS["withdraw"] = 3] = "withdraw";
DDCA_ACTIONS[DDCA_ACTIONS["close"] = 4] = "close";
})(DDCA_ACTIONS = exports.DDCA_ACTIONS || (exports.DDCA_ACTIONS = {}));
exports.tempoHeaders = new Headers();
exports.tempoHeaders.append('content-type', 'application/json;charset=UTF-8');
exports.tempoHeaders.append('X-Api-Version', '1.0');