@broxus/evm-connect 1.8.3 → 1.9.0
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.cjs.js +2 -0
- package/dist/index.esm.js +2 -0
- package/dist/style.min.css +1 -1
- package/dist/uikit.min.css +1 -0
- package/{dist → lib}/cjs/components/EvmConnectDialog/index.js +1 -0
- package/{dist → lib}/cjs/components/EvmProvidersDispatcher/ProviderButton/index.js +4 -4
- package/{dist → lib}/cjs/context/EvmWalletProvidersContext.js +1 -0
- package/{dist → lib}/cjs/context/EvmWalletServiceContext.js +1 -0
- package/{dist → lib}/esm/components/EvmConnectDialog/index.js +1 -0
- package/{dist → lib}/esm/components/EvmProvidersDispatcher/ProviderButton/index.js +4 -4
- package/{dist → lib}/esm/context/EvmWalletProvidersContext.js +1 -0
- package/{dist → lib}/esm/context/EvmWalletServiceContext.js +1 -0
- package/lib/esm/uikit.d.ts +1 -0
- package/package.json +36 -23
- package/dist/cjs/intl/index.d.ts +0 -103
- package/dist/cjs/main.d.ts +0 -1
- package/dist/cjs/main.js +0 -3
- package/dist/cjs/tsconfig.cjs.tsbuildinfo +0 -1
- package/dist/esm/components/EvmConnectButton/index.d.ts +0 -23
- package/dist/esm/components/EvmConnectDialog/index.d.ts +0 -11
- package/dist/esm/components/EvmConnector/index.d.ts +0 -21
- package/dist/esm/components/EvmProvidersDispatcher/ConnectionRequest/index.d.ts +0 -3
- package/dist/esm/components/EvmProvidersDispatcher/ProviderButton/index.d.ts +0 -11
- package/dist/esm/components/EvmProvidersDispatcher/index.d.ts +0 -5
- package/dist/esm/components/index.d.ts +0 -4
- package/dist/esm/connectors/EIP6963Connector.d.ts +0 -17
- package/dist/esm/connectors/MetaMask.d.ts +0 -24
- package/dist/esm/connectors/WalletConnect.d.ts +0 -20
- package/dist/esm/connectors/index.d.ts +0 -3
- package/dist/esm/constants.d.ts +0 -1
- package/dist/esm/context/EvmWalletProvidersContext.d.ts +0 -20
- package/dist/esm/context/EvmWalletServiceContext.d.ts +0 -11
- package/dist/esm/context/index.d.ts +0 -2
- package/dist/esm/core/EthereumConnector.d.ts +0 -43
- package/dist/esm/core/index.d.ts +0 -1
- package/dist/esm/hooks/index.d.ts +0 -4
- package/dist/esm/hooks/useEIP6963Connections.d.ts +0 -6
- package/dist/esm/hooks/useFilteredConnections.d.ts +0 -2
- package/dist/esm/hooks/useOrderedConnections.d.ts +0 -2
- package/dist/esm/hooks/useRecentConnectionMeta.d.ts +0 -15
- package/dist/esm/index.d.ts +0 -9
- package/dist/esm/intl/index.d.ts +0 -103
- package/dist/esm/main.d.ts +0 -1
- package/dist/esm/main.js +0 -1
- package/dist/esm/services/EvmWalletService.d.ts +0 -178
- package/dist/esm/services/index.d.ts +0 -1
- package/dist/esm/tsconfig.esm.tsbuildinfo +0 -1
- package/dist/esm/types.d.ts +0 -55
- package/dist/esm/utils/convert-network-to-chain-params.d.ts +0 -2
- package/dist/esm/utils/get-evm-provider-platform-link.d.ts +0 -2
- package/dist/esm/utils/index.d.ts +0 -3
- package/dist/esm/utils/parse-chain-id.d.ts +0 -1
- /package/{dist → lib}/cjs/components/EvmConnectButton/index.js +0 -0
- /package/{dist → lib}/cjs/components/EvmConnectDialog/index.css +0 -0
- /package/{dist → lib}/cjs/components/EvmConnector/index.css +0 -0
- /package/{dist → lib}/cjs/components/EvmConnector/index.js +0 -0
- /package/{dist → lib}/cjs/components/EvmProvidersDispatcher/ConnectionRequest/index.css +0 -0
- /package/{dist → lib}/cjs/components/EvmProvidersDispatcher/ConnectionRequest/index.js +0 -0
- /package/{dist → lib}/cjs/components/EvmProvidersDispatcher/ProviderButton/index.css +0 -0
- /package/{dist → lib}/cjs/components/EvmProvidersDispatcher/index.css +0 -0
- /package/{dist → lib}/cjs/components/EvmProvidersDispatcher/index.js +0 -0
- /package/{dist → lib}/cjs/components/index.js +0 -0
- /package/{dist → lib}/cjs/connectors/EIP6963Connector.js +0 -0
- /package/{dist → lib}/cjs/connectors/MetaMask.js +0 -0
- /package/{dist → lib}/cjs/connectors/WalletConnect.js +0 -0
- /package/{dist → lib}/cjs/connectors/index.js +0 -0
- /package/{dist → lib}/cjs/constants.js +0 -0
- /package/{dist → lib}/cjs/context/index.js +0 -0
- /package/{dist → lib}/cjs/core/EthereumConnector.js +0 -0
- /package/{dist → lib}/cjs/core/index.js +0 -0
- /package/{dist → lib}/cjs/hooks/index.js +0 -0
- /package/{dist → lib}/cjs/hooks/useEIP6963Connections.js +0 -0
- /package/{dist → lib}/cjs/hooks/useFilteredConnections.js +0 -0
- /package/{dist → lib}/cjs/hooks/useOrderedConnections.js +0 -0
- /package/{dist → lib}/cjs/hooks/useRecentConnectionMeta.js +0 -0
- /package/{dist → lib}/cjs/index.js +0 -0
- /package/{dist → lib}/cjs/intl/index.js +0 -0
- /package/{dist → lib}/cjs/services/EvmWalletService.js +0 -0
- /package/{dist → lib}/cjs/services/index.js +0 -0
- /package/{dist → lib}/cjs/types.js +0 -0
- /package/{dist → lib}/cjs/utils/convert-network-to-chain-params.js +0 -0
- /package/{dist → lib}/cjs/utils/get-evm-provider-platform-link.js +0 -0
- /package/{dist → lib}/cjs/utils/index.js +0 -0
- /package/{dist → lib}/cjs/utils/parse-chain-id.js +0 -0
- /package/{dist/cjs → lib/esm}/components/EvmConnectButton/index.d.ts +0 -0
- /package/{dist → lib}/esm/components/EvmConnectButton/index.js +0 -0
- /package/{dist → lib}/esm/components/EvmConnectDialog/index.css +0 -0
- /package/{dist/cjs → lib/esm}/components/EvmConnectDialog/index.d.ts +0 -0
- /package/{dist → lib}/esm/components/EvmConnector/index.css +0 -0
- /package/{dist/cjs → lib/esm}/components/EvmConnector/index.d.ts +0 -0
- /package/{dist → lib}/esm/components/EvmConnector/index.js +0 -0
- /package/{dist → lib}/esm/components/EvmProvidersDispatcher/ConnectionRequest/index.css +0 -0
- /package/{dist/cjs → lib/esm}/components/EvmProvidersDispatcher/ConnectionRequest/index.d.ts +0 -0
- /package/{dist → lib}/esm/components/EvmProvidersDispatcher/ConnectionRequest/index.js +0 -0
- /package/{dist → lib}/esm/components/EvmProvidersDispatcher/ProviderButton/index.css +0 -0
- /package/{dist/cjs → lib/esm}/components/EvmProvidersDispatcher/ProviderButton/index.d.ts +0 -0
- /package/{dist → lib}/esm/components/EvmProvidersDispatcher/index.css +0 -0
- /package/{dist/cjs → lib/esm}/components/EvmProvidersDispatcher/index.d.ts +0 -0
- /package/{dist → lib}/esm/components/EvmProvidersDispatcher/index.js +0 -0
- /package/{dist/cjs → lib/esm}/components/index.d.ts +0 -0
- /package/{dist → lib}/esm/components/index.js +0 -0
- /package/{dist/cjs → lib/esm}/connectors/EIP6963Connector.d.ts +0 -0
- /package/{dist → lib}/esm/connectors/EIP6963Connector.js +0 -0
- /package/{dist/cjs → lib/esm}/connectors/MetaMask.d.ts +0 -0
- /package/{dist → lib}/esm/connectors/MetaMask.js +0 -0
- /package/{dist/cjs → lib/esm}/connectors/WalletConnect.d.ts +0 -0
- /package/{dist → lib}/esm/connectors/WalletConnect.js +0 -0
- /package/{dist/cjs → lib/esm}/connectors/index.d.ts +0 -0
- /package/{dist → lib}/esm/connectors/index.js +0 -0
- /package/{dist/cjs → lib/esm}/constants.d.ts +0 -0
- /package/{dist → lib}/esm/constants.js +0 -0
- /package/{dist/cjs → lib/esm}/context/EvmWalletProvidersContext.d.ts +0 -0
- /package/{dist/cjs → lib/esm}/context/EvmWalletServiceContext.d.ts +0 -0
- /package/{dist/cjs → lib/esm}/context/index.d.ts +0 -0
- /package/{dist → lib}/esm/context/index.js +0 -0
- /package/{dist/cjs → lib/esm}/core/EthereumConnector.d.ts +0 -0
- /package/{dist → lib}/esm/core/EthereumConnector.js +0 -0
- /package/{dist/cjs → lib/esm}/core/index.d.ts +0 -0
- /package/{dist → lib}/esm/core/index.js +0 -0
- /package/{dist/cjs → lib/esm}/hooks/index.d.ts +0 -0
- /package/{dist → lib}/esm/hooks/index.js +0 -0
- /package/{dist/cjs → lib/esm}/hooks/useEIP6963Connections.d.ts +0 -0
- /package/{dist → lib}/esm/hooks/useEIP6963Connections.js +0 -0
- /package/{dist/cjs → lib/esm}/hooks/useFilteredConnections.d.ts +0 -0
- /package/{dist → lib}/esm/hooks/useFilteredConnections.js +0 -0
- /package/{dist/cjs → lib/esm}/hooks/useOrderedConnections.d.ts +0 -0
- /package/{dist → lib}/esm/hooks/useOrderedConnections.js +0 -0
- /package/{dist/cjs → lib/esm}/hooks/useRecentConnectionMeta.d.ts +0 -0
- /package/{dist → lib}/esm/hooks/useRecentConnectionMeta.js +0 -0
- /package/{dist/cjs → lib/esm}/index.d.ts +0 -0
- /package/{dist → lib}/esm/index.js +0 -0
- /package/{dist → lib}/esm/intl/index.js +0 -0
- /package/{dist/cjs → lib/esm}/services/EvmWalletService.d.ts +0 -0
- /package/{dist → lib}/esm/services/EvmWalletService.js +0 -0
- /package/{dist/cjs → lib/esm}/services/index.d.ts +0 -0
- /package/{dist → lib}/esm/services/index.js +0 -0
- /package/{dist/cjs → lib/esm}/types.d.ts +0 -0
- /package/{dist → lib}/esm/types.js +0 -0
- /package/{dist/cjs → lib/esm}/utils/convert-network-to-chain-params.d.ts +0 -0
- /package/{dist → lib}/esm/utils/convert-network-to-chain-params.js +0 -0
- /package/{dist/cjs → lib/esm}/utils/get-evm-provider-platform-link.d.ts +0 -0
- /package/{dist → lib}/esm/utils/get-evm-provider-platform-link.js +0 -0
- /package/{dist/cjs → lib/esm}/utils/index.d.ts +0 -0
- /package/{dist → lib}/esm/utils/index.js +0 -0
- /package/{dist/cjs → lib/esm}/utils/parse-chain-id.d.ts +0 -0
- /package/{dist → lib}/esm/utils/parse-chain-id.js +0 -0
package/dist/esm/types.d.ts
DELETED
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { type NetworkConfigBase } from '@broxus/js-core';
|
|
2
|
-
import { type EIP1193Provider, type MetaMaskProvider, type Web3APISpec, type Web3BaseProvider, type Web3EthExecutionAPI } from 'web3-types';
|
|
3
|
-
import { type EthereumConnector } from './core';
|
|
4
|
-
type EvmBasedNetwork = 'evm';
|
|
5
|
-
export interface EvmNetworkConfig extends NetworkConfigBase<string> {
|
|
6
|
-
transactionType?: string | string[];
|
|
7
|
-
type: EvmBasedNetwork;
|
|
8
|
-
}
|
|
9
|
-
export type SupportedProviders<API extends Web3APISpec = Web3EthExecutionAPI> = EIP1193Provider<API> | Web3BaseProvider<API> | MetaMaskProvider<API>;
|
|
10
|
-
export declare enum EthereumConnectionType {
|
|
11
|
-
INJECTED = "INJECTED",
|
|
12
|
-
COINBASE_WALLET = "COINBASE_WALLET",
|
|
13
|
-
WALLET_CONNECT_V2 = "WALLET_CONNECT_V2",
|
|
14
|
-
EIP_6963_INJECTED = "EIP_6963_INJECTED"
|
|
15
|
-
}
|
|
16
|
-
export declare enum EIP6963Event {
|
|
17
|
-
REQUEST_PROVIDER = "eip6963:requestProvider",
|
|
18
|
-
ANNOUNCE_PROVIDER = "eip6963:announceProvider"
|
|
19
|
-
}
|
|
20
|
-
export interface WatchAssetParameters {
|
|
21
|
-
address: string;
|
|
22
|
-
decimals: number;
|
|
23
|
-
image?: string;
|
|
24
|
-
symbol: string;
|
|
25
|
-
}
|
|
26
|
-
export interface AddEthereumChainParams {
|
|
27
|
-
blockExplorerUrls?: string[];
|
|
28
|
-
chainId: number;
|
|
29
|
-
chainName: string;
|
|
30
|
-
iconUrls?: string[];
|
|
31
|
-
nativeCurrency: {
|
|
32
|
-
decimals: 18;
|
|
33
|
-
name: string;
|
|
34
|
-
symbol: string;
|
|
35
|
-
};
|
|
36
|
-
rpcUrls: string[];
|
|
37
|
-
}
|
|
38
|
-
export type EvmProviderAvailablePlatforms = 'ios' | 'android' | 'chromeExtension' | 'firefoxExtension';
|
|
39
|
-
export type EvmProviderPlatformLinks = Partial<Record<EvmProviderAvailablePlatforms, string>>;
|
|
40
|
-
export interface EvmWalletProviderConfig {
|
|
41
|
-
connector: EthereumConnector;
|
|
42
|
-
id: string;
|
|
43
|
-
info: {
|
|
44
|
-
description?: string;
|
|
45
|
-
icon?: string;
|
|
46
|
-
links?: EvmProviderPlatformLinks & {
|
|
47
|
-
homepage?: string;
|
|
48
|
-
universalLink?: string;
|
|
49
|
-
};
|
|
50
|
-
name: string;
|
|
51
|
-
rdns?: string;
|
|
52
|
-
};
|
|
53
|
-
isRecent?: boolean;
|
|
54
|
-
}
|
|
55
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare function parseChainId(chainId: string | number): number;
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/{dist/cjs → lib/esm}/components/EvmProvidersDispatcher/ConnectionRequest/index.d.ts
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|