Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.

Commit bd83ce4

Browse files
committed
resolved conflicts
2 parents 539cf9c + 83b82e1 commit bd83ce4

File tree

124 files changed

+3175
-1612
lines changed

Some content is hidden

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

124 files changed

+3175
-1612
lines changed

.github/actions/build/action.yml

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
name: build
22
description: Build all packages
33
inputs:
4+
NODE_ENV:
5+
description: 'Node environment'
6+
required: false
7+
default: 'test'
8+
REF_NAME:
9+
description: 'Git ref name'
10+
required: true
11+
default: 'test'
412
GD_API_KEY:
513
description: "Google drive api key"
614
required: false
@@ -13,14 +21,24 @@ inputs:
1321
TRACKJS_TOKEN:
1422
description: "trackjs token"
1523
required: false
24+
DATADOG_CLIENT_LOGS_TOKEN:
25+
description: 'Datadog client token for logs'
26+
required: false
27+
DATADOG_LOGS_SESSION_SAMPLE_RATE:
28+
description: 'Datadog session sample rate for logs'
29+
required: false
1630
runs:
1731
using: composite
1832
steps:
1933
- name: Build all packages
2034
env:
35+
NODE_ENV: ${{ inputs.NODE_ENV }}
2136
GD_CLIENT_ID: ${{ inputs.GD_CLIENT_ID }}
2237
GD_API_KEY: ${{ inputs.GD_API_KEY }}
2338
GD_APP_ID: ${{ inputs.GD_APP_ID }}
2439
TRACKJS_TOKEN: ${{ inputs.TRACKJS_TOKEN }}
40+
DATADOG_CLIENT_LOGS_TOKEN: ${{ inputs.DATADOG_CLIENT_LOGS_TOKEN }}
41+
DATADOG_LOGS_SESSION_SAMPLE_RATE: ${{ inputs.DATADOG_LOGS_SESSION_SAMPLE_RATE }}
42+
REF_NAME: ${{ inputs.REF_NAME }}
2543
run: npm run build
2644
shell: bash

.github/workflows/generate_preview_link.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,10 +47,14 @@ jobs:
4747
- name: Build
4848
uses: './.github/actions/build'
4949
with:
50+
NODE_ENV: staging
5051
GD_API_KEY: ${{ secrets.GD_API_KEY }}
5152
GD_APP_ID: ${{ secrets.GD_APP_ID }}
5253
GD_CLIENT_ID: ${{ secrets.GD_CLIENT_ID }}
5354
TRACKJS_TOKEN: ${{ secrets.TRACKJS_TOKEN }}
55+
DATADOG_CLIENT_LOGS_TOKEN: ${{ secrets.DATADOG_CLIENT_LOGS_TOKEN }}
56+
DATADOG_LOGS_SESSION_SAMPLE_RATE: ${{ secrets.DATADOG_LOGS_SESSION_SAMPLE_RATE }}
57+
REF_NAME: ${{ github.ref_name }}
5458

5559
- name: 'Run Tests'
5660
run: npm run test

.github/workflows/release_production.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,14 @@ jobs:
2222
- name: Build
2323
uses: "./.github/actions/build"
2424
with:
25+
NODE_ENV: production
2526
GD_API_KEY: ${{ secrets.GD_API_KEY }}
2627
GD_APP_ID: ${{ secrets.GD_APP_ID }}
2728
GD_CLIENT_ID: ${{ secrets.GD_CLIENT_ID }}
2829
TRACKJS_TOKEN: ${{ secrets.TRACKJS_TOKEN }}
30+
DATADOG_CLIENT_LOGS_TOKEN: ${{ secrets.DATADOG_CLIENT_LOGS_TOKEN }}
31+
DATADOG_LOGS_SESSION_SAMPLE_RATE: ${{ secrets.DATADOG_LOGS_SESSION_SAMPLE_RATE }}
32+
REF_NAME: ${{ github.ref_name }}
2933
- name: Test
3034
uses: "./.github/actions/test"
3135
- name: Versioning

