@kimafinance/kima-transaction-widget 1.0.6 → 1.0.7
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/index.js +6 -10
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +9 -10
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.modern.js
CHANGED
|
@@ -483,21 +483,24 @@ const CHAIN_NAMES_TO_STRING = {
|
|
|
483
483
|
[ChainName.POLYGON]: 'Polygon',
|
|
484
484
|
[ChainName.AVALANCHE]: 'Avalanche',
|
|
485
485
|
[ChainName.FUSE]: 'Fuse',
|
|
486
|
-
[ChainName.CELO]: 'Celo'
|
|
486
|
+
[ChainName.CELO]: 'Celo',
|
|
487
|
+
[ChainName.SOLANA]: 'Solana'
|
|
487
488
|
};
|
|
488
489
|
const CHAIN_NAMES_TO_EXPLORER = {
|
|
489
490
|
[ChainName.ETHEREUM]: 'goerli.etherscan.io',
|
|
490
491
|
[ChainName.POLYGON]: 'mumbai.polygonscan.com',
|
|
491
492
|
[ChainName.AVALANCHE]: 'testnet.snowtrace.io',
|
|
492
493
|
[ChainName.FUSE]: 'explorer.fuse.io',
|
|
493
|
-
[ChainName.CELO]: 'explorer.celo.org'
|
|
494
|
+
[ChainName.CELO]: 'explorer.celo.org',
|
|
495
|
+
[ChainName.SOLANA]: 'solscan.io'
|
|
494
496
|
};
|
|
495
497
|
const CHAIN_NAMES_TO_GECKO_ID = {
|
|
496
498
|
[ChainName.ETHEREUM]: 'ethereum',
|
|
497
499
|
[ChainName.POLYGON]: 'matic-network',
|
|
498
500
|
[ChainName.AVALANCHE]: 'avalanche-2',
|
|
499
501
|
[ChainName.FUSE]: 'fuse-network-token',
|
|
500
|
-
[ChainName.CELO]: 'celo'
|
|
502
|
+
[ChainName.CELO]: 'celo',
|
|
503
|
+
[ChainName.SOLANA]: 'solana'
|
|
501
504
|
};
|
|
502
505
|
const CHAIN_IDS_TO_NAMES = {
|
|
503
506
|
[SupportedChainId.ETHEREUM]: ChainName.ETHEREUM,
|
|
@@ -550,7 +553,7 @@ const COIN_LIST = {
|
|
|
550
553
|
POL: POLYGON_USDK_ADDRESS,
|
|
551
554
|
AVX: AVAX_USDK_ADDRESS
|
|
552
555
|
},
|
|
553
|
-
decimals:
|
|
556
|
+
decimals: 6
|
|
554
557
|
},
|
|
555
558
|
GDOLLAR: {
|
|
556
559
|
symbol: 'G$',
|
|
@@ -1268,7 +1271,6 @@ const WalletSelect = () => {
|
|
|
1268
1271
|
};
|
|
1269
1272
|
|
|
1270
1273
|
const version = "logger/5.7.0";
|
|
1271
|
-
//# sourceMappingURL=_version.js.map
|
|
1272
1274
|
|
|
1273
1275
|
let _permanentCensorErrors = false;
|
|
1274
1276
|
let _censorErrors = false;
|
|
@@ -1618,10 +1620,8 @@ class Logger {
|
|
|
1618
1620
|
}
|
|
1619
1621
|
Logger.errors = ErrorCode;
|
|
1620
1622
|
Logger.levels = LogLevel;
|
|
1621
|
-
//# sourceMappingURL=index.js.map
|
|
1622
1623
|
|
|
1623
1624
|
const version$1 = "bytes/5.7.0";
|
|
1624
|
-
//# sourceMappingURL=_version.js.map
|
|
1625
1625
|
|
|
1626
1626
|
const logger = new Logger(version$1);
|
|
1627
1627
|
///////////////////////////////
|
|
@@ -1732,7 +1732,6 @@ function hexStripZeros(value) {
|
|
|
1732
1732
|
}
|
|
1733
1733
|
return "0x" + value.substring(offset);
|
|
1734
1734
|
}
|
|
1735
|
-
//# sourceMappingURL=index.js.map
|
|
1736
1735
|
|
|
1737
1736
|
const createWalletStatus = (isReady, statusMessage = '', forceNetworkSwitch, walletAddress) => ({
|
|
1738
1737
|
isReady,
|
|
@@ -6211,12 +6210,12 @@ function useAllowance() {
|
|
|
6211
6210
|
if ((result === null || result === void 0 ? void 0 : (_result$tssPubkey = result.tssPubkey) === null || _result$tssPubkey === void 0 ? void 0 : _result$tssPubkey.length) < 1) {
|
|
6212
6211
|
return;
|
|
6213
6212
|
}
|
|
6214
|
-
setTargetAddress(result.tssPubkey[0].ecdsa);
|
|
6213
|
+
setTargetAddress(sourceChain === ChainName.SOLANA ? result.tssPubkey[0].ebdsa : result.tssPubkey[0].ecdsa);
|
|
6215
6214
|
};
|
|
6216
6215
|
useEffect(() => {
|
|
6217
6216
|
if (!nodeProviderQuery) return;
|
|
6218
6217
|
updatePoolAddress();
|
|
6219
|
-
}, [nodeProviderQuery]);
|
|
6218
|
+
}, [nodeProviderQuery, sourceChain]);
|
|
6220
6219
|
useEffect(() => {
|
|
6221
6220
|
(async () => {
|
|
6222
6221
|
try {
|