Skip to content

Commit 613b5f4

Browse files
authored
Add SideShift.ai reporter
1 parent eca79ef commit 613b5f4

5 files changed

Lines changed: 5208 additions & 46 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
- `yarn build` or `npm run build`
77
- Rename `config.json.sample` to `config.json` and enter relevant API keys
88
- If only interested in submitting your own exchange reporting plugin:
9-
- Come up with a prefix for your organization (eg ShapeShift = "SS", "BitRefill" = "BR"), and create a [prefix]Raw.json file in the `cache` folder and enter an empty object.
9+
- Come up with a prefix for your organization (eg ShapeShift = "SS", "BitRefill" = "BR"), and create a [prefix]Raw.json file in the `cache` folder and enter an object with an empty `"txs": []` array.
1010
- In the `src` folder create a file `myOrganization.js` with the code to fetch transactions from your API and format transactions to match the `StandardTx` type (can view in `checkSwapService.js` file)
1111
- In `reporter.js` import the transaction fetching procedure from your `myOrganization.js` file and include near the top of the `main` function. Also make sure you have your organization's transactions printed out with `printTxDataMap` in the `report` method (in `reporter.js`).
1212
- When in doubt, look at how other teams have implemented their reporting procedure. If you have any further questions please feel free to reach out to the Edge team at our `dev` Slack channel:

config.json.sample

Lines changed: 47 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,48 +1,50 @@
11
{
2-
"timeInterval": "month",
3-
"endDate": "2018-01",
4-
"outputPath": "./index.txt",
5-
"outputDelay": 5000,
6-
"coinApiKey": "xxx",
7-
"coinMarketCapAPiKey": "xxx",
8-
"shapeShiftApiKey": "xxx",
9-
"shapeShiftToken": "xxx",
10-
"banxaToken": "xxx",
11-
"libertyXApiKey": "xxx",
12-
"changellyApiKey": "xxx",
13-
"changenowApiKey": "xxx",
14-
"changellyApiSecret": "xxx",
15-
"faastAffiliateId": "xxx",
16-
"faastSecret": "xxx",
17-
"totleApiKey": "xxx",
18-
"foxCredentials": {
19-
"apiKey": "xxx",
20-
"secretToken": "xxx"
21-
},
22-
"bitrefillCredentials": {
23-
"apiKey": "xxx",
24-
"apiSecret": "xxx"
25-
},
26-
"godex": {
27-
"apiKey": "xxx"
28-
},
29-
"coinswitch": {
30-
"apiKey": "xxx"
31-
},
32-
"moonpayApiKey": "xxx",
33-
"wyre": {
34-
"periscopeClientKey": "xxx"
35-
},
36-
"bity": {
37-
"clientId": "",
38-
"clientSecret": ""
39-
},
40-
"paytrieCredentials": {
2+
"sideShiftAffiliateSecret": "",
3+
"sideShiftAffiliateId": "",
4+
"timeInterval": "month",
5+
"endDate": "2018-01",
6+
"outputPath": "./index.txt",
7+
"outputDelay": 5000,
8+
"coinApiKey": "xxx",
9+
"coinMarketCapAPiKey": "xxx",
10+
"shapeShiftApiKey": "xxx",
11+
"shapeShiftToken": "xxx",
12+
"banxaToken": "xxx",
13+
"libertyXApiKey": "xxx",
14+
"changellyApiKey": "xxx",
15+
"changenowApiKey": "xxx",
16+
"changellyApiSecret": "xxx",
17+
"faastAffiliateId": "xxx",
18+
"faastSecret": "xxx",
19+
"totleApiKey": "xxx",
20+
"foxCredentials": {
4121
"apiKey": "xxx",
4222
"secretToken": "xxx"
43-
},
44-
"switchainApiKey" : "",
45-
"transak_api_secret": "xxx",
46-
"coinMarketCapExcludeLookup": ["USD", "EUR", "GBP"],
47-
"coinApiExcludeLookup": ["USD", "EUR", "GBP"]
48-
}
23+
},
24+
"bitrefillCredentials": {
25+
"apiKey": "xxx",
26+
"apiSecret": "xxx"
27+
},
28+
"godex": {
29+
"apiKey": "xxx"
30+
},
31+
"coinswitch": {
32+
"apiKey": "xxx"
33+
},
34+
"moonpayApiKey": "xxx",
35+
"wyre": {
36+
"periscopeClientKey": "xxx"
37+
},
38+
"bity": {
39+
"clientId": "",
40+
"clientSecret": ""
41+
},
42+
"paytrieCredentials": {
43+
"apiKey": "xxx",
44+
"secretToken": "xxx"
45+
},
46+
"switchainApiKey" : "",
47+
"transak_api_secret": "xxx",
48+
"coinMarketCapExcludeLookup": ["USD", "EUR", "GBP"],
49+
"coinApiExcludeLookup": ["USD", "EUR", "GBP"]
50+
}

0 commit comments

Comments
 (0)