Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
faffac6
feat: add disableConnectedProviderRead props
junjieit Nov 3, 2025
ba60728
Merge branch 'feat/add-liquidity-limit-amount-logic' into beta
AxeAfk Nov 4, 2025
0132411
chore(release): @dodoex/api@3.3.0-beta.1 [skip ci]
semantic-release-bot Nov 4, 2025
02f2c7d
chore(release): @dodoex/widgets@3.5.0-beta.1 [skip ci]
semantic-release-bot Nov 4, 2025
156fff3
Merge branch 'feat/add-liquidity-limit-amount-logic' into beta
AxeAfk Nov 5, 2025
d391a46
Merge branch 'beta' of https://github.com/DODOEX/widgets into beta
AxeAfk Nov 5, 2025
5466e25
feat: update version
AxeAfk Nov 5, 2025
12369d7
chore(release): @dodoex/widgets@3.5.0-beta.2 [skip ci]
semantic-release-bot Nov 5, 2025
549dc28
Merge pull request #77 from DODOEX/feat/add-liquidity-limit-amount-logic
AxeAfk Nov 5, 2025
30ee440
Merge branch 'feat/add-liquidity-limit-amount-logic' into beta
AxeAfk Nov 5, 2025
7767244
update version
AxeAfk Nov 5, 2025
ca04ef7
Merge branch 'feat/add-liquidity-limit-amount-logic' into beta
AxeAfk Nov 5, 2025
cceb9cf
Merge pull request #78 from DODOEX/feat/add-liquidity-limit-amount-logic
AxeAfk Nov 5, 2025
e9efef5
chore(release): @dodoex/api@3.3.0 [skip ci]
semantic-release-bot Nov 5, 2025
722311a
chore(release): @dodoex/widgets@3.5.0 [skip ci]
semantic-release-bot Nov 5, 2025
969b4d7
feat: fix api version
AxeAfk Nov 11, 2025
eac2932
chore(release): @dodoex/widgets@3.6.0 [skip ci]
semantic-release-bot Nov 11, 2025
e5d316e
feat: add support for Stable Testnet in dodoex-api and widgets
yrjkqq Nov 14, 2025
0c7f411
chore(release): @dodoex/api@3.4.0 [skip ci]
semantic-release-bot Nov 14, 2025
db136b7
chore(release): @dodoex/widgets@3.7.0 [skip ci]
semantic-release-bot Nov 14, 2025
51e6994
feat: update @dodoex/api dependency to version 3.4.0
yrjkqq Nov 14, 2025
4fe8a3e
chore(release): @dodoex/widgets@3.8.0 [skip ci]
semantic-release-bot Nov 14, 2025
6ee7544
feat: add gsp modify entry
junjieit Nov 14, 2025
41afd8c
Merge branch 'main' into beta
junjieit Nov 14, 2025
54ebad8
chore(release): @dodoex/widgets@3.5.0-beta.3 [skip ci]
semantic-release-bot Nov 14, 2025
325b39c
Merge branch 'release' into beta
junjieit Nov 14, 2025
3d7a851
chore(release): @dodoex/widgets@3.9.0 [skip ci]
semantic-release-bot Nov 14, 2025
ba5b019
chore: update dependencies and add new tokens for Stable Testnet support
yrjkqq Nov 19, 2025
8a9b2f2
chore(release): @dodoex/widgets@3.10.0-stable.5 [skip ci]
yrjkqq Nov 20, 2025
03d6190
chore: add Stable Mainnet support, and change API URLs to Settlex
yrjkqq Nov 26, 2025
bc005c8
fix: apply BigNumber.ROUND_DOWN for decimal precision in formatter an…
yrjkqq Nov 26, 2025
05ef0ec
chore: update version to 3.10.0-stable.8 and modify API endpoints for…
yrjkqq Nov 28, 2025
414419f
chore: update version to 3.10.0-stable.9 and correct StableLogo impor…
yrjkqq Dec 2, 2025
7115d84
fix: update colors in stable.svg logo for improved visibility and con…
yrjkqq Dec 3, 2025
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
71 changes: 70 additions & 1 deletion packages/doc/src/stories/widgets/Pool.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,75 @@ export const Primary = (props: any) => {
<PoolWidget
{...config}
tokenList={[
{
name: 'TEST1',
address: '0x4E59c68F7216Fe96f27f47D3fA1d8306a00aB380',
symbol: 'test1',
decimals: 18,
slippage: null,
chainId: 2201,
logoImg:
'https://images.dodoex.io/Ie7OODKd0GDZlINrR3drPUEk4js0wnlL2mtt5U_bcsk/rs:fit:160:160:0/g:no/aHR0cHM6Ly9zdG9yYWdlLmdvb2dsZWFwaXMuY29tL2RvZG8tbWVkaWEtc3RhZ2luZy9kZXYvMjIwMS8weDRlNTljNjhmNzIxNmZlOTZmMjdmNDdkM2ZhMWQ4MzA2YTAwYWIzODA.webp',
tokenlists: [
{
name: 'All',
status: 'launched',
__typename: 'Erc20TokenListV2',
},
],
domains: [],
funcLabels: [],
attributeLabels: [],
__typename: 'Erc20Erc20V2List',
},
{
name: 'TEST2',
address: '0x7af9428fC096e469Fa2583B9164f4f87Ba0F75A1',
symbol: 'test2',
decimals: 18,
slippage: null,
chainId: 2201,
logoImg:
'https://images.dodoex.io/4gyRfX982GJg5T_wBJhWpS50VHfjs299hY9Q5Pf5yzI/rs:fit:160:160:0/g:no/aHR0cHM6Ly9zdG9yYWdlLmdvb2dsZWFwaXMuY29tL2RvZG8tbWVkaWEtc3RhZ2luZy9kZXYvMjIwMS8weDdhZjk0MjhmYzA5NmU0NjlmYTI1ODNiOTE2NGY0Zjg3YmEwZjc1YTE.webp',
tokenlists: [
{
name: 'All',
status: 'launched',
__typename: 'Erc20TokenListV2',
},
],
domains: [],
funcLabels: [],
attributeLabels: [],
__typename: 'Erc20Erc20V2List',
},
{
name: 'gUSDT',
address: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE',
symbol: 'gUSDT',
decimals: 18,
slippage: null,
chainId: 2201,
logoImg:
'https://images.dodoex.io/53IvjioP70fgSHG71f1pVIM87xf9oZuQixZ8O-oXwf8/rs:fit:160:160:0/g:no/aHR0cHM6Ly9zdG9yYWdlLmdvb2dsZWFwaXMuY29tL2RvZG8tbWVkaWEtc3RhZ2luZy9kZXYvMjIwMS8weGVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWVlZWU.webp',
tokenlists: [
{
name: 'All',
status: 'launched',
__typename: 'Erc20TokenListV2',
},
],
domains: [],
funcLabels: [],
attributeLabels: [
{
key: 'non-standard-erc20',
__typename: 'Erc20AttributeLabelV2',
},
],
__typename: 'Erc20Erc20V2List',
},

{
address: '0x7D381e6a9c23A0E6969658f6B8Eba57A4Dbf93a0',
symbol: 'USDT',
Expand Down Expand Up @@ -82,7 +151,7 @@ Primary.args = {
routerPage: undefined,
supportAMMV2: true,
supportAMMV3: true,
onlyChainId: 688689,
onlyChainId: 988,
showSubmissionSubmittedDialog: true,
// onlyChainId: 1,
};
14 changes: 14 additions & 0 deletions packages/dodoex-api/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,17 @@
# [@dodoex/api-v3.4.0](https://github.com/DODOEX/widgets/compare/@dodoex/api-v3.3.0...@dodoex/api-v3.4.0) (2025-11-14)


### Features

* add support for Stable Testnet in dodoex-api and widgets ([e5d316e](https://github.com/DODOEX/widgets/commit/e5d316e97b4856b35ed651553083385c53bc96da))

# [@dodoex/api-v3.3.0](https://github.com/DODOEX/widgets/compare/@dodoex/api-v3.2.0...@dodoex/api-v3.3.0) (2025-11-05)


### Features

* dvm add liquidity limit amount logic ([777582d](https://github.com/DODOEX/widgets/commit/777582d6a78f6eabff402f6f51a60f29bda1b651))

# [@dodoex/api-v3.2.0](https://github.com/DODOEX/widgets/compare/@dodoex/api-v3.1.0...@dodoex/api-v3.2.0) (2025-10-24)


Expand Down
6 changes: 3 additions & 3 deletions packages/dodoex-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dodoex/api",
"version": "3.2.0",
"version": "3.5.0-stable.5",
"description": "DODO API Kit",
"source": "src/index.ts",
"types": "dist/types/index.d.ts",
Expand All @@ -21,7 +21,7 @@
"release": "semantic-release",
"release:local": "np --any-branch --no-cleanup --no-tests",
"release.npm-publish": "npm publish --access public",
"release.npm-publish-beta": "npm publish --tag beta"
"release.npm-publish-beta": "yarn run build && npm publish --tag beta"
},
"author": "",
"publishConfig": {
Expand Down Expand Up @@ -103,4 +103,4 @@
"ts-jest": "^29.0.1",
"typescript": "^5.6.3"
}
}
}
16 changes: 16 additions & 0 deletions packages/dodoex-api/src/chainConfig/basicToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -203,4 +203,20 @@ export const basicTokenMap: {
wrappedTokenSymbol: 'WPHRS',
wrappedTokenAddress: '0x838800b758277cc111b2d48ab01e5e164f8e9471',
},
[ChainId.STABLE_TESTNET]: {
...DEFAULT_BASIC_TOKEN,
symbol: 'gUSDT',
name: 'gUSDT',
wrappedTokenSymbol: 'wgUSDT',
wrappedTokenAddress: '0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb',
},
[ChainId.STABLE]: {
address: etherTokenAddress,
decimals: 18,
showDecimals: 4,
symbol: 'gUSDT',
name: 'gUSDT',
wrappedTokenSymbol: 'USDT0',
wrappedTokenAddress: '0x779Ded0c9e1022225f8E0630b35a9b54bE713736',
},
};
3 changes: 3 additions & 0 deletions packages/dodoex-api/src/chainConfig/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,7 @@ export enum ChainId {

PHAROS_TESTNET = 688688,
PHAROS_ATLANTIC_TESTNET = 688689,

STABLE = 988,
STABLE_TESTNET = 2201,
}
30 changes: 30 additions & 0 deletions packages/dodoex-api/src/chainConfig/contractConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ import {
hemi,
pharosTestnet,
pharosAtlanticTestnet,
stableTestnet,
stable,
} from '@dodoex/dodo-contract-request';
import { ChainId } from './chain';

Expand Down Expand Up @@ -513,6 +515,34 @@ const contractMap: {
DODO_DPP_PROXY: pharosAtlanticTestnet.DODODppProxy,
DODO_MINEV3_PROXY: pharosAtlanticTestnet.DODOMineV3Proxy,
},
[ChainId.STABLE_TESTNET]: {
MULTI_CALL: stableTestnet.MulticallWithValid,
DODO_APPROVE: stableTestnet.DODOApprove,
ERC20_HELPER: stableTestnet.ERC20Helper,

ROUTE_V2_DATA_FETCH: stableTestnet.DODOV2RouteHelper,
ROUTE_V1_DATA_FETCH: stableTestnet.DODOV1PmmHelper,
CALLEE_HELPER: stableTestnet.DODOCalleeHelper,

DODO_PROXY: stableTestnet.DODOV2Proxy02,
DODO_DSP_PROXY: stableTestnet.DODODspProxy,
DODO_DPP_PROXY: stableTestnet.DODODppProxy,
DODO_MINEV3_PROXY: stableTestnet.DODOMineV3Proxy,
},
[ChainId.STABLE]: {
MULTI_CALL: stable.MulticallWithValid,
DODO_APPROVE: stable.DODOApprove,
ERC20_HELPER: stable.ERC20Helper,

ROUTE_V2_DATA_FETCH: stable.DODOV2RouteHelper,
ROUTE_V1_DATA_FETCH: stable.DODOV1PmmHelper,
CALLEE_HELPER: stable.DODOCalleeHelper,

DODO_PROXY: stable.DODOV2Proxy02,
DODO_DSP_PROXY: stable.DODODspProxy,
DODO_DPP_PROXY: stable.DODODppProxy,
DODO_MINEV3_PROXY: stable.DODOMineV3Proxy,
},
};

export default contractMap;
2 changes: 2 additions & 0 deletions packages/dodoex-api/src/chainConfig/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,6 @@ export const platformIdMap: {
[ChainId.HEMI]: 'hemi',
[ChainId.PHAROS_TESTNET]: 'pharos-testnet',
[ChainId.PHAROS_ATLANTIC_TESTNET]: 'pharos-atlantic-testnet',
[ChainId.STABLE_TESTNET]: 'stable-testnet',
[ChainId.STABLE]: 'stable',
};
Loading
Loading