Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(gov) remove zigzag #158

Closed
wants to merge 14 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion gateway-setup.sh
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this changes not related to zigzag removal

Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ copy_lists () {
# Make destination folder if needed
mkdir $HOST_CONF_PATH/lists
# Copy all files in the source folder to the destination folder
cp $TEMPLATE_DIR/lists/*.json $HOST_CONF_PATH/lists
cp -rf $TEMPLATE_DIR/ $HOST_CONF_PATH
# Confirm that the files were copied
if [ $? -eq 0 ]; then
echo "Files successfully copied from $TEMPLATE_DIR/lists to $HOST_CONF_PATH"
Expand Down
1 change: 0 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,6 @@ module.exports = {
'src/connectors/uniswap/uniswap.config.ts',
'src/connectors/uniswap/uniswap.ts',
'src/connectors/uniswap/uniswap.lp.helper.ts',
'src/connectors/defikingdoms/defikingdoms.ts',
'src/connectors/defira/defira.ts',
'src/connectors/openocean/openocean.ts',
'src/connectors/pangolin/pangolin.ts',
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"license": "Apache-2.0",
"repository": "https://github.com/hummingbot/gateway",
"scripts": {
"prebuild": "rimraf dist && mkdir dist",
"prebuild": "rimraf dist && mkdir dist && yarn copy-files:token-list",
"build": "tsc --skipLibCheck --project ./ && yarn copy-files",
"clean": "rm -rf ./node_modules && rm -rf ./coverage && rm -rf ./logs && yarn run clean:config",
"clean:config": "find ./conf -maxdepth 1 -regextype posix-extended -regex '.*.*' -delete",
Expand All @@ -16,6 +16,7 @@
"dev:debug": "NODE_ENV=dev DEBUG=* nodemon src/index.ts",
"start": "/bin/bash ./startup.sh",
"copy-files": "copyfiles -a 'src/**/schema/*.json' 'src/templates/*.yml' 'src/templates/lists/*.json' 'test/services/data/**/*.*' dist",
"copy-files:token-list": "mkdir -p conf/lists && copyfiles -u 'src/templates/lists/*.json' conf/lists",
"test": "jest --verbose",
"test:debug": "node --inspect node_modules/.bin/jest --watch --runInBand",
"test:unit": "NODE_OPTIONS=--max_old_space_size=10240 jest --runInBand --verbose ./test/",
Expand Down Expand Up @@ -43,7 +44,6 @@
"@pangolindex/sdk": "^1.1.0",
"@perp/sdk-curie": "^1.16.0",
"@sushiswap/sdk": "^5.0.0-canary.116",
"@switchboard-xyz/defikingdoms-sdk": "^1.0.7",
"@tinymanorg/tinyman-js-sdk": "^3.0.0",
"@traderjoe-xyz/sdk-v2": "^2.0.5",
"@types/fs-extra": "^9.0.13",
Expand Down
1 change: 0 additions & 1 deletion src/chains/ethereum/ethereum.validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,6 @@ export const validateSpender: Validator = mkValidator(
val === 'viperswap' ||
val === 'openocean' ||
val === 'quickswap' ||
val === 'defikingdoms' ||
val === 'defira' ||
val === 'mad_meerkat' ||
val === 'vvs' ||
Expand Down
4 changes: 1 addition & 3 deletions src/chains/harmony/harmony.ts
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,7 @@ export class Harmony extends EthereumBase implements Ethereumish {

getSpender(reqSpender: string): string {
let spender: string;
if (reqSpender === 'defikingdoms') {
spender = '0x24ad62502d1C652Cc7684081169D04896aC20f30';
} else if (reqSpender === 'defira') {
if (reqSpender === 'defira') {
spender = '0x3C8BF7e25EbfAaFb863256A4380A8a93490d8065';
} else if (reqSpender === 'openocean') {
spender = OpenoceanConfig.config.routerAddress('ethereum', this._chain);
Expand Down
2 changes: 0 additions & 2 deletions src/chains/harmony/harmony.validators.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,6 @@ export const validateSpender: Validator = mkValidator(
(val) =>
typeof val === 'string' &&
(val === 'sushiswap' ||
val === 'viperswap' ||
val === 'defikingdoms' ||
val === 'defira' ||
val === 'openocean' ||
isValidAddress(val))
Expand Down
7 changes: 0 additions & 7 deletions src/connectors/connectors.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
import { Router, Response } from 'express';
import { asyncHandler } from '../services/error-handler';
import { DefiraConfig } from './defira/defira.config';
import { DefikingdomsConfig } from './defikingdoms/defikingdoms.config';
import { MadMeerkatConfig } from './mad_meerkat/mad_meerkat.config';
import { OpenoceanConfig } from './openocean/openocean.config';
import { PangolinConfig } from './pangolin/pangolin.config';
Expand Down Expand Up @@ -81,12 +80,6 @@ export namespace ConnectorsRoutes {
chain_type: TraderjoeConfig.config.chainType,
available_networks: TraderjoeConfig.config.availableNetworks,
},
{
name: 'defikingdoms',
trading_type: DefikingdomsConfig.config.tradingTypes,
chain_type: DefikingdomsConfig.config.chainType,
available_networks: DefikingdomsConfig.config.availableNetworks,
},
{
name: 'defira',
trading_type: DefiraConfig.config.tradingTypes,
Expand Down
33 changes: 0 additions & 33 deletions src/connectors/defikingdoms/defikingdoms.config.ts

This file was deleted.

Loading