@dodoex/widgets 3.0.4-ve33.10 → 3.0.4-ve33.12
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/locales/en-US.js +1 -1
- package/dist/cjs/locales/zh-CN.js +1 -1
- package/dist/{helper-t_Ye_aBf.js → helper-Ch2thOK-.js} +1 -1
- package/dist/{helper-BPuHWVRM.cjs → helper-Dy75aFem.cjs} +1 -1
- package/dist/{index-BA5HePEm.js → index-B-bIAJN3.js} +1 -1
- package/dist/index-B_KtSyz4.cjs +32 -0
- package/dist/{index-Cg3PeApO.cjs → index-C319dpay.cjs} +1 -1
- package/dist/index-D7TTWKpo.js +32 -0
- package/dist/{index-CTWa5eCR.js → index-DEs49eBG.js} +1 -1
- package/dist/{index-al7nXNyl.cjs → index-JQV571JA.cjs} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/locales/en-US.js +1 -1
- package/dist/locales/zh-CN.js +1 -1
- package/dist/types/components/CardWidgets.d.ts +2 -1
- package/dist/types/components/SimpleItemInfo.d.ts +4 -0
- package/dist/types/components/Swap/components/Dialog.d.ts +3 -0
- package/dist/types/components/Swap/components/TokenCard/NumberInput.d.ts +1 -0
- package/dist/types/components/Swap/components/TokenCard/TokenLpCard.d.ts +32 -0
- package/dist/types/components/Swap/components/TokenCard/index.d.ts +2 -1
- package/dist/types/components/Token/TokenItem.d.ts +2 -1
- package/dist/types/components/TokenSelect.d.ts +5 -2
- package/dist/types/components/TokenStatusButton.d.ts +1 -1
- package/dist/types/hooks/Submission/types.d.ts +19 -1
- package/dist/types/hooks/Token/usePoolTokenSort.d.ts +24 -0
- package/dist/types/index.d.ts +4 -0
- package/dist/types/utils/fractions/fraction.d.ts +24 -0
- package/dist/types/utils/fractions/index.d.ts +3 -0
- package/dist/types/utils/fractions/percent.d.ts +14 -0
- package/dist/types/utils/fractions/price.d.ts +29 -0
- package/dist/types/utils/fractions/types.d.ts +7 -0
- package/dist/types/widgets/ve33/Ve33IncentiveDetail/AddIncentiveDialog.d.ts +13 -0
- package/dist/types/widgets/ve33/Ve33IncentiveDetail/Dashboard.d.ts +1 -0
- package/dist/types/widgets/ve33/Ve33IncentiveDetail/PoolInfo.d.ts +5 -0
- package/dist/types/widgets/ve33/Ve33IncentiveDetail/index.d.ts +7 -0
- package/dist/types/widgets/ve33/Ve33IncentiveList/CardList.d.ts +10 -0
- package/dist/types/widgets/ve33/Ve33IncentiveList/TableList.d.ts +11 -0
- package/dist/types/widgets/ve33/Ve33IncentiveList/index.d.ts +7 -0
- package/dist/types/widgets/ve33/Ve33LockList/CardList.d.ts +11 -0
- package/dist/types/widgets/ve33/Ve33LockList/ClaimLockDialog.d.ts +6 -0
- package/dist/types/widgets/ve33/Ve33LockList/LockManageDialog.d.ts +7 -0
- package/dist/types/widgets/ve33/Ve33LockList/MergeDialog.d.ts +7 -0
- package/dist/types/widgets/ve33/Ve33LockList/TableList.d.ts +10 -0
- package/dist/types/widgets/ve33/Ve33LockList/hooks/useClaimBribes.d.ts +7 -0
- package/dist/types/widgets/ve33/Ve33LockList/hooks/useClaimRebases.d.ts +5 -0
- package/dist/types/widgets/ve33/Ve33LockList/hooks/useExtendLock.d.ts +6 -0
- package/dist/types/widgets/ve33/Ve33LockList/hooks/useFetchUserLocks.d.ts +282 -0
- package/dist/types/widgets/ve33/Ve33LockList/hooks/useIncreaseLock.d.ts +6 -0
- package/dist/types/widgets/ve33/Ve33LockList/hooks/useMergeLock.d.ts +5 -0
- package/dist/types/widgets/ve33/Ve33LockList/hooks/useTransferLock.d.ts +7 -0
- package/dist/types/widgets/ve33/Ve33LockList/index.d.ts +1 -0
- package/dist/types/widgets/ve33/Ve33LockOperate/hooks/useCreateLock.d.ts +7 -0
- package/dist/types/widgets/ve33/Ve33LockOperate/hooks/useFetchUserTotalVeNFT.d.ts +8 -0
- package/dist/types/widgets/ve33/Ve33LockOperate/index.d.ts +4 -0
- package/dist/types/widgets/ve33/Ve33LockOperate/utils.d.ts +21 -0
- package/dist/types/widgets/ve33/Ve33PoolDetail/MyAssets.d.ts +5 -0
- package/dist/types/widgets/ve33/Ve33PoolDetail/MyPosition.d.ts +5 -0
- package/dist/types/widgets/ve33/Ve33PoolDetail/PoolInfo.d.ts +5 -0
- package/dist/types/widgets/ve33/Ve33PoolDetail/useVe33V3Positions.d.ts +79 -0
- package/dist/types/widgets/ve33/Ve33PoolList/CardList.d.ts +13 -0
- package/dist/types/widgets/ve33/Ve33PoolOperate.d.ts +2 -0
- package/dist/types/widgets/ve33/Ve33StakeDialog.d.ts +11 -0
- package/dist/types/widgets/ve33/{Ve33PoolOperate → Ve33V2PoolOperate}/components/SliderPercentageCard.d.ts +2 -1
- package/dist/types/widgets/ve33/{Ve33PoolOperate → Ve33V2PoolOperate}/hooks/useLiquidityOperateAmount.d.ts +4 -0
- package/dist/types/widgets/ve33/{Ve33PoolOperate → Ve33V2PoolOperate}/hooks/useVe33V2BalanceInfo.d.ts +2 -0
- package/dist/types/widgets/ve33/Ve33V2PoolOperate/index.d.ts +15 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/Ve33V3AddLiquidity.d.ts +4 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/Badge/RangeBadge.d.ts +4 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/ClaimButton.d.ts +9 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/InRangeDot.d.ts +4 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/InputStepCounter.d.ts +17 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/LiquidityChartRangeInput/Area.d.ts +10 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/LiquidityChartRangeInput/AxisBottom.d.ts +6 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/LiquidityChartRangeInput/Brush.d.ts +13 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/LiquidityChartRangeInput/Chart.d.ts +2 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/LiquidityChartRangeInput/Line.d.ts +6 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/LiquidityChartRangeInput/Zoom.d.ts +12 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/LiquidityChartRangeInput/index.d.ts +19 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/LiquidityChartRangeInput/svg.d.ts +22 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/LiquidityChartRangeInput/types.d.ts +50 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/LiquidityChartRangeInput/usePrevious.d.ts +1 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/LiquidityChartRangeInput/utils.d.ts +14 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/MyLiquidity.d.ts +10 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/PositionManage.d.ts +8 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/PositionPreview.d.ts +14 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/PositionSelectedRangePreview.d.ts +11 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/RangeRatioSelect.d.ts +2 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/RangeSelector.d.ts +21 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/RateToggle.d.ts +9 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/RemoveButton.d.ts +12 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/ReviewModal.d.ts +18 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/TokenAndEtherscan.d.ts +4 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/TokenPairSelect.d.ts +7 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/shared.d.ts +4 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/components/widgets.d.ts +56 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/constants/misc.d.ts +17 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/hooks/useAddVe33V3Liquidity.d.ts +15 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/hooks/usePoolActiveLiquidityChartData.d.ts +37 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/hooks/usePriceRangeRatioSelect.d.ts +28 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/hooks/useRemoveVe33V3Liquidity.d.ts +14 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/hooks/useSetRange.d.ts +36 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/hooks/useVe33V3Amounts.d.ts +19 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/hooks/useVe33V3Pair.d.ts +58 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/index.d.ts +5 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/types.d.ts +10 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/utils/calldata.d.ts +7 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/utils/computeSurroundingTicks.d.ts +4 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/utils/constants.d.ts +7 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/utils/encodeSqrtRatioX96.d.ts +9 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/utils/formatTickPrice.d.ts +1 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/utils/fullMath.d.ts +8 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/utils/getPositionAmount.d.ts +39 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/utils/getPositionAmountWithSlippage.d.ts +23 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/utils/getTickToPrice.d.ts +10 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/utils/maxLiquidityForAmounts.d.ts +22 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/utils/mostSignificantBit.d.ts +2 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/utils/nearestUsableTick.d.ts +6 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/utils/slippage.d.ts +3 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/utils/sqrt.d.ts +7 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/utils/sqrtPriceMath.d.ts +13 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/utils/tickMath.d.ts +34 -0
- package/dist/types/widgets/ve33/Ve33V3PoolOperate/utils/tryParseTick.d.ts +4 -0
- package/dist/types/widgets/ve33/VotePoolList/CardList.d.ts +11 -0
- package/dist/types/widgets/ve33/VotePoolList/SetVotePowerDialog.d.ts +12 -0
- package/dist/types/widgets/ve33/VotePoolList/TableList.d.ts +4 -5
- package/dist/types/widgets/ve33/VotePoolList/hooks/useVoteVe33.d.ts +7 -0
- package/dist/types/widgets/ve33/VotePoolList/index.d.ts +4 -1
- package/dist/types/widgets/ve33/VotePoolList/widgets.d.ts +36 -0
- package/dist/types/widgets/ve33/components/LockSlider.d.ts +5 -0
- package/dist/types/widgets/ve33/components/PoolTokenInfo.d.ts +11 -0
- package/dist/types/widgets/ve33/hooks/useVe33PositionAmounts.d.ts +17 -0
- package/dist/types/widgets/ve33/hooks/useVe33V2ClaimEmissions.d.ts +4 -0
- package/dist/types/widgets/ve33/hooks/useVe33V2ClaimTradingFees.d.ts +4 -0
- package/dist/types/widgets/ve33/hooks/useVe33V2Stake.d.ts +5 -0
- package/dist/types/widgets/ve33/hooks/useVe33V2UnStake.d.ts +5 -0
- package/dist/types/widgets/ve33/hooks/useVe33V3ClaimEmissions.d.ts +5 -0
- package/dist/types/widgets/ve33/hooks/useVe33V3ClaimTradingFees.d.ts +4 -0
- package/dist/types/widgets/ve33/hooks/useVe33V3Stake.d.ts +5 -0
- package/dist/types/widgets/ve33/hooks/useVe33V3StakeApproveStatus.d.ts +17 -0
- package/dist/types/widgets/ve33/hooks/useVe33V3UnStake.d.ts +5 -0
- package/package.json +2 -2
- package/dist/index-C8qblH3I.js +0 -32
- package/dist/index-CQTOLjzQ.cjs +0 -32
- package/dist/types/widgets/ve33/Ve33PoolOperate/index.d.ts +0 -23
- /package/dist/types/widgets/ve33/{Ve33PoolOperate → Ve33V2PoolOperate}/AddPoolOperate.d.ts +0 -0
- /package/dist/types/widgets/ve33/{Ve33PoolOperate → Ve33V2PoolOperate}/RemovePoolOperate.d.ts +0 -0
- /package/dist/types/widgets/ve33/{Ve33PoolOperate → Ve33V2PoolOperate}/components/ComparePrice.d.ts +0 -0
- /package/dist/types/widgets/ve33/{Ve33PoolOperate → Ve33V2PoolOperate}/components/OperateBtn.d.ts +0 -0
- /package/dist/types/widgets/ve33/{Ve33PoolOperate → Ve33V2PoolOperate}/components/SlippageSetting.d.ts +0 -0
- /package/dist/types/widgets/ve33/{Ve33PoolOperate → Ve33V2PoolOperate}/components/V2ConfirmDialog.d.ts +0 -0
- /package/dist/types/widgets/ve33/{Ve33PoolOperate → Ve33V2PoolOperate}/hooks/useComparePrice.d.ts +0 -0
- /package/dist/types/widgets/ve33/{Ve33PoolOperate → Ve33V2PoolOperate}/hooks/usePercentageRemove.d.ts +0 -0
- /package/dist/types/widgets/ve33/{Ve33PoolOperate → Ve33V2PoolOperate}/hooks/usePoolOperateTabs.d.ts +0 -0
- /package/dist/types/widgets/ve33/{Ve33PoolOperate → Ve33V2PoolOperate}/hooks/useVe33V2AddLiquidity.d.ts +0 -0
- /package/dist/types/widgets/ve33/{Ve33PoolOperate → Ve33V2PoolOperate}/hooks/useVe33V2RemoveLiquidity.d.ts +0 -0
- /package/dist/types/widgets/ve33/{Ve33PoolOperate → Ve33V2PoolOperate}/hooks/useWithdrawInfo.d.ts +0 -0
- /package/dist/types/widgets/ve33/{Ve33PoolOperate → Ve33V2PoolOperate}/types.d.ts +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("bignumber.js"),t=require("lodash"),i=require("react"),r=require("@emotion/styled"),o=require("@emotion/react"),n=require("react-konva"),s=require("./helper-
|
|
1
|
+
"use strict";var e=require("bignumber.js"),t=require("lodash"),i=require("react"),r=require("@emotion/styled"),o=require("@emotion/react"),n=require("react-konva"),s=require("./helper-Dy75aFem.cjs"),l=require("./index-B_KtSyz4.cjs"),a=require("@dodoex/api");require("@lingui/core"),require("react-dom"),require("@lingui/react"),require("@dodoex/components"),require("@web3-react/core"),require("react-redux"),require("axios"),require("@ethersproject/bignumber"),require("@reduxjs/toolkit"),require("redux"),require("@dodoex/dodo-contract-request"),require("@tanstack/react-query"),require("@web3-react/eip1193"),require("@web3-react/walletconnect-v2"),require("@web3-react/metamask"),require("@web3-react/types"),require("zustand"),require("identicon.js"),require("dayjs"),require("react-transition-group"),require("@dodoex/contract-request"),require("react-window"),require("jsbi"),require("tiny-invariant"),require("@uniswap/sdk-core"),require("@uniswap/v2-sdk"),require("react-infinite-scroller"),require("recharts"),require("d3"),require("rmc-date-picker");var u={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},c=i.createContext&&i.createContext(u),d=["attr","size","title"];function p(e,t){if(null==e)return{};var i,r,o=function(e,t){if(null==e)return{};var i,r,o={},n=Object.keys(e);for(r=0;r<n.length;r++)i=n[r],t.indexOf(i)>=0||(o[i]=e[i]);return o}(e,t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);for(r=0;r<n.length;r++)i=n[r],t.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(e,i)&&(o[i]=e[i])}return o}function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e},m.apply(this,arguments)}function g(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,r)}return i}function x(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?g(Object(i),!0).forEach((function(t){h(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):g(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function h(e,t,i){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var r=i.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function f(e){return e&&e.map(((e,t)=>i.createElement(e.tag,x({key:t},e.attr),f(e.child))))}function b(e){return t=>i.createElement(M,m({attr:x({},e.attr)},t),f(e.child))}function M(e){var t=t=>{var r,{attr:o,size:n,title:s}=e,l=p(e,d),a=n||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),i.createElement("svg",m({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,o,l,{className:r,style:x(x({color:e.color||t.color},t.style),e.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),s&&i.createElement("title",null,s),e.children)};return void 0!==c?i.createElement(c.Consumer,null,(e=>t(e))):t(u)}function v(e){return b({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M13.293 6.293 7.586 12l5.707 5.707 1.414-1.414L10.414 12l4.293-4.293z"},child:[]}]})(e)}function j(e){return b({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M10.707 17.707 16.414 12l-5.707-5.707-1.414 1.414L13.586 12l-4.293 4.293z"},child:[]}]})(e)}function y(e){return b({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M5 11h14v2H5z"},child:[]}]})(e)}function P(e){return b({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19 11h-6V5h-2v6H5v2h6v6h2v-6h6z"},child:[]}]})(e)}const L=r.input`
|
|
2
2
|
margin: 4px 10px 4px 6px;
|
|
3
3
|
border-radius: 10px;
|
|
4
4
|
border: 1px solid #373739;
|