@kimafinance/kima-transaction-widget 1.2.41 → 1.2.42
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 +29 -28
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +29 -28
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -12870,53 +12870,53 @@ var KimaTransactionWidget = function KimaTransactionWidget(_ref) {
|
|
|
12870
12870
|
var ConnectionProvider = SolanaAdapter.ConnectionProvider,
|
|
12871
12871
|
SolanaWalletProvider = SolanaAdapter.WalletProvider;
|
|
12872
12872
|
var ethereum = {
|
|
12873
|
-
chainId:
|
|
12874
|
-
name: 'Ethereum
|
|
12873
|
+
chainId: 1,
|
|
12874
|
+
name: 'Ethereum Mainnet',
|
|
12875
12875
|
currency: 'ETH',
|
|
12876
|
-
explorerUrl: 'https://
|
|
12877
|
-
rpcUrl: 'https://
|
|
12876
|
+
explorerUrl: 'https://etherscan.io',
|
|
12877
|
+
rpcUrl: 'https://eth.llamarpc.com'
|
|
12878
12878
|
};
|
|
12879
12879
|
var bsc = {
|
|
12880
|
-
chainId:
|
|
12881
|
-
name: 'BNB Smart Chain
|
|
12882
|
-
currency: '
|
|
12883
|
-
explorerUrl: 'https://
|
|
12884
|
-
rpcUrl: 'https://
|
|
12880
|
+
chainId: 56,
|
|
12881
|
+
name: 'BNB Smart Chain Mainnet',
|
|
12882
|
+
currency: 'BNB',
|
|
12883
|
+
explorerUrl: 'https://bscscan.com',
|
|
12884
|
+
rpcUrl: 'https://binance.llamarpc.com'
|
|
12885
12885
|
};
|
|
12886
12886
|
var polygon = {
|
|
12887
|
-
chainId:
|
|
12888
|
-
name: '
|
|
12887
|
+
chainId: 137,
|
|
12888
|
+
name: 'Polygon Mainnet',
|
|
12889
12889
|
currency: 'MATIC',
|
|
12890
|
-
explorerUrl: 'https://
|
|
12891
|
-
rpcUrl: 'https://
|
|
12890
|
+
explorerUrl: 'https://polygonscan.com',
|
|
12891
|
+
rpcUrl: 'https://polygon.llamarpc.com'
|
|
12892
12892
|
};
|
|
12893
12893
|
var arbitrum = {
|
|
12894
|
-
chainId:
|
|
12895
|
-
name: 'Arbitrum
|
|
12894
|
+
chainId: 42161,
|
|
12895
|
+
name: 'Arbitrum Mainnet',
|
|
12896
12896
|
currency: 'ETH',
|
|
12897
|
-
explorerUrl: 'https://
|
|
12898
|
-
rpcUrl: 'https://
|
|
12897
|
+
explorerUrl: 'https://arbiscan.io',
|
|
12898
|
+
rpcUrl: 'https://arbitrum.llamarpc.com'
|
|
12899
12899
|
};
|
|
12900
12900
|
var optimism = {
|
|
12901
|
-
chainId:
|
|
12902
|
-
name: 'OP
|
|
12901
|
+
chainId: 10,
|
|
12902
|
+
name: 'OP Mainnet',
|
|
12903
12903
|
currency: 'ETH',
|
|
12904
|
-
explorerUrl: 'https://
|
|
12905
|
-
rpcUrl: 'https://
|
|
12904
|
+
explorerUrl: 'https://optimistic.etherscan.io',
|
|
12905
|
+
rpcUrl: 'https://optimism.llamarpc.com'
|
|
12906
12906
|
};
|
|
12907
12907
|
var avalanche = {
|
|
12908
|
-
chainId:
|
|
12909
|
-
name: 'Avalanche
|
|
12908
|
+
chainId: 43114,
|
|
12909
|
+
name: 'Avalanche Mainnet',
|
|
12910
12910
|
currency: 'AVAX',
|
|
12911
|
-
explorerUrl: 'https://
|
|
12912
|
-
rpcUrl: 'https://api.avax
|
|
12911
|
+
explorerUrl: 'https://snowtrace.io',
|
|
12912
|
+
rpcUrl: 'https://api.avax.network/ext/bc/C/rpc'
|
|
12913
12913
|
};
|
|
12914
12914
|
var zkEVM = {
|
|
12915
|
-
chainId:
|
|
12915
|
+
chainId: 1101,
|
|
12916
12916
|
name: 'Polygon zkEVM Cardona Testnet',
|
|
12917
12917
|
currency: 'ETH',
|
|
12918
|
-
explorerUrl: 'https://
|
|
12919
|
-
rpcUrl: 'https://
|
|
12918
|
+
explorerUrl: 'https://zkevm.polygonscan.com',
|
|
12919
|
+
rpcUrl: 'https://rpc.ankr.com/polygon_zkevm'
|
|
12920
12920
|
};
|
|
12921
12921
|
var metadata = {
|
|
12922
12922
|
name: 'Kima Transaction Widget',
|
|
@@ -12945,6 +12945,7 @@ var KimaProvider = function KimaProvider(_ref) {
|
|
|
12945
12945
|
} else toast.toast.error(e.message);
|
|
12946
12946
|
}
|
|
12947
12947
|
var onChainChanged = function onChainChanged(chainData) {
|
|
12948
|
+
console.log(chainData);
|
|
12948
12949
|
toast.toast.error('Please switch to Tron Nile Testnet!');
|
|
12949
12950
|
if (chainData.chainId !== '0xcd8690dc') {
|
|
12950
12951
|
adapters[0].switchChain('0xcd8690dc');
|