@cetusprotocol/terminal
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

Cetus Terminal

Visit our Demo / Playground over at https://terminal.cetus.zone

Install from NPM and use it in your react project

To install

npm install @cetusprotocol/terminal

To use the components in the @cetusprotocol/terminal, wrap your app with the providers shown in the following example. The props available on the providers are covered in more detail in their respective pages.

import { createNetworkConfig, SuiClientProvider, WalletProvider } from'@mysten/dapp-kit';
import { getFullnodeUrl } from'@mysten/sui/client';
import { QueryClient, QueryClientProvider } from'@tanstack/react-query';

// Config options for the networks you want to connect to
const { networkConfig } =createNetworkConfig({
  mainnet: { url:getFullnodeUrl('mainnet') },
});
constqueryClient=newQueryClient();

functionApp() {
  return (
    <QueryClientProviderclient={queryClient}>
		<SuiClientProvidernetworks={networkConfig} defaultNetwork="localnet">
			<WalletProvider>
			     <YourApp />
			</WalletProvider>
		 </SuiClientProvider>
    </QueryClientProvider>
  );
}

Readme

Keywords

none

Package Sidebar

Install

npm i @cetusprotocol/terminal

Weekly Downloads

549

Version

1.1.0

License

none

Unpacked Size

14.7 MB

Total Files

180

Last publish

Collaborators

  • cetusprotocol