UNPKG

escrow-market-sdk

Version:
19 lines 1.12 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.DEAL_STATUS_CANCELLED = exports.DEAL_STATUS_SETTLED = exports.DEAL_STATUS_NONE = exports.USER_DEPOSIT_SEED = exports.WITHDRAW_NONCE_SEED = exports.DEAL_SEED = exports.VAULT_TOKEN_ACCOUNT_SEED = exports.VAULT_SEED = exports.CONFIG_SEED = exports.PROGRAM_ID = void 0; const web3_js_1 = require("@solana/web3.js"); const buffer_1 = require("buffer"); // Program ID của Escrow Market exports.PROGRAM_ID = new web3_js_1.PublicKey('6p58bca3jvFHGX4x179gL3ykXVreW4Hp2JLWv9Jnacmx'); // Seeds và prefixes cho PDAs exports.CONFIG_SEED = buffer_1.Buffer.from('config'); exports.VAULT_SEED = buffer_1.Buffer.from('vault'); exports.VAULT_TOKEN_ACCOUNT_SEED = buffer_1.Buffer.from('vault_token_account'); exports.DEAL_SEED = buffer_1.Buffer.from('deal'); exports.WITHDRAW_NONCE_SEED = buffer_1.Buffer.from('withdraw_nonce'); exports.USER_DEPOSIT_SEED = buffer_1.Buffer.from('user_deposit'); // Trạng thái của Deal exports.DEAL_STATUS_NONE = 0; exports.DEAL_STATUS_SETTLED = 1; exports.DEAL_STATUS_CANCELLED = 2; //# sourceMappingURL=index.js.map