@dodoex/widgets 3.0.2-zetachain.107.1 → 3.0.2-zetachain.108
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/{helper-CPZ_4gfl.js → helper-C5fVP9b7.js} +1 -1
- package/dist/{helper-C_DFrts4.cjs → helper-Sz7ocgiQ.cjs} +1 -1
- package/dist/{index-CHZaSDCG.cjs → index-5OSkPJnR.cjs} +1 -1
- package/dist/index-BCzN-bb5.cjs +31 -0
- package/dist/index-CMs0Bsgf.js +31 -0
- package/dist/{index-DRfVL2cY.js → index-CW5ABJmc.js} +1 -1
- package/dist/{index-BdlL8Xeb.cjs → index-Cqw7KWOG.cjs} +1 -1
- package/dist/{index-DhsqTuyV.js → index-DaDq8vC9.js} +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.js +1 -1
- package/dist/types/hooks/Swap/useCrossSwapOrderList.d.ts +6 -6
- package/package.json +2 -2
- package/dist/index-OYy0tBfF.cjs +0 -31
- package/dist/index-oVgGTd3P.js +0 -31
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import t from"bignumber.js";import{merge as e,throttle as i,debounce as o}from"lodash";import r,{useEffect as n,useMemo as l,useRef as s,useState as a}from"react";import d from"@emotion/styled";import{css as u}from"@emotion/react";import{Stage as c,Layer as p,Rect as m,Line as g,Text as h,Circle as b,Label as f,Tag as M}from"react-konva";import{c as x,e as v,a as y,b as P,d as j,f as w,u as z,g as L,h as k,l as B,i as C,j as S,k as N}from"./helper-
|
|
1
|
+
import t from"bignumber.js";import{merge as e,throttle as i,debounce as o}from"lodash";import r,{useEffect as n,useMemo as l,useRef as s,useState as a}from"react";import d from"@emotion/styled";import{css as u}from"@emotion/react";import{Stage as c,Layer as p,Rect as m,Line as g,Text as h,Circle as b,Label as f,Tag as M}from"react-konva";import{c as x,e as v,a as y,b as P,d as j,f as w,u as z,g as L,h as k,l as B,i as C,j as S,k as N}from"./helper-C5fVP9b7.js";import{f as O,j as X,a as T,b as A}from"./index-CMs0Bsgf.js";import{solveQuadraticFunctionForTarget as q,PMMModel as W}from"@dodoex/api";import"@lingui/core";import"@lingui/react";import"@dodoex/components";import"@reown/appkit-utils";import"@solana/web3.js";import"@reown/appkit/networks";import"@tanstack/react-query";import"zustand";import"@dodoex/dodo-contract-request";import"@ethersproject/providers";import"@reown/appkit/react";import"@ethersproject/bignumber";import"axios";import"@ethersproject/contracts";import"react-dom";import"identicon.js";import"@bitcoinerlab/secp256k1";import"bitcoinjs-lib";import"dayjs";import"@dodoex/contract-request";import"react-transition-group";import"recharts";import"react-window";import"jsbi";import"tiny-invariant";import"@ethersproject/units";import"react-infinite-scroller";import"@uniswap/sdk-core";import"@uniswap/v2-sdk";import"d3";var E={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},F=r.createContext&&r.createContext(E),H=["attr","size","title"];function Z(t,e){if(null==t)return{};var i,o,r=function(t,e){if(null==t)return{};var i,o,r={},n=Object.keys(t);for(o=0;o<n.length;o++)i=n[o],e.indexOf(i)>=0||(r[i]=t[i]);return r}(t,e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);for(o=0;o<n.length;o++)i=n[o],e.indexOf(i)>=0||Object.prototype.propertyIsEnumerable.call(t,i)&&(r[i]=t[i])}return r}function G(){return G=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(t[o]=i[o])}return t},G.apply(this,arguments)}function D(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,o)}return i}function J(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?D(Object(i),!0).forEach((function(e){V(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):D(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function V(t,e,i){return(e=function(t){var e=function(t,e){if("object"!=typeof t||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var o=i.call(t,e||"default");if("object"!=typeof o)return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"==typeof e?e:String(e)}(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Y(t){return t&&t.map(((t,e)=>r.createElement(t.tag,J({key:e},t.attr),Y(t.child))))}function I(t){return e=>r.createElement(R,G({attr:J({},t.attr)},e),Y(t.child))}function R(t){var e=e=>{var i,{attr:o,size:n,title:l}=t,s=Z(t,H),a=n||e.size||"1em";return e.className&&(i=e.className),t.className&&(i=(i?i+" ":"")+t.className),r.createElement("svg",G({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},e.attr,o,s,{className:i,style:J(J({color:t.color||e.color},e.style),t.style),height:a,width:a,xmlns:"http://www.w3.org/2000/svg"}),l&&r.createElement("title",null,l),t.children)};return void 0!==F?r.createElement(F.Consumer,null,(t=>e(t))):e(E)}function $(t){return I({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:[]}]})(t)}function Q(t){return I({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:[]}]})(t)}function K(t){return I({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M5 11h14v2H5z"},child:[]}]})(t)}function U(t){return I({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{d:"M19 11h-6V5h-2v6H5v2h6v6h2v-6h6z"},child:[]}]})(t)}const _=d.input`
|
|
2
2
|
margin: 4px 10px 4px 6px;
|
|
3
3
|
border-radius: 10px;
|
|
4
4
|
border: 1px solid #373739;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";var e=require("@emotion/styled"),t=require("lodash"),i=require("react"),r=require("./helper-
|
|
1
|
+
"use strict";var e=require("@emotion/styled"),t=require("lodash"),i=require("react"),r=require("./helper-Sz7ocgiQ.cjs"),n=require("react-konva"),o=require("./index-BCzN-bb5.cjs"),s=require("bignumber.js"),l=require("@dodoex/api");require("@lingui/core"),require("@lingui/react"),require("@dodoex/components"),require("@reown/appkit-utils"),require("@solana/web3.js"),require("@reown/appkit/networks"),require("@tanstack/react-query"),require("zustand"),require("@dodoex/dodo-contract-request"),require("@ethersproject/providers"),require("@reown/appkit/react"),require("@ethersproject/bignumber"),require("axios"),require("@ethersproject/contracts"),require("react-dom"),require("identicon.js"),require("@bitcoinerlab/secp256k1"),require("bitcoinjs-lib"),require("dayjs"),require("@dodoex/contract-request"),require("react-transition-group"),require("recharts"),require("react-window"),require("jsbi"),require("tiny-invariant"),require("@ethersproject/units"),require("react-infinite-scroller"),require("@uniswap/sdk-core"),require("@uniswap/v2-sdk"),require("d3");const a=e.div`
|
|
2
2
|
height: 100%;
|
|
3
3
|
position: relative;
|
|
4
4
|
`,u=e.div`
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import t from"@emotion/styled";import{merge as i}from"lodash";import{useMemo as e,useRef as n}from"react";import{l as r,g as o,m as l}from"./helper-
|
|
1
|
+
import t from"@emotion/styled";import{merge as i}from"lodash";import{useMemo as e,useRef as n}from"react";import{l as r,g as o,m as l}from"./helper-C5fVP9b7.js";import{Line as a,Text as s,Stage as d,Layer as g,Rect as m,Circle as p,Label as u,Tag as h}from"react-konva";import{j as c,f}from"./index-CMs0Bsgf.js";import x from"bignumber.js";import{solveQuadraticFunctionForTarget as L,PMMState as w,PMMHelper as b}from"@dodoex/api";import"@lingui/core";import"@lingui/react";import"@dodoex/components";import"@reown/appkit-utils";import"@solana/web3.js";import"@reown/appkit/networks";import"@tanstack/react-query";import"zustand";import"@dodoex/dodo-contract-request";import"@ethersproject/providers";import"@reown/appkit/react";import"@ethersproject/bignumber";import"axios";import"@ethersproject/contracts";import"react-dom";import"identicon.js";import"@bitcoinerlab/secp256k1";import"bitcoinjs-lib";import"dayjs";import"@dodoex/contract-request";import"react-transition-group";import"recharts";import"react-window";import"jsbi";import"tiny-invariant";import"@ethersproject/units";import"react-infinite-scroller";import"@uniswap/sdk-core";import"@uniswap/v2-sdk";import"d3";const A=t.div`
|
|
2
2
|
height: 100%;
|
|
3
3
|
position: relative;
|
|
4
4
|
`,y=t.div`
|
package/dist/index.cjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e=require("./index-
|
|
1
|
+
"use strict";var e=require("./index-BCzN-bb5.cjs");require("@lingui/react"),require("@dodoex/components"),require("react"),require("lodash"),require("@lingui/core"),require("@dodoex/api"),require("@reown/appkit-utils"),require("bignumber.js"),require("@solana/web3.js"),require("@reown/appkit/networks"),require("@tanstack/react-query"),require("zustand"),require("@dodoex/dodo-contract-request"),require("@ethersproject/providers"),require("@reown/appkit/react"),require("@ethersproject/bignumber"),require("axios"),require("@ethersproject/contracts"),require("react-dom"),require("identicon.js"),require("@bitcoinerlab/secp256k1"),require("bitcoinjs-lib"),require("dayjs"),require("@dodoex/contract-request"),require("react-transition-group"),require("recharts"),require("react-window"),require("jsbi"),require("tiny-invariant"),require("@ethersproject/units"),require("react-infinite-scroller"),require("@uniswap/sdk-core"),require("@uniswap/v2-sdk"),require("d3"),exports.AMMV2Create=e.AMMV2Create,exports.AMMV3PositionManage=e.AMMV3PositionManage,exports.AMMV3PositionsView=e.AMMV3PositionsView,exports.AddLiquidityV3=e.AddLiquidityV3,exports.CurvePoolDetail=e.CurvePoolDetail,exports.EmptyList=e.EmptyList,exports.FailedList=e.FailedList,exports.Message=e.Message,Object.defineProperty(exports,"MetadataFlag",{enumerable:!0,get:function(){return e.MetadataFlag}}),Object.defineProperty(exports,"PageType",{enumerable:!0,get:function(){return e.PageType}}),exports.Pool=e.Pool,exports.PoolCreate=e.PoolCreate,exports.PoolDetail=e.PoolDetail,exports.PoolList=e.PoolList,exports.PoolModify=e.PoolModify,exports.PoolOperate=e.PoolOperate,exports.PoolOperateDialog=e.PoolOperateDialog,exports.Swap=e.Swap,exports.SwapOrderHistory=e.SwapOrderHistory,exports.TokenCard=e.TokenCard,exports.TokenLogo=e.TokenLogo,exports.UnstyleWidget=e.UnstyleWidget,exports.WIDGET_CLASS_NAME=e.WIDGET_CLASS_NAME,exports.WIDGET_MODULE_CLASS_NAME=e.WIDGET_MODULE_CLASS_NAME,exports.Widget=e.Widget,exports.chainListMap=e.chainListMap,exports.formatPercentageNumber=e.formatPercentageNumber,exports.formatReadableNumber=e.formatReadableNumber,exports.formatShortNumber=e.formatShortNumber,exports.formatTokenAmountNumber=e.formatTokenAmountNumber,exports.getEtherscanPage=e.getEtherscanPage,exports.rpcServerMap=e.rpcServerMap,exports.scanUrlDomainMap=e.scanUrlDomainMap,exports.useMessageState=e.useMessageState,exports.usePoolBalanceInfo=e.usePoolBalanceInfo,exports.useRouterStore=e.useRouterStore,exports.useTradeSwapOrderList=e.useTradeSwapOrderList;
|
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export{A as AMMV2Create,t as AMMV3PositionManage,v as AMMV3PositionsView,q as AddLiquidityV3,C as CurvePoolDetail,E as EmptyList,F as FailedList,M as Message,i as MetadataFlag,P as PageType,p as Pool,x as PoolCreate,y as PoolDetail,z as PoolList,B as PoolModify,D as PoolOperate,G as PoolOperateDialog,S as Swap,c as SwapOrderHistory,T as TokenCard,d as TokenLogo,U as UnstyleWidget,e as WIDGET_CLASS_NAME,g as WIDGET_MODULE_CLASS_NAME,W as Widget,h as chainListMap,a as formatPercentageNumber,n as formatReadableNumber,f as formatShortNumber,o as formatTokenAmountNumber,m as getEtherscanPage,r as rpcServerMap,s as scanUrlDomainMap,k as useMessageState,w as usePoolBalanceInfo,l as useRouterStore,u as useTradeSwapOrderList}from"./index-
|
|
1
|
+
export{A as AMMV2Create,t as AMMV3PositionManage,v as AMMV3PositionsView,q as AddLiquidityV3,C as CurvePoolDetail,E as EmptyList,F as FailedList,M as Message,i as MetadataFlag,P as PageType,p as Pool,x as PoolCreate,y as PoolDetail,z as PoolList,B as PoolModify,D as PoolOperate,G as PoolOperateDialog,S as Swap,c as SwapOrderHistory,T as TokenCard,d as TokenLogo,U as UnstyleWidget,e as WIDGET_CLASS_NAME,g as WIDGET_MODULE_CLASS_NAME,W as Widget,h as chainListMap,a as formatPercentageNumber,n as formatReadableNumber,f as formatShortNumber,o as formatTokenAmountNumber,m as getEtherscanPage,r as rpcServerMap,s as scanUrlDomainMap,k as useMessageState,w as usePoolBalanceInfo,l as useRouterStore,u as useTradeSwapOrderList}from"./index-CMs0Bsgf.js";import"@lingui/react";import"@dodoex/components";import"react";import"lodash";import"@lingui/core";import"@dodoex/api";import"@reown/appkit-utils";import"bignumber.js";import"@solana/web3.js";import"@reown/appkit/networks";import"@tanstack/react-query";import"zustand";import"@dodoex/dodo-contract-request";import"@ethersproject/providers";import"@reown/appkit/react";import"@ethersproject/bignumber";import"axios";import"@ethersproject/contracts";import"react-dom";import"identicon.js";import"@bitcoinerlab/secp256k1";import"bitcoinjs-lib";import"dayjs";import"@dodoex/contract-request";import"react-transition-group";import"recharts";import"react-window";import"jsbi";import"tiny-invariant";import"@ethersproject/units";import"react-infinite-scroller";import"@uniswap/sdk-core";import"@uniswap/v2-sdk";import"d3";
|
|
@@ -8,7 +8,7 @@ export declare function useCrossSwapOrderList({ account, limit, type, }: {
|
|
|
8
8
|
hash: string | null | undefined;
|
|
9
9
|
refundHash: string | null | undefined;
|
|
10
10
|
externalId: string | null | undefined;
|
|
11
|
-
refundCridgeContract:
|
|
11
|
+
refundCridgeContract: any;
|
|
12
12
|
refundChainId: number | undefined;
|
|
13
13
|
fromToken: import("../Token").TokenInfo | undefined;
|
|
14
14
|
toToken: import("../Token").TokenInfo | undefined;
|
|
@@ -69,7 +69,7 @@ export declare function useCrossSwapOrderList({ account, limit, type, }: {
|
|
|
69
69
|
hash: string | null | undefined;
|
|
70
70
|
refundHash: string | null | undefined;
|
|
71
71
|
externalId: string | null | undefined;
|
|
72
|
-
refundCridgeContract:
|
|
72
|
+
refundCridgeContract: any;
|
|
73
73
|
refundChainId: number | undefined;
|
|
74
74
|
fromToken: import("../Token").TokenInfo | undefined;
|
|
75
75
|
toToken: import("../Token").TokenInfo | undefined;
|
|
@@ -130,7 +130,7 @@ export declare function useCrossSwapOrderList({ account, limit, type, }: {
|
|
|
130
130
|
hash: string | null | undefined;
|
|
131
131
|
refundHash: string | null | undefined;
|
|
132
132
|
externalId: string | null | undefined;
|
|
133
|
-
refundCridgeContract:
|
|
133
|
+
refundCridgeContract: any;
|
|
134
134
|
refundChainId: number | undefined;
|
|
135
135
|
fromToken: import("../Token").TokenInfo | undefined;
|
|
136
136
|
toToken: import("../Token").TokenInfo | undefined;
|
|
@@ -191,7 +191,7 @@ export declare function useCrossSwapOrderList({ account, limit, type, }: {
|
|
|
191
191
|
hash: string | null | undefined;
|
|
192
192
|
refundHash: string | null | undefined;
|
|
193
193
|
externalId: string | null | undefined;
|
|
194
|
-
refundCridgeContract:
|
|
194
|
+
refundCridgeContract: any;
|
|
195
195
|
refundChainId: number | undefined;
|
|
196
196
|
fromToken: import("../Token").TokenInfo | undefined;
|
|
197
197
|
toToken: import("../Token").TokenInfo | undefined;
|
|
@@ -252,7 +252,7 @@ export declare function useCrossSwapOrderList({ account, limit, type, }: {
|
|
|
252
252
|
hash: string | null | undefined;
|
|
253
253
|
refundHash: string | null | undefined;
|
|
254
254
|
externalId: string | null | undefined;
|
|
255
|
-
refundCridgeContract:
|
|
255
|
+
refundCridgeContract: any;
|
|
256
256
|
refundChainId: number | undefined;
|
|
257
257
|
fromToken: import("../Token").TokenInfo | undefined;
|
|
258
258
|
toToken: import("../Token").TokenInfo | undefined;
|
|
@@ -313,7 +313,7 @@ export declare function useCrossSwapOrderList({ account, limit, type, }: {
|
|
|
313
313
|
hash: string | null | undefined;
|
|
314
314
|
refundHash: string | null | undefined;
|
|
315
315
|
externalId: string | null | undefined;
|
|
316
|
-
refundCridgeContract:
|
|
316
|
+
refundCridgeContract: any;
|
|
317
317
|
refundChainId: number | undefined;
|
|
318
318
|
fromToken: import("../Token").TokenInfo | undefined;
|
|
319
319
|
toToken: import("../Token").TokenInfo | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dodoex/widgets",
|
|
3
|
-
"version": "3.0.2-zetachain.
|
|
3
|
+
"version": "3.0.2-zetachain.108",
|
|
4
4
|
"description": "DODO Widgets",
|
|
5
5
|
"source": "src/index.tsx",
|
|
6
6
|
"types": "dist/types/index.d.ts",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"dependencies": {
|
|
60
60
|
"@babel/runtime": "^7.17.0",
|
|
61
61
|
"@bitcoinerlab/secp256k1": "1.2.0",
|
|
62
|
-
"@dodoex/api": "3.0.3-zetachain.
|
|
62
|
+
"@dodoex/api": "3.0.3-zetachain.23",
|
|
63
63
|
"@dodoex/components": "3.0.3-zetachain.14",
|
|
64
64
|
"@dodoex/contract-request": "^1.3.0",
|
|
65
65
|
"@dodoex/dodo-contract-request": "1.19.0-alpha.4",
|