Skip to content

Commit f9b3b24

Browse files
recreate
0 parents  commit f9b3b24

File tree

1,014 files changed

+97318
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,014 files changed

+97318
-0
lines changed

.dockerignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
npm-debug*
3+
.nuxt
4+
.git

.editorconfig

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
root = true
2+
3+
[*]
4+
charset = utf-8
5+
indent_style = space
6+
indent_size = 2
7+
end_of_line = lf
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true

.eslintrc.js

+78
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,78 @@
1+
module.exports = {
2+
root: true,
3+
4+
parserOptions: {
5+
parser: 'babel-eslint',
6+
sourceType: 'module'
7+
},
8+
9+
env: {
10+
browser: true
11+
},
12+
13+
extends: [
14+
// https://github.com/vuejs/eslint-plugin-vue#priority-a-essential-error-prevention
15+
// consider switching to `plugin:vue/strongly-recommended` or `plugin:vue/recommended` for stricter rules.
16+
'plugin:vue/essential',
17+
'@vue/standard',
18+
'@nuxtjs'
19+
],
20+
21+
// required to lint *.vue files
22+
plugins: [
23+
'vue'
24+
],
25+
26+
globals: {
27+
'ga': true, // Google Analytics
28+
'cordova': true,
29+
'__statics': true,
30+
'process': true,
31+
'Capacitor': true
32+
},
33+
34+
// add your custom rules here
35+
rules: {
36+
// allow async-await
37+
'quotes': 1,
38+
'no-unused-expressions': 0,
39+
'generator-star-spacing': 'off',
40+
// allow paren-less arrow functions
41+
'arrow-parens': 'off',
42+
'one-var': 'off',
43+
44+
'import/first': 'off',
45+
'import/named': 'error',
46+
'import/namespace': 'error',
47+
'import/default': 'error',
48+
'import/export': 'error',
49+
'import/extensions': 'off',
50+
'import/no-unresolved': 'off',
51+
'import/no-extraneous-dependencies': 'off',
52+
'prefer-promise-reject-errors': 'off',
53+
54+
// allow console.log during development only
55+
'no-console': process.env.NODE_ENV === 'production' ? 'error' : 'off',
56+
// allow debugger during development only
57+
'no-debugger': process.env.NODE_ENV === 'production' ? 'error' : 'off',
58+
'camelcase': 'off',
59+
'no-return-await': 'off',
60+
'curly': 'off',
61+
'require-await': 1,
62+
'no-unreachable': 1,
63+
'no-return-assign': 0,
64+
'no-multiple-empty-lines': 1,
65+
'spaced-comment': 1,
66+
'no-unused-vars': 1,
67+
'spaced-comment': 0,
68+
'padded-blocks': 1,
69+
'space-before-function-paren': 0,
70+
'comma-dangle': 1,
71+
'eqeqeq': 0,
72+
'prefer-const': 1,
73+
'no-useless-catch': 0,
74+
75+
'vue/require-default-prop': 1,
76+
'vue/require-prop-types': 0
77+
}
78+
}

.gitignore

+87
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
# Created by .ignore support plugin (hsz.mobi)
2+
### Node template
3+
# Logs
4+
logs
5+
*.log
6+
npm-debug.log*
7+
yarn-debug.log*
8+
yarn-error.log*
9+
10+
# Runtime data
11+
pids
12+
*.pid
13+
*.seed
14+
*.pid.lock
15+
16+
# Directory for instrumented libs generated by jscoverage/JSCover
17+
lib-cov
18+
19+
# Coverage directory used by tools like istanbul
20+
coverage
21+
22+
# nyc test coverage
23+
.nyc_output
24+
25+
# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
26+
.grunt
27+
28+
# Bower dependency directory (https://bower.io/)
29+
bower_components
30+
31+
# node-waf configuration
32+
.lock-wscript
33+
34+
# Compiled binary addons (https://nodejs.org/api/addons.html)
35+
build/Release
36+
37+
# Dependency directories
38+
node_modules/
39+
jspm_packages/
40+
41+
# TypeScript v1 declaration files
42+
typings/
43+
44+
# Optional npm cache directory
45+
.npm
46+
47+
# Optional eslint cache
48+
.eslintcache
49+
50+
# Optional REPL history
51+
.node_repl_history
52+
53+
# Output of 'npm pack'
54+
*.tgz
55+
56+
# Yarn Integrity file
57+
.yarn-integrity
58+
59+
# dotenv environment variables file
60+
.env
61+
62+
# parcel-bundler cache (https://parceljs.org/)
63+
.cache
64+
65+
# next.js build output
66+
.next
67+
68+
# nuxt.js build output
69+
.nuxt
70+
71+
# Nuxt generate
72+
dist
73+
74+
# vuepress build output
75+
.vuepress/dist
76+
77+
# Serverless directories
78+
.serverless
79+
80+
# IDE
81+
.idea
82+
83+
.DS_Store
84+
.tern-port
85+
deploy.sh
86+
data/
87+
ecosystem.config.js