.github/workflows/release_staging.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,14 @@ jobs:
2020
- name: Build
2121
uses: "./.github/actions/build"
2222
with:
23+
NODE_ENV: staging
2324
GD_API_KEY: ${{ secrets.GD_API_KEY }}
2425
GD_APP_ID: ${{ secrets.GD_APP_ID }}
2526
GD_CLIENT_ID: ${{ secrets.GD_CLIENT_ID }}
2627
TRACKJS_TOKEN: ${{ secrets.TRACKJS_TOKEN }}
28+
DATADOG_CLIENT_LOGS_TOKEN: ${{ secrets.DATADOG_CLIENT_LOGS_TOKEN }}
29+
DATADOG_LOGS_SESSION_SAMPLE_RATE: ${{ secrets.DATADOG_LOGS_SESSION_SAMPLE_RATE }}
30+
REF_NAME: ${{ github.ref_name }}
2731
- name: Test
2832
uses: "./.github/actions/test"
2933
- name: Deploy to Cloudflare Pages

404.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@ permalink: /404.html
44
---
55

66
The page you are looking for does not exist.
7-
Are you lost? Click [here](https://bot.binary.com/).
7+
Are you lost? Click [here](https://bot.deriv.com/).

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
Visual automation for binary bot on deriv - [bot.deriv.com](https://bot.deriv.com)
77

8-
Binary Bot on Deriv uses [Google Blockly](https://developers.google.com/blockly) to provide a puzzle like automation environment to trade using binary.com API version 3.
8+
Binary Bot on Deriv uses [Google Blockly](https://developers.google.com/blockly) to provide a puzzle like automation environment to trade using api.deriv.com API version 3.
99

1010
## Pre-installation
1111

@@ -147,11 +147,11 @@ User can make changes to Deriv branding related logo, text and their visibility.
147147
### Running with a specific endpoint **Use only if you know what you're doing**
148148

149149
```
150-
ENDPOINT='wss://ws.binaryws.com/websockets/v3?l=en&app_id=1169' bot bot-example.js
150+
ENDPOINT='wss://ws.derivws.com/websockets/v3?l=en&app_id=1169' bot bot-example.js
151151
152152
```
153153

154-
To set the endpoint for running the application on the localhost. For this, Go to http://localbot.binary.sx/endpoint.html. Make sure the Server is set to blue.binaryws.com and O Auth App ID is 16014 Click submit
154+
To set the endpoint for running the application on the localhost. For this, Go to http://localbot.binary.sx/endpoint.html. Make sure the Server is set to blue.derivws.com and O Auth App ID is 16014 Click submit
155155

156156
## Think you found a bug?
157157

docs/Bot.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,11 @@ Bot.stop
5252
| amount | <code>number</code> | Amount for the contract |
5353
| currency | <code>string</code> | The currency for the contract |
5454
| basis | <code>string</code> | Basis for the contract ("stake") |
55-
| candleInterval | <code>number</code> | Interval for candles list (valid inputs in [#ticks_history](https://developers.binary.com/api/#ticks_history)) |
55+
| candleInterval | <code>number</code> | Interval for candles list (valid inputs in [#ticks_history](https://api.deriv.com/api-explorer#ticks_history)) |
5656
| contractTypes | <code>Array.&lt;string&gt;</code> | The desired contract types |
5757
| duration | <code>number</code> | Contract duration |
58-
| duration_unit | <code>string</code> | Contract duration unit (valid inputs in [#proposal](https://developers.binary.com/api/#proposal)) |
59-
| symbol | <code>string</code> | The underlying symbol (valid inputs in [#active_symbols](https://developers.binary.com/api/#active_symbols)) |
58+
| duration_unit | <code>string</code> | Contract duration unit (valid inputs in [#proposal](https://api.deriv.com/api-explorer#proposal)) |
59+
| symbol | <code>string</code> | The underlying symbol (valid inputs in [#active_symbols](https://api.deriv.com/api-explorer#active_symbols)) |
6060
| restartOnError | <code>boolean</code> | Whether to restart on error or not |
6161
| prediction | <code>number</code> | prediction number for trades (optional) |
6262
| barrierOffset | <code>number</code> | barrier offset for the trade (optional) |

0 commit comments

Comments
 (0)