Skip to content

Commit

Permalink
fix: update token addresses and names in AMMV3 stories and components
Browse files Browse the repository at this point in the history
  • Loading branch information
yrjkqq committed Dec 5, 2024
1 parent 876a206 commit 9550f13
Show file tree
Hide file tree
Showing 9 changed files with 32 additions and 36 deletions.
4 changes: 2 additions & 2 deletions packages/doc/src/stories/widgets/AMMV3Create.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ export const Primary = (props: any) => {
handleGoBack={() => window.alert('handleGoBack')}
handleGoToPoolList={() => window.alert('handleGoToPoolList')}
params={{
from: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE',
to: '0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238',
from: '0x8f2a9f23d5d70226491b0c10365de88f64cd4a01',
to: '0xd05553bc85fa8c004073d91097b7611cd5e478f5',
fee: '100',
}}
/>
Expand Down
19 changes: 8 additions & 11 deletions packages/doc/src/stories/widgets/AMMV3PositionManage.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,23 @@ export const Primary = (props: any) => {
<AMMV3PositionManage
chainId={11155111}
baseToken={{
address: '0xEeeeeEeeeEeEeeEeEeEeeEEEeeeeEeeeeeeeEEeE',
address: '0x163D876AF3949f45D934870a1783A040Cf717Bc5',
decimals: 18,
symbol: 'ETH',
name: 'ETH',
symbol: 'uni_test2',
name: 'uni_test2',
chainId: 11155111,
// chainId: 1,
}}
quoteToken={{
address: '0x1c7D4B196Cb0C7B01d743Fbc6116a902379C7238',
// address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
address: '0x444d30Eeb001Dc8B7B96cEF088381418B82f9441',
decimals: 6,
symbol: 'USDC',
name: 'USDC',
symbol: 'uni_test3',
name: 'uni_test3',
chainId: 11155111,
// chainId: 1,
}}
// feeAmount={500}
// tokenId={'25235'}
feeAmount={10000}
tokenId={'26887'}
feeAmount={500}
tokenId={'4'}
onClose={() => window.alert('onClose')}
/>
</Widget>
Expand Down
17 changes: 7 additions & 10 deletions packages/doc/src/stories/widgets/AMMV3PositionsView.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,23 +26,20 @@ export const Primary = (props: any) => {
<AMMV3PositionsView
chainId={11155111}
baseToken={{
address: '0x8f2a9f23d5d70226491B0c10365dE88f64cD4a01',
address: '0x163D876AF3949f45D934870a1783A040Cf717Bc5',
decimals: 18,
symbol: 'TK1A',
name: 'token1A',
symbol: 'uni_test2',
name: 'uni_test2',
chainId: 11155111,
// chainId: 1,
}}
quoteToken={{
address: '0xd05553BC85FA8c004073d91097B7611CD5E478f5',
// address: '0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48',
address: '0x444d30Eeb001Dc8B7B96cEF088381418B82f9441',
decimals: 6,
symbol: 'USDT-A',
name: 'usdtA',
symbol: 'uni_test3',
name: 'uni_test3',
chainId: 11155111,
// chainId: 1,
}}
feeAmount={100}
feeAmount={500}
onClose={() => window.alert('onClose')}
handleGoToAddLiquidityV3={() =>
window.alert('handleGoToAddLiquidityV3')
Expand Down
2 changes: 1 addition & 1 deletion 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.1-taiko.12",
"version": "3.0.1-taiko.13",
"description": "DODO Widgets",
"source": "src/index.tsx",
"types": "dist/types/index.d.ts",
Expand Down
8 changes: 4 additions & 4 deletions packages/dodoex-widgets/src/locales/en-US.po
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ msgstr "Selected Range"
msgid "Do not remind again"
msgstr "Do not remind again"

#: src/widgets/PoolWidget/AMMV3/AMMV3PositionManage.tsx:370
#: src/widgets/PoolWidget/PoolOperate/RemovePoolOperate.tsx:261
msgid "Remove Liquidity"
msgstr "Remove Liquidity"
Expand Down Expand Up @@ -372,6 +373,7 @@ msgstr "This token is on"
msgid "Success Rate"
msgstr "Success Rate"

#: src/widgets/PoolWidget/AMMV3/AddLiquidityV3.tsx:252
#: src/widgets/PoolWidget/PoolCreate/operate-widgets/BottomButtonGroup.tsx:330
msgid "Pool Creation"
msgstr "Pool Creation"
Expand Down Expand Up @@ -582,11 +584,7 @@ msgid "Add Initial Liquidity"
msgstr "Add Initial Liquidity"

#: src/widgets/PoolWidget/AMMV2Create/index.tsx:202
#: src/widgets/PoolWidget/AMMV3/AddLiquidityV3.tsx:252
#: src/widgets/PoolWidget/AMMV3/AddLiquidityV3.tsx:331
#: src/widgets/PoolWidget/AMMV3/AMMV3PositionManage.tsx:303
#: src/widgets/PoolWidget/AMMV3/AMMV3PositionManage.tsx:370
#: src/widgets/PoolWidget/AMMV3/AMMV3PositionManage.tsx:420
#: src/widgets/PoolWidget/AMMV3/AMMV3PositionManage.tsx:479
#: src/widgets/PoolWidget/AMMV3/components/ReviewModal.tsx:36
#: src/widgets/PoolWidget/hooks/useAMMV2AddLiquidity.ts:120
Expand Down Expand Up @@ -999,6 +997,7 @@ msgstr "No LP pools match your criteria"
msgid "Fee rate"
msgstr "Fee rate"

#: src/widgets/PoolWidget/AMMV3/AMMV3PositionManage.tsx:303
#: src/widgets/PoolWidget/PoolList/hooks/usePoolListTabs.ts:25
#: src/widgets/PoolWidget/PoolOperate/AddPoolOperate.tsx:124
msgid "Add Liquidity"
Expand Down Expand Up @@ -2324,6 +2323,7 @@ msgid "Transaction Deadline"
msgstr "Transaction Deadline"

#: src/widgets/MiningWidget/MiningList/hooks/useDepositOrWithdrawOrClaim.ts:190
#: src/widgets/PoolWidget/AMMV3/AMMV3PositionManage.tsx:420
msgid "Claim Rewards"
msgstr "Claim Rewards"

Expand Down
8 changes: 4 additions & 4 deletions packages/dodoex-widgets/src/locales/zh-CN.po
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,7 @@ msgstr ""
msgid "Do not remind again"
msgstr ""

#: src/widgets/PoolWidget/AMMV3/AMMV3PositionManage.tsx:370
#: src/widgets/PoolWidget/PoolOperate/RemovePoolOperate.tsx:261
msgid "Remove Liquidity"
msgstr ""
Expand Down Expand Up @@ -372,6 +373,7 @@ msgstr "该代币在"
msgid "Success Rate"
msgstr ""

#: src/widgets/PoolWidget/AMMV3/AddLiquidityV3.tsx:252
#: src/widgets/PoolWidget/PoolCreate/operate-widgets/BottomButtonGroup.tsx:330
msgid "Pool Creation"
msgstr ""
Expand Down Expand Up @@ -582,11 +584,7 @@ msgid "Add Initial Liquidity"
msgstr ""

#: src/widgets/PoolWidget/AMMV2Create/index.tsx:202
#: src/widgets/PoolWidget/AMMV3/AddLiquidityV3.tsx:252
#: src/widgets/PoolWidget/AMMV3/AddLiquidityV3.tsx:331
#: src/widgets/PoolWidget/AMMV3/AMMV3PositionManage.tsx:303
#: src/widgets/PoolWidget/AMMV3/AMMV3PositionManage.tsx:370
#: src/widgets/PoolWidget/AMMV3/AMMV3PositionManage.tsx:420
#: src/widgets/PoolWidget/AMMV3/AMMV3PositionManage.tsx:479
#: src/widgets/PoolWidget/AMMV3/components/ReviewModal.tsx:36
#: src/widgets/PoolWidget/hooks/useAMMV2AddLiquidity.ts:120
Expand Down Expand Up @@ -999,6 +997,7 @@ msgstr ""
msgid "Fee rate"
msgstr ""

#: src/widgets/PoolWidget/AMMV3/AMMV3PositionManage.tsx:303
#: src/widgets/PoolWidget/PoolList/hooks/usePoolListTabs.ts:25
#: src/widgets/PoolWidget/PoolOperate/AddPoolOperate.tsx:124
msgid "Add Liquidity"
Expand Down Expand Up @@ -2324,6 +2323,7 @@ msgid "Transaction Deadline"
msgstr "交易截止时间"

#: src/widgets/MiningWidget/MiningList/hooks/useDepositOrWithdrawOrClaim.ts:190
#: src/widgets/PoolWidget/AMMV3/AMMV3PositionManage.tsx:420
msgid "Claim Rewards"
msgstr ""

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ export const AMMV3PositionManage = ({
};

const succ = await submission.execute(
t`Add liquidity`,
t`Add Liquidity`,
{
opcode: OpCode.TX,
...txn,
Expand Down Expand Up @@ -367,7 +367,7 @@ export const AMMV3PositionManage = ({
};

const succ = await submission.execute(
t`Add liquidity`,
t`Remove Liquidity`,
{
opcode: OpCode.TX,
...txn,
Expand Down Expand Up @@ -417,7 +417,7 @@ export const AMMV3PositionManage = ({
};

const succ = await submission.execute(
t`Add liquidity`,
t`Claim Rewards`,
{
opcode: OpCode.TX,
...txn,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ export default function AddLiquidityV3({
};

const succ = await submission.execute(
t`Add liquidity`,
t`Pool Creation`,
{
opcode: OpCode.TX,
...txn,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ export const RateToggle = ({
borderRadius: 7,
textAlign: 'center',
typography: 'h6',
whiteSpace: 'nowrap',
...(isSorted
? {
color: theme.palette.text.primary,
Expand All @@ -70,6 +71,7 @@ export const RateToggle = ({
borderRadius: 7,
textAlign: 'center',
typography: 'h6',
whiteSpace: 'nowrap',
...(!isSorted
? {
color: theme.palette.text.primary,
Expand Down

0 comments on commit 9550f13

Please sign in to comment.