-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsoonmarket.constants.ts
45 lines (39 loc) · 2.28 KB
/
soonmarket.constants.ts
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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
// error messages
export const ERROR_MARKET_BALANCE_NOT_FOUND: string = 'market balance not found';
export const ERROR_ONLY_ONE_SPOT_NFT_ALLOWED: string = 'only one spot can nft be redeemed for promotion';
export const ERROR_COLLECTION_NOT_EXISTS: string = 'collection not exists';
export const ERROR_COLLECTION_BLACKLISTED: string = 'collection blacklisted';
export const ERROR_COLLECTION_NOT_BLACKLISTED: string = 'collection not blacklisted';
export const ERROR_COLLECTION_ALREADY_BLACKLISTED: string = 'collection already blacklisted';
export const ERROR_COLLECTION_NOT_VERIFIED: string = 'collection not verified';
export const ERROR_COLLECTION_NEITHER_VERIFIED_NOR_SHIELDED: string = 'collection neither verified nor shielded';
export const ERROR_COLLECTION_ALREADY_VERIFIED: string = 'collection already verified';
export const ERROR_AUCTION_NOT_EXISTS: string = 'auction not exists';
export const ERROR_INVALID_WORD_COUNT: string = 'invalid word count in memo';
export const ERROR_INVALID_PROMOTION_TYPE: string = 'invalid promotion type';
export const ERROR_INVALID_PROMOTION_TYPE_AUCTION_GOLD_ONLY =
'invalid promotion type - auction only allowed for gold spot';
export const ERROR_INVALID_NFT_SILVER_SPOT_EXPECTED: string = 'invalid nft - silver spot expected';
export const ERROR_AUCTION_NOT_STARTED: string = 'auction not started yet';
export const ERROR_AUCTION_EXPIRED_OR_CLOSE_TO_EXPIRATION: string = 'auction expired or close to expiration';
export const ERROR_COLLECTION_ALREADY_PROMOTED: string = 'collection already promoted';
// error missing authority
export const ERROR_MISSING_REQUIRED_AUTHORITY_SOONMARKET: string = 'missing required authority soonmarket';
// soon spots
export const SPOT_COLLECTION_NAME = '323154322551';
export const GOLD_SPOT_ID_MAINNET = 4398046764318;
export const SILVER_SPOT_TEMPLATE_ID_MAINNET = 51066;
// promo types
export const PROMO_TYPE_AUCTION = 'auction';
export const PROMO_TYPE_COLLECTION = 'collection';
// spot types
export const SPOT_TYPE_GOLD = 'gold';
export const SPOT_TYPE_SILVER = 'silver';
// actions
export const ACTION_AUCTION = 'auction';
export const ACTION_BURN_MINT_AUCTION = 'burn_mint_auction';
// durations in seconds
export const ONE_HOUR = 3_600;
export const ONE_DAY = 86_400;
export const ONE_WEEK = 604_800;
export const TWO_WEEKS = 1_209_600;