Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
118 commits
Select commit Hold shift + click to select a range
ec36894
wip: feat(Cardano Chain): Introduce initial version of CardanoChain …
Javadyakuza Oct 6, 2024
aab08cd
feat(Cardano Chain): Add cardano wallet initializer and handler
Javadyakuza Oct 7, 2024
4209eb7
feat(Cardano Chain): Add transaction-related functions
Javadyakuza Oct 7, 2024
ad00318
feat(Cardano Chain): WIP: Add initial version of swap function
Javadyakuza Oct 9, 2024
566b15b
initial splash class
hirotadashi Oct 10, 2024
443a463
feat(Cardano Chain): WIP: Add estimate and swap related functions
Javadyakuza Oct 12, 2024
355624f
feat(Cardano Chain): WIP: Add separate function
Javadyakuza Oct 12, 2024
2d8ec15
feat(Cardano Chain): WIP: Integrate the with function
Javadyakuza Oct 12, 2024
b3da292
fix(Cardano Chain): WIP: Remove the useless inputs of function
Javadyakuza Oct 12, 2024
4f810b7
fix(Cardano Chain): WIP: Remove the inputs of while using it
Javadyakuza Oct 12, 2024
b44dd5e
feat(Cardano Chain): WIP: Implement the pool related functions
Javadyakuza Oct 12, 2024
fdab5c1
fix(Cardano Chain): WIP: Change statement of the to return a promise
Javadyakuza Oct 12, 2024
15ac0f9
fix(Cardano Chain): WIP: Move the async operations to init function
Javadyakuza Oct 13, 2024
f139779
fix(Cardano Chain): WIP: wrapped the utxo/tx fetchers inputs into a s…
Javadyakuza Oct 13, 2024
38b2bca
refactor(Cardano Chain): Refactor and fix the bugs of the function
Javadyakuza Oct 13, 2024
72078bd
refactor(Cardano Chain): Refactor and fix the bugs of the function
Javadyakuza Oct 14, 2024
447796a
refactor(Cardano Chain): Refactor and fix the bugs of the function
Javadyakuza Oct 14, 2024
7ce2e12
refactor(Cardano Chain): Refactor and fix the bugs of the function
Javadyakuza Oct 14, 2024
9b5fd36
refactor(Cardano Chain): Replace manual slippages with var
Javadyakuza Oct 14, 2024
1b45736
refactor(Cardano Chain): Sync the comments with the function sigs and…
Javadyakuza Oct 14, 2024
df46028
fix(Cardano Chain): Minor bug
Javadyakuza Oct 14, 2024
b01c53e
pre pull commit
Javadyakuza Oct 14, 2024
9febccc
post pull (merge) commmit
Javadyakuza Oct 14, 2024
4875284
feat(Cardano Chain): Add getBalance function
Javadyakuza Oct 15, 2024
8115a88
refactor(Cardano Chain): Fix the comments and enhance the code readab…
Javadyakuza Oct 15, 2024
6ce0eda
splash connector initialized
hirotadashi Oct 16, 2024
4859ac7
feat(Cardano Chain): Add the getTokenMetadataWithbackoff function
Javadyakuza Oct 17, 2024
6c88901
fix(Cardano Chain): Fix the Cardano class metdata usage
Javadyakuza Oct 17, 2024
b14ba6f
fix(Cardano Chain): Remove the metadata fetching in the getAssetFromP…
Javadyakuza Oct 17, 2024
4e88fc3
test(Cardano Chain): WIP: Add manual tests for some main functions
Javadyakuza Oct 17, 2024
196e7a5
refactor(Cardano Chain): Fix type conflicts and impls after new spla…
Javadyakuza Nov 7, 2024
f5900cc
feat(Cardano Chain): Implement the Swap functionality
Javadyakuza Nov 9, 2024
a2f09e2
feat(Cardano Chain): Implement the order cancelation function
Javadyakuza Nov 12, 2024
fbe2d05
reafctor(Cardano Chain): Merge the latest changes from the same branch
Javadyakuza Nov 12, 2024
18043a6
cardano and splash schema added
hirotadashi Nov 13, 2024
adad89e
Merge branch 'feature/add-cardano-chain' of github.com:pattern-tech/g…
hirotadashi Nov 13, 2024
8b3fa2b
build errors resolved
hirotadashi Nov 13, 2024
52fe009
bug fixed
hirotadashi Nov 14, 2024
1504066
fix(Cardano Chain): Fix the bugs of the getBalance function
Javadyakuza Nov 14, 2024
6933879
Merge branch 'feature/add-cardano-chain' of https://github.com/patter…
Javadyakuza Nov 14, 2024
79ed13a
fix(Cardano Chain): Fix the wallet init async bug and refactor cancel…
Javadyakuza Nov 14, 2024
7db3a33
network name fixed
hirotadashi Nov 14, 2024
aa80095
Merge branch 'feature/add-cardano-chain' into fix/bug
hirotadashi Nov 16, 2024
996dde1
fix(Cardano Chain): Fix getInstance fn name gen
Javadyakuza Nov 17, 2024
018791e
Merge remote-tracking branch 'origin/feature/add-cardano-chain' into …
hirotadashi Nov 18, 2024
fad3638
fix(Cardano Chain): Fix constructor if statement
Javadyakuza Nov 18, 2024
eb8c2d2
fix(Cardano Chain): Fix config type converts
Javadyakuza Nov 18, 2024
2b1b353
fix(Cardano Chain): .gitignore
Javadyakuza Nov 18, 2024
f54e52f
feat(Cardano Chain): Add auto cancellation functionality
Javadyakuza Nov 19, 2024
a2db88e
feat(Cardano Chain): Add price estimation with dynamic amount of tokens
Javadyakuza Nov 19, 2024
6f139b1
fix(Cardano Chain): Fix minor generate hash and cancelling function
Javadyakuza Nov 22, 2024
20cce4b
fix(Cardano Chain): Fix minor token fetching logic
Javadyakuza Nov 25, 2024
710075c
activating wallet for swap added
hirotadashi Nov 25, 2024
6be6fdb
Merge branch 'fix/bug' of github.com:pattern-tech/gateway-splash into…
hirotadashi Nov 25, 2024
dadd6f5
Merge remote-tracking branch 'origin/feature/add-cardano-chain' into …
hirotadashi Nov 25, 2024
6f44c0e
fix(Cardano Chain): Fix timestamp type conflict
Javadyakuza Nov 25, 2024
4832521
Merge remote-tracking branch 'origin/feature/add-cardano-chain' into …
hirotadashi Nov 25, 2024
5388dc1
fix(Cardano Chain): WIP: Fix slippage
Javadyakuza Nov 26, 2024
52bf8ce
slippage fixed for cardano chain
hirotadashi Nov 26, 2024
fe0eea7
Merge branch 'fix/bug' into feature/add-cardano-chain
hirotadashi Nov 26, 2024
4957c31
fee estimate fixed
hirotadashi Nov 26, 2024
2ffcb75
fix [ cardano ]: fix loadTokenMetadat error handling
satiparpar Nov 27, 2024
2ea0201
fix(Cardano Chain): WIP: Fix decimals
Javadyakuza Nov 27, 2024
a3ce940
fix(Cardano Chain): WIP: Fix slippage
Javadyakuza Nov 28, 2024
3dd0656
fix(Cardano Chain): WIP: Fix network selector
Javadyakuza Nov 28, 2024
6622381
Merge remote-tracking branch 'origin/fix/loadTokenMetadata' into fix/bug
hirotadashi Nov 28, 2024
f80aac1
Merge remote-tracking branch 'origin/feature/add-cardano-chain' into …
hirotadashi Nov 28, 2024
f8fbc42
fix(Cardano Chain): WIP: Fix pools fetchers
Javadyakuza Nov 28, 2024
6fcf360
fix(Cardano Chain): WIP: test
Javadyakuza Nov 28, 2024
104b145
Merge remote-tracking branch 'origin/feature/add-cardano-chain' into …
hirotadashi Nov 28, 2024
9be2c8e
Merge branch 'fix/bug' of https://github.com/pattern-tech/gateway-spl…
Javadyakuza Nov 28, 2024
1b83a59
fix(Cardano Chain): WIP: Fix estimate fee
Javadyakuza Nov 28, 2024
ab1a02d
Merge branch 'fix/bug' of https://github.com/pattern-tech/gateway-spl…
hirotadashi Nov 28, 2024
f5ac457
gas fee decimal added
hirotadashi Nov 29, 2024
00f37ba
fix(Cardano Chain): WIP: Fix estimate fee amount
Javadyakuza Nov 29, 2024
0bad80a
fix(Cardano Chain): WIP: Fix the comments of the class methods
Javadyakuza Dec 2, 2024
4ee8d81
fix(Cardano Chain): WIP: Fix estimateFee and make it dynamic
Javadyakuza Dec 3, 2024
d324a88
fix(Cardano Chain): WIP: Fix the timestamp conversion
Javadyakuza Dec 3, 2024
5c71039
fix(Cardano Chain): WIP: Fix minor bug
Javadyakuza Dec 3, 2024
37d2d0f
fix(Cardano Chain): WIP: Fix splash version and var names
Javadyakuza Dec 3, 2024
8db8292
fix:(Cardano Chain): WIP: Fixed token fetching case sensivity
Dec 15, 2024
93a1af4
fix:(Cardano Chain): WIP: Fixed token fetching case sensivity
Dec 15, 2024
ad94cf7
fix(Cardano Chain): WIP: Debugged the conflicts with triangular strategy
Dec 19, 2024
414b684
update[ cardano & splash ]: update cardano & splash to get API key fr…
satiparpar Dec 22, 2024
b4cff68
new [ URL endpoint ]: Implement URL endpoint for API key
satiparpar Dec 23, 2024
2dabbe6
update [Cardano]: Handle the case when maestroApiKey is undefined
satiparpar Dec 23, 2024
4db9f5f
fix(Cardano Chain): WIP: Fix the getBalance function
Dec 23, 2024
b151e3b
update [Cardano]: Handle the case when maestroApiKey is invalid or ex…
satiparpar Dec 24, 2024
802d8f3
update[ routes ]: remove useless comment
satiparpar Dec 24, 2024
418f594
fix(Cardano Chain): Fix or remove the comments
Dec 24, 2024
81a9c2b
fix(Cardano Chain): Fix the unused imports
Dec 24, 2024
47c775a
Merge branch 'feature/triangular_config_data' of https://github.com/p…
Dec 26, 2024
998f738
fix[Cardano.getBalance]: fix the case when utxo is an empty array or …
Jan 1, 2025
7c615b0
Merge pull request #4 from pattern-tech/fix/getBalance
Javadyakuza Jan 2, 2025
c052a70
fix(Cardano Chain): Merge the empty array fixer PR
Jan 2, 2025
da3124f
fix(Cardano Chain): Sync the gateway with hb on trades side recognizing
Jan 4, 2025
d8404ed
feat(Cardano Chain): Fix the unneeded load metadata
Jan 7, 2025
11aaf36
fix(Cardano Chain): switching stash
Jan 9, 2025
f62643c
test(Cardano Chain)L WIP: Test the price results from the connectors
Jan 15, 2025
a55db0f
(Cardano Chain) Fix the quote and base tokens in estimate
Jan 15, 2025
7375144
Fix(Cardano Chain): base and quote in the estimate fee fn
Jan 16, 2025
dbada39
Fix(Cardano Chain): base and quote in the estimate fee fn
Jan 16, 2025
92c3a14
Fix(Cardano Chain): WIP: Fix price parsing decimals
Jan 19, 2025
b45cb09
Fix(Cardano Chain): WIP: Fix the price calculations in the sell side
Jan 20, 2025
9e0f759
dummy commit
Jan 21, 2025
f51d068
Revert "dummy commit"
Jan 21, 2025
b104a37
fix(Cardano Chain): Fix the wallet activation between docker image up…
Jan 23, 2025
3e19f57
fix(Cardano Chain): Use activateExistingWallet in required places
Jan 23, 2025
8d28104
Feat(Cardano Chain): Add the cancel feature to be used from HB
Feb 13, 2025
40bcae4
Merge branch 'feature/add-cardano-chain' of https://github.com/patter…
Feb 13, 2025
37c3131
fix(Cardano Chain): Fix a typo
Feb 13, 2025
e95d4a8
fix(Cardano Chain): Fix a typo
Feb 13, 2025
4866ca3
fix(Cardano hain): WIP: Manual merge phase 1 wip*
Feb 23, 2025
97dbd58
fix(Cardano Chain): WIP: Delete unused files
Feb 23, 2025
79ff5b2
Fix(cardano chain): WIP: Fixed and integrated with hb new version
Mar 8, 2025
6309090
Feat(cardano chain): Added maestro api key replacer
Mar 12, 2025
8183376
Revert "Feat(cardano chain): Added maestro api key replacer"
Mar 17, 2025
5a9b439
Fix(Cardano Chain): Fix minor issue
Apr 1, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/db
/certs
# /certs
/conf
/logs
/gateway.level
Expand Down
7 changes: 6 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,9 @@ package-lock.json
.history

# Yarn
yarn-error.log
yarn-error.log

# Test
.env
src/chains/cardano/test_index.ts
docker_ssh/
39 changes: 32 additions & 7 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,12 +1,26 @@
# Set the base image
FROM node:18.10.0
FROM node:20.11

# Use SSH during the build process
# Ensures the known hosts include GitHub
RUN mkdir -p ~/.ssh && ssh-keyscan -t rsa github.com >> ~/.ssh/known_hosts

# Copy SSH keys from the build context
ADD ./docker_ssh/ /root/.ssh/

RUN mkdir /root/.certs

# ADD ./certs/ /root/.certs/

# Set permissions for SSH keys
RUN chmod 600 /root/.ssh/id_ed25519 && chmod 644 /root/.ssh/id_ed25519.pub

# Add GitHub to known hosts
RUN ssh-keyscan github.com >> /root/.ssh/known_hosts

# WORKDIR /usr/src/app/
WORKDIR /home/gateway

# Copy files
COPY . .

# Dockerfile author / maintainer
LABEL maintainer="Michael Feng <mike@hummingbot.org>"

Expand All @@ -24,12 +38,23 @@ ENV INSTALLATION_TYPE=docker
# Create mount points
RUN mkdir -p /home/gateway/conf /home/gateway/logs /home/gateway/db /home/gateway/certs

