Skip to content
Merged
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
67 changes: 67 additions & 0 deletions .github/workflows/java.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,67 @@
name: Java Main Workflow

on:
push:
branches: [ master ]
pull_request:
branches: [ master, rc-* ]

jobs:
detect-targets:
runs-on: ubuntu-latest
outputs:
modified_targets: ${{ steps.filter.outputs.modified_targets }}
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
fetch-depth: 2

- name: Detect modified targets
id: filter
run: |
MODIFIED_TARGETS=()

# Ensure HEAD^ exists
if git rev-parse --verify HEAD^ >/dev/null 2>&1; then
BASE_COMMIT="HEAD^"
else
BASE_COMMIT=$(git rev-list --max-parents=0 HEAD) # First commit
fi

# Check each client dynamically
while read client; do
CLIENT_NAME=$(basename "$client")
if ! git diff --quiet "$BASE_COMMIT" HEAD -- "$client"; then
echo "Changes detected in $CLIENT_NAME"
MODIFIED_TARGETS+=("$CLIENT_NAME")
fi
done < <(find clients/* -type d -maxdepth 0)

# Convert to JSON array format
MODIFIED_TARGETS_JSON=$(printf '%s\n' "${MODIFIED_TARGETS[@]}" | jq -R -s -c 'split("\n") | map(select(. != ""))')

echo "Detected modified targets: $MODIFIED_TARGETS_JSON"
echo "modified_targets=$MODIFIED_TARGETS_JSON" >> $GITHUB_ENV
echo "::set-output name=modified_targets::$MODIFIED_TARGETS_JSON"
verify:
runs-on: ubuntu-latest
needs: detect-targets
if: ${{ needs.detect-targets.outputs.modified_targets != '[]' }}
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: 17
distribution: 'adopt'
cache: 'maven'
cache-dependency-path: |
clients/pom.xml
examples/pom.xml
- name: Validate modules
env:
GH_PAT: ${{ secrets.GH_PAT }}
run: |
mvn -f clients/pom.xml -pl web3-common install -Dgpg.skip
mvn -f clients/pom.xml -pl `echo '${{ needs.detect-targets.outputs.modified_targets }}' | jq -r 'join(",")'` verify -Dgpg.skip
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# General
*.class
target/
src/.DS_Store
.idea/
.DS_Store
.gitignore
*.log
logs/
13 changes: 13 additions & 0 deletions clients/web3-wallet/docs/ApproveTransaction.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@


# ApproveTransaction

## Enum


* `TRUE` (value: `"true"`)

* `FALSE` (value: `"false"`)



13 changes: 13 additions & 0 deletions clients/web3-wallet/docs/AutoSlippage.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@


# AutoSlippage

## Enum


* `TRUE` (value: `"true"`)

* `FALSE` (value: `"false"`)



45 changes: 45 additions & 0 deletions clients/web3-wallet/docs/Bar.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@


# Bar

## Enum


* `BAR_1s` (value: `"1s"`)

* `BAR_5s` (value: `"5s"`)

* `BAR_30s` (value: `"30s"`)

* `BAR_1m` (value: `"1m"`)

* `BAR_3m` (value: `"3m"`)

* `BAR_5m` (value: `"5m"`)

* `BAR_15m` (value: `"15m"`)

* `BAR_30m` (value: `"30m"`)

* `BAR_1h` (value: `"1h"`)

* `BAR_2h` (value: `"2h"`)

* `BAR_4h` (value: `"4h"`)

* `BAR_6h` (value: `"6h"`)

* `BAR_8h` (value: `"8h"`)

* `BAR_12h` (value: `"12h"`)

* `BAR_1d` (value: `"1d"`)

* `BAR_3d` (value: `"3d"`)

* `BAR_1w` (value: `"1w"`)

* `BAR_1M` (value: `"1M"`)



15 changes: 15 additions & 0 deletions clients/web3-wallet/docs/GasLevel.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@


# GasLevel

## Enum


* `slow` (value: `"slow"`)

* `average` (value: `"average"`)

* `fast` (value: `"fast"`)



Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
|**holders** | **Long** | Number of holding addresses. | [optional] |
|**bnHolderCount** | **Long** | Number of Binance MPC wallets holding this token. | [optional] |
|**bnTraderCount7D** | **Long** | Number of Binance MPC wallets that traded via Binance Web3 DEX in the last 7 days. | [optional] |
|**tokenTags** | **List&lt;String&gt;** | Token tags. | [optional] |
|**tokenTags** | **List&lt;String&gt;** | Token tags. Returns tags matched by the token. Possible values: - &#x60;alpha&#x60; — Binance Alpha - &#x60;tge&#x60; — Binance TGE - &#x60;communityRecognized&#x60; — Highly recognized by community - &#x60;devSellAll&#x60; — Developer sold entire holding - &#x60;devSell&#x60; — Developer sold partial holding - &#x60;devBuy&#x60; — Developer bought tokens - &#x60;smartMoneyBuy&#x60; — Smart money buying - &#x60;smartMoneySell&#x60; — Smart money selling - &#x60;devRemoveLiquidity&#x60; — Developer removed liquidity - &#x60;devAddLiquidity&#x60; — Developer added liquidity - &#x60;devBurnToken&#x60; — Developer burned tokens - &#x60;dexScreenerPaid&#x60; — DexScreener paid - &#x60;volumeSurge&#x60; — Volume surge - &#x60;volumePlunge&#x60; — Volume plunge - &#x60;lowLiquidity&#x60; — Low liquidity - &#x60;washTrading&#x60; — Wash trading detected - &#x60;devWashTrading&#x60; — Developer wash trading detected - &#x60;insiderWashTrading&#x60; — Insider wash trading detected | [optional] |



2 changes: 1 addition & 1 deletion clients/web3-wallet/docs/GetTokenBasicInfoResponse.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
|------------ | ------------- | ------------- | -------------|
|**code** | **Integer** | | [optional] |
|**msg** | **String** | | [optional] |
|**data** | [**GetTokenBasicInfoResponseData**](GetTokenBasicInfoResponseData.md) | | [optional] |
|**data** | [**TokenBasicInfo**](TokenBasicInfo.md) | | [optional] |
|**timestamp** | **Long** | | [optional] |
|**success** | **Boolean** | | [optional] |

Expand Down
Loading
Loading