task-svr/src/common/Constants.ts
2024-03-27 11:15:17 +08:00

43 lines
1.4 KiB
TypeScript

export const ZERO_ADDRESS = '0x0000000000000000000000000000000000000000'
export const ZERO_BYTES32 = '0x0000000000000000000000000000000000000000000000000000000000000000'
export const MAX_BATCH_REQ_COUNT = 50
export const EMPTY_REWARD = 'empty'
export const ITEM_FRAME = 'flame'
export const CONFIRM_MAIL_HTML = `
<h1>有东西需要你确认<h1>
<p>{{title}}</p>
<p>{{desc}}</p>
<p>点击链接进入确认页面, 如果无法跳转, 就复制链接, 电脑上直接用浏览器打开, 手机上使用MetaMask的浏览器打开</p>
<p><a href="{{link}}" target="_blank">{{link2}}</a></p>
`
// 是否需要手动开启游戏
export const MANUAL_OPEN_GAME = true
// 每一步能获得的最小分数
export const STEP_SCORE_MIN = 1
// 每一步能获得的最大分数
export const STEP_SCORE_MAX = 5
// 每一步能获得的宝箱的概率
export const STEP_CHEST_RATE = 0.1
// 宝箱各等级的概率
export const STEP_CHEST_LEVEL = [70, 85, 95, 100]
// 低保步数
export const RESET_STEP = 2
// 积分类型-邀请用户
export const SCORE_INVITE_USER = 'invite_user'
// 积分类型-接受邀请
export const SCORE_INVITE_INVITEE = 'invite_invitee'
// 积分类型-开宝箱
export const SCORE_OPEN_CHEST = 'open_chest'
// 积分类型-抽奖
export const SCORE_DRAW = 'draw'
// 积分类型-探索
export const SCORE_GAME_STEP = 'game_step'
// 积分类型-社交任务
export const SCORE_SOCIAL_TASK = 'Social Tasks'