# Install dependencies and compile
RUN yarn install --frozen-lockfile
# Copy files and Install dependencies
COPY package.json ./
COPY yarn.lock ./
COPY vendor/ ./vendor
RUN yarn install



# compile
COPY . .

RUN rm -rf /root/.ssh ./certs ./docker_ssh

RUN yarn build

# Expose port 15888 - note that docs port is 8080
EXPOSE 15888

# Set the default command to run when starting the container
CMD yarn run start
CMD yarn run start
135 changes: 135 additions & 0 deletions add-token.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,135 @@
#!/bin/bash

SCRIPT_DIR="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"

prompt_proceed() {
read -p "Do you want to proceed? [Y/N] >>> " PROCEED
if [ "$PROCEED" == "" ]; then
prompt_proceed
else
if [[ "$PROCEED" != "Y" && "$PROCEED" != "y" ]]; then
PROCEED="N"
fi
fi
}

validate_address() {
if [[ ! "$1" =~ ^0x[a-fA-F0-9]{40}$ ]]; then
return 1
fi
return 0
}

validate_decimals() {
if [[ ! "$1" =~ ^[0-9]+$ ]] || [ "$1" -lt 1 ] || [ "$1" -gt 18 ]; then
return 1
fi
return 0
}

add_token() {
INPUT_PATH=$1

# Check if input file exists
if [ ! -f "$INPUT_PATH" ]; then
echo "Error: Input file $INPUT_PATH does not exist"
exit 1
fi

# Get chainId from existing tokens
CHAIN_ID=$(jq -r '.[0].chainId' "$INPUT_PATH")
if [ -z "$CHAIN_ID" ] || [ "$CHAIN_ID" = "null" ]; then
echo "Error: Could not determine chainId from existing tokens"
exit 1
fi

# Prompt for token details
while true; do
read -p "Enter token address (0x...) >>> " ADDRESS
if validate_address "$ADDRESS"; then
# Check for duplicate address
if jq -e --arg addr "$ADDRESS" '.[] | select(.address == $addr)' "$INPUT_PATH" > /dev/null; then
echo "Error: Token with this address already exists"
continue
fi
break
else
echo "Error: Invalid address format. Must be 0x followed by 40 hex characters"
fi
done

while true; do
read -p "Enter token symbol >>> " SYMBOL
if [ -z "$SYMBOL" ]; then
echo "Error: Symbol is required"
continue
fi
# Check for duplicate symbol
if jq -e --arg sym "$SYMBOL" '.[] | select(.symbol == $sym)' "$INPUT_PATH" > /dev/null; then
echo "Error: Token with this symbol already exists"
continue
fi
break
done

read -p "Enter token name (press Enter to use symbol) >>> " NAME
NAME=${NAME:-$SYMBOL}

while true; do
read -p "Enter token decimals (1-18) >>> " DECIMALS
if validate_decimals "$DECIMALS"; then
break
else
echo "Error: Decimals must be a number between 1 and 18"
fi
done

# Create new token JSON
NEW_TOKEN=$(cat <<EOF
{
"chainId": $CHAIN_ID,
"address": "$ADDRESS",
"symbol": "$SYMBOL",
"name": "$NAME",
"decimals": $DECIMALS
}
EOF
)

# Show confirmation
echo
echo "Review new token entry:"
echo "$NEW_TOKEN" | jq .
echo

prompt_proceed
if [[ "$PROCEED" == "Y" || "$PROCEED" == "y" ]]; then
# Add new token to list
jq --argjson newToken "$NEW_TOKEN" '. + [$newToken]' "$INPUT_PATH" > "${INPUT_PATH}.tmp"
mv "${INPUT_PATH}.tmp" "$INPUT_PATH"
echo "Token successfully added to $INPUT_PATH"
else
echo "Operation cancelled"
exit 1
fi
}

