Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@tonconnect/ui

Package Overview
Dependencies
Maintainers
4
Versions
72
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tonconnect/ui - npm Package Compare versions

Comparing version 2.0.2 to 2.0.3-beta.0

230

lib/index.d.ts
import { WalletInfoBase, WalletInfoInjectable, WalletInfoRemote, ITonConnect, Wallet, WalletInfo, Account, ConnectAdditionalRequest, TonConnectError, SendTransactionRequest, SendTransactionResponse } from '@tonconnect/sdk';
export * from '@tonconnect/sdk';
import { Property } from 'csstype';
import { ConnectItem } from '@tonconnect/protocol';

@@ -310,2 +311,3 @@ declare type Locales = 'en' | 'ru';

private readonly preferredWalletStorage;
private readonly tracker;
private walletInfo;

@@ -478,2 +480,228 @@ private systemThemeChangeUnsubscribe;

/**
* Requested authentication type: 'ton_addr' or 'ton_proof'.
*/
declare type AuthType = ConnectItem['name'];
/**
* Information about a connected wallet.
*/
declare type ConnectionInfo = {
/**
* Connected wallet address.
*/
address: string | null;
/**
* Connected chain ID.
*/
chainId: string | null;
/**
* Wallet provider.
*/
provider: 'http' | 'injected' | null;
/**
* Wallet type: 'tonkeeper', 'tonhub', etc.
*/
walletType: string | null;
/**
* Wallet version.
*/
walletVersion: string | null;
/**
* Requested authentication types.
*/
authType: AuthType | null;
};
/**
* Initial connection event when a user initiates a connection.
*/
declare type ConnectionStartedEvent = {
/**
* Event type.
*/
type: 'connection-started';
};
/**
* Successful connection event when a user successfully connected a wallet.
*/
declare type ConnectionCompletedEvent = {
/**
* Event type.
*/
type: 'connection-completed';
/**
* Wallet information.
*/
connectionInfo: ConnectionInfo;
};
/**
* Connection error event when a user cancels a connection or there is an error during the connection process.
*/
declare type ConnectionErrorEvent = {
/**
* Event type.
*/
type: 'connection-error';
/**
* Reason for the error.
*/
reason: string;
};
/**
* Connection events.
*/
declare type ConnectionEvent = ConnectionStartedEvent | ConnectionCompletedEvent | ConnectionErrorEvent;
/**
* Connection restoring started event when initiates a connection restoring process.
*/
declare type ConnectionRestoringStartedEvent = {
/**
* Event type.
*/
type: 'connection-restoring-started';
};
/**
* Connection restoring completed event when successfully restored a connection.
*/
declare type ConnectionRestoringCompletedEvent = {
/**
* Event type.
*/
type: 'connection-restoring-completed';
/**
* Wallet information.
*/
connectionInfo: ConnectionInfo;
};
/**
* Connection restoring error event when there is an error during the connection restoring process.
*/
declare type ConnectionRestoringErrorEvent = {
/**
* Event type.
*/
type: 'connection-restoring-error';
/**
* Reason for the error.
*/
reason: string;
};
/**
* Connection restoring events.
*/
declare type ConnectionRestoringEvent = ConnectionRestoringStartedEvent | ConnectionRestoringCompletedEvent | ConnectionRestoringErrorEvent;
/**
* Transaction message.
*/
declare type TransactionMessage = {
/**
* Recipient address.
*/
address: string | null;
/**
* Transfer amount.
*/
amount: string | null;
};
/**
* Transaction information.
*/
declare type TransactionInfo = {
/**
* Transaction validity time in unix timestamp.
*/
validUntil: number | null;
/**
* Sender address.
*/
from: string | null;
/**
* Transaction messages.
*/
messages: TransactionMessage[];
};
/**
* Initial transaction event when a user initiates a transaction.
*/
declare type TransactionSentForSignatureEvent = {
/**
* Event type.
*/
type: 'transaction-sent-for-signature';
/**
* Wallet information.
*/
connectionInfo: ConnectionInfo;
/**
* Transaction information.
*/
transactionInfo: TransactionInfo;
};
/**
* Transaction signed event when a user successfully signed a transaction.
*/
declare type TransactionSignedEvent = {
/**
* Event type.
*/
type: 'transaction-signed';
/**
* Wallet information.
*/
connectionInfo: ConnectionInfo;
/**
* Transaction information.
*/
transactionInfo: TransactionInfo;
/**
* Signed transaction.
*/
signedTransaction: string;
};
/**
* Transaction error event when a user cancels a transaction or there is an error during the transaction process.
*/
declare type TransactionSigningFailedEvent = {
/**
* Event type.
*/
type: 'transaction-signing-failed';
/**
* Wallet information.
*/
connectionInfo: ConnectionInfo;
/**
* Transaction information.
*/
transactionInfo: TransactionInfo;
/**
* Reason for the error.
*/
reason: string;
};
/**
* Transaction events.
*/
declare type TransactionSigningEvent = TransactionSentForSignatureEvent | TransactionSignedEvent | TransactionSigningFailedEvent;
/**
* Disconnect event when a user initiates a disconnection.
*/
declare type DisconnectionEvent = {
/**
* Event type.
*/
type: 'disconnection';
/**
* Wallet information.
*/
connectionInfo: ConnectionInfo;
/**
* Disconnect scope: 'dapp' or 'wallet'.
*/
scope: 'dapp' | 'wallet';
};
/**
* User action events.
*/
declare type UserActionEvent = ConnectionEvent | ConnectionRestoringEvent | DisconnectionEvent | TransactionSigningEvent;
declare type Color = Property.Color;

