Skip to content

Commit

Permalink
feat: add bartio testnet
Browse files Browse the repository at this point in the history
  • Loading branch information
junjieit committed Jan 23, 2025
1 parent 0f7dab2 commit 663990a
Show file tree
Hide file tree
Showing 20 changed files with 491 additions and 755 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.3-bartio.0",
"version": "3.0.3-bartio.1",
"description": "DODO API Kit",
"source": "src/index.ts",
"types": "dist/types/index.d.ts",
Expand Down
24 changes: 13 additions & 11 deletions packages/dodoex-api/src/chainConfig/contractConfig.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import {
neox,
plume,
plumeTestnet,
berachainTestnet,
} from '@dodoex/dodo-contract-request';
import { ChainId } from './chain';

Expand Down Expand Up @@ -349,17 +350,18 @@ const contractMap: {
DODO_MINEV3_PROXY: morph.DODOMineV3Proxy,
},
[ChainId.BARTIO_TESTNET]: {
MULTI_CALL: '0x1bE661D780631d8CAB4DEafB71CFC3dD071ae3f2',
DODO_APPROVE: '0x09da628Df009Ad300e8e299497eebD8694AfBe95',
ERC20_HELPER: '0xCA22c3165082c3223Bc350DE4e8880C01Cd80510',

ROUTE_V2_DATA_FETCH: '0x119115D4119a504AD0CccD566904ea055C377dE5',
ROUTE_V1_DATA_FETCH: '0x895B2caf85Ae70E8d1b77C8b30B25F07b461Dc45',
CALLEE_HELPER: '0x842b59E74Ca9851fF0C35741C5f0923c63825BA8',

DODO_PROXY: '0x8bCcE4CCEEf7e841A2A8A48F3250B9FB3b25B0C3',
DODO_DSP_PROXY: '0x6bbfD968509752518c1e9fBb0918A8AF8615879e',
DODO_DPP_PROXY: '0x819829e5CF6e19F9fED92F6b4CC1edF45a2cC4A2',
MULTI_CALL: berachainTestnet.MulticallWithValid,
DODO_APPROVE: berachainTestnet.DODOApprove,
ERC20_HELPER: berachainTestnet.ERC20Helper,

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

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

Expand Down
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 @@ -20,6 +20,7 @@ export const platformIdMap: {
[ChainId.MANTLE]: 'mantle',
[ChainId.SEPOLIA]: 'sepolia',
[ChainId.DODO_CHAIN_TESTNET]: 'dodochain-testnet',
[ChainId.BARTIO_TESTNET]: 'barito',
[ChainId.TAIKO]: 'taiko',
[ChainId.PLUME]: 'plume',
[ChainId.PLUME_TESTNET]: 'plume-testnet',
Expand Down
4 changes: 2 additions & 2 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.0.2-bartio.1",
"version": "3.0.2-bartio.6",
"description": "DODO Widgets",
"source": "src/index.tsx",
"types": "dist/types/index.d.ts",
Expand Down Expand Up @@ -58,7 +58,7 @@
},
"dependencies": {
"@babel/runtime": "^7.17.0",
"@dodoex/api": "3.0.3-bartio.0",
"@dodoex/api": "3.0.3-bartio.1",
"@dodoex/components": "3.0.2",
"@dodoex/contract-request": "^1.3.0",
"@dodoex/dodo-contract-request": "1.9.0-alpha.8",
Expand Down
2 changes: 1 addition & 1 deletion packages/dodoex-widgets/src/locales/en-US.js

Large diffs are not rendered by default.

Loading

0 comments on commit 663990a

Please sign in to comment.