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
6 changes: 5 additions & 1 deletion packages/doc/src/stories/widgets/Pool.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,11 @@ Primary.args = {
routerPage: undefined,
supportAMMV2: true,
supportAMMV3: true,
onlyChainId: 688689,
supportChainIds: [
1, 42161, 137, 56, 10, 43114, 1313161554, 1030, 8453, 59144, 534352, 169,
5000, 200901, 48900, 196, 543210, 177, 43111, 988, 421614, 53457,
],
// onlyChainId: 688689,
showSubmissionSubmittedDialog: true,
// onlyChainId: 1,
};
2 changes: 1 addition & 1 deletion packages/dodoex-api/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dodoex/api",
"version": "3.4.0",
"version": "3.5.0",
"description": "DODO API Kit",
"source": "src/index.ts",
"types": "dist/types/index.d.ts",
Expand Down
9 changes: 9 additions & 0 deletions packages/dodoex-api/src/chainConfig/basicToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -210,4 +210,13 @@ export const basicTokenMap: {
wrappedTokenSymbol: 'wgUSDT',
wrappedTokenAddress: '0xB8CE59FC3717ada4C02eaDF9682A9e934F625ebb',
},
[ChainId.STABLE]: {
address: etherTokenAddress,
decimals: 18,
showDecimals: 4,
symbol: 'gUSDT',
name: 'gUSDT',
wrappedTokenSymbol: 'USDT0',
wrappedTokenAddress: '0x779Ded0c9e1022225f8E0630b35a9b54bE713736',
},
};
1 change: 1 addition & 0 deletions packages/dodoex-api/src/chainConfig/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,4 +63,5 @@ export enum ChainId {
PHAROS_ATLANTIC_TESTNET = 688689,

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

Expand Down Expand Up @@ -528,6 +529,20 @@ const contractMap: {
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;
1 change: 1 addition & 0 deletions packages/dodoex-api/src/chainConfig/platform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,5 @@ export const platformIdMap: {
[ChainId.PHAROS_TESTNET]: 'pharos-testnet',
[ChainId.PHAROS_ATLANTIC_TESTNET]: 'pharos-atlantic-testnet',
[ChainId.STABLE_TESTNET]: 'stable-testnet',
[ChainId.STABLE]: 'stable',
};
6 changes: 3 additions & 3 deletions packages/dodoex-widgets/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@dodoex/widgets",
"version": "3.10.0",
"version": "3.10.8",
"description": "DODO Widgets",
"source": "src/index.tsx",
"types": "dist/types/index.d.ts",
Expand Down Expand Up @@ -58,10 +58,10 @@
},
"dependencies": {
"@babel/runtime": "^7.17.0",
"@dodoex/api": "3.4.0",
"@dodoex/api": "3.5.0",
"@dodoex/components": "^3.1.0",
"@dodoex/contract-request": "^1.3.0",
"@dodoex/dodo-contract-request": "^1.28.0",
"@dodoex/dodo-contract-request": "^1.32.0",
"@dodoex/icons": "^2.0.3",
"@emotion/react": "^11.10.0",
"@emotion/styled": "^11.10.0",
Expand Down
10 changes: 10 additions & 0 deletions packages/dodoex-widgets/src/assets/logo/networks/stable.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions packages/dodoex-widgets/src/constants/chainList.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ import {
} from '../assets/logo/networks/rise.svg';
import { ReactComponent as ScrollLogo } from '../assets/logo/networks/scroll.svg';
import { ReactComponent as StableTestnetLogo } from '../assets/logo/networks/stable-testnet.svg';
import { ReactComponent as StableLogo } from '../assets/logo/networks/stable.svg';
import { ReactComponent as TaikoLogo } from '../assets/logo/networks/taiko.svg';
import { ReactComponent as XLayerLogo } from '../assets/logo/networks/x-layer.svg';
import { ReactComponent as ZeroLogo } from '../assets/logo/networks/zero.svg';
Expand Down Expand Up @@ -313,6 +314,14 @@ export const chainListMap: Map<ChainId, ChainListItem> = new Map([
name: 'Stable Testnet',
},
],
[
ChainId.STABLE,
{
chainId: ChainId.STABLE,
logo: StableLogo,
name: 'Stable',
},
],
]);

export const isTestNet = (chainId: ChainId) => {
Expand Down
7 changes: 7 additions & 0 deletions packages/dodoex-widgets/src/constants/chains.ts
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,9 @@ export const rpcServerMap: {
'https://api.zan.top/node/v1/pharos/atlantic/54b49326c9f44b6e8730dc5dd4348421',
],
[ChainId.STABLE_TESTNET]: ['https://rpc.testnet.stable.xyz'],
[ChainId.STABLE]: [
'https://partners-rpc.stable.xyz/dodo.88b3272adaac2ddaa08f13c049824412d7bffe24a2c760089f6c480115ac00e1',
],
};

export const getRpcSingleUrlMap = (newRpcServerMap?: {
Expand Down Expand Up @@ -128,6 +131,7 @@ export const scanUrlDomainMap: {
[ChainId.PHAROS_TESTNET]: 'testnet.pharosscan.xyz',
[ChainId.PHAROS_ATLANTIC_TESTNET]: 'atlantic.pharosscan.xyz',
[ChainId.STABLE_TESTNET]: 'testnet.stablescan.xyz',
[ChainId.STABLE]: 'stablescan.xyz',
};

export const ThegraphKeyMap: {
Expand Down Expand Up @@ -167,6 +171,7 @@ export const ThegraphKeyMap: {
[ChainId.PHAROS_TESTNET]: 'pharos-testnet',
[ChainId.PHAROS_ATLANTIC_TESTNET]: 'pharos-atlantic-testnet',
[ChainId.STABLE_TESTNET]: 'stable-testnet',
[ChainId.STABLE]: 'stable',
};

export const blockTimeMap: {
Expand Down Expand Up @@ -206,6 +211,7 @@ export const blockTimeMap: {
[ChainId.PHAROS_TESTNET]: 0,
[ChainId.PHAROS_ATLANTIC_TESTNET]: 2777,
[ChainId.STABLE_TESTNET]: 700,
[ChainId.STABLE]: 988,
};

export const dexKeysMap: {
Expand Down Expand Up @@ -245,4 +251,5 @@ export const dexKeysMap: {
[ChainId.PHAROS_TESTNET]: [],
[ChainId.PHAROS_ATLANTIC_TESTNET]: [],
[ChainId.STABLE_TESTNET]: [],
[ChainId.STABLE]: [],
};
2 changes: 1 addition & 1 deletion packages/dodoex-widgets/src/locales/en-US.js

Large diffs are not rendered by default.

Loading
Loading