@@ -485,2 +713,2 @@

export { ActionConfiguration, BorderRadius, Color, ColorsSet, ConnectedWallet, Loadable, LoadableLoading, LoadableReady, Locales, PartialColorsSet, ReturnStrategy, THEME, Theme, TonConnectUI, TonConnectUIError, TonConnectUiCreateOptions, TonConnectUiCreateOptionsBase, TonConnectUiOptions, TonConnectUiOptionsWithConnector, TonConnectUiOptionsWithManifest, UIPreferences, UIWallet, WalletInfoRemoteWithOpenMethod, WalletInfoWithOpenMethod, WalletModalClosed, WalletModalOpened, WalletOpenMethod, WalletsListConfiguration, WalletsModal, WalletsModalCloseReason, WalletsModalState };
export { ActionConfiguration, BorderRadius, Color, ColorsSet, ConnectedWallet, ConnectionCompletedEvent, ConnectionErrorEvent, ConnectionEvent, ConnectionRestoringCompletedEvent, ConnectionRestoringErrorEvent, ConnectionRestoringStartedEvent, ConnectionStartedEvent, DisconnectionEvent, Loadable, LoadableLoading, LoadableReady, Locales, PartialColorsSet, ReturnStrategy, THEME, Theme, TonConnectUI, TonConnectUIError, TonConnectUiCreateOptions, TonConnectUiCreateOptionsBase, TonConnectUiOptions, TonConnectUiOptionsWithConnector, TonConnectUiOptionsWithManifest, TransactionSentForSignatureEvent, TransactionSignedEvent, TransactionSigningEvent, TransactionSigningFailedEvent, UIPreferences, UIWallet, UserActionEvent, WalletInfoRemoteWithOpenMethod, WalletInfoWithOpenMethod, WalletModalClosed, WalletModalOpened, WalletOpenMethod, WalletsListConfiguration, WalletsModal, WalletsModalCloseReason, WalletsModalState };

2

package.json
{
"name": "@tonconnect/ui",
"version": "2.0.2",
"version": "2.0.3-beta.0",
"scripts": {

@@ -5,0 +5,0 @@ "start": "vite --host",

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc