@ultrade/shared 1.0.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/dist/baseModel/base.model.d.ts +26 -0
- package/dist/baseModel/index.d.ts +2 -0
- package/dist/common/auth.helper.d.ts +4 -0
- package/dist/common/auth.helper.js +367 -0
- package/dist/common/awsKms.d.ts +2 -0
- package/dist/common/awsKms.js +265 -0
- package/dist/common/big-number.helper.d.ts +38 -0
- package/dist/common/big-number.helper.js +263 -0
- package/dist/common/index.d.ts +11 -0
- package/dist/common/index.js +2541 -0
- package/dist/common/indexer.helper.d.ts +2 -0
- package/dist/common/indexer.helper.js +387 -0
- package/dist/common/logger.d.ts +32 -0
- package/dist/common/logger.js +188 -0
- package/dist/common/mappers/codexAsset.mapper.d.ts +2 -0
- package/dist/common/mappers/codexAsset.mapper.js +40 -0
- package/dist/common/mappers/codexBalance.mapper.d.ts +2 -0
- package/dist/common/mappers/codexBalance.mapper.js +38 -0
- package/dist/common/mappers/index.d.ts +3 -0
- package/dist/common/mappers/index.js +1421 -0
- package/dist/common/mappers/trade.mapper.d.ts +6 -0
- package/dist/common/mappers/trade.mapper.js +1343 -0
- package/dist/common/migration.helpers.d.ts +4 -0
- package/dist/common/migration.helpers.js +44 -0
- package/dist/common/redis.helper.d.ts +27 -0
- package/dist/common/redis.helper.js +269 -0
- package/dist/common/secret.helper.d.ts +28 -0
- package/dist/common/secret.helper.js +144 -0
- package/dist/common/timestamp.helper.d.ts +1 -0
- package/dist/common/timestamp.helper.js +41 -0
- package/dist/common/utils/assert.d.ts +1 -0
- package/dist/common/utils/assert.js +32 -0
- package/dist/common/utils/decode.d.ts +5 -0
- package/dist/common/utils/decode.js +206 -0
- package/dist/common/utils/index.d.ts +9 -0
- package/dist/common/utils/index.js +122 -0
- package/dist/common/utils/social.d.ts +1 -0
- package/dist/common/utils/social.js +30 -0
- package/dist/common/utils/stat.d.ts +1 -0
- package/dist/common/utils/stat.js +274 -0
- package/dist/constants/allowedUrls.d.ts +1 -0
- package/dist/constants/auth.d.ts +2 -0
- package/dist/constants/cctp.d.ts +3 -0
- package/dist/constants/codex.d.ts +11 -0
- package/dist/constants/env.d.ts +6 -0
- package/dist/constants/index.d.ts +7 -0
- package/dist/constants/index.js +455 -0
- package/dist/constants/queue.d.ts +39 -0
- package/dist/constants/response.d.ts +82 -0
- package/dist/constants/settings.d.ts +2 -0
- package/dist/constants/social.d.ts +3 -0
- package/dist/constants/withdrawalWalletsMessage.d.ts +1 -0
- package/dist/enums/chains.enum.d.ts +50 -0
- package/dist/enums/db/account/index.d.ts +19 -0
- package/dist/enums/db/affiliate.enum.d.ts +7 -0
- package/dist/enums/db/available-pair-settings.enum.d.ts +12 -0
- package/dist/enums/db/chains.d.ts +30 -0
- package/dist/enums/db/common.enum.d.ts +4 -0
- package/dist/enums/db/component/index.d.ts +22 -0
- package/dist/enums/db/index.d.ts +21 -0
- package/dist/enums/db/market-maker.enum.d.ts +15 -0
- package/dist/enums/db/notification-center/userNotification.enum.d.ts +36 -0
- package/dist/enums/db/order-side.enum.d.ts +5 -0
- package/dist/enums/db/order-status.enum.d.ts +8 -0
- package/dist/enums/db/order-type.enum.d.ts +7 -0
- package/dist/enums/db/pending-actions.enum.d.ts +6 -0
- package/dist/enums/db/relayer.enum.d.ts +23 -0
- package/dist/enums/db/setting-type.enum.d.ts +8 -0
- package/dist/enums/db/social-action.enum.d.ts +24 -0
- package/dist/enums/db/social-prompt.enum.d.ts +8 -0
- package/dist/enums/db/social.enum.d.ts +10 -0
- package/dist/enums/db/state-type.enum.d.ts +9 -0
- package/dist/enums/db/trade.enums.d.ts +10 -0
- package/dist/enums/db/tradingKeyType.enum.d.ts +4 -0
- package/dist/enums/db/upgrade.enum.d.ts +5 -0
- package/dist/enums/db/withdrawal-wallet.enum.d.ts +5 -0
- package/dist/enums/index.d.ts +5 -0
- package/dist/enums/index.js +893 -0
- package/dist/enums/maintenanceMode.enum.d.ts +10 -0
- package/dist/enums/notification.enum.d.ts +7 -0
- package/dist/enums/social.enum.d.ts +10 -0
- package/dist/helpers/Encoding.d.ts +33 -0
- package/dist/helpers/Encoding.js +318 -0
- package/dist/helpers/algo.helper.d.ts +14 -0
- package/dist/helpers/algo.helper.js +1211 -0
- package/dist/helpers/api.helper.d.ts +16 -0
- package/dist/helpers/api.helper.js +1652 -0
- package/dist/helpers/assert.helper.d.ts +10 -0
- package/dist/helpers/assert.helper.js +1677 -0
- package/dist/helpers/atomic.helper.d.ts +21 -0
- package/dist/helpers/atomic.helper.js +712 -0
- package/dist/helpers/balance.helper.d.ts +13 -0
- package/dist/helpers/balance.helper.js +4330 -0
- package/dist/helpers/codex/common.helper.d.ts +24 -0
- package/dist/helpers/codex/common.helper.js +4246 -0
- package/dist/helpers/codex/index.d.ts +6 -0
- package/dist/helpers/codex/index.js +4246 -0
- package/dist/helpers/codex/mbr.helper.d.ts +6 -0
- package/dist/helpers/codex/mbr.helper.js +4246 -0
- package/dist/helpers/codex/mna.helper.d.ts +2 -0
- package/dist/helpers/codex/mna.helper.js +4246 -0
- package/dist/helpers/codex/order.helper.d.ts +6 -0
- package/dist/helpers/codex/order.helper.js +4246 -0
- package/dist/helpers/codex/setGlobal.helper.d.ts +27 -0
- package/dist/helpers/codex/setGlobal.helper.js +4312 -0
- package/dist/helpers/codex/transfer.helper.d.ts +21 -0
- package/dist/helpers/codex/transfer.helper.js +4246 -0
- package/dist/helpers/codex/txn.helper.d.ts +13 -0
- package/dist/helpers/codex/txn.helper.js +4246 -0
- package/dist/helpers/codex.helper.d.ts +106 -0
- package/dist/helpers/codex.helper.js +4246 -0
- package/dist/helpers/email.helper.d.ts +5 -0
- package/dist/helpers/email.helper.js +112 -0
- package/dist/helpers/eth.helper.d.ts +12 -0
- package/dist/helpers/eth.helper.js +4246 -0
- package/dist/helpers/hummingbots.helper.d.ts +2 -0
- package/dist/helpers/hummingbots.helper.js +163 -0
- package/dist/helpers/index.d.ts +5 -0
- package/dist/helpers/index.js +837 -0
- package/dist/helpers/interval.helpers.d.ts +9 -0
- package/dist/helpers/interval.helpers.js +110 -0
- package/dist/helpers/liquidity.helper.d.ts +6 -0
- package/dist/helpers/liquidity.helper.js +81 -0
- package/dist/helpers/order.helper.d.ts +7 -0
- package/dist/helpers/order.helper.js +946 -0
- package/dist/helpers/pair.helper.d.ts +9 -0
- package/dist/helpers/pair.helper.js +938 -0
- package/dist/helpers/pointSystem.helper.d.ts +14 -0
- package/dist/helpers/pointSystem.helper.js +392 -0
- package/dist/helpers/ticker.helpers.d.ts +8 -0
- package/dist/helpers/ticker.helpers.js +358 -0
- package/dist/helpers/vaa.helper.d.ts +2 -0
- package/dist/helpers/vaa.helper.js +4350 -0
- package/dist/helpers/withdraw.helper.d.ts +14 -0
- package/dist/helpers/withdraw.helper.js +4784 -0
- package/dist/interfaces/accountInfo.interface.d.ts +15 -0
- package/dist/interfaces/algostreamer/index.d.ts +49 -0
- package/dist/interfaces/api/affiliate.interface.d.ts +71 -0
- package/dist/interfaces/cache.interface.d.ts +25 -0
- package/dist/interfaces/confirmed-txn.interface.d.ts +46 -0
- package/dist/interfaces/controller.interface.d.ts +6 -0
- package/dist/interfaces/db/baseModel.interface.d.ts +5 -0
- package/dist/interfaces/db/hummingbot/index.d.ts +18 -0
- package/dist/interfaces/db/index.d.ts +10 -0
- package/dist/interfaces/db/market/index.d.ts +313 -0
- package/dist/interfaces/db/marketing/index.d.ts +48 -0
- package/dist/interfaces/db/notification_center/index.d.ts +33 -0
- package/dist/interfaces/db/relayer/index.d.ts +56 -0
- package/dist/interfaces/db/social/index.d.ts +188 -0
- package/dist/interfaces/db/softDeleteModel.interface.d.ts +4 -0
- package/dist/interfaces/db/white_label/index.d.ts +161 -0
- package/dist/interfaces/db/withdrawal_wallets/index.d.ts +12 -0
- package/dist/interfaces/dto/index.d.ts +62 -0
- package/dist/interfaces/emailService.interface.d.ts +4 -0
- package/dist/interfaces/index.d.ts +17 -0
- package/dist/interfaces/index.js +1319 -0
- package/dist/interfaces/kmsService.interface.d.ts +4 -0
- package/dist/interfaces/last-look-trade.interface.d.ts +10 -0
- package/dist/interfaces/market.interface.d.ts +17 -0
- package/dist/interfaces/order.interface.d.ts +162 -0
- package/dist/interfaces/pair.interface.d.ts +10 -0
- package/dist/interfaces/query.interface.d.ts +6 -0
- package/dist/interfaces/services/accountCache.interface.d.ts +15 -0
- package/dist/interfaces/services/algod.interface.d.ts +5 -0
- package/dist/interfaces/services/balances.interface.d.ts +11 -0
- package/dist/interfaces/services/coin-market-cap.interface.d.ts +124 -0
- package/dist/interfaces/services/index.d.ts +8 -0
- package/dist/interfaces/services/price-model.interface.d.ts +4 -0
- package/dist/interfaces/services/price-service.interface.d.ts +8 -0
- package/dist/interfaces/services/socialActivity.interface.d.ts +48 -0
- package/dist/interfaces/services/tmc.interface.d.ts +9 -0
- package/dist/interfaces/streaming.interface.d.ts +95 -0
- package/dist/interfaces/timestream.interface.d.ts +29 -0
- package/dist/interfaces/trading.interface.d.ts +235 -0
- package/dist/interfaces/tradingKey.interface.d.ts +26 -0
- package/dist/interfaces/transfer.interface.d.ts +12 -0
- package/dist/interfaces/wallet.interface.d.ts +89 -0
- package/dist/interfaces/withdrawalWallets.interface.d.ts +14 -0
- package/dist/types/algo-order.type.d.ts +10 -0
- package/dist/types/amm/amm.d.ts +163 -0
- package/dist/types/api/request.types.d.ts +99 -0
- package/dist/types/codex.types.d.ts +28 -0
- package/dist/types/hummingbots.types.d.ts +23 -0
- package/dist/types/index.d.ts +8 -0
- package/dist/types/index.js +362 -0
- package/dist/types/notification.type.d.ts +10 -0
- package/dist/types/settings.type.d.ts +162 -0
- package/dist/types/state.type.d.ts +4 -0
- package/package.json +78 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
export declare enum FeeTier {
|
|
2
|
+
FEE_TIER_1 = 1,
|
|
3
|
+
FEE_TIER_2 = 2,
|
|
4
|
+
FEE_TIER_3 = 3,
|
|
5
|
+
FEE_TIER_4 = 4,
|
|
6
|
+
FEE_TIER_5 = 5,
|
|
7
|
+
FEE_TIER_6 = 6
|
|
8
|
+
}
|
|
9
|
+
export declare enum LastLookAction {
|
|
10
|
+
Approve = 1,
|
|
11
|
+
Reject = 0
|
|
12
|
+
}
|
|
13
|
+
export declare enum KYCAuthenticationStatus {
|
|
14
|
+
INITIATED = "INITIATED",
|
|
15
|
+
CREATED = "CREATED",
|
|
16
|
+
PROCESSING = "PROCESSING",
|
|
17
|
+
APPROVED = "APPROVED",
|
|
18
|
+
REJECTED = "REJECTED"
|
|
19
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
declare enum AvailablePairSettings {
|
|
2
|
+
MFT_AUDIO_LINK = "mft.audioLink",
|
|
3
|
+
MFT_TITLE = "mft.title",
|
|
4
|
+
MODE_PRE_SALE = "mode.preSale",
|
|
5
|
+
MAKER_FEE = "makerFee",
|
|
6
|
+
TAKER_FEE = "takerFee",
|
|
7
|
+
VIEW_BASE_COIN_ICON_LINK = "view.baseCoinIconLink",
|
|
8
|
+
VIEW_BASE_COIN_MARKET_LINK = "view.baseCoinMarketLink",
|
|
9
|
+
VIEW_PRICE_COIN_ICON_LINK = "view.priceCoinIconLink",
|
|
10
|
+
VIEW_PRICE_COIN_MARKET_LINK = "view.priceCoinMarketLink"
|
|
11
|
+
}
|
|
12
|
+
export default AvailablePairSettings;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export declare enum BLOCKCHAINS {
|
|
2
|
+
ALGORAND = "Algorand",
|
|
3
|
+
APTOS = "Aptos",
|
|
4
|
+
AVALANCHE = "Avalanche",
|
|
5
|
+
ARBITRUM = "Arbitrum",
|
|
6
|
+
BSC = "BNB Chain",
|
|
7
|
+
ETHEREUM = "Ethereum",
|
|
8
|
+
OPTIMISM = "Optimism",
|
|
9
|
+
POLYGON = "Polygon",
|
|
10
|
+
BASE = "Base",
|
|
11
|
+
SEPOLIA = "Sepolia",
|
|
12
|
+
NEAR = "Near",
|
|
13
|
+
SOLANA = "Solana",
|
|
14
|
+
SUI = "Sui"
|
|
15
|
+
}
|
|
16
|
+
export declare enum WHCHAINS {
|
|
17
|
+
'Algorand' = 8,
|
|
18
|
+
'Aptos' = 22,
|
|
19
|
+
'Avalanche' = 6,
|
|
20
|
+
'Arbitrum' = 23,
|
|
21
|
+
'BNB Chain' = 4,
|
|
22
|
+
'Ethereum' = 2,
|
|
23
|
+
'Optimism' = 24,
|
|
24
|
+
'Polygon' = 5,
|
|
25
|
+
'Base' = 30,
|
|
26
|
+
'Sepolia' = 10002,
|
|
27
|
+
'Near' = 15,
|
|
28
|
+
'Solana' = 1,
|
|
29
|
+
'Sui' = 21
|
|
30
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
export declare enum ComponentStatusType {
|
|
2
|
+
ACTIVE = "ACTIVE",
|
|
3
|
+
FAILED = "FAILED",
|
|
4
|
+
STARTING = "STARTING",
|
|
5
|
+
DRAINING = "DRAINING",
|
|
6
|
+
TERMINATING = "TERMINATING",
|
|
7
|
+
TERMINATED = "TERMINATED"
|
|
8
|
+
}
|
|
9
|
+
export declare enum ComponentType {
|
|
10
|
+
MATCHING_ENGINE = "me",
|
|
11
|
+
ORDER_SERVICE = "ors",
|
|
12
|
+
API = "api",
|
|
13
|
+
SOCKET_SERVICE = "ws",
|
|
14
|
+
TRANSACTION_SERVICE = "tns"
|
|
15
|
+
}
|
|
16
|
+
export declare enum PairComponentStatusType {
|
|
17
|
+
ACTIVE = "ACTIVE",
|
|
18
|
+
FAILED = "FAILED",
|
|
19
|
+
UNASSIGNED = "UNASSIGNED",
|
|
20
|
+
ASSIGNED = "ASSIGNED",
|
|
21
|
+
STARTING = "STARTING"
|
|
22
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import AvailablePairSettings from './available-pair-settings.enum';
|
|
2
|
+
import OrderSide from './order-side.enum';
|
|
3
|
+
import OrderStatus from './order-status.enum';
|
|
4
|
+
import OrderType from './order-type.enum';
|
|
5
|
+
import { TradingKeyType } from './tradingKeyType.enum';
|
|
6
|
+
export * from './social-action.enum';
|
|
7
|
+
export * from './social.enum';
|
|
8
|
+
export * from './social-prompt.enum';
|
|
9
|
+
export * from './account';
|
|
10
|
+
export * from './affiliate.enum';
|
|
11
|
+
export * from './component';
|
|
12
|
+
export * from './relayer.enum';
|
|
13
|
+
export * from './trade.enums';
|
|
14
|
+
export * from './market-maker.enum';
|
|
15
|
+
export * from './common.enum';
|
|
16
|
+
export * from './notification-center/userNotification.enum';
|
|
17
|
+
export * from './setting-type.enum';
|
|
18
|
+
export * from './state-type.enum';
|
|
19
|
+
export * from './upgrade.enum';
|
|
20
|
+
export * from './withdrawal-wallet.enum';
|
|
21
|
+
export { AvailablePairSettings, OrderSide, OrderStatus, OrderType, TradingKeyType, };
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare enum MarketMakerRebateTier {
|
|
2
|
+
FIRST = 1,
|
|
3
|
+
SECOND = 2,
|
|
4
|
+
THIRD = 3,
|
|
5
|
+
FOURTH = 4
|
|
6
|
+
}
|
|
7
|
+
export declare enum MarketMakerSortByEnum {
|
|
8
|
+
REBATE_TIER = "rebateTier",
|
|
9
|
+
CREATED_AT = "createdAt",
|
|
10
|
+
NAME = "name",
|
|
11
|
+
TAKER_FEE = "takerFee",
|
|
12
|
+
ENABLED = "enabled",
|
|
13
|
+
ADDRESS = "address",
|
|
14
|
+
CHAIN = "chainId"
|
|
15
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
export declare enum GlobalNotificationEnum {
|
|
2
|
+
GLOBAL_PAIR_DELISTING = "GLOBAL_PAIR_DELISTING",
|
|
3
|
+
GLOBAL_NEW_PAIR_LISTING = "GLOBAL_NEW_PAIR_LISTING",
|
|
4
|
+
GLOBAL_SYSTEM_MAINTENANCE = "GLOBAL_SYSTEM_MAINTENANCE",
|
|
5
|
+
GLOBAL_SMART_CONTRACT_UPDATE = "GLOBAL_SMART_CONTRACT_UPDATE"
|
|
6
|
+
}
|
|
7
|
+
export declare enum AccountNotificationEnum {
|
|
8
|
+
ACCOUNT_POINTS_UNLOCK_ACHIEVEMENT = "ACCOUNT_POINTS_UNLOCK_ACHIEVEMENT",
|
|
9
|
+
ACCOUNT_KYC_STATUS_CHANGED = "ACCOUNT_KYC_STATUS_CHANGED",
|
|
10
|
+
ACCOUNT_AFFILIATE_DASHBOARD_UNLOCKED = "ACCOUNT_AFFILIATE_DASHBOARD_UNLOCKED"
|
|
11
|
+
}
|
|
12
|
+
export declare const CombinedNotificationEnum: {
|
|
13
|
+
ACCOUNT_POINTS_UNLOCK_ACHIEVEMENT: AccountNotificationEnum.ACCOUNT_POINTS_UNLOCK_ACHIEVEMENT;
|
|
14
|
+
ACCOUNT_KYC_STATUS_CHANGED: AccountNotificationEnum.ACCOUNT_KYC_STATUS_CHANGED;
|
|
15
|
+
ACCOUNT_AFFILIATE_DASHBOARD_UNLOCKED: AccountNotificationEnum.ACCOUNT_AFFILIATE_DASHBOARD_UNLOCKED;
|
|
16
|
+
GLOBAL_PAIR_DELISTING: GlobalNotificationEnum.GLOBAL_PAIR_DELISTING;
|
|
17
|
+
GLOBAL_NEW_PAIR_LISTING: GlobalNotificationEnum.GLOBAL_NEW_PAIR_LISTING;
|
|
18
|
+
GLOBAL_SYSTEM_MAINTENANCE: GlobalNotificationEnum.GLOBAL_SYSTEM_MAINTENANCE;
|
|
19
|
+
GLOBAL_SMART_CONTRACT_UPDATE: GlobalNotificationEnum.GLOBAL_SMART_CONTRACT_UPDATE;
|
|
20
|
+
};
|
|
21
|
+
export type CombinedNotificationEnumType = keyof typeof CombinedNotificationEnum;
|
|
22
|
+
export type NotificationType = `${GlobalNotificationEnum}` | `${AccountNotificationEnum}`;
|
|
23
|
+
export declare enum NotificationPriorityEnum {
|
|
24
|
+
CRITICAL = "CRITICAL",
|
|
25
|
+
IMPORTANT = "IMPORTANT",
|
|
26
|
+
INFO = "INFO"
|
|
27
|
+
}
|
|
28
|
+
export declare enum NotificationStatusEnum {
|
|
29
|
+
UNREAD = "UNREAD",
|
|
30
|
+
READ = "READ"
|
|
31
|
+
}
|
|
32
|
+
export declare enum ScheduledNotificationStatusEnum {
|
|
33
|
+
PENDING = "PENDING",
|
|
34
|
+
PROCESSED = "PROCESSED",
|
|
35
|
+
FAILED = "FAILED"
|
|
36
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
export declare enum OperationStatusEnum {
|
|
2
|
+
Pending = "pending",
|
|
3
|
+
Completed = "completed",
|
|
4
|
+
Failed = "failed",
|
|
5
|
+
Received = "received"
|
|
6
|
+
}
|
|
7
|
+
export declare enum ActionTypeEnum {
|
|
8
|
+
Deposit = "deposit",
|
|
9
|
+
Withdraw = "withdraw",
|
|
10
|
+
Rebalance = "rebalance"
|
|
11
|
+
}
|
|
12
|
+
export declare enum CCTPStatus {
|
|
13
|
+
PENDING = "pending",
|
|
14
|
+
COMPLETED = "completed",
|
|
15
|
+
FAILED = "failed"
|
|
16
|
+
}
|
|
17
|
+
export declare enum TransactionType {
|
|
18
|
+
USER_TO_TMC = "user_to_tmc",
|
|
19
|
+
TMC_TO_USER = "tmc_to_user",
|
|
20
|
+
RELAYER_TO_TMC = "relayer_to_tmc",
|
|
21
|
+
RELAYER_TO_CODEX = "relayer_to_codex",
|
|
22
|
+
RELAYER_TO_CIRCLE = "relayer_to_circle"
|
|
23
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
export declare enum ActionSource {
|
|
2
|
+
COMPANY = "COMPANY",
|
|
3
|
+
TWITTER = "TWITTER",
|
|
4
|
+
DISCORD = "DISCORD",
|
|
5
|
+
TELEGRAM = "TELEGRAM"
|
|
6
|
+
}
|
|
7
|
+
export type TwitterAction = ActionEnum.TWITTER_FOLLOW | ActionEnum.TWITTER_LIKE | ActionEnum.TWITTER_REPLY | ActionEnum.TWITTER_RETWEET;
|
|
8
|
+
export type CompanyAction = ActionEnum.COMPANY_FIRST_LOGIN | ActionEnum.COMPANY_CONFIRM_EMAIL | ActionEnum.COMPANY_DEPOSIT | ActionEnum.COMPANY_TRADE;
|
|
9
|
+
export type DiscordAction = ActionEnum.DISCORD_JOIN_SERVER;
|
|
10
|
+
export type TelegramAction = ActionEnum.TELEGRAM_JOIN_GROUP;
|
|
11
|
+
export declare enum ActionEnum {
|
|
12
|
+
TWITTER_FOLLOW = 1,
|
|
13
|
+
TWITTER_REPLY = 2,
|
|
14
|
+
TWITTER_RETWEET = 3,
|
|
15
|
+
TWITTER_LIKE = 4,
|
|
16
|
+
COMPANY_FIRST_LOGIN = 5,
|
|
17
|
+
COMPANY_CONFIRM_EMAIL = 6,
|
|
18
|
+
COMPANY_DEPOSIT = 7,
|
|
19
|
+
COMPANY_TRADE = 8,
|
|
20
|
+
TELEGRAM_JOIN_GROUP = 9,
|
|
21
|
+
DISCORD_JOIN_SERVER = 10,
|
|
22
|
+
AFFILIATE_POINTS_REWARD = 11
|
|
23
|
+
}
|
|
24
|
+
export declare const NON_REPEATABLE_ACTIONS: ActionEnum[];
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare enum StateType {
|
|
2
|
+
VERSION = "version",
|
|
3
|
+
LAST_ALGO_BLOCK = "last_algo_block",
|
|
4
|
+
PRICES_PROVIDER_API_KEY = "prices_provider_api_key",
|
|
5
|
+
DEFAULT_API_DOMAIN = "default_api_domain",
|
|
6
|
+
NONCE_ACCOUNTS_SOLANA = "nonce_accounts_solana",
|
|
7
|
+
ARCHIVE_DATA_BATCH_SIZE = "archive_data_batch_size",
|
|
8
|
+
ARCHIVE_TASK_LOCK = "archive_task_lock"
|
|
9
|
+
}
|