Type aliases
FetchResult
FetchResult<T, K, I>: { contract: CreateEvent < T , K , I > | null ; loading: boolean }
Defined in createLedgerContext.ts:49
Type parameters
Type declaration
contract: CreateEvent < T , K , I > | null
loading: boolean
LedgerContext
Ledger
Context: { DamlLedger: React.FC < LedgerProps > ; useFetchByKey: <T, K, I>( template: Template < T , K , I > , keyFactory: ( ) => K , keyDeps: keyof unknown [] ) => FetchResult < T , K , I > ; useLedger: ( ) => Ledger ; useParty: ( ) => Party ; useQuery: <T, K, I>( template: Template < T , K , I > , queryFactory?: ( ) => Query < T > , queryDeps?: keyof unknown [] ) => QueryResult < T , K , I > ; useReload: ( ) => ( ) => void ; useStreamFetchByKey: <T, K, I>( template: Template < T , K , I > , keyFactory: ( ) => K , keyDeps: keyof unknown [] ) => FetchResult < T , K , I > ; useStreamQuery: <T, K, I>( template: Template < T , K , I > , queryFactory?: ( ) => Query < T > , queryDeps?: keyof unknown [] ) => QueryResult < T , K , I > }
Defined in createLedgerContext.ts:60
Type declaration
useFetchByKey: <T, K, I>( template: Template < T , K , I > , keyFactory: ( ) => K , keyDeps: keyof unknown [] ) => FetchResult < T , K , I >
<T, K, I>( template: Template < T , K , I > , keyFactory: ( ) => K , keyDeps: keyof unknown [] ) : FetchResult < T , K , I >
Type parameters
Parameters
template: Template < T , K , I >
keyFactory: ( ) => K
keyDeps: keyof unknown []
useLedger: ( ) => Ledger
useParty: ( ) => Party
useQuery: <T, K, I>( template: Template < T , K , I > , queryFactory?: ( ) => Query < T > , queryDeps?: keyof unknown [] ) => QueryResult < T , K , I >
<T, K, I>( template: Template < T , K , I > , queryFactory?: ( ) => Query < T > , queryDeps?: keyof unknown [] ) : QueryResult < T , K , I >
Type parameters
Parameters
template: Template < T , K , I >
Optional queryFactory: ( ) => Query < T >
Optional queryDeps: keyof unknown []
useReload: ( ) => ( ) => void
useStreamFetchByKey: <T, K, I>( template: Template < T , K , I > , keyFactory: ( ) => K , keyDeps: keyof unknown [] ) => FetchResult < T , K , I >
<T, K, I>( template: Template < T , K , I > , keyFactory: ( ) => K , keyDeps: keyof unknown [] ) : FetchResult < T , K , I >
Type parameters
Parameters
template: Template < T , K , I >
keyFactory: ( ) => K
keyDeps: keyof unknown []
useStreamQuery: <T, K, I>( template: Template < T , K , I > , queryFactory?: ( ) => Query < T > , queryDeps?: keyof unknown [] ) => QueryResult < T , K , I >
<T, K, I>( template: Template < T , K , I > , queryFactory?: ( ) => Query < T > , queryDeps?: keyof unknown [] ) : QueryResult < T , K , I >
Type parameters
Parameters
template: Template < T , K , I >
Optional queryFactory: ( ) => Query < T >
Optional queryDeps: keyof unknown []
LedgerProps
LedgerProps: { httpBaseUrl?: string ; party: Party ; token: string ; wsBaseUrl?: string }
Defined in createLedgerContext.ts:21
Type declaration
Optional httpBaseUrl?: string
party: Party
token: string
Optional wsBaseUrl?: string
QueryResult
QueryResult<T, K, I>: { contracts: keyof CreateEvent < T , K , I > [] ; loading: boolean }
Defined in createLedgerContext.ts:35
Type parameters
Type declaration
contracts: keyof CreateEvent < T , K , I > []
loading: boolean
The result of a
fetch
against the ledger.