Skip to content

Commit

Permalink
Merge branch 'feat/add-pool-widget' into feat/trinity-x-v1
Browse files Browse the repository at this point in the history
  • Loading branch information
yrjkqq committed Jan 13, 2025
2 parents 624ee2c + f4590a2 commit d16a3fc
Show file tree
Hide file tree
Showing 31 changed files with 660 additions and 257 deletions.
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.0.2",
"version": "3.0.3-morph.5",
"description": "DODO API Kit",
"source": "src/index.ts",
"types": "dist/types/index.d.ts",
Expand Down
8 changes: 8 additions & 0 deletions packages/dodoex-api/src/chainConfig/basicToken.ts
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,10 @@ export const basicTokenMap: {
...DEFAULT_BASIC_TOKEN,
wrappedTokenAddress: '0x562723560131C47417dfcD6BB1A089E4D7C7943C',
},
[ChainId.PLUME_TESTNET]: {
...DEFAULT_BASIC_TOKEN,
wrappedTokenAddress: '0xaA6210015fbf0855F0D9fDA3C415c1B12776Ae74',
},
[ChainId.NEOX]: {
...DEFAULT_BASIC_TOKEN,
symbol: 'GAS',
Expand All @@ -128,4 +132,8 @@ export const basicTokenMap: {
wrappedTokenSymbol: 'WGAS10',
wrappedTokenAddress: '0xdE41591ED1f8ED1484aC2CD8ca0876428de60EfF',
},
[ChainId.MORPH]: {
...DEFAULT_BASIC_TOKEN,
wrappedTokenAddress: '0x5300000000000000000000000000000000000011',
},
};
4 changes: 4 additions & 0 deletions packages/dodoex-api/src/chainConfig/chain.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,9 @@ export enum ChainId {

PLUME = 98865,

PLUME_TESTNET = 98864,

NEOX = 47763,

MORPH = 2818,
}
35 changes: 34 additions & 1 deletion packages/dodoex-api/src/chainConfig/contractConfig.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import { neox, plume } from '@dodoex/dodo-contract-request';
import {
morph,
neox,
plume,
plumeTestnet,
} from '@dodoex/dodo-contract-request';
import { ChainId } from './chain';

const contractMap: {
Expand Down Expand Up @@ -300,6 +305,20 @@ const contractMap: {
DODO_DPP_PROXY: plume.DODODppProxy,
DODO_MINEV3_PROXY: plume.DODOMineV3Proxy,
},
[ChainId.PLUME_TESTNET]: {
MULTI_CALL: plumeTestnet.MulticallWithValid,
DODO_APPROVE: plumeTestnet.DODOApprove,
ERC20_HELPER: plumeTestnet.ERC20Helper,

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

DODO_PROXY: plumeTestnet.DODOV2Proxy02,
DODO_DSP_PROXY: plumeTestnet.DODODspProxy,
DODO_DPP_PROXY: plumeTestnet.DODODppProxy,
DODO_MINEV3_PROXY: plumeTestnet.DODOMineV3Proxy,
},
[ChainId.NEOX]: {
MULTI_CALL: neox.MulticallWithValid,
DODO_APPROVE: neox.DODOApprove,
Expand All @@ -314,6 +333,20 @@ const contractMap: {
DODO_DPP_PROXY: neox.DODODppProxy,
DODO_MINEV3_PROXY: neox.DODOMineV3Proxy,
},
[ChainId.MORPH]: {
MULTI_CALL: morph.MulticallWithValid,
DODO_APPROVE: morph.DODOApprove,
ERC20_HELPER: morph.ERC20Helper,

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

DODO_PROXY: morph.DODOV2Proxy02,
DODO_DSP_PROXY: morph.DODODspProxyWithoutGSP,
DODO_DPP_PROXY: morph.DODODppProxy,
DODO_MINEV3_PROXY: morph.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 @@ -22,5 +22,7 @@ export const platformIdMap: {
[ChainId.DODO_CHAIN_TESTNET]: 'dodochain-testnet',
[ChainId.TAIKO]: 'taiko',
[ChainId.PLUME]: 'plume',
[ChainId.PLUME_TESTNET]: 'plume-testnet',
[ChainId.NEOX]: 'neox',
[ChainId.MORPH]: 'morph',
};
16 changes: 8 additions & 8 deletions packages/dodoex-api/src/gql/gql.ts

Large diffs are not rendered by default.

Loading

0 comments on commit d16a3fc

Please sign in to comment.