@dodoex/widgets 2.4.5-0 → 2.4.5-2

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.
@@ -1,5 +1,5 @@
1
1
  /*eslint-disable*/
2
2
 
3
- var enUS={messages:JSON.parse("{\"+Jkdiu\":\"Transaction Time:\",\"+uZnU3\":\"Cross Chain\",\"/jQctM\":\"To\",\"/nzjSF\":[[\"0\"],\" pending\"],\"0QDjxt\":\"Balance:\",\"1QfxQT\":\"Dismiss\",\"4kY4C4\":\"Due to the market condition, market price and estimated price may have a slight difference\",\"4xbbt/\":[[\"0\"],\" confirmed\"],\"54ffaC\":\"The current network is inconsistent with the wallet - please switch in wallet\",\"6+mYrD\":\"Current price impact\",\"6UYTy8\":\"Minute\",\"6XgEPi\":\"Hour\",\"72/M0o\":\"Enter the token symbol or address\",\"7IKPTP\":\"Fee includes: Cross Chain fees + Swap fees. Gas fee not included.\",\"7VpPHA\":\"Confirm\",\"7X+IbB\":\"Powered by DODO protocol\",\"7rpoXw\":\"This token is on\",\"8Z29ZO\":\"Estimated service provider fees\",\"93m8jT\":\"Basic Fee\",\"AghcDJ\":\"Price impact exceeds the slippage tolerance you set. Try increasing the slippage tolerance.\",\"B0/2ea\":\"s\",\"C1mcuF\":\"This CP has been settled by other addrs\",\"CK1KXz\":\"Max\",\"CMHmbm\":\"Slippage\",\"CkfzUf\":[\"Insufficient funds - Please retry after depositing more \",[\"EtherTokenSymbol\"],\" into your wallet\"],\"EUBGvH\":\"Are you sure swapping to another chain?\",\"Enslfm\":\"Destination\",\"F+sxb9\":\"Unapproved\",\"F9xwHA\":[\"Insufficient cross-chain fees, need at least \",[\"0\"],\" \",[\"1\"]],\"FRBvjQ\":\"Transaction Pending\",\"Fdp03t\":\"on\",\"GAypnX\":\"High slippage tolerance will increase the success rate of transaction, but might not get the best quote.\",\"H7OUPr\":\"Day\",\"HuVZMK\":\"Days\",\"J39pAJ\":\"Additional Fee\",\"JdNn1Y\":\"Fetching best price...\",\"K/Ay/d\":\"Review Swap\",\"K/PgcA\":\"Select Cross Chain\",\"KAmxpM\":\"Attention: High slippage tolerance will increase the success rate of transaction, but might not get the best quote.\",\"KlvBGJ\":\"Select Tokens\",\"NSCBTb\":\"The setting has been switched to swap mode\",\"NVAuTg\":\"Quote not available\",\"OauUE6\":\"Fetching Price...\",\"OfhWJH\":\"Reset\",\"OgKD6h\":\"Best offer\",\"P+K/3O\":\"Confirming\",\"PC9Biq\":[[\"DEFAULT_SWAP_DDL\"],\" minutes\"],\"PLUB/s\":\"Fee\",\"PZqJog\":\"Confirm Cross Chain\",\"Price impact reaches <0>{priceImpact}</0>%, accept the quote\":[\"Price impact reaches <0>\",[\"priceImpact\"],\"</0>%, accept the quote\"],\"QNWt8A\":\"Estimated Time\",\"QR4/RH\":\"Swap summary\",\"S3piC2\":\"Tx\",\"SXnevP\":\"Review Cross Chain\",\"T+qgFw\":\"Price Impact\",\"T0Y2+3\":\"Select a token\",\"TFOxRM\":\"Mins\",\"TizaRy\":\"Wallet incompatibility\",\"Tz0i8g\":\"Settings\",\"Uzr1HF\":[\"Connect to your \",[\"0\"],\" Wallet\"],\"V+rJKF\":\"Seconds\",\"XeovX3\":\"Swap Detail\",\"Xpkm7d\":\"No ForceStop access\",\"YHpbe1\":\"For\",\"Z5HWHd\":\"On\",\"Z7ZXbT\":\"Approve\",\"ZXvy7b\":\"Additional routing fees set by the Widget user\",\"Zm56FI\":\"Maximum slippage do not exceed 50%\",\"agRWc1\":\"Minutes\",\"dEgA5A\":\"Cancel\",\"dI46oG\":\"Auto switch network\",\"eTUF28\":\"Min\",\"em6LzM\":\"Transaction rejected.\",\"g3x+cF\":\"Service update, please wait and try again\",\"gz+9Rb\":\"Gas price is too low, please adjust in your wallet and try again\",\"h4RLFN\":\"RPC node data exception\",\"h5FVz1\":\"Estimated transaction time\",\"h7LgzN\":\"Connect to your wallet\",\"iPMIoT\":\"Enter an amount\",\"j2Uisd\":\"Approving\",\"kf83Ld\":\"Something went wrong.\",\"ku//5b\":\"Second\",\"lQ6r7x\":\"Confirm swap\",\"lqTDfd\":\"Slippage Tolerance\",\"lt8yMa\":\"Send to:\",\"qK7wuW\":\"Unable to SETTLE during the cooling-off period\",\"qLkska\":\"The setting has been switched to cross chain mode\",\"r7ScnQ\":\"Connect to a wallet\",\"rFbNvu\":\"If your transaction time exceeds the deadline, your transaction will be rescinded.\",\"rRDi3Y\":\"Detail\",\"sIPJGT\":\"SELECT TOKEN\",\"tKE4Ak\":\"Cross Chain Summary\",\"tMVAXL\":\"SafeERC20: low-level call failed. Please contact the DODO team.\",\"udsWDJ\":\"Unsupported network - switch to trade\",\"vH2C/2\":\"Swap\",\"wdxz7K\":\"Source\",\"xEbi+8\":\"User denied transaction signature.\",\"yM82Jw\":\"ForceStop exception\",\"yY8wAv\":\"Hours\",\"yz7wBu\":\"Close\",\"zSMRJ/\":\"Transaction Deadline\",\"znqB4T\":\"Insufficient balance\"}")};
3
+ var enUS={messages:JSON.parse("{\"+Jkdiu\":\"Transaction Time:\",\"+uZnU3\":\"Cross Chain\",\"//95jS\":[\"The current slippage protection coefficient set exceeds \",[\"maxSlippageWarning\"],\"%, which may result in losses.\"],\"/jQctM\":\"To\",\"/nzjSF\":[[\"0\"],\" pending\"],\"0QDjxt\":\"Balance:\",\"1QfxQT\":\"Dismiss\",\"4kY4C4\":\"Due to the market condition, market price and estimated price may have a slight difference\",\"4xbbt/\":[[\"0\"],\" confirmed\"],\"54ffaC\":\"The current network is inconsistent with the wallet - please switch in wallet\",\"6+mYrD\":\"Current price impact\",\"6UYTy8\":\"Minute\",\"6XgEPi\":\"Hour\",\"72/M0o\":\"Enter the token symbol or address\",\"7IKPTP\":\"Fee includes: Cross Chain fees + Swap fees. Gas fee not included.\",\"7VpPHA\":\"Confirm\",\"7X+IbB\":\"Powered by DODO protocol\",\"7rpoXw\":\"This token is on\",\"8Z29ZO\":\"Estimated service provider fees\",\"93m8jT\":\"Basic Fee\",\"AghcDJ\":\"Price impact exceeds the slippage tolerance you set. Try increasing the slippage tolerance.\",\"B0/2ea\":\"s\",\"C1mcuF\":\"This CP has been settled by other addrs\",\"CK1KXz\":\"Max\",\"CMHmbm\":\"Slippage\",\"CkfzUf\":[\"Insufficient funds - Please retry after depositing more \",[\"EtherTokenSymbol\"],\" into your wallet\"],\"EUBGvH\":\"Are you sure swapping to another chain?\",\"Enslfm\":\"Destination\",\"F+sxb9\":\"Unapproved\",\"F9xwHA\":[\"Insufficient cross-chain fees, need at least \",[\"0\"],\" \",[\"1\"]],\"FRBvjQ\":\"Transaction Pending\",\"Fdp03t\":\"on\",\"GAypnX\":\"High slippage tolerance will increase the success rate of transaction, but might not get the best quote.\",\"H7OUPr\":\"Day\",\"HuVZMK\":\"Days\",\"J39pAJ\":\"Additional Fee\",\"JdNn1Y\":\"Fetching best price...\",\"K/Ay/d\":\"Review Swap\",\"K/PgcA\":\"Select Cross Chain\",\"KAmxpM\":\"Attention: High slippage tolerance will increase the success rate of transaction, but might not get the best quote.\",\"KlvBGJ\":\"Select Tokens\",\"NSCBTb\":\"The setting has been switched to swap mode\",\"NVAuTg\":\"Quote not available\",\"OauUE6\":\"Fetching Price...\",\"OfhWJH\":\"Reset\",\"OgKD6h\":\"Best offer\",\"P+K/3O\":\"Confirming\",\"PC9Biq\":[[\"DEFAULT_SWAP_DDL\"],\" minutes\"],\"PLUB/s\":\"Fee\",\"PZqJog\":\"Confirm Cross Chain\",\"Price impact reaches <0>{priceImpact}</0>%, accept the quote\":[\"Price impact reaches <0>\",[\"priceImpact\"],\"</0>%, accept the quote\"],\"QNWt8A\":\"Estimated Time\",\"QR4/RH\":\"Swap summary\",\"S3piC2\":\"Tx\",\"SXnevP\":\"Review Cross Chain\",\"T+qgFw\":\"Price Impact\",\"T0Y2+3\":\"Select a token\",\"TFOxRM\":\"Mins\",\"TizaRy\":\"Wallet incompatibility\",\"Tz0i8g\":\"Settings\",\"Uzr1HF\":[\"Connect to your \",[\"0\"],\" Wallet\"],\"V+rJKF\":\"Seconds\",\"XeovX3\":\"Swap Detail\",\"Xpkm7d\":\"No ForceStop access\",\"YHpbe1\":\"For\",\"Z5HWHd\":\"On\",\"Z7ZXbT\":\"Approve\",\"ZXvy7b\":\"Additional routing fees set by the Widget user\",\"Zm56FI\":\"Maximum slippage do not exceed 50%\",\"agRWc1\":\"Minutes\",\"dEgA5A\":\"Cancel\",\"dI46oG\":\"Auto switch network\",\"eTUF28\":\"Min\",\"em6LzM\":\"Transaction rejected.\",\"g3x+cF\":\"Service update, please wait and try again\",\"gz+9Rb\":\"Gas price is too low, please adjust in your wallet and try again\",\"h4RLFN\":\"RPC node data exception\",\"h5FVz1\":\"Estimated transaction time\",\"h7LgzN\":\"Connect to your wallet\",\"iPMIoT\":\"Enter an amount\",\"j2Uisd\":\"Approving\",\"kf83Ld\":\"Something went wrong.\",\"ku//5b\":\"Second\",\"lQ6r7x\":\"Confirm swap\",\"lqTDfd\":\"Slippage Tolerance\",\"lt8yMa\":\"Send to:\",\"qK7wuW\":\"Unable to SETTLE during the cooling-off period\",\"qLkska\":\"The setting has been switched to cross chain mode\",\"r7ScnQ\":\"Connect to a wallet\",\"rFbNvu\":\"If your transaction time exceeds the deadline, your transaction will be rescinded.\",\"rRDi3Y\":\"Detail\",\"sIPJGT\":\"SELECT TOKEN\",\"tKE4Ak\":\"Cross Chain Summary\",\"tMVAXL\":\"SafeERC20: low-level call failed. Please contact the DODO team.\",\"udsWDJ\":\"Unsupported network - switch to trade\",\"vH2C/2\":\"Swap\",\"wdxz7K\":\"Source\",\"xEbi+8\":\"User denied transaction signature.\",\"yM82Jw\":\"ForceStop exception\",\"yY8wAv\":\"Hours\",\"yz7wBu\":\"Close\",\"zSMRJ/\":\"Transaction Deadline\",\"znqB4T\":\"Insufficient balance\"}")};
4
4
 