.prettierrc

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"semi": false,
3+
"arrowParens": "always",
4+
"singleQuote": true
5+
}

Dockerfile

+32
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
FROM node:16
2+
3+
# create destination directory
4+
RUN mkdir /app
5+
WORKDIR /app
6+
7+
# update and install dependency
8+
#RUN apk update && apk upgrade
9+
#RUN apk add git
10+
11+
# copy the app, note .dockerignore
12+
COPY . /app/
13+
RUN yarn install --network-concurrency 1
14+
RUN yarn global add pm2
15+
16+
# build necessary, even if no static files are needed,
17+
# since it builds the server as well
18+
RUN yarn build
19+
20+
EXPOSE 7000
21+
EXPOSE 7001
22+
23+
# set app serving to permissive / assigned
24+
ENV NUXT_HOST=0.0.0.0
25+
# set app port
26+
ENV NUXT_PORT=7001
27+
28+
ARG DOCKER_TAG
29+
ENV DOCKER_TAG $DOCKER_TAG
30+
31+
# start the app
32+
CMD [ "pm2-runtime", "ecosystem.config.js" ]

README.md

+84
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
Project is Hiring Smart Contract Dev NOW! Good payment in cryptocurrency(10k$/m+)! Contact: [@avral](https://t.me/avral)
2+
--
3+
# The first listing free decentralized exchange.
4+
Documentation: [docs.alcor.exchange](https://docs.alcor.exchange)
5+
6+
![Alcor Exchange](https://i.imgur.com/brvzFdi.png)
7+
8+
With Alcor Exchange you can trade any EOS.IO tokens for system EOS tokens, atomically, without the participation of third parties! The token's contract should comply with the [eosio.token](https://github.com/EOSIO/eosio.contracts/tree/master/contracts/eosio.token) standard or be a [Simple Assets](https://github.com/CryptoLions/SimpleAssets) fungible token.
9+
10+
Props:
11+
1. Fully-onchain.
12+
2. Free CPU program.
13+
3. Open Source.
14+
15+
16+
[Join our telegram!](https://t.me/alcorexchange)
17+
18+
## Chains:
19+
1. EOS Mainnet
20+
2. WAX
21+
3. Telos
22+
4. Proton
23+
24+
## Technologies:
25+
1. [Hyperion](https://github.com/eosrio/Hyperion-History-API)
26+
2. [EOSIO Light API](https://github.com/cc32d9/eosio_light_api)
27+
3. [Bloks.io](https://bloks.io/)
28+
4. [Greymass Full-History NODE API](https://greymass.com/)
29+
30+
## Instructions for manual use.
31+
#### Open new market:
32+
Send 3.0000 EOS to **eostokensdex** with memo: "new_market|0.token_precision token_symbol@token_contract"
33+
34+
Example memo: ```"new_market|0.00000000 WEED@weedcashnt"```
35+
36+
37+
#### Submit order:
38+
Send the amount you want to sell, and specify the amount you want to get in the memo, the price and market will be automatically determined in the contract.
39+
Memo format(ask token): ```token_amount token_symbol@token_contract```
40+
41+
Example: ```transfer "0.7000 EOS" to eostokensdex with memo "1000.0000 TKT@eossanguotkt"```
42+
43+
#### Order cancelation
44+
Call action ```cancelsell``` or ```cancelbuy``` with parameters:
45+
executor: order owner
46+
market_id:
47+
order_id:
48+
49+
Example
50+
```
51+
executor: avral.pro
52+
market_id: 32
53+
order_id: 3
54+
```
55+
[Cancelbuy](https://bloks.io/account/eostokensdex?loadContract=true&tab=Actions&table=markets&account=eostokensdex&scope=eostokensdex&limit=100&action=cancelbuy)
56+
57+
[Cancelsell](https://bloks.io/account/eostokensdex?loadContract=true&tab=Actions&table=markets&account=eostokensdex&scope=eostokensdex&limit=100&action=buyreceipt)
58+
59+
[Orders and markets possible to see at contact tables](https://bloks.io/account/eostokensdex?loadContract=true&tab=Tables&table=markets&account=eostokensdex&scope=eostokensdex&limit=100)
60+
61+
## Build Setup
62+
63+
``` bash
64+
# install dependencies
65+
$ yarn install
66+
67+
# serve with hot reload at localhost:3000
68+
$ NETWORK=wax DISABLE_DB=true yarn dev // Run using production API and Wax chain.
69+
70+
# build for production and launch server
71+
$ NETWORK=<eos/jungle/local> yarn run build
72+
$ yarn start
73+
74+
# generate static project
75+
$ yarn run generate
76+
77+
# Docker run:
78+
docker run -d --restart=unless-stopped -p 127.0.0.1:27017:27017 --name mongo -m=3g mongo:4.4 --bind_ip 0.0.0.0
79+
80+
docker run -it -p 7002:7000 --restart=unless-stopped -d --label=com.centurylinklabs.watchtower.lifecycle.post-check="rm -rf /data/nginx/cache/eostokens && service nginx reload" --label=com.centurylinklabs.watchtower.enable=true --name alcor-ui --add-host=host.docker.internal:172.17.0.9 avral/alcor-ui
81+
```
82+
83+
## Created:
84+
[Avral's digital lab](https://avral.pro)

assets/README.md

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# ASSETS
2+
3+
**This directory is not required, you can delete it if you don't want to use it.**
4+
5+
This directory contains your un-compiled assets such as LESS, SASS, or JavaScript.
6+
7+
More information about the usage of this directory in [the documentation](https://nuxtjs.org/guide/assets#webpacked).

assets/_variables.scss

+85
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,85 @@
1+
:root {
2+
--main-green: #66c167;
3+
--main-red: #f96c6c;
4+
--cancel: #c4c4c4;
5+
--radius: 4px;
6+
--radius-2: 8px;
7+
}
8+
9+
.theme-light {
10+
--color-primary: #3e3a3b;
11+
--color-success: #8cc176;
12+
--color-danger: #b82c0d;
13+
--color-white: #f3fafc;
14+
--color-text-secondary: #5a5356;
15+
16+
// backgrounds
17+
--background-color-base: #f3fafc;
18+
--background-color-secondary: #e6eef1;
19+
--background-color-third: #e6eef1;
20+
--bg-big-card: #f3fafc;
21+
--bg-alter-1: #e6eef1;
22+
--bg-alter-2: #dee6e8;
23+
--landing-card-bg: rgba(250, 250, 250, 0.3);
24+
--landing-icon-bg: #ededed;
25+
--table-background: #e6eef1;
26+
--dialog-background: #f5f5f9;
27+
28+
// buttons
29+
--btn-default: #dce4e6;
30+
--btn-alternative: #fff;
31+
--btn-active: #dce4e6;
32+
--hover: #e9eeef; // dark hover row
33+
--dark-btn-sm: #e0e0e0;
34+
--swap-tab-active: #e0e0e0;
35+
36+
--text-default: #161617;
37+
--text-grey-thirdly: #787878;
38+
39+
--border-color: #dadbdc;
40+
41+
--card-shadow: 0px 5px 20px rgba(0, 0, 0, 0.08);
42+
--dropdown-shadow: 0px 5px 20px rgba(0, 0, 0, 0.08);
43+
44+
--active-row: #c2deff;
45+
46+
--border-1: 1px solid rgba(60, 60, 67, 0.36);
47+
}
48+
49+
.theme-dark {
50+
--color-primary: #9eaba3;
51+
52+
// backgrounds
53+
--background-color-base: #282828;
54+
--background-color-secondary: #212121;
55+
--background-color-third: #161617;
56+
--bg-big-card: #212121;
57+
--bg-alter-1: #282828;
58+
--bg-alter-2: #363535;
59+
--landing-card-bg: rgba(40, 40, 40, 0.3);
60+
--landing-icon-bg: #111111;
61+
--table-background: #212121;
62+
--dialog-background: #282828;
63+
64+
// buttons
65+
--btn-default: #333333;
66+
--btn-alternative: #333333;
67+
--btn-active: #161617;
68+
--hover: rgba(22, 22, 23, 0.6);
69+
--dark-btn-sm: #383838;
70+
--swap-tab-active: #141415;
71+
72+
--text-default: #f2f2f2;
73+
--text-grey-thirdly: #bdbdbd;
74+
75+
--card-shadow: 0px -0.5px 0px rgba(0, 0, 0, 0.2);
76+
--dropdown-shadow: 0px 12px 24px 0px rgba(18, 18, 18, 0.16);
77+
78+
--color-text-primary: #f2fff2;
79+
--border-color: #3f4144;
80+
81+
--color-success: #8cc176;
82+
--color-danger: #b82c0d;
83+
84+
--active-row: #282828;
85+
}

0 commit comments

Comments
 (0)