finish login
This commit is contained in:
14
README.md
14
README.md
@@ -126,10 +126,10 @@ async function initialize() { ... }
|
||||
```javascript
|
||||
const TASK_TYPES = {
|
||||
LOGIN: 'login',
|
||||
GET_ORDER_HISTORY: 'get-order-history',
|
||||
GET_BALANCE: 'get-balance',
|
||||
SWAP: 'swap',
|
||||
NO_TASK: 'no-task'
|
||||
GET_ORDER_HISTORY: 'get_order_history',
|
||||
GET_BALANCE: 'get_balance',
|
||||
SWAP: 'swap',
|
||||
NO_TASK: 'no_task'
|
||||
};
|
||||
```
|
||||
|
||||
@@ -253,8 +253,8 @@ if (bot_status === BOT_STATUS.READY_FOR_NEW_TASKS) {
|
||||
class AppState {
|
||||
data = {
|
||||
// Server configuration
|
||||
server_mode: 'prod',
|
||||
server: null,
|
||||
server_type: 'prod',
|
||||
server_url: null,
|
||||
|
||||
// Page state
|
||||
current_page: null,
|
||||
@@ -425,7 +425,7 @@ const CONFIG = {
|
||||
```javascript
|
||||
const STORAGE = {
|
||||
key_token: 'baf-agent-token',
|
||||
key_server_mode: 'baf-server-mode',
|
||||
key_server_type: 'baf-server-type',
|
||||
key_bot_status: 'baf-bot-status',
|
||||
key_navigation_state: 'baf-navigation-state'
|
||||
};
|
||||
|
||||
1283
agent.user.js
1283
agent.user.js
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user