5
5
  export { enUS as default };
@@ -1,5 +1,5 @@
1
1
  /*eslint-disable*/
2
2
 
3
- var zhCN={messages:JSON.parse("{\"+Jkdiu\":\"Transaction Time:\",\"+uZnU3\":\"Cross Chain\",\"/jQctM\":\"To\",\"/nzjSF\":[[\"0\"],\" pending\"],\"0QDjxt\":\"Balance:\",\"1QfxQT\":\"Dismiss\",\"4kY4C4\":\"Due to the market condition, market price and estimated price may have a slight difference\",\"4xbbt/\":[[\"0\"],\" confirmed\"],\"54ffaC\":\"The current network is inconsistent with the wallet - please switch in wallet\",\"6+mYrD\":\"Current price impact\",\"6UYTy8\":\"Minute\",\"6XgEPi\":\"Hour\",\"72/M0o\":\"Enter the token symbol or address\",\"7IKPTP\":\"Fee includes: Cross Chain fees + Swap fees. Gas fee not included.\",\"7VpPHA\":\"Confirm\",\"7X+IbB\":\"Powered by DODO protocol\",\"7rpoXw\":\"This token is on\",\"8Z29ZO\":\"Estimated service provider fees\",\"93m8jT\":\"Basic Fee\",\"AghcDJ\":\"Price impact exceeds the slippage tolerance you set. Try increasing the slippage tolerance.\",\"B0/2ea\":\"s\",\"C1mcuF\":\"This CP has been settled by other addrs\",\"CK1KXz\":\"Max\",\"CMHmbm\":\"Slippage\",\"CkfzUf\":[\"Insufficient funds - Please retry after depositing more \",[\"EtherTokenSymbol\"],\" into your wallet\"],\"EUBGvH\":\"Are you sure swapping to another chain?\",\"Enslfm\":\"Destination\",\"F+sxb9\":\"Unapproved\",\"F9xwHA\":[\"Insufficient cross-chain fees, need at least \",[\"0\"],\" \",[\"1\"]],\"FRBvjQ\":\"Transaction Pending\",\"Fdp03t\":\"on\",\"GAypnX\":\"High slippage tolerance will increase the success rate of transaction, but might not get the best quote.\",\"H7OUPr\":\"Day\",\"HuVZMK\":\"Days\",\"J39pAJ\":\"Additional Fee\",\"JdNn1Y\":\"Fetching best price...\",\"K/Ay/d\":\"Review Swap\",\"K/PgcA\":\"Select Cross Chain\",\"KAmxpM\":\"Attention: High slippage tolerance will increase the success rate of transaction, but might not get the best quote.\",\"KlvBGJ\":\"Select Tokens\",\"NSCBTb\":\"The setting has been switched to swap mode\",\"NVAuTg\":\"Quote not available\",\"OauUE6\":\"Fetching Price...\",\"OfhWJH\":\"Reset\",\"OgKD6h\":\"Best offer\",\"P+K/3O\":\"Confirming\",\"PC9Biq\":[[\"DEFAULT_SWAP_DDL\"],\" minutes\"],\"PLUB/s\":\"Fee\",\"PZqJog\":\"Confirm Cross Chain\",\"Price impact reaches <0>{priceImpact}</0>%, accept the quote\":[\"Price impact reaches <0>\",[\"priceImpact\"],\"</0>%, accept the quote\"],\"QNWt8A\":\"Estimated Time\",\"QR4/RH\":\"Swap summary\",\"S3piC2\":\"Tx\",\"SXnevP\":\"Review Cross Chain\",\"T+qgFw\":\"Price Impact\",\"T0Y2+3\":\"Select a token\",\"TFOxRM\":\"Mins\",\"TizaRy\":\"Wallet incompatibility\",\"Tz0i8g\":\"Settings\",\"Uzr1HF\":[\"Connect to your \",[\"0\"],\" Wallet\"],\"V+rJKF\":\"Seconds\",\"XeovX3\":\"Swap Detail\",\"Xpkm7d\":\"No ForceStop access\",\"YHpbe1\":\"For\",\"Z5HWHd\":\"On\",\"Z7ZXbT\":\"Approve\",\"ZXvy7b\":\"Additional routing fees set by the Widget user\",\"Zm56FI\":\"Maximum slippage do not exceed 50%\",\"agRWc1\":\"Minutes\",\"dEgA5A\":\"Cancel\",\"dI46oG\":\"Auto switch network\",\"eTUF28\":\"Min\",\"em6LzM\":\"Transaction rejected.\",\"g3x+cF\":\"Service update, please wait and try again\",\"gz+9Rb\":\"Gas price is too low, please adjust in your wallet and try again\",\"h4RLFN\":\"RPC node data exception\",\"h5FVz1\":\"Estimated transaction time\",\"h7LgzN\":\"Connect to your wallet\",\"iPMIoT\":\"Enter an amount\",\"j2Uisd\":\"Approving\",\"kf83Ld\":\"Something went wrong.\",\"ku//5b\":\"Second\",\"lQ6r7x\":\"Confirm swap\",\"lqTDfd\":\"Slippage Tolerance\",\"lt8yMa\":\"Send to:\",\"qK7wuW\":\"Unable to SETTLE during the cooling-off period\",\"qLkska\":\"The setting has been switched to cross chain mode\",\"r7ScnQ\":\"Connect to a wallet\",\"rFbNvu\":\"If your transaction time exceeds the deadline, your transaction will be rescinded.\",\"rRDi3Y\":\"Detail\",\"sIPJGT\":\"SELECT TOKEN\",\"tKE4Ak\":\"Cross Chain Summary\",\"tMVAXL\":\"SafeERC20: low-level call failed. Please contact the DODO team.\",\"udsWDJ\":\"Unsupported network - switch to trade\",\"vH2C/2\":\"Swap\",\"wdxz7K\":\"Source\",\"xEbi+8\":\"User denied transaction signature.\",\"yM82Jw\":\"ForceStop exception\",\"yY8wAv\":\"Hours\",\"yz7wBu\":\"Close\",\"zSMRJ/\":\"Transaction Deadline\",\"znqB4T\":\"Insufficient balance\"}")};
3
+ var zhCN={messages:JSON.parse("{\"+Jkdiu\":\"交易时长:\",\"+uZnU3\":\"跨链桥\",\"//95jS\":[\"当前滑点保护系数设置超过\",[\"maxSlippageWarning\"],\"%,可能会造成损失。\"],\"/jQctM\":\"至\",\"/nzjSF\":[[\"0\"],\" 等待中\"],\"0QDjxt\":\"余额:\",\"1QfxQT\":\"忽略\",\"4kY4C4\":\"由于市场情况不同,市场价格与估算价格可能略有差异。\",\"4xbbt/\":[[\"0\"],\" 已确认\"],\"54ffaC\":\"当前网络与钱包不一致,请在钱包中切换\",\"6+mYrD\":\"当前价格冲击\",\"6UYTy8\":\"分钟\",\"6XgEPi\":\"小时\",\"72/M0o\":\"输入代币符号或地址\",\"7IKPTP\":\"费用包括过跨链桥和交易的手续费,不包括 gas 费。\",\"7VpPHA\":\"确认\",\"7X+IbB\":\"Powered by DODO protocol\",\"7rpoXw\":\"该代币在\",\"8Z29ZO\":\"预计服务供应商费用\",\"93m8jT\":\"基础手续费\",\"AghcDJ\":\"价格冲击超过了你设置的滑点, 请提高滑点后重试\",\"B0/2ea\":\"秒\",\"C1mcuF\":\"此众筹池已被其他地址结算\",\"CK1KXz\":\"全部\",\"CMHmbm\":\"滑点\",\"CkfzUf\":[\"余额不足 - 请在钱包充值\",[\"EtherTokenSymbol\"],\"后重试\"],\"EUBGvH\":\"是否确认切换到另一个链?\",\"Enslfm\":\"目标\",\"F+sxb9\":\"未授权\",\"F9xwHA\":[\"跨链费用不足,至少需要 \",[\"0\"],\" \",[\"1\"],\" \"],\"FRBvjQ\":\"交易进行中\",\"Fdp03t\":\"在\",\"GAypnX\":\"滑点越高,交易的成功率越高,但是交易的价格可能不会是最好的市场价格。请谨慎调整滑点。\",\"H7OUPr\":\"天\",\"HuVZMK\":\"天\",\"J39pAJ\":\"额外手续费\",\"JdNn1Y\":\"获取最优价格中...\",\"K/Ay/d\":\"预览交易\",\"K/PgcA\":\"选择跨链桥\",\"KAmxpM\":\"注意:滑点越高,交易的成功率越高,但是交易的价格可能不会是最好的市场价格。请谨慎调整滑点。\",\"KlvBGJ\":\"选择代币\",\"NSCBTb\":\"设置已切换至闪兑模式\",\"NVAuTg\":\"没有报价\",\"OauUE6\":\"获取价格中...\",\"OfhWJH\":\"重置\",\"OgKD6h\":\"最优价格\",\"P+K/3O\":\"确认中\",\"PC9Biq\":[[\"DEFAULT_SWAP_DDL\"],\" 分钟\"],\"PLUB/s\":\"手续费\",\"PZqJog\":\"确认跨链交易\",\"Price impact reaches <0>{priceImpact}</0>%, accept the quote\":[\"价格冲击为<0>\",[\"priceImpact\"],\"</0>%, 仍接受此报价\"],\"QNWt8A\":\"预计时间\",\"QR4/RH\":\"交易预览\",\"S3piC2\":\"交易哈希:\",\"SXnevP\":\"预览跨链交易\",\"T+qgFw\":\"价格冲击\",\"T0Y2+3\":\"选择代币\",\"TFOxRM\":\"分钟\",\"TizaRy\":\"钱包不兼容\",\"Tz0i8g\":\"设置\",\"Uzr1HF\":[\"连接你的第\",[\"0\"],\"个钱包\"],\"V+rJKF\":\"秒\",\"XeovX3\":\"交易详情\",\"Xpkm7d\":\"No ForceStop access\",\"YHpbe1\":\"对于\",\"Z5HWHd\":\"在\",\"Z7ZXbT\":\"代币授权\",\"ZXvy7b\":\" Widget 设置的额外路由费用\",\"Zm56FI\":\"最大滑点不能超过50%\",\"agRWc1\":\"分钟\",\"dEgA5A\":\"取消\",\"dI46oG\":\"自动切换网络\",\"eTUF28\":\"分钟\",\"em6LzM\":\"交易被拒绝.\",\"g3x+cF\":\"服务升级中, 请等待或重试\",\"gz+9Rb\":\"Gas 价格过低, 请调整后重试\",\"h4RLFN\":\"RPC节点异常\",\"h5FVz1\":\"预计交易时长\",\"h7LgzN\":\"连接钱包\",\"iPMIoT\":\"输入代币数量\",\"j2Uisd\":\"授权中\",\"kf83Ld\":\"发生异常错误.\",\"ku//5b\":\"秒\",\"lQ6r7x\":\"确认交易\",\"lqTDfd\":\"滑点\",\"lt8yMa\":\"发送至:\",\"qK7wuW\":\"在冷静期无法进行清算\",\"qLkska\":\"设置已切换到跨链桥交易模式\",\"r7ScnQ\":\"连接钱包\",\"rFbNvu\":\"如果你的交易被确认的时间超过这个时间,你的交易将被退回。 \",\"rRDi3Y\":\"详情\",\"sIPJGT\":\"选择代币\",\"tKE4Ak\":\"跨链桥概览\",\"tMVAXL\":\"SafeERC20low-level call failed,请联系DODO团队解决。\",\"udsWDJ\":\"未支持网络 - 请切换后进行交易\",\"vH2C/2\":\"交易\",\"wdxz7K\":\"源\",\"xEbi+8\":\"用户拒绝交易签名.\",\"yM82Jw\":\"ForceStop 异常\",\"yY8wAv\":\"小时\",\"yz7wBu\":\"关闭\",\"zSMRJ/\":\"交易截止时间\",\"znqB4T\":\"余额不足\"}")};
4
4
 
5
5
  export { zhCN as default };
@@ -0,0 +1,2 @@
1
+ export declare const maxSlippageWarning = 5;
2
+ export declare const useSlippageLimit: (isBridge: boolean | undefined) => boolean;