@lit-protocol/types
Advanced tools
Comparing version 7.0.4 to 7.0.5
@@ -26,3 +26,3 @@ { | ||
}, | ||
"version": "7.0.4", | ||
"version": "7.0.5", | ||
"dependencies": { | ||
@@ -29,0 +29,0 @@ "@ethersproject/abstract-provider": "5.7.0", |
# Types | ||
This submodule exports various interfaces & types related to Lit Protocol. eg. access control conditions, chain properties, JSON requests, auth statuses, wallet provider options, etc. | ||
This package provides comprehensive TypeScript type definitions for the entire Lit Protocol ecosystem. It exports interfaces and types that ensure type safety and provide excellent IDE support across all Lit Protocol packages. | ||
# Getting Started | ||
## Installation | ||
``` | ||
```bash | ||
yarn add @lit-protocol/types | ||
``` | ||
## Quick Start | ||
```typescript | ||
import { | ||
AccessControlConditions, | ||
ChainProperties, | ||
AuthStatus, | ||
WalletProvider, | ||
} from '@lit-protocol/types'; | ||
// Use types in your code | ||
const conditions: AccessControlConditions = { | ||
// ... your conditions | ||
}; | ||
``` | ||
## Available Types | ||
- Access Control Conditions: Define access rules | ||
- Chain Properties: Blockchain-specific configurations | ||
- JSON Request/Response: Network communication types | ||
- Authentication: Auth status and provider types | ||
- Wallet Providers: Supported wallet options | ||
- Node Configuration: Lit node setup types | ||
- Protocol Interfaces: Core protocol definitions | ||
## Benefits | ||
- Full TypeScript support | ||
- Enhanced code completion | ||
- Compile-time type checking | ||
- Better development experience | ||
- Consistent type definitions across packages |
@@ -76,2 +76,3 @@ import { Provider } from '@ethersproject/abstract-provider'; | ||
uri?: string; | ||
domain?: string; | ||
/** | ||
@@ -751,5 +752,2 @@ * Cosmos wallet type, to support mutliple popular cosmos wallets | ||
chainId?: number; | ||
/** | ||
* domain param is required, when calling from environment that doesn't have the 'location' object. i.e. NodeJs server. | ||
*/ | ||
domain?: string; | ||
@@ -815,2 +813,3 @@ /** | ||
capabilityAuthSigs?: AuthSig[]; | ||
domain?: string; | ||
} | ||
@@ -864,2 +863,3 @@ export interface BaseProviderGetSessionSigsProps extends CommonGetSessionSigsProps, LitActionSdkParams { | ||
resourceAbilityRequests?: LitResourceAbilityRequest[]; | ||
domain?: string; | ||
} | ||
@@ -866,0 +866,0 @@ export interface SessionSigningTemplate { |
Sorry, the diff of this file is not supported yet
71367
44