@cranberry-money/shared-constants
Version:
Shared constants for Blueberry platform
78 lines • 3.4 kB
TypeScript
export declare const ORDER_TYPE: {
readonly BUY: "BUY";
readonly SELL: "SELL";
};
export type OrderType = (typeof ORDER_TYPE)[keyof typeof ORDER_TYPE];
export declare const ORDER_STATUS: {
readonly OPEN: "OPEN";
readonly PARTIALLY_FILLED: "PARTIALLY_FILLED";
readonly MATCHED: "MATCHED";
readonly PENDING_SIGNATURE: "PENDING_SIGNATURE";
readonly COMPLETED: "COMPLETED";
readonly CANCELLED: "CANCELLED";
readonly EXPIRED: "EXPIRED";
};
export type OrderStatus = (typeof ORDER_STATUS)[keyof typeof ORDER_STATUS];
export declare const SWAP_STATUS: {
readonly CREATED: "created";
readonly SELLER_SIGNED: "seller_signed";
readonly BUYER_SIGNED: "buyer_signed";
readonly READY: "ready";
readonly EXECUTING: "executing";
readonly COMPLETED: "completed";
readonly FAILED: "failed";
readonly EXPIRED: "expired";
};
export type SwapStatus = (typeof SWAP_STATUS)[keyof typeof SWAP_STATUS];
export declare const SWAP_USER_ROLE: {
readonly SELLER: "seller";
readonly BUYER: "buyer";
};
export type SwapUserRole = (typeof SWAP_USER_ROLE)[keyof typeof SWAP_USER_ROLE];
export declare const ARCA_ENDPOINTS: {
readonly TOKENS: {
readonly LIST: "/public/v1/tokens/";
readonly DETAIL: (uuid: string) => `/public/v1/tokens/${string}/`;
readonly ORDER_BOOK: (uuid: string) => `/public/v1/tokens/${string}/order-book/`;
readonly MARKET_DATA: (uuid: string) => `/public/v1/tokens/${string}/market-data/`;
};
readonly ORDERS: {
readonly LIST: "/public/v1/orders/";
readonly DETAIL: (uuid: string) => `/public/v1/orders/${string}/`;
readonly CREATE: "/public/v1/orders/create/";
readonly CREATE_MESSAGE: "/public/v1/orders/create/message/";
readonly CANCEL: (uuid: string) => `/public/v1/orders/${string}/cancel/`;
readonly CANCEL_MESSAGE: (uuid: string) => `/public/v1/orders/${string}/cancel/message/`;
readonly MODIFY: (uuid: string) => `/public/v1/orders/${string}/modify/`;
readonly MODIFY_MESSAGE: (uuid: string) => `/public/v1/orders/${string}/modify/message/`;
readonly MODIFICATIONS: (uuid: string) => `/public/v1/orders/${string}/modifications/`;
readonly SWAP: (uuid: string) => `/public/v1/orders/${string}/swap/`;
readonly SWAP_SIGN: (uuid: string) => `/public/v1/orders/${string}/swap/sign/`;
readonly SWAP_APPROVAL_STATUS: (uuid: string) => `/public/v1/orders/${string}/swap/approval-status/`;
readonly SWAP_APPROVAL_DATA: (uuid: string) => `/public/v1/orders/${string}/swap/approval-data/`;
};
readonly WALLETS: {
readonly BALANCES: "/public/v1/wallets/balances/";
};
readonly SWAPS: {
readonly LIST: "/public/v1/swaps/";
};
readonly STABLECOINS: {
readonly LIST: "/public/v1/stablecoins/";
};
readonly TRANSACTIONS: {
readonly LIST: "/public/v1/transactions/";
};
readonly TRANSFERS: {
readonly PREPARE: "/public/v1/transfers/prepare/";
readonly BROADCAST: "/public/v1/transfers/broadcast/";
};
readonly WHITELIST: {
readonly STATUS: (address: string) => `/public/v1/whitelist/${string}/status/`;
};
};
export declare const TRADING_CONFIG: {
readonly ORDER_BOOK_REFRESH_INTERVAL: 30000;
readonly DEFAULT_ORDER_EXPIRY_DAYS: 7;
};
//# sourceMappingURL=trading.d.ts.map