# Check if jq is installed
if ! command -v jq &> /dev/null; then
echo "Error: jq is required but not installed."
echo "Please install jq first:"
echo " Ubuntu/Debian: sudo apt-get install jq"
echo " MacOS: brew install jq"
exit 1
fi

echo
echo
echo "=============== ADD TOKEN TO LIST ==============="
echo
echo

# Get input path
read -p "Enter path to the token list file >>> " INPUT_PATH

add_token "$INPUT_PATH"
132 changes: 132 additions & 0 deletions clean-tokenlist.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,132 @@
#!/bin/bash
# init

SCRIPT_DIR="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )"
TEMPLATE_DIR="$( cd -- "$(dirname "$0")" >/dev/null 2>&1 ; pwd -P )/src/templates"

prompt_proceed () {
read -p "Do you want to proceed? [Y/N] >>> " PROCEED
if [ "$PROCEED" == "" ]
then
prompt_proceed
else
if [[ "$PROCEED" != "Y" && "$PROCEED" != "y" ]]
then
PROCEED="N"
fi
fi
}

clean_token_list () {
INPUT_PATH=$1
CHAIN_ID=$2

# Create output path with _CLEANED suffix and chainId
OUTPUT_PATH="${INPUT_PATH%.*}_CLEANED${CHAIN_ID:+_$CHAIN_ID}.json"

# Check if input file exists
if [ ! -f "$INPUT_PATH" ]; then
echo "Error: Input file $INPUT_PATH does not exist"
exit 1
fi

# Create output directory if it doesn't exist
OUTPUT_DIR=$(dirname "$OUTPUT_PATH")
mkdir -p "$OUTPUT_DIR"

# Use jq to clean the token list and remove duplicates
jq --arg chainid "$CHAIN_ID" '
(if type == "object" then .tokens else . end) |
map({
chainId: .chainId,
name: .name,
symbol: .symbol,
address: .address,
decimals: .decimals
} | select(
.chainId != null and
($chainid == "" or .chainId == ($chainid|tonumber)) and
.name != null and
.symbol != null and
.address != null and
.decimals != null
)) as $all |

# Group by symbol and process duplicates
($all | group_by(.symbol) | map(select(length > 1)) | map({
symbol: .[0].symbol,
kept: .[0],
removed: .[1:]
})) as $duplicates |

# Output cleaned list and duplicate info
{
"tokens": ($all | unique_by(.symbol)),
"duplicates": $duplicates
}
' "$INPUT_PATH" > "${OUTPUT_PATH}.tmp"

# Extract the cleaned token list
jq '.tokens' "${OUTPUT_PATH}.tmp" > "$OUTPUT_PATH"

# Report duplicates if any exist
echo "Checking for duplicate symbols..."
DUPLICATES=$(jq -r '.duplicates[] | "Symbol: \(.symbol)\n Kept: \(.kept.address)\n Removed: \(.removed | map(.address) | join(", "))"' "${OUTPUT_PATH}.tmp")
if [ ! -z "$DUPLICATES" ]; then
echo "Found tokens with duplicate symbols:"
echo "$DUPLICATES"
else
echo "No duplicate symbols found"
fi

# Remove temporary file
rm "${OUTPUT_PATH}.tmp"

# Check if the operation was successful
if [ $? -eq 0 ]; then
echo "Token list successfully cleaned and saved to $OUTPUT_PATH"
else
echo "Error cleaning token list"
exit 1
fi
}

