@xyo-network/react-chain-blockchain 1.7.1 → 1.7.2
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.
|
@@ -4,7 +4,7 @@ import type { BlockBoundWitness } from '@xyo-network/xl1-protocol';
|
|
|
4
4
|
import type { BlockChainIterator } from '../../types/index.ts';
|
|
5
5
|
export declare const resolveDefinedHead: (head: Hash, chainArchivist: ReadArchivist) => Promise<import("@xyo-network/boundwitness-model").Signed<BlockBoundWitness>>;
|
|
6
6
|
export declare const useChainIteratorParams: ({ chainArchivist, chainId, head, name, }: BlockChainIterator) => [{
|
|
7
|
-
chainArchivist: import("@xyo-network/archivist-model").ArchivistInstance<import("@xyo-network/archivist-model").ArchivistParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/archivist-model").ArchivistConfig
|
|
7
|
+
chainArchivist: import("@xyo-network/archivist-model").ArchivistInstance<import("@xyo-network/archivist-model").ArchivistParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/archivist-model").ArchivistConfig>>, import("@xyo-network/archivist-model").ArchivistModuleEventData, import("@xyo-network/payload-model").Payload>;
|
|
8
8
|
chainId: Lowercase<string>;
|
|
9
9
|
head: import("@xylabs/object").DeepRestrictToStringKeys<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & {
|
|
10
10
|
schema: string;
|
package/dist/browser/index.d.ts
CHANGED
|
@@ -1,344 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
import * as _xyo_network_xl1_protocol from '@xyo-network/xl1-protocol';
|
|
6
|
-
import { HydratedBlock, BlockBoundWitness, TransactionBoundWitnessFields, EventingChainBlockNumberIterator, ChainBlockNumberIterator } from '@xyo-network/xl1-protocol';
|
|
7
|
-
import * as _mui_material from '@mui/material';
|
|
8
|
-
import { SkeletonProps, ChipProps, TableCellProps, TableRowProps, DialogProps, StandardTextFieldProps } from '@mui/material';
|
|
9
|
-
import { NodesWithKeys } from '@xylabs/react-animation';
|
|
10
|
-
import * as _xyo_network_react_event from '@xyo-network/react-event';
|
|
11
|
-
import { useEvent } from '@xyo-network/react-event';
|
|
12
|
-
import { XyoChainIteratorParams, ChainBlockNumberIterationService } from '@xyo-network/chain-services';
|
|
13
|
-
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
14
|
-
import { TableExProps } from '@xyo-network/react-table';
|
|
15
|
-
import * as _xylabs_react_flexbox from '@xylabs/react-flexbox';
|
|
16
|
-
import { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
17
|
-
import * as _emotion_styled from '@emotion/styled';
|
|
18
|
-
import * as _mui_system from '@mui/system';
|
|
19
|
-
import * as _mui_material_OverridableComponent from '@mui/material/OverridableComponent';
|
|
20
|
-
import { TablePaginationActionsProps } from '@xyo-network/react-payload-table';
|
|
21
|
-
import * as _xyo_network_archivist_model from '@xyo-network/archivist-model';
|
|
22
|
-
import { ArchivistInstance, ReadArchivist } from '@xyo-network/archivist-model';
|
|
23
|
-
import * as _xyo_network_payload_model from '@xyo-network/payload-model';
|
|
24
|
-
import { Payload } from '@xyo-network/payload-model';
|
|
25
|
-
import { QuickTipButtonProps } from '@xylabs/react-quick-tip-button';
|
|
26
|
-
import * as _xylabs_react_promise from '@xylabs/react-promise';
|
|
27
|
-
import * as _xylabs_object from '@xylabs/object';
|
|
28
|
-
import * as _xyo_network_module_model from '@xyo-network/module-model';
|
|
29
|
-
import * as _xyo_network_boundwitness_model from '@xyo-network/boundwitness-model';
|
|
30
|
-
import { Decorator } from '@storybook/react-vite';
|
|
31
|
-
|
|
32
|
-
/** Interface for all components that render a single block */
|
|
33
|
-
interface BlockComponentProps {
|
|
34
|
-
block: HydratedBlock;
|
|
35
|
-
defaultExpanded?: boolean;
|
|
36
|
-
}
|
|
37
|
-
/** Interface for all components that render a single block with transactions */
|
|
38
|
-
interface BlockComponentWithTxsProps extends BlockComponentProps {
|
|
39
|
-
transactions: Hash[];
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
/** Interface for all block components meant to be rendered in a chain */
|
|
43
|
-
interface BlockChainRenderComponent extends NodesWithKeys {
|
|
44
|
-
block: HydratedBlock;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
/** Props that control the rendering (not blockchain specific) */
|
|
48
|
-
interface RenderProps {
|
|
49
|
-
maxBlocks?: number;
|
|
50
|
-
pageSize?: number;
|
|
51
|
-
}
|
|
52
|
-
/** Fields needed to talk to a block chain iterator */
|
|
53
|
-
interface BlockChainIterator {
|
|
54
|
-
chainArchivist?: ArchivistInstance;
|
|
55
|
-
chainId?: Address;
|
|
56
|
-
head?: Hash;
|
|
57
|
-
name: string;
|
|
58
|
-
}
|
|
59
|
-
/** Props for rendering a blockchain */
|
|
60
|
-
interface BlockChainRenderProps extends BlockChainIterator, RenderProps {
|
|
61
|
-
}
|
|
62
|
-
/** Base interface for encapsulating blockChainRenderProps for easy extension */
|
|
63
|
-
interface BlockChainRenderBaseProps {
|
|
64
|
-
blockChainRenderProps?: BlockChainRenderProps;
|
|
65
|
-
error?: Error;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
/** Props needed to resolve remote Archivist for renderer */
|
|
69
|
-
interface RemoteArchivistProps {
|
|
70
|
-
chainArchivistModuleId?: string;
|
|
71
|
-
url?: string;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
interface BlockChainRenderFlexboxProps extends BlockChainRenderBaseProps, FlexBoxProps {
|
|
75
|
-
}
|
|
76
|
-
interface RemoteBlockChainRenderFlexboxProps extends BlockChainRenderBaseProps, RemoteArchivistProps, FlexBoxProps {
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
declare const BlockHeadingFlexbox: React__default.FC<BlockComponentWithTxsProps>;
|
|
80
|
-
|
|
81
|
-
declare const ChipSkeleton: React__default.FC<SkeletonProps>;
|
|
82
|
-
|
|
83
|
-
declare const blockProducer: (block: BlockBoundWitness) => Lowercase<string>;
|
|
84
|
-
|
|
85
|
-
declare const buildBlockChainRenderComponent: (BlockComponent: ComponentType<BlockComponentWithTxsProps>, blockComponentProps: BlockComponentProps) => Promise<BlockChainRenderComponent>;
|
|
86
|
-
|
|
87
|
-
declare const payloadCountsFromBlock: ([block, payloads]: HydratedBlock) => [number, number];
|
|
88
|
-
|
|
89
|
-
declare const useAnchorElement: () => {
|
|
90
|
-
anchorEl: HTMLElement | null;
|
|
91
|
-
anchorRef: React$1.RefObject<HTMLButtonElement | null>;
|
|
92
|
-
open: boolean;
|
|
93
|
-
handleClick: (event: React.MouseEvent<HTMLElement>) => void;
|
|
94
|
-
handleClose: () => void;
|
|
95
|
-
};
|
|
96
|
-
|
|
97
|
-
type BlockHeaderEventNouns = 'transaction-count' | 'block-hash' | 'block-number' | 'block-producer' | 'block-verification' | 'payload-counts';
|
|
98
|
-
type HookArgs<TElement extends HTMLElement> = Parameters<typeof useEvent<TElement, BlockHeaderEventNouns>>;
|
|
99
|
-
declare const useBlockHeadingEvents: <TElement extends HTMLElement>(...args: HookArgs<TElement>) => [React$1.RefObject<TElement | null>, _xyo_network_react_event.EventDispatch<BlockHeaderEventNouns, _xyo_network_react_event.EventVerb, string>];
|
|
100
|
-
|
|
101
|
-
declare const useBlockProducer: (block?: HydratedBlock) => Lowercase<string> | undefined;
|
|
102
|
-
|
|
103
|
-
declare const useDynamicBlockComponents: (BlockComponent: ComponentType<BlockComponentWithTxsProps>, params?: XyoChainIteratorParams, maxBlocks?: number) => {
|
|
104
|
-
blockChainRenderComponents: BlockChainRenderComponent[];
|
|
105
|
-
onAddBlock: (block: HydratedBlock | undefined) => Promise<void>;
|
|
106
|
-
};
|
|
107
|
-
|
|
108
|
-
declare const usePayloadCountsFromBlock: (block?: HydratedBlock) => [number | undefined, number | undefined, Error | undefined];
|
|
109
|
-
|
|
110
|
-
declare const useStaticBlockComponents: (BlockComponent: ComponentType<BlockComponentWithTxsProps>, params?: XyoChainIteratorParams, blocks?: HydratedBlock[]) => {
|
|
111
|
-
blockComponents: BlockChainRenderComponent[] | undefined;
|
|
112
|
-
errors: Error | undefined;
|
|
113
|
-
};
|
|
114
|
-
|
|
115
|
-
interface BlockProducerChipProps extends ChipProps {
|
|
116
|
-
block?: HydratedBlock;
|
|
117
|
-
}
|
|
118
|
-
declare const BlockProducerChip: React__default.FC<BlockProducerChipProps>;
|
|
119
|
-
|
|
120
|
-
interface BlockTableCellProps extends TableCellProps {
|
|
121
|
-
block?: HydratedBlock;
|
|
122
|
-
linked?: boolean;
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
interface BlockNumberTableCellProps extends BlockTableCellProps {
|
|
126
|
-
}
|
|
127
|
-
declare const BlockNumberTableCell: React__default.FC<BlockNumberTableCellProps>;
|
|
128
|
-
|
|
129
|
-
interface BlockEpochTableCellProps extends BlockTableCellProps {
|
|
130
|
-
}
|
|
131
|
-
declare const BlockEpochTableCell: React__default.FC<BlockEpochTableCellProps>;
|
|
132
|
-
|
|
133
|
-
interface BlockHashTableCellProps extends BlockTableCellProps {
|
|
134
|
-
notAvailableDialog?: boolean;
|
|
135
|
-
}
|
|
136
|
-
declare const BlockHashTableCell: React__default.FC<BlockHashTableCellProps>;
|
|
137
|
-
|
|
138
|
-
interface BlockJsonViewTableCellProps extends BlockTableCellProps {
|
|
139
|
-
}
|
|
140
|
-
declare const BlockJsonViewTableCell: React__default.FC<BlockJsonViewTableCellProps>;
|
|
141
|
-
|
|
142
|
-
interface BlockPayloadCountsTableCellProps extends BlockTableCellProps {
|
|
143
|
-
}
|
|
144
|
-
interface BlockPayloadCountsEventData {
|
|
145
|
-
block: Hash;
|
|
146
|
-
privatePayloads: number;
|
|
147
|
-
publicPayloads: number;
|
|
148
|
-
}
|
|
149
|
-
declare const BlockPayloadCountsTableCell: React__default.FC<BlockPayloadCountsTableCellProps>;
|
|
150
|
-
|
|
151
|
-
interface BlockProducerTableCell extends BlockTableCellProps {
|
|
152
|
-
notAvailableDialog?: boolean;
|
|
153
|
-
producerChipProps?: BlockProducerChipProps;
|
|
154
|
-
}
|
|
155
|
-
declare const BlockProducerTableCell: React__default.FC<BlockProducerTableCell>;
|
|
156
|
-
|
|
157
|
-
interface BlockTransactionCountTableCellProps extends BlockTableCellProps {
|
|
158
|
-
}
|
|
159
|
-
interface BlockTransactionCountEventData {
|
|
160
|
-
block: Hash;
|
|
161
|
-
transactions: number;
|
|
162
|
-
}
|
|
163
|
-
declare const BlockTransactionCountTableCell: React__default.FC<BlockTransactionCountTableCellProps>;
|
|
164
|
-
|
|
165
|
-
interface BlockVerificationTableCellProps extends BlockTableCellProps {
|
|
166
|
-
deepValidation?: boolean;
|
|
167
|
-
}
|
|
168
|
-
declare const BlockVerificationTableCell: React__default.FC<BlockVerificationTableCellProps>;
|
|
169
|
-
|
|
170
|
-
declare const BlockchainTableEx: {
|
|
171
|
-
({ ref, children, ...props }: TableExProps): react_jsx_runtime.JSX.Element;
|
|
172
|
-
displayName: string;
|
|
173
|
-
};
|
|
174
|
-
|
|
175
|
-
declare const BlockchainTableHead: React__default.FC;
|
|
176
|
-
|
|
177
|
-
interface BlockChainTableRowProps extends BlockComponentProps, TableRowProps {
|
|
178
|
-
deepValidation?: boolean;
|
|
179
|
-
linked?: boolean;
|
|
180
|
-
}
|
|
181
|
-
declare const BlockChainTableRow: React__default.FC<BlockChainTableRowProps>;
|
|
182
|
-
|
|
183
|
-
type PollingState = 'paused' | 'running';
|
|
184
|
-
declare const useOnBlock: (initialHeadNumber?: number, onAddBlock?: (block: HydratedBlock) => Promise<void>, liveHead?: HydratedBlock, pollingState?: PollingState) => HydratedBlock[];
|
|
185
|
-
|
|
186
|
-
interface PollingControlsFlexboxProps extends FlexBoxProps {
|
|
187
|
-
blocksBehind?: number;
|
|
188
|
-
pollingState?: PollingState;
|
|
189
|
-
setPollingState?: (newState: PollingState) => void;
|
|
190
|
-
}
|
|
191
|
-
declare const PollingControlsFlexbox: React__default.FC<PollingControlsFlexboxProps>;
|
|
192
|
-
declare const MemoizedPollingControlsFlexbox: React__default.NamedExoticComponent<PollingControlsFlexboxProps>;
|
|
193
|
-
|
|
194
|
-
declare const PulseSvgIcon: _mui_material_OverridableComponent.OverridableComponent<_mui_material.SvgIconTypeMap<{}, "svg">> & {
|
|
195
|
-
muiName: string;
|
|
196
|
-
};
|
|
197
|
-
declare const StyledPulseSvgIcon: _emotion_styled.StyledComponent<_mui_material.SvgIconOwnProps & _mui_material_OverridableComponent.CommonProps & Omit<React__default.SVGProps<SVGSVGElement>, "children" | "className" | "style" | "classes" | "color" | "fontSize" | "shapeRendering" | "sx" | "viewBox" | "htmlColor" | "inheritViewBox" | "titleAccess"> & _mui_system.MUIStyledCommonProps<_mui_material.Theme>, {}, {}>;
|
|
198
|
-
|
|
199
|
-
interface TransactionsDialogProps extends DialogProps {
|
|
200
|
-
}
|
|
201
|
-
declare const TransactionsDialog: React__default.FC<TransactionsDialogProps>;
|
|
202
|
-
|
|
203
|
-
interface BlockChainPaginationProps extends TablePaginationActionsProps {
|
|
204
|
-
}
|
|
205
|
-
declare const BlockChainPagination: React__default.FC<BlockChainPaginationProps>;
|
|
206
|
-
|
|
207
|
-
declare const useChainPagination: (pageSize: number, blockComponents?: BlockChainRenderComponent[]) => {
|
|
208
|
-
onPageChange: (_event: MouseEvent<HTMLButtonElement>, newPage: number) => void;
|
|
209
|
-
page: number;
|
|
210
|
-
paginatedBlockComponents: BlockChainRenderComponent[] | undefined;
|
|
211
|
-
};
|
|
212
|
-
|
|
213
|
-
declare const DynamicBlockchainRenderFlexbox: {
|
|
214
|
-
Base: React$1.FC<BlockChainRenderFlexboxProps>;
|
|
215
|
-
WithAnalysis: React$1.FC<BlockChainRenderFlexboxProps>;
|
|
216
|
-
WithRemote: React$1.FC<RemoteBlockChainRenderFlexboxProps>;
|
|
217
|
-
};
|
|
218
|
-
|
|
219
|
-
declare const StaticBlockchainRenderFlexBox: {
|
|
220
|
-
Base: React$1.FC<BlockChainRenderFlexboxProps>;
|
|
221
|
-
WithAnalysis: React$1.FC<BlockChainRenderFlexboxProps>;
|
|
222
|
-
};
|
|
223
|
-
|
|
224
|
-
interface ChainAnalyzerStatsDialogProps extends DialogProps {
|
|
225
|
-
}
|
|
226
|
-
declare const ChainAnalyzerStatsDialog: React__default.FC<ChainAnalyzerStatsDialogProps>;
|
|
227
|
-
declare const ChainAnalyzerStatsDialogFromContext: React__default.FC;
|
|
228
|
-
|
|
229
|
-
declare const BlockListWrapperFlexBox: _emotion_styled.StyledComponent<Pick<_xylabs_react_flexbox.BusyBoxProps, keyof _xylabs_react_flexbox.BusyBoxProps> & _mui_system.MUIStyledCommonProps<_mui_material.Theme>, {}, {}>;
|
|
230
|
-
|
|
231
|
-
declare const FeatureNotAvailable: FC<DialogProps & {
|
|
232
|
-
featureName?: string;
|
|
233
|
-
}>;
|
|
234
|
-
|
|
235
|
-
interface PayloadBuilderComponentProps {
|
|
236
|
-
onBuild?: (payload: Payload) => void;
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
interface PayloadBuilderFlexboxProps extends PayloadBuilderComponentProps, FlexBoxProps {
|
|
240
|
-
BuilderComponent: ComponentType<PayloadBuilderComponentProps>;
|
|
241
|
-
}
|
|
242
|
-
declare const PayloadBuilderFlexbox: React__default.FC<PayloadBuilderFlexboxProps>;
|
|
243
|
-
|
|
244
|
-
interface ProducerIntentBuilderFormProps extends PayloadBuilderComponentProps {
|
|
245
|
-
}
|
|
246
|
-
declare const ProducerIntentBuilderForm: React__default.FC<ProducerIntentBuilderFormProps>;
|
|
247
|
-
|
|
248
|
-
declare const TransferBuilderFlexbox: React__default.FC<PayloadBuilderComponentProps>;
|
|
249
|
-
|
|
250
|
-
interface TransferBuilderFormProps extends PayloadBuilderComponentProps {
|
|
251
|
-
}
|
|
252
|
-
declare const TransferBuilderForm: React__default.FC<TransferBuilderFormProps>;
|
|
253
|
-
|
|
254
|
-
interface BlockNumberTextFieldProps extends StandardTextFieldProps {
|
|
255
|
-
errorMessage?: string;
|
|
256
|
-
onBlockNumberChanged?: (blockNumber?: number) => void;
|
|
257
|
-
}
|
|
258
|
-
declare const BlockNumberTextField: React__default.FC<BlockNumberTextFieldProps>;
|
|
259
|
-
|
|
260
|
-
interface XyoAddressTextFieldProps extends Omit<StandardTextFieldProps, 'value'> {
|
|
261
|
-
onAddressChanged?: (address?: Address) => void;
|
|
262
|
-
resetValue?: number;
|
|
263
|
-
}
|
|
264
|
-
declare const XyoAddressTextField: React__default.FC<XyoAddressTextFieldProps>;
|
|
265
|
-
|
|
266
|
-
interface ChainTransactionBuilder {
|
|
267
|
-
onSubmitTx?: (chainTx: TransactionBoundWitnessFields) => Promise<void>;
|
|
268
|
-
}
|
|
269
|
-
declare const ChainTransactionBuilder: React__default.FC<ChainTransactionBuilder>;
|
|
270
|
-
|
|
271
|
-
interface ChainTransactionNetworkProps extends StandardTextFieldProps {
|
|
272
|
-
network?: URL;
|
|
273
|
-
onNetworkChange?: (url: URL) => void;
|
|
274
|
-
}
|
|
275
|
-
declare const ChainTransactionNetwork: React__default.FC<ChainTransactionNetworkProps>;
|
|
276
|
-
|
|
277
|
-
declare const SubmitChainTransaction: React__default.FC;
|
|
278
|
-
|
|
279
|
-
interface TransactionCountChipProps extends ChipProps {
|
|
280
|
-
transactions?: Hash[];
|
|
281
|
-
}
|
|
282
|
-
declare const TransactionCountChip: React__default.FC<TransactionCountChipProps>;
|
|
283
|
-
|
|
284
|
-
interface TransactionsQuickTipButtonQuickTipButtonProps extends QuickTipButtonProps {
|
|
285
|
-
block?: HydratedBlock;
|
|
286
|
-
}
|
|
287
|
-
declare const TransactionsQuickTipButton: React__default.FC<TransactionsQuickTipButtonQuickTipButtonProps>;
|
|
288
|
-
|
|
289
|
-
type Listener = (...args: Array<unknown>) => void;
|
|
290
|
-
type ChainIteratorStoreValues = {
|
|
291
|
-
chainIterator: ChainBlockNumberIterationService;
|
|
292
|
-
error?: Error;
|
|
293
|
-
head: HydratedBlock;
|
|
294
|
-
};
|
|
295
|
-
declare class ChainIteratorStore {
|
|
296
|
-
private _chainIterator;
|
|
297
|
-
private _externalListeners;
|
|
298
|
-
private _internalUnsubscribes;
|
|
299
|
-
private _values;
|
|
300
|
-
get chainIterator(): EventingChainBlockNumberIterator;
|
|
301
|
-
get values(): ChainIteratorStoreValues;
|
|
302
|
-
static create(params: XyoChainIteratorParams): Promise<ChainIteratorStore>;
|
|
303
|
-
cleanup(): void;
|
|
304
|
-
getSnapshot(): Partial<ChainIteratorStoreValues>;
|
|
305
|
-
subscribe(onStoreChange: Listener): () => void;
|
|
306
|
-
private emitChange;
|
|
307
|
-
}
|
|
308
|
-
|
|
309
|
-
declare const resolveDefinedHead: (head: Hash, chainArchivist: ReadArchivist) => Promise<_xyo_network_boundwitness_model.Signed<BlockBoundWitness>>;
|
|
310
|
-
declare const useChainIteratorParams: ({ chainArchivist, chainId, head, name, }: BlockChainIterator) => [{
|
|
311
|
-
chainArchivist: _xyo_network_archivist_model.ArchivistInstance<_xyo_network_archivist_model.ArchivistParams<_xyo_network_module_model.AnyConfigSchema<_xyo_network_archivist_model.ArchivistConfig<void, void>>>, _xyo_network_archivist_model.ArchivistModuleEventData, _xyo_network_payload_model.Payload>;
|
|
312
|
-
chainId: Lowercase<string>;
|
|
313
|
-
head: _xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & {
|
|
314
|
-
schema: string;
|
|
315
|
-
}> & Partial<_xyo_network_payload_model.PayloadMetaFields> & _xyo_network_payload_model.StorageMeta & _xylabs_object.DeepRestrictToStringKeys<_xyo_network_payload_model.SchemaFields & _xyo_network_payload_model.PayloadFields & _xyo_network_boundwitness_model.BoundWitnessFields & _xyo_network_xl1_protocol.BlockBoundWitnessFields & _xyo_network_xl1_protocol.BlockBoundWitnessMeta & {
|
|
316
|
-
schema: "network.xyo.boundwitness";
|
|
317
|
-
}> & _xyo_network_boundwitness_model.BoundWitnessMeta & {
|
|
318
|
-
$signatures: _xylabs_hex.Hex[];
|
|
319
|
-
};
|
|
320
|
-
name: string;
|
|
321
|
-
} | undefined, Error | undefined, _xylabs_react_promise.UsePromiseState | undefined];
|
|
322
|
-
|
|
323
|
-
declare const useChainIteratorStore: (chainIteratorParams?: XyoChainIteratorParams) => Partial<ChainIteratorStoreValues>;
|
|
324
|
-
|
|
325
|
-
interface ChainIteratorUpdatingHeadParams {
|
|
326
|
-
chainArchivist?: ArchivistInstance;
|
|
327
|
-
chainIterator?: ChainBlockNumberIterator;
|
|
328
|
-
interval?: number;
|
|
329
|
-
maxBlocks?: number;
|
|
330
|
-
}
|
|
331
|
-
declare const useChainIteratorUpdatingHead: ({ chainIterator, interval, maxBlocks, chainArchivist, }: ChainIteratorUpdatingHeadParams) => Error | undefined;
|
|
332
|
-
|
|
333
|
-
declare const useIterateChain: (chainIteratorParams?: XyoChainIteratorParams, maxDepth?: number) => [HydratedBlock[] | undefined, Error | undefined, _xylabs_react_promise.UsePromiseState | undefined];
|
|
334
|
-
|
|
335
|
-
declare const useTxsFromBlock: (block?: HydratedBlock) => [[_xyo_network_payload_model.WithStorageMeta<_xyo_network_boundwitness_model.Signed<_xyo_network_xl1_protocol.TransactionBoundWitness>>, Lowercase<string>][] | undefined, Error | undefined, _xylabs_react_promise.UsePromiseState | undefined];
|
|
336
|
-
|
|
337
|
-
declare const ChainArchivistDecorator: Decorator;
|
|
338
|
-
|
|
339
|
-
declare const ChainArchivistDelayedInsertDecorator: Decorator;
|
|
340
|
-
|
|
341
|
-
declare const ChainInfoContextDecorator: Decorator;
|
|
342
|
-
|
|
343
|
-
export { BlockChainPagination, BlockChainTableRow, BlockEpochTableCell, BlockHashTableCell, BlockHeadingFlexbox, BlockJsonViewTableCell, BlockListWrapperFlexBox, BlockNumberTableCell, BlockNumberTextField, BlockPayloadCountsTableCell, BlockProducerChip, BlockProducerTableCell, BlockTransactionCountTableCell, BlockVerificationTableCell, BlockchainTableEx, BlockchainTableHead, ChainAnalyzerStatsDialog, ChainAnalyzerStatsDialogFromContext, ChainArchivistDecorator, ChainArchivistDelayedInsertDecorator, ChainInfoContextDecorator, ChainIteratorStore, ChainTransactionBuilder, ChainTransactionNetwork, ChipSkeleton, DynamicBlockchainRenderFlexbox, FeatureNotAvailable, MemoizedPollingControlsFlexbox, PayloadBuilderFlexbox, PollingControlsFlexbox, ProducerIntentBuilderForm, PulseSvgIcon, StaticBlockchainRenderFlexBox, StyledPulseSvgIcon, SubmitChainTransaction, TransactionCountChip, TransactionsDialog, TransactionsQuickTipButton, TransferBuilderFlexbox, TransferBuilderForm, XyoAddressTextField, blockProducer, buildBlockChainRenderComponent, payloadCountsFromBlock, resolveDefinedHead, useAnchorElement, useBlockHeadingEvents, useBlockProducer, useChainIteratorParams, useChainIteratorStore, useChainIteratorUpdatingHead, useChainPagination, useDynamicBlockComponents, useIterateChain, useOnBlock, usePayloadCountsFromBlock, useStaticBlockComponents, useTxsFromBlock };
|
|
344
|
-
export type { BlockChainPaginationProps, BlockChainTableRowProps, BlockEpochTableCellProps, BlockHashTableCellProps, BlockHeaderEventNouns, BlockJsonViewTableCellProps, BlockNumberTableCellProps, BlockPayloadCountsEventData, BlockPayloadCountsTableCellProps, BlockProducerChipProps, BlockTransactionCountEventData, BlockTransactionCountTableCellProps, BlockVerificationTableCellProps, ChainAnalyzerStatsDialogProps, ChainIteratorStoreValues, ChainIteratorUpdatingHeadParams, ChainTransactionNetworkProps, Listener, PayloadBuilderComponentProps, PayloadBuilderFlexboxProps, PollingControlsFlexboxProps, PollingState, ProducerIntentBuilderFormProps, TransactionCountChipProps, TransactionsDialogProps, TransactionsQuickTipButtonQuickTipButtonProps, TransferBuilderFormProps };
|
|
1
|
+
export * from './components/index.ts';
|
|
2
|
+
export * from './hooks/index.ts';
|
|
3
|
+
export * from './stories/index.ts';
|
|
4
|
+
//# sourceMappingURL=index.d.ts.map
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "http://json.schemastore.org/package.json",
|
|
3
3
|
"name": "@xyo-network/react-chain-blockchain",
|
|
4
|
-
"version": "1.7.
|
|
4
|
+
"version": "1.7.2",
|
|
5
5
|
"description": "XYO Layer One React SDK Blockchain",
|
|
6
6
|
"homepage": "https://xylabs.com",
|
|
7
7
|
"bugs": {
|
|
@@ -38,13 +38,13 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@storybook/react-vite": "^9.0.17",
|
|
41
|
-
"@xylabs/assert": "^4.13.
|
|
42
|
-
"@xylabs/axios": "^4.13.
|
|
43
|
-
"@xylabs/delay": "^4.13.
|
|
44
|
-
"@xylabs/eth-address": "^4.13.
|
|
45
|
-
"@xylabs/exists": "^4.13.
|
|
46
|
-
"@xylabs/hex": "^4.13.
|
|
47
|
-
"@xylabs/promise": "^4.13.
|
|
41
|
+
"@xylabs/assert": "^4.13.17",
|
|
42
|
+
"@xylabs/axios": "^4.13.17",
|
|
43
|
+
"@xylabs/delay": "^4.13.17",
|
|
44
|
+
"@xylabs/eth-address": "^4.13.17",
|
|
45
|
+
"@xylabs/exists": "^4.13.17",
|
|
46
|
+
"@xylabs/hex": "^4.13.17",
|
|
47
|
+
"@xylabs/promise": "^4.13.17",
|
|
48
48
|
"@xylabs/react-animation": "^6.3.11",
|
|
49
49
|
"@xylabs/react-error": "^6.3.11",
|
|
50
50
|
"@xylabs/react-flexbox": "^6.3.11",
|
|
@@ -52,31 +52,31 @@
|
|
|
52
52
|
"@xylabs/react-quick-tip-button": "^6.3.11",
|
|
53
53
|
"@xylabs/react-shared": "^6.3.11",
|
|
54
54
|
"@xylabs/react-theme": "^6.3.11",
|
|
55
|
-
"@xylabs/typeof": "^4.13.
|
|
56
|
-
"@xyo-network/account": "^4.1.
|
|
57
|
-
"@xyo-network/archivist-memory": "^4.1.
|
|
58
|
-
"@xyo-network/archivist-model": "^4.1.
|
|
59
|
-
"@xyo-network/boundwitness-builder": "^4.1.
|
|
60
|
-
"@xyo-network/boundwitness-model": "^4.1.
|
|
61
|
-
"@xyo-network/bridge-http": "^4.1.
|
|
62
|
-
"@xyo-network/chain-analyze": "^1.7.
|
|
63
|
-
"@xyo-network/chain-protocol": "^1.7.
|
|
64
|
-
"@xyo-network/chain-services": "^1.7.
|
|
65
|
-
"@xyo-network/chain-utils": "^1.7.
|
|
66
|
-
"@xyo-network/chain-wrappers": "^1.7.
|
|
67
|
-
"@xyo-network/module-model": "^4.1.
|
|
68
|
-
"@xyo-network/payload-builder": "^4.1.
|
|
69
|
-
"@xyo-network/payload-model": "^4.1.
|
|
55
|
+
"@xylabs/typeof": "^4.13.17",
|
|
56
|
+
"@xyo-network/account": "^4.1.3",
|
|
57
|
+
"@xyo-network/archivist-memory": "^4.1.3",
|
|
58
|
+
"@xyo-network/archivist-model": "^4.1.3",
|
|
59
|
+
"@xyo-network/boundwitness-builder": "^4.1.3",
|
|
60
|
+
"@xyo-network/boundwitness-model": "^4.1.3",
|
|
61
|
+
"@xyo-network/bridge-http": "^4.1.3",
|
|
62
|
+
"@xyo-network/chain-analyze": "^1.7.2",
|
|
63
|
+
"@xyo-network/chain-protocol": "^1.7.2",
|
|
64
|
+
"@xyo-network/chain-services": "^1.7.2",
|
|
65
|
+
"@xyo-network/chain-utils": "^1.7.2",
|
|
66
|
+
"@xyo-network/chain-wrappers": "^1.7.2",
|
|
67
|
+
"@xyo-network/module-model": "^4.1.3",
|
|
68
|
+
"@xyo-network/payload-builder": "^4.1.3",
|
|
69
|
+
"@xyo-network/payload-model": "^4.1.3",
|
|
70
70
|
"@xyo-network/react-boundwitness-plugin": "^6.1.1",
|
|
71
|
-
"@xyo-network/react-chain-blockies": "^1.7.
|
|
72
|
-
"@xyo-network/react-chain-shared": "^1.7.
|
|
71
|
+
"@xyo-network/react-chain-blockies": "^1.7.2",
|
|
72
|
+
"@xyo-network/react-chain-shared": "^1.7.2",
|
|
73
73
|
"@xyo-network/react-event": "^6.1.1",
|
|
74
74
|
"@xyo-network/react-payload-raw-info": "^6.1.1",
|
|
75
75
|
"@xyo-network/react-payload-table": "^6.1.1",
|
|
76
76
|
"@xyo-network/react-shared": "^6.1.1",
|
|
77
77
|
"@xyo-network/react-table": "^6.1.1",
|
|
78
|
-
"@xyo-network/xl1-protocol": "^1.
|
|
79
|
-
"@xyo-network/xl1-protocol-sdk": "^1.7.
|
|
78
|
+
"@xyo-network/xl1-protocol": "^1.7.1",
|
|
79
|
+
"@xyo-network/xl1-protocol-sdk": "^1.7.2"
|
|
80
80
|
},
|
|
81
81
|
"devDependencies": {
|
|
82
82
|
"@emotion/react": "^11.14.0",
|
|
@@ -84,14 +84,14 @@
|
|
|
84
84
|
"@mui/icons-material": "^7.2.0",
|
|
85
85
|
"@mui/material": "^7.2.0",
|
|
86
86
|
"@types/react": "^19.1.8",
|
|
87
|
-
"@xylabs/hex": "^4.13.
|
|
88
|
-
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.
|
|
89
|
-
"@xylabs/tsconfig-react": "^7.0.0-rc.
|
|
90
|
-
"@xyo-network/api-models": "^4.1.
|
|
87
|
+
"@xylabs/hex": "^4.13.17",
|
|
88
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.0-rc.27",
|
|
89
|
+
"@xylabs/tsconfig-react": "^7.0.0-rc.27",
|
|
90
|
+
"@xyo-network/api-models": "^4.1.3",
|
|
91
91
|
"knip": "^5.61.3",
|
|
92
92
|
"react": "^19.1.0",
|
|
93
93
|
"react-dom": "^19.1.0",
|
|
94
|
-
"react-router-dom": "^7.
|
|
94
|
+
"react-router-dom": "^7.7.0",
|
|
95
95
|
"storybook": "^9.0.17",
|
|
96
96
|
"typescript": "^5.8.3"
|
|
97
97
|
},
|