@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.modern.js
CHANGED
|
@@ -11965,53 +11965,53 @@ const {
|
|
|
11965
11965
|
WalletProvider: SolanaWalletProvider
|
|
11966
11966
|
} = SolanaAdapter;
|
|
11967
11967
|
const ethereum = {
|
|
11968
|
-
chainId:
|
|
11969
|
-
name: 'Ethereum
|
|
11968
|
+
chainId: 1,
|
|
11969
|
+
name: 'Ethereum Mainnet',
|
|
11970
11970
|
currency: 'ETH',
|
|
11971
|
-
explorerUrl: 'https://
|
|
11972
|
-
rpcUrl: 'https://
|
|
11971
|
+
explorerUrl: 'https://etherscan.io',
|
|
11972
|
+
rpcUrl: 'https://eth.llamarpc.com'
|
|
11973
11973
|
};
|
|
11974
11974
|
const bsc = {
|
|
11975
|
-
chainId:
|
|
11976
|
-
name: 'BNB Smart Chain
|
|
11977
|
-
currency: '
|
|
11978
|
-
explorerUrl: 'https://
|
|
11979
|
-
rpcUrl: 'https://
|
|
11975
|
+
chainId: 56,
|
|
11976
|
+
name: 'BNB Smart Chain Mainnet',
|
|
11977
|
+
currency: 'BNB',
|
|
11978
|
+
explorerUrl: 'https://bscscan.com',
|
|
11979
|
+
rpcUrl: 'https://binance.llamarpc.com'
|
|
11980
11980
|
};
|
|
11981
11981
|
const polygon = {
|
|
11982
|
-
chainId:
|
|
11983
|
-
name: '
|
|
11982
|
+
chainId: 137,
|
|
11983
|
+
name: 'Polygon Mainnet',
|
|
11984
11984
|
currency: 'MATIC',
|
|
11985
|
-
explorerUrl: 'https://
|
|
11986
|
-
rpcUrl: 'https://
|
|
11985
|
+
explorerUrl: 'https://polygonscan.com',
|
|
11986
|
+
rpcUrl: 'https://polygon.llamarpc.com'
|
|
11987
11987
|
};
|
|
11988
11988
|
const arbitrum = {
|
|
11989
|
-
chainId:
|
|
11990
|
-
name: 'Arbitrum
|
|
11989
|
+
chainId: 42161,
|
|
11990
|
+
name: 'Arbitrum Mainnet',
|
|
11991
11991
|
currency: 'ETH',
|
|
11992
|
-
explorerUrl: 'https://
|
|
11993
|
-
rpcUrl: 'https://
|
|
11992
|
+
explorerUrl: 'https://arbiscan.io',
|
|
11993
|
+
rpcUrl: 'https://arbitrum.llamarpc.com'
|
|
11994
11994
|
};
|
|
11995
11995
|
const optimism = {
|
|
11996
|
-
chainId:
|
|
11997
|
-
name: 'OP
|
|
11996
|
+
chainId: 10,
|
|
11997
|
+
name: 'OP Mainnet',
|
|
11998
11998
|
currency: 'ETH',
|
|
11999
|
-
explorerUrl: 'https://
|
|
12000
|
-
rpcUrl: 'https://
|
|
11999
|
+
explorerUrl: 'https://optimistic.etherscan.io',
|
|
12000
|
+
rpcUrl: 'https://optimism.llamarpc.com'
|
|
12001
12001
|
};
|
|
12002
12002
|
const avalanche = {
|
|
12003
|
-
chainId:
|
|
12004
|
-
name: 'Avalanche
|
|
12003
|
+
chainId: 43114,
|
|
12004
|
+
name: 'Avalanche Mainnet',
|
|
12005
12005
|
currency: 'AVAX',
|
|
12006
|
-
explorerUrl: 'https://
|
|
12007
|
-
rpcUrl: 'https://api.avax
|
|
12006
|
+
explorerUrl: 'https://snowtrace.io',
|
|
12007
|
+
rpcUrl: 'https://api.avax.network/ext/bc/C/rpc'
|
|
12008
12008
|
};
|
|
12009
12009
|
const zkEVM = {
|
|
12010
|
-
chainId:
|
|
12010
|
+
chainId: 1101,
|
|
12011
12011
|
name: 'Polygon zkEVM Cardona Testnet',
|
|
12012
12012
|
currency: 'ETH',
|
|
12013
|
-
explorerUrl: 'https://
|
|
12014
|
-
rpcUrl: 'https://
|
|
12013
|
+
explorerUrl: 'https://zkevm.polygonscan.com',
|
|
12014
|
+
rpcUrl: 'https://rpc.ankr.com/polygon_zkevm'
|
|
12015
12015
|
};
|
|
12016
12016
|
const metadata = {
|
|
12017
12017
|
name: 'Kima Transaction Widget',
|
|
@@ -12041,6 +12041,7 @@ const KimaProvider = ({
|
|
|
12041
12041
|
} else toast$1.error(e.message);
|
|
12042
12042
|
}
|
|
12043
12043
|
const onChainChanged = chainData => {
|
|
12044
|
+
console.log(chainData);
|
|
12044
12045
|
toast$1.error('Please switch to Tron Nile Testnet!');
|
|
12045
12046
|
if (chainData.chainId !== '0xcd8690dc') {
|
|
12046
12047
|
adapters[0].switchChain('0xcd8690dc');
|