# Check if jq is installed
if ! command -v jq &> /dev/null; then
echo "Error: jq is required but not installed."
echo "Please install jq first:"
echo " Ubuntu/Debian: sudo apt-get install jq"
echo " MacOS: brew install jq"
exit 1
fi

echo
echo
echo "=============== CLEAN TOKEN LIST ==============="
echo
echo

# Get input path and chainId
read -p "Enter path to the raw token list file >>> " INPUT_PATH
read -p "Enter chainId to filter (leave blank for all chains) >>> " CHAIN_ID

# Set output path using TEMPLATE_DIR
OUTPUT_PATH="$TEMPLATE_DIR/lists/token_list.json"

# Ask user to confirm and proceed
echo
echo "ℹ️ Confirm if this is correct:"
echo
printf "%30s %5s\n" "Clean token list FROM:" "$INPUT_PATH"
printf "%30s %5s\n" "Filter for chainId:" "$CHAIN_ID"
printf "%30s %5s\n" "Save cleaned list TO:" "${INPUT_PATH%.*}_CLEANED.json"
echo

prompt_proceed
if [[ "$PROCEED" == "Y" || "$PROCEED" == "y" ]]
then
clean_token_list "$INPUT_PATH" "$CHAIN_ID"
else
echo "Exiting..."
exit
fi
24 changes: 0 additions & 24 deletions jest.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,25 +7,10 @@ module.exports = {
'src/https.ts',
'src/paths.ts',
'src/services/ethereum-base.ts',
'src/services/cosmos-base.ts',
'src/services/telemetry-transport.ts',
'src/chains/cronos/cronos.ts',
'src/chains/binance-smart-chain/binance-smart-chain.ts',
'src/chains/ethereum/ethereum.ts',
'src/chains/avalanche/avalanche.ts',
'src/chains/celo/celo.ts',
'src/chains/avalanche/pangolin/pangolin.ts',
'src/chains/cosmos/cosmos.ts',
'src/chains/near/near.ts',
'src/chains/near/near.base.ts',
'src/connectors/uniswap/uniswap.config.ts',
'src/connectors/uniswap/uniswap.ts',
'src/connectors/uniswap/uniswap.lp.helper.ts',
'src/connectors/openocean/openocean.ts',
'src/connectors/pangolin/pangolin.ts',
'src/connectors/quickswap/quickswap.ts',
'src/connectors/sushiswap/sushiswap.ts',
'src/connectors/traderjoe/traderjoe.ts',
'src/network/network.controllers.ts',
'src/services/ethereum-base.ts',
'src/services/telemetry-transport.ts',
Expand All @@ -37,15 +22,6 @@ module.exports = {
globalTeardown: '<rootDir>/test/teardown.ts',
moduleNameMapper: {
eccrypto: '<rootDir>/test/mock/eccrypto-mock.js',
// Add carbon sdk subpath imports that are unsupported until jest v29.4.0
'@bancor/carbon-sdk/strategy-management':
'<rootDir>/node_modules/@bancor/carbon-sdk/dist/strategy-management/index.cjs',
'@bancor/carbon-sdk/utils':
'<rootDir>/node_modules/@bancor/carbon-sdk/dist/utils/index.cjs',
'@bancor/carbon-sdk/contracts-api':
'<rootDir>/node_modules/@bancor/carbon-sdk/dist/contracts-api/index.cjs',
'@bancor/carbon-sdk/chain-cache':
'<rootDir>/node_modules/@bancor/carbon-sdk/dist/chain-cache/index.cjs',
},
testPathIgnorePatterns: ['/node_modules/', 'test-helpers'],
};
Loading
Loading