@xyo-network/react-chain-blockchain 1.16.10 → 1.16.11
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.
- package/dist/browser/components/account/BalanceHistoryFlexbox.d.ts +1 -1
- package/dist/browser/components/account/BalanceHistoryFlexbox.d.ts.map +1 -1
- package/dist/browser/components/account/table/RawAmountTableCell.d.ts.map +1 -1
- package/dist/browser/components/block/table/cell/JsonView.d.ts.map +1 -1
- package/dist/browser/components/block/table/cell/PayloadCounts.d.ts +1 -1
- package/dist/browser/components/block/table/cell/PayloadCounts.d.ts.map +1 -1
- package/dist/browser/components/block/table/cell/TransactionCount.d.ts +1 -1
- package/dist/browser/components/block/table/cell/TransactionCount.d.ts.map +1 -1
- package/dist/browser/components/payload/builder/transfer/Transfer.d.ts +1 -1
- package/dist/browser/components/payload/builder/transfer/Transfer.d.ts.map +1 -1
- package/dist/browser/components/payload/builder/transfer/builder/SingleFlexbox.d.ts.map +1 -1
- package/dist/browser/components/payload/fields/XyoAddressTextField.d.ts +1 -1
- package/dist/browser/components/payload/fields/XyoAddressTextField.d.ts.map +1 -1
- package/dist/browser/components/transactions/TransactionCountChip.d.ts +1 -1
- package/dist/browser/components/transactions/TransactionCountChip.d.ts.map +1 -1
- package/dist/browser/components/transactions/TransactionsQuickTipButton.d.ts.map +1 -1
- package/dist/browser/components/transactions/submit/SubmitChain.d.ts.map +1 -1
- package/dist/browser/hooks/chain-iterator/useChainIteratorParams.d.ts +6 -6
- package/dist/browser/hooks/chain-iterator/useChainIteratorParams.d.ts.map +1 -1
- package/dist/browser/index.mjs +27 -32
- package/dist/browser/index.mjs.map +1 -1
- package/dist/browser/lib/getChainId.d.ts +1 -2
- package/dist/browser/lib/getChainId.d.ts.map +1 -1
- package/dist/browser/stories/ChainInfoContextDecorator.d.ts.map +1 -1
- package/dist/browser/types/BlockComponentProps.d.ts +1 -1
- package/dist/browser/types/BlockComponentProps.d.ts.map +1 -1
- package/dist/browser/types/render/BlockChainRenderProps.d.ts +1 -2
- package/dist/browser/types/render/BlockChainRenderProps.d.ts.map +1 -1
- package/package.json +28 -33
- package/src/components/account/BalanceHistoryFlexbox.stories.tsx +1 -1
- package/src/components/account/BalanceHistoryFlexbox.tsx +2 -2
- package/src/components/account/table/BalanceHistoryTable.stories.tsx +1 -1
- package/src/components/account/table/BalanceHistoryTable.tsx +1 -1
- package/src/components/account/table/RawAmountTableCell.tsx +1 -2
- package/src/components/block/BlockHeadingFlexbox.tsx +1 -1
- package/src/components/block/ProducerChip.tsx +3 -3
- package/src/components/block/hooks/useStaticBlockComponents.ts +1 -1
- package/src/components/block/table/cell/Epoch.tsx +1 -1
- package/src/components/block/table/cell/Hash.tsx +1 -1
- package/src/components/block/table/cell/JsonView.tsx +1 -2
- package/src/components/block/table/cell/PayloadCounts.tsx +1 -1
- package/src/components/block/table/cell/TransactionCount.tsx +1 -1
- package/src/components/chain/render/static/flexbox/Flexbox.stories.tsx +1 -1
- package/src/components/chain/render/static/flexbox/variants/WithAnalysis.tsx +1 -1
- package/src/components/chain/render/static/hooks/useStaticBlockRenderComponents.ts +2 -2
- package/src/components/chain/render/static/table/Ex.stories.tsx +1 -1
- package/src/components/payload/builder/producer-intent/Form.tsx +1 -1
- package/src/components/payload/builder/transfer/Form.tsx +2 -2
- package/src/components/payload/builder/transfer/Transfer.ts +1 -1
- package/src/components/payload/builder/transfer/builder/SingleFlexbox.tsx +2 -2
- package/src/components/payload/fields/XyoAddressTextField.tsx +2 -2
- package/src/components/transactions/TransactionCountChip.tsx +1 -1
- package/src/components/transactions/TransactionsQuickTipButton.tsx +1 -1
- package/src/components/transactions/submit/Builder.tsx +1 -1
- package/src/components/transactions/submit/SubmitChain.tsx +6 -2
- package/src/context/analyzer/Provider.tsx +1 -1
- package/src/hooks/chain-iterator/ChainIteratorStore.ts +1 -1
- package/src/hooks/chain-iterator/useChainIteratorParams.ts +2 -3
- package/src/hooks/chain-iterator/useChainIteratorUpdatingHead.ts +1 -1
- package/src/hooks/useIterateChain.ts +1 -1
- package/src/lib/getChainArchivist.ts +1 -1
- package/src/lib/getChainId.ts +2 -2
- package/src/stories/ChainArchivistDelayedInsertDecorator.tsx +1 -1
- package/src/stories/ChainInfoContextDecorator.tsx +1 -2
- package/src/types/BlockComponentProps.ts +1 -1
- package/src/types/render/BlockChainRenderProps.ts +1 -2
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { type Address } from '@xylabs/hex';
|
|
2
1
|
import type { FlexBoxProps } from '@xylabs/react-flexbox';
|
|
2
|
+
import { type Address } from '@xylabs/sdk-js';
|
|
3
3
|
import type { XyoViewer } from '@xyo-network/xl1-protocol-sdk';
|
|
4
4
|
import React from 'react';
|
|
5
5
|
export interface AccountBalanceHistoryFlexBoxProps extends FlexBoxProps {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BalanceHistoryFlexbox.d.ts","sourceRoot":"","sources":["../../../../src/components/account/BalanceHistoryFlexbox.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"BalanceHistoryFlexbox.d.ts","sourceRoot":"","sources":["../../../../src/components/account/BalanceHistoryFlexbox.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAEzD,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAK7C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,+BAA+B,CAAA;AAC9D,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,MAAM,WAAW,iCAAkC,SAAQ,YAAY;IACrE,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,SAAS,CAAA;CACnB;AAED,eAAO,MAAM,4BAA4B,EAAE,KAAK,CAAC,EAAE,CAAC,iCAAiC,CA6CpF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RawAmountTableCell.d.ts","sourceRoot":"","sources":["../../../../../src/components/account/table/RawAmountTableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEM,KAAK,cAAc,EAC/B,MAAM,eAAe,CAAA;
|
|
1
|
+
{"version":3,"file":"RawAmountTableCell.d.ts","sourceRoot":"","sources":["../../../../../src/components/account/table/RawAmountTableCell.tsx"],"names":[],"mappings":"AAAA,OAAO,EAEM,KAAK,cAAc,EAC/B,MAAM,eAAe,CAAA;AAEtB,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,mCAAmC,CAAA;AAM/E,MAAM,WAAW,uBAAwB,SAAQ,cAAc;IAC7D,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,IAAI,CAAC,EAAE,sBAAsB,CAAA;CAC9B;AAED,eAAO,MAAM,kBAAkB,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAkChE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"JsonView.d.ts","sourceRoot":"","sources":["../../../../../../src/components/block/table/cell/JsonView.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"JsonView.d.ts","sourceRoot":"","sources":["../../../../../../src/components/block/table/cell/JsonView.tsx"],"names":[],"mappings":"AASA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAEvC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAEzD,MAAM,WAAW,2BAA4B,SAAQ,mBAAmB;CAAG;AAE3E,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAAE,CAAC,2BAA2B,CA4BxE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PayloadCounts.d.ts","sourceRoot":"","sources":["../../../../../../src/components/block/table/cell/PayloadCounts.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"PayloadCounts.d.ts","sourceRoot":"","sources":["../../../../../../src/components/block/table/cell/PayloadCounts.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAK,MAAM,OAAO,CAAA;AAIzB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAEzD,MAAM,WAAW,gCAAiC,SAAQ,mBAAmB;CAAG;AAEhF,MAAM,WAAW,2BAA2B;IAC1C,KAAK,EAAE,IAAI,CAAA;IACX,eAAe,EAAE,MAAM,CAAA;IACvB,cAAc,EAAE,MAAM,CAAA;CACvB;AAED,eAAO,MAAM,2BAA2B,EAAE,KAAK,CAAC,EAAE,CAAC,gCAAgC,CA6ClF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionCount.d.ts","sourceRoot":"","sources":["../../../../../../src/components/block/table/cell/TransactionCount.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"TransactionCount.d.ts","sourceRoot":"","sources":["../../../../../../src/components/block/table/cell/TransactionCount.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAkB,MAAM,OAAO,CAAA;AAItC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gBAAgB,CAAA;AAEzD,MAAM,WAAW,mCAAoC,SAAQ,mBAAmB;CAAG;AAEnF,MAAM,WAAW,8BAA8B;IAC7C,KAAK,EAAE,IAAI,CAAA;IACX,YAAY,EAAE,MAAM,CAAA;CACrB;AAED,eAAO,MAAM,8BAA8B,EAAE,KAAK,CAAC,EAAE,CAAC,mCAAmC,CAqCxF,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Transfer.d.ts","sourceRoot":"","sources":["../../../../../../src/components/payload/builder/transfer/Transfer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"Transfer.d.ts","sourceRoot":"","sources":["../../../../../../src/components/payload/builder/transfer/Transfer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,GAAG,EAAE,MAAM,gBAAgB,CAAA;AAElD,MAAM,MAAM,cAAc,GAAG;IAAE,MAAM,EAAE,GAAG,CAAC;IAAC,EAAE,EAAE,OAAO,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SingleFlexbox.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/payload/builder/transfer/builder/SingleFlexbox.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SingleFlexbox.d.ts","sourceRoot":"","sources":["../../../../../../../src/components/payload/builder/transfer/builder/SingleFlexbox.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAA;AAKzD,OAAO,KAEN,MAAM,OAAO,CAAA;AAGd,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAA;AAEpD,MAAM,WAAW,iCAAkC,SAAQ,YAAY;IACrE,gBAAgB,CAAC,EAAE,CAAC,UAAU,EAAE,MAAM,KAAK,IAAI,CAAA;IAC/C,iBAAiB,CAAC,EAAE,CAAC,cAAc,EAAE,cAAc,KAAK,IAAI,CAAA;IAC5D,cAAc,EAAE,cAAc,CAAA;CAC/B;AAED,eAAO,MAAM,4BAA4B,EAAE,KAAK,CAAC,EAAE,CAAC,iCAAiC,CA+BpF,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { StandardTextFieldProps } from '@mui/material';
|
|
2
|
-
import type { Address } from '@xylabs/
|
|
2
|
+
import type { Address } from '@xylabs/sdk-js';
|
|
3
3
|
import React from 'react';
|
|
4
4
|
interface XyoAddressTextFieldProps extends Omit<StandardTextFieldProps, 'value'> {
|
|
5
5
|
onAddressChanged?: (address?: Address) => void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XyoAddressTextField.d.ts","sourceRoot":"","sources":["../../../../../src/components/payload/fields/XyoAddressTextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAA;AAI3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"XyoAddressTextField.d.ts","sourceRoot":"","sources":["../../../../../src/components/payload/fields/XyoAddressTextField.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,eAAe,CAAA;AAI3D,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAA;AAE7C,OAAO,KAA4B,MAAM,OAAO,CAAA;AAEhD,UAAU,wBAAyB,SAAQ,IAAI,CAAC,sBAAsB,EAAE,OAAO,CAAC;IAC9E,gBAAgB,CAAC,EAAE,CAAC,OAAO,CAAC,EAAE,OAAO,KAAK,IAAI,CAAA;IAE9C,UAAU,CAAC,EAAE,MAAM,CAAA;CACpB;AAED,eAAO,MAAM,mBAAmB,EAAE,KAAK,CAAC,EAAE,CAAC,wBAAwB,CAyClE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionCountChip.d.ts","sourceRoot":"","sources":["../../../../src/components/transactions/TransactionCountChip.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"TransactionCountChip.d.ts","sourceRoot":"","sources":["../../../../src/components/transactions/TransactionCountChip.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,gBAAgB,CAAA;AAC1C,OAAO,KAAkB,MAAM,OAAO,CAAA;AAEtC,MAAM,WAAW,yBAA0B,SAAQ,SAAS;IAC1D,YAAY,CAAC,EAAE,IAAI,EAAE,CAAA;CACtB;AAED,eAAO,MAAM,oBAAoB,EAAE,KAAK,CAAC,EAAE,CAAC,yBAAyB,CAuBpE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionsQuickTipButton.d.ts","sourceRoot":"","sources":["../../../../src/components/transactions/TransactionsQuickTipButton.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"TransactionsQuickTipButton.d.ts","sourceRoot":"","sources":["../../../../src/components/transactions/TransactionsQuickTipButton.tsx"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAA;AAGzE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAC9D,OAAO,KAEN,MAAM,OAAO,CAAA;AAId,MAAM,WAAW,6CAA8C,SAAQ,mBAAmB;IACxF,KAAK,CAAC,EAAE,aAAa,CAAA;CACtB;AAED,eAAO,MAAM,0BAA0B,EAAE,KAAK,CAAC,EAAE,CAAC,6CAA6C,CA0D9F,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SubmitChain.d.ts","sourceRoot":"","sources":["../../../../../src/components/transactions/submit/SubmitChain.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"SubmitChain.d.ts","sourceRoot":"","sources":["../../../../../src/components/transactions/submit/SubmitChain.tsx"],"names":[],"mappings":"AAgBA,OAAO,KAAmB,MAAM,OAAO,CAAA;AAQvC,eAAO,MAAM,sBAAsB,EAAE,KAAK,CAAC,EAkE1C,CAAA"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { type Hash } from '@xylabs/
|
|
1
|
+
import { type Hash } from '@xylabs/sdk-js';
|
|
2
2
|
import type { ReadArchivist } from '@xyo-network/archivist-model';
|
|
3
3
|
import type { BlockBoundWitness } from '@xyo-network/xl1-protocol';
|
|
4
4
|
import type { BlockChainIterator } from '../../types/index.ts';
|
|
@@ -44,7 +44,7 @@ export declare const useChainIteratorParams: ({ chainMap, chainId, head, name, }
|
|
|
44
44
|
heartbeatInterval: number;
|
|
45
45
|
minStake: number;
|
|
46
46
|
port: number;
|
|
47
|
-
allowlist?: import("@xylabs/
|
|
47
|
+
allowlist?: import("@xylabs/sdk-js").Address[] | undefined;
|
|
48
48
|
disableIntentRedeclaration?: boolean | undefined;
|
|
49
49
|
healthCheckPort?: number | undefined;
|
|
50
50
|
mnemonic?: string | undefined;
|
|
@@ -72,8 +72,8 @@ export declare const useChainIteratorParams: ({ chainMap, chainId, head, name, }
|
|
|
72
72
|
} | undefined;
|
|
73
73
|
};
|
|
74
74
|
validation: {
|
|
75
|
-
allowedRewardRedeemers?: import("@xylabs/
|
|
76
|
-
allowedRewardEscrowAccountSigners?: import("@xylabs/
|
|
75
|
+
allowedRewardRedeemers?: import("@xylabs/sdk-js").Address[] | undefined;
|
|
76
|
+
allowedRewardEscrowAccountSigners?: import("@xylabs/sdk-js").Address[] | undefined;
|
|
77
77
|
};
|
|
78
78
|
logLevel: "error" | "warn" | "info" | "log" | "debug" | "trace";
|
|
79
79
|
silent: boolean;
|
|
@@ -83,8 +83,8 @@ export declare const useChainIteratorParams: ({ chainMap, chainId, head, name, }
|
|
|
83
83
|
} & Partial<import("@xyo-network/payload-model").PayloadMetaFields> & import("@xyo-network/payload-model").StorageMeta & import("@xyo-network/boundwitness-model").BoundWitnessFields & import("@xyo-network/xl1-protocol").BlockBoundWitnessFields & import("@xyo-network/xl1-protocol").BlockBoundWitnessMeta & {
|
|
84
84
|
schema: "network.xyo.boundwitness";
|
|
85
85
|
} & import("@xyo-network/boundwitness-model").BoundWitnessMeta & {
|
|
86
|
-
$signatures: import("@xylabs/
|
|
86
|
+
$signatures: import("@xylabs/sdk-js").Hex[];
|
|
87
87
|
};
|
|
88
|
-
name: import("@xylabs/
|
|
88
|
+
name: import("@xylabs/sdk-js").CreatableName;
|
|
89
89
|
} | undefined, Error | undefined, import("@xylabs/react-promise").UsePromiseState | undefined];
|
|
90
90
|
//# sourceMappingURL=useChainIteratorParams.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useChainIteratorParams.d.ts","sourceRoot":"","sources":["../../../../src/hooks/chain-iterator/useChainIteratorParams.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,IAAI,EAAU,MAAM,
|
|
1
|
+
{"version":3,"file":"useChainIteratorParams.d.ts","sourceRoot":"","sources":["../../../../src/hooks/chain-iterator/useChainIteratorParams.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,IAAI,EAAU,MAAM,gBAAgB,CAAA;AAElD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAEjE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAA;AAIlE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAA;AAE9D,eAAO,MAAM,kBAAkB,GAAU,MAAM,IAAI,EAAE,gBAAgB,aAAa,iFAajF,CAAA;AAED,eAAO,MAAM,sBAAsB,GAAI,oCAEpC,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8FAgBpB,CAAA"}
|
package/dist/browser/index.mjs
CHANGED
|
@@ -4,7 +4,7 @@ var __name = (target, value) => __defProp(target, "name", { value, configurable:
|
|
|
4
4
|
// src/components/account/BalanceHistoryFlexbox.tsx
|
|
5
5
|
import { Typography as Typography6 } from "@mui/material";
|
|
6
6
|
import { FlexCol as FlexCol3 } from "@xylabs/react-flexbox";
|
|
7
|
-
import { isDefined as isDefined6 } from "@xylabs/
|
|
7
|
+
import { isDefined as isDefined6 } from "@xylabs/sdk-js";
|
|
8
8
|
import { useAccountBalanceHistory } from "@xyo-network/react-chain-provider";
|
|
9
9
|
import { ErrorRender as ErrorRender3 } from "@xyo-network/react-error";
|
|
10
10
|
import { AttoXL1, XL1Amount as XL1Amount2 } from "@xyo-network/xl1-protocol";
|
|
@@ -25,7 +25,7 @@ import { createContextEx } from "@xylabs/react-shared";
|
|
|
25
25
|
var ChainAnalyzersContext = createContextEx();
|
|
26
26
|
|
|
27
27
|
// src/context/analyzer/Provider.tsx
|
|
28
|
-
import { isUndefined } from "@xylabs/
|
|
28
|
+
import { isUndefined } from "@xylabs/sdk-js";
|
|
29
29
|
import React2, { useCallback, useMemo, useState } from "react";
|
|
30
30
|
var ChainAnalyzersProvider = /* @__PURE__ */ __name(({ analyzers: analyzersProp, children }) => {
|
|
31
31
|
const [analyzersState, setAnalyzersState] = useState(analyzersProp ?? {});
|
|
@@ -138,8 +138,8 @@ var useChainPollingContext = /* @__PURE__ */ __name((required = false) => useCon
|
|
|
138
138
|
|
|
139
139
|
// src/components/transactions/submit/Builder.tsx
|
|
140
140
|
import { Button, FormControl, TextField } from "@mui/material";
|
|
141
|
-
import { toHex } from "@xylabs/hex";
|
|
142
141
|
import { FlexCol } from "@xylabs/react-flexbox";
|
|
142
|
+
import { toHex } from "@xylabs/sdk-js";
|
|
143
143
|
import { defaultTransactionFees } from "@xyo-network/xl1-protocol";
|
|
144
144
|
import React4 from "react";
|
|
145
145
|
var ChainTransactionBuilder = /* @__PURE__ */ __name(({ onSubmitTx }) => {
|
|
@@ -229,7 +229,7 @@ var ChainTransactionNetwork = /* @__PURE__ */ __name(({ network, onNetworkChange
|
|
|
229
229
|
|
|
230
230
|
// src/components/transactions/submit/SubmitChain.tsx
|
|
231
231
|
import { Alert, Grid, Typography } from "@mui/material";
|
|
232
|
-
import {
|
|
232
|
+
import { AxiosJson } from "@xylabs/axios";
|
|
233
233
|
import { ErrorRender } from "@xylabs/react-error";
|
|
234
234
|
import { FlexGrowCol } from "@xylabs/react-flexbox";
|
|
235
235
|
import { Account } from "@xyo-network/account";
|
|
@@ -237,6 +237,7 @@ import { ArchivistInsertQuerySchema } from "@xyo-network/archivist-model";
|
|
|
237
237
|
import { QueryBoundWitnessBuilder } from "@xyo-network/boundwitness-builder";
|
|
238
238
|
import { PayloadBuilder } from "@xyo-network/payload-builder";
|
|
239
239
|
import { buildTransaction } from "@xyo-network/xl1-protocol-sdk";
|
|
240
|
+
import { Axios } from "axios";
|
|
240
241
|
import React6, { useState as useState4 } from "react";
|
|
241
242
|
var BETA_PENDING_TRANSACTIONS_ARCHIVIST = "https://beta.api.chain.xyo.network/8050fee682a2762f504d5449d8269a6f17f0b693";
|
|
242
243
|
var defaultNetwork = new URL(BETA_PENDING_TRANSACTIONS_ARCHIVIST);
|
|
@@ -254,7 +255,7 @@ var SubmitChainTransaction = /* @__PURE__ */ __name(() => {
|
|
|
254
255
|
const [queryBoundWitness] = await new QueryBoundWitnessBuilder().payloads([
|
|
255
256
|
transactionBoundWitness
|
|
256
257
|
]).query(insertQuery).signer(randomAccount).build();
|
|
257
|
-
const response = await
|
|
258
|
+
const response = await new Axios(AxiosJson.axiosConfig()).post(network.href, [
|
|
258
259
|
queryBoundWitness,
|
|
259
260
|
[
|
|
260
261
|
insertQuery,
|
|
@@ -333,7 +334,7 @@ import { QuickTipButton } from "@xylabs/react-quick-tip-button";
|
|
|
333
334
|
import React8, { Fragment, useMemo as useMemo4, useState as useState6 } from "react";
|
|
334
335
|
|
|
335
336
|
// src/hooks/chain-iterator/ChainIteratorStore.ts
|
|
336
|
-
import { assertEx } from "@xylabs/
|
|
337
|
+
import { assertEx } from "@xylabs/sdk-js";
|
|
337
338
|
import { ChainBlockNumberIterationService } from "@xyo-network/chain-services";
|
|
338
339
|
import { PayloadBuilder as PayloadBuilder2 } from "@xyo-network/payload-builder";
|
|
339
340
|
import { hydrateBlock } from "@xyo-network/xl1-protocol-sdk";
|
|
@@ -401,10 +402,9 @@ var ChainIteratorStore = class _ChainIteratorStore {
|
|
|
401
402
|
};
|
|
402
403
|
|
|
403
404
|
// src/hooks/chain-iterator/useChainIteratorParams.ts
|
|
404
|
-
import { assertEx as assertEx2 } from "@xylabs/assert";
|
|
405
|
-
import { isHash } from "@xylabs/hex";
|
|
406
405
|
import { usePromise } from "@xylabs/react-promise";
|
|
407
|
-
import {
|
|
406
|
+
import { isHash } from "@xylabs/sdk-js";
|
|
407
|
+
import { assertEx as assertEx2, isDefined } from "@xylabs/sdk-js";
|
|
408
408
|
import { BoundWitnessBuilder } from "@xyo-network/boundwitness-builder";
|
|
409
409
|
import { isBlockBoundWitness } from "@xyo-network/xl1-protocol";
|
|
410
410
|
import { getDefaultConfig } from "@xyo-network/xl1-protocol-sdk";
|
|
@@ -443,7 +443,7 @@ var useChainIteratorParams = /* @__PURE__ */ __name(({ chainMap, chainId, head,
|
|
|
443
443
|
}, "useChainIteratorParams");
|
|
444
444
|
|
|
445
445
|
// src/hooks/chain-iterator/useChainIteratorUpdatingHead.ts
|
|
446
|
-
import { toHex as toHex2 } from "@xylabs/
|
|
446
|
+
import { toHex as toHex2 } from "@xylabs/sdk-js";
|
|
447
447
|
import { findMostRecentBlock } from "@xyo-network/chain-protocol";
|
|
448
448
|
import { useEffect, useState as useState5 } from "react";
|
|
449
449
|
var useChainIteratorUpdatingHead = /* @__PURE__ */ __name(({ chainIterator, interval = 500, maxBlocks, chainArchivist }) => {
|
|
@@ -484,8 +484,8 @@ var useChainIteratorUpdatingHead = /* @__PURE__ */ __name(({ chainIterator, inte
|
|
|
484
484
|
}, "useChainIteratorUpdatingHead");
|
|
485
485
|
|
|
486
486
|
// src/hooks/useIterateChain.ts
|
|
487
|
-
import { assertEx as assertEx3 } from "@xylabs/assert";
|
|
488
487
|
import { usePromise as usePromise2 } from "@xylabs/react-promise";
|
|
488
|
+
import { assertEx as assertEx3 } from "@xylabs/sdk-js";
|
|
489
489
|
import { ChainBlockNumberIterationService as ChainBlockNumberIterationService2 } from "@xyo-network/chain-services";
|
|
490
490
|
import { PayloadBuilder as PayloadBuilder3 } from "@xyo-network/payload-builder";
|
|
491
491
|
import { isBlockBoundWitness as isBlockBoundWitness2 } from "@xyo-network/xl1-protocol";
|
|
@@ -741,7 +741,7 @@ var usePayloadCountsFromBlock = /* @__PURE__ */ __name((block) => {
|
|
|
741
741
|
|
|
742
742
|
// src/components/block/hooks/useStaticBlockComponents.ts
|
|
743
743
|
import { usePromise as usePromise4 } from "@xylabs/react-promise";
|
|
744
|
-
import { isDefined as isDefined2 } from "@xylabs/
|
|
744
|
+
import { isDefined as isDefined2 } from "@xylabs/sdk-js";
|
|
745
745
|
var useStaticBlockComponents = /* @__PURE__ */ __name((BlockComponent, params, blocks) => {
|
|
746
746
|
const { onBlock } = useChainAnalyzersContext();
|
|
747
747
|
const [blockComponents, blockComponentsError] = usePromise4(async () => {
|
|
@@ -826,9 +826,7 @@ var BlockMenuExpanded = /* @__PURE__ */ __name(({ block }) => {
|
|
|
826
826
|
|
|
827
827
|
// src/components/block/ProducerChip.tsx
|
|
828
828
|
import { Chip as Chip2 } from "@mui/material";
|
|
829
|
-
import { EthAddressWrapper } from "@xylabs/
|
|
830
|
-
import { toAddress } from "@xylabs/hex";
|
|
831
|
-
import { isString, isUndefined as isUndefined2 } from "@xylabs/typeof";
|
|
829
|
+
import { EthAddressWrapper, isString, isUndefined as isUndefined2, toAddress } from "@xylabs/sdk-js";
|
|
832
830
|
import { BlockiesAvatar } from "@xyo-network/react-chain-blockies";
|
|
833
831
|
import React13, { useMemo as useMemo7 } from "react";
|
|
834
832
|
|
|
@@ -964,7 +962,7 @@ var BlockNumberTableCellInner = /* @__PURE__ */ __name(({ blockNumber, linked, .
|
|
|
964
962
|
|
|
965
963
|
// src/components/block/table/cell/Epoch.tsx
|
|
966
964
|
import { Skeleton as Skeleton2, TableCell as TableCell2, Tooltip as Tooltip2, Typography as Typography4 } from "@mui/material";
|
|
967
|
-
import { isDefined as isDefined3 } from "@xylabs/
|
|
965
|
+
import { isDefined as isDefined3 } from "@xylabs/sdk-js";
|
|
968
966
|
import React16 from "react";
|
|
969
967
|
|
|
970
968
|
// src/components/block/table/cell/lib/timeFunctions.ts
|
|
@@ -1055,7 +1053,7 @@ var BlockEpochTableCellInner = /* @__PURE__ */ __name(({ epoch, linked, ...props
|
|
|
1055
1053
|
|
|
1056
1054
|
// src/components/block/table/cell/Hash.tsx
|
|
1057
1055
|
import { Link as Link2, TableCell as TableCell3, Tooltip as Tooltip3 } from "@mui/material";
|
|
1058
|
-
import { isHash as isHash2 } from "@xylabs/
|
|
1056
|
+
import { isHash as isHash2 } from "@xylabs/sdk-js";
|
|
1059
1057
|
import { usePayloadRootHash } from "@xyo-network/react-shared";
|
|
1060
1058
|
import React18, { useState as useState9 } from "react";
|
|
1061
1059
|
|
|
@@ -1115,9 +1113,8 @@ var BlockHashTableCell = /* @__PURE__ */ __name(({ block, notAvailableDialog, li
|
|
|
1115
1113
|
// src/components/block/table/cell/JsonView.tsx
|
|
1116
1114
|
import { DataObject } from "@mui/icons-material";
|
|
1117
1115
|
import { Button as Button3, Dialog as Dialog2, DialogActions as DialogActions2, DialogContent as DialogContent2, DialogTitle as DialogTitle2, IconButton as IconButton2, TableCell as TableCell4 } from "@mui/material";
|
|
1118
|
-
import { ellipsize } from "@xylabs/eth-address";
|
|
1119
|
-
import { isHash as isHash3 } from "@xylabs/hex";
|
|
1120
1116
|
import { FlexRow as FlexRow3 } from "@xylabs/react-flexbox";
|
|
1117
|
+
import { ellipsize, isHash as isHash3 } from "@xylabs/sdk-js";
|
|
1121
1118
|
import { JsonViewerEx } from "@xyo-network/react-payload-raw-info";
|
|
1122
1119
|
import { usePayloadRootHash as usePayloadRootHash2 } from "@xyo-network/react-shared";
|
|
1123
1120
|
import React19, { useState as useState10 } from "react";
|
|
@@ -1412,7 +1409,7 @@ var AddressTableCell = /* @__PURE__ */ __name(({ address, linked, toolTipTitle,
|
|
|
1412
1409
|
|
|
1413
1410
|
// src/components/account/table/BalanceHistoryTable.tsx
|
|
1414
1411
|
import { Table, TableBody as TableBody2, TableCell as TableCell13, TableHead as TableHead2, TableRow as TableRow4 } from "@mui/material";
|
|
1415
|
-
import { isDefined as isDefined5 } from "@xylabs/
|
|
1412
|
+
import { isDefined as isDefined5 } from "@xylabs/sdk-js";
|
|
1416
1413
|
import React27 from "react";
|
|
1417
1414
|
|
|
1418
1415
|
// src/components/account/table/BalanceHistoryTableRow.tsx
|
|
@@ -1422,8 +1419,7 @@ import { useMemo as useMemo10 } from "react";
|
|
|
1422
1419
|
|
|
1423
1420
|
// src/components/account/table/RawAmountTableCell.tsx
|
|
1424
1421
|
import { Link as Link5, TableCell as TableCell11, Tooltip as Tooltip9 } from "@mui/material";
|
|
1425
|
-
import { toHex as toHex3 } from "@xylabs/
|
|
1426
|
-
import { isDefined as isDefined4 } from "@xylabs/typeof";
|
|
1422
|
+
import { isDefined as isDefined4, toHex as toHex3 } from "@xylabs/sdk-js";
|
|
1427
1423
|
import { useEvent as useEvent5 } from "@xyo-network/react-event";
|
|
1428
1424
|
import { XL1Amount } from "@xyo-network/xl1-protocol";
|
|
1429
1425
|
var RawAmountTableCell = /* @__PURE__ */ __name(({ amount, linked, sx, type, ...props }) => {
|
|
@@ -1875,7 +1871,7 @@ var BlockListAnimated = /* @__PURE__ */ __name(({ blockChainRenderComponents })
|
|
|
1875
1871
|
}, "BlockListAnimated");
|
|
1876
1872
|
|
|
1877
1873
|
// src/components/chain/render/static/hooks/useStaticBlockRenderComponents.ts
|
|
1878
|
-
import { exists } from "@xylabs/
|
|
1874
|
+
import { exists } from "@xylabs/sdk-js";
|
|
1879
1875
|
import { useMemo as useMemo13 } from "react";
|
|
1880
1876
|
var DEFAULT_PAGE_SIZE = 25;
|
|
1881
1877
|
var useStaticBlockRenderComponents = /* @__PURE__ */ __name((BlockComponent, blockChainRenderProps) => {
|
|
@@ -1930,7 +1926,7 @@ var StaticListBase = /* @__PURE__ */ __name(({ blockChainRenderProps, ...props }
|
|
|
1930
1926
|
}, "StaticListBase");
|
|
1931
1927
|
|
|
1932
1928
|
// src/components/chain/render/static/flexbox/variants/WithAnalysis.tsx
|
|
1933
|
-
import { isAddress } from "@xylabs/
|
|
1929
|
+
import { isAddress } from "@xylabs/sdk-js";
|
|
1934
1930
|
import { ChainProducersAnalyzer } from "@xyo-network/chain-analyze";
|
|
1935
1931
|
import React38, { useMemo as useMemo14 } from "react";
|
|
1936
1932
|
var WithAnalysis = /* @__PURE__ */ __name(({ blockChainRenderProps, ...props }) => {
|
|
@@ -2012,7 +2008,7 @@ var BlockNumberTextField = /* @__PURE__ */ __name(({ errorMessage, onBlockNumber
|
|
|
2012
2008
|
|
|
2013
2009
|
// src/components/payload/fields/XyoAddressTextField.tsx
|
|
2014
2010
|
import { FormControl as FormControl4, FormHelperText as FormHelperText3, TextField as TextField4 } from "@mui/material";
|
|
2015
|
-
import { asAddress, isAddress as isAddress2 } from "@xylabs/
|
|
2011
|
+
import { asAddress, isAddress as isAddress2 } from "@xylabs/sdk-js";
|
|
2016
2012
|
import React41, { useMemo as useMemo15, useState as useState16 } from "react";
|
|
2017
2013
|
var XyoAddressTextField = /* @__PURE__ */ __name(({ onAddressChanged, onChange, resetValue, ...props }) => {
|
|
2018
2014
|
const [address, setAddress] = useState16("");
|
|
@@ -2116,15 +2112,15 @@ import React45 from "react";
|
|
|
2116
2112
|
|
|
2117
2113
|
// src/components/payload/builder/transfer/Form.tsx
|
|
2118
2114
|
import { Button as Button6, FormControl as FormControl7 } from "@mui/material";
|
|
2119
|
-
import { isAddress as isAddress4 } from "@xylabs/
|
|
2115
|
+
import { isAddress as isAddress4 } from "@xylabs/sdk-js";
|
|
2120
2116
|
import { TransferSchema } from "@xyo-network/xl1-protocol";
|
|
2121
2117
|
import React44, { useMemo as useMemo18, useState as useState19 } from "react";
|
|
2122
2118
|
|
|
2123
2119
|
// src/components/payload/builder/transfer/builder/SingleFlexbox.tsx
|
|
2124
2120
|
import { RemoveCircle } from "@mui/icons-material";
|
|
2125
2121
|
import { FormControl as FormControl6, Icon as Icon3, IconButton as IconButton5 } from "@mui/material";
|
|
2126
|
-
import { isAddress as isAddress3, toHex as toHex4 } from "@xylabs/hex";
|
|
2127
2122
|
import { FlexRow as FlexRow7 } from "@xylabs/react-flexbox";
|
|
2123
|
+
import { isAddress as isAddress3, toHex as toHex4 } from "@xylabs/sdk-js";
|
|
2128
2124
|
import { BigIntInput } from "@xyo-network/react-shared";
|
|
2129
2125
|
import React43, { useEffect as useEffect3, useMemo as useMemo17, useState as useState18 } from "react";
|
|
2130
2126
|
var SingleTransferBuilderFlexbox = /* @__PURE__ */ __name(({ onTransferUpdated, onRemoveTransfer, singleTransfer, ...props }) => {
|
|
@@ -2264,7 +2260,7 @@ import { flattenHydratedBlocks } from "@xyo-network/xl1-protocol-sdk";
|
|
|
2264
2260
|
import React46, { useEffect as useEffect4 } from "react";
|
|
2265
2261
|
|
|
2266
2262
|
// src/lib/getChainArchivist.ts
|
|
2267
|
-
import { assertEx as assertEx4 } from "@xylabs/
|
|
2263
|
+
import { assertEx as assertEx4 } from "@xylabs/sdk-js";
|
|
2268
2264
|
import { asArchivistInstance } from "@xyo-network/archivist-model";
|
|
2269
2265
|
import { HttpBridge, HttpBridgeConfigSchema } from "@xyo-network/bridge-http";
|
|
2270
2266
|
var getChainArchivistFromBridge = /* @__PURE__ */ __name(async (params) => {
|
|
@@ -2284,7 +2280,7 @@ var getChainArchivistFromBridge = /* @__PURE__ */ __name(async (params) => {
|
|
|
2284
2280
|
}, "getChainArchivistFromBridge");
|
|
2285
2281
|
|
|
2286
2282
|
// src/lib/getChainId.ts
|
|
2287
|
-
import { toAddress as toAddress2 } from "@xylabs/
|
|
2283
|
+
import { toAddress as toAddress2 } from "@xylabs/sdk-js";
|
|
2288
2284
|
var id = toAddress2("ce080bf3043a40c6c8838c7e813c00ab53df1684");
|
|
2289
2285
|
var getChainId = /* @__PURE__ */ __name(() => {
|
|
2290
2286
|
return id;
|
|
@@ -2335,8 +2331,8 @@ var ChainArchivistDecorator = /* @__PURE__ */ __name((Story, { args, ...context
|
|
|
2335
2331
|
|
|
2336
2332
|
// src/stories/ChainArchivistDelayedInsertDecorator.tsx
|
|
2337
2333
|
import { CircularProgress as CircularProgress2 } from "@mui/material";
|
|
2338
|
-
import { delay } from "@xylabs/delay";
|
|
2339
2334
|
import { usePromise as usePromise6 } from "@xylabs/react-promise";
|
|
2335
|
+
import { delay } from "@xylabs/sdk-js";
|
|
2340
2336
|
import { MemoryArchivist as MemoryArchivist2 } from "@xyo-network/archivist-memory";
|
|
2341
2337
|
import { ArchivistConfigSchema as ArchivistConfigSchema2 } from "@xyo-network/archivist-model";
|
|
2342
2338
|
import { buildRandomBlockChain as buildRandomBlockChain2 } from "@xyo-network/react-chain-shared";
|
|
@@ -2403,9 +2399,8 @@ var ChainArchivistDelayedInsertDecorator = /* @__PURE__ */ __name((Story, contex
|
|
|
2403
2399
|
}, "ChainArchivistDelayedInsertDecorator");
|
|
2404
2400
|
|
|
2405
2401
|
// src/stories/ChainInfoContextDecorator.tsx
|
|
2406
|
-
import { assertEx as assertEx5 } from "@xylabs/assert";
|
|
2407
2402
|
import { usePromise as usePromise7 } from "@xylabs/react-promise";
|
|
2408
|
-
import { isDefined as isDefined7 } from "@xylabs/
|
|
2403
|
+
import { assertEx as assertEx5, isDefined as isDefined7 } from "@xylabs/sdk-js";
|
|
2409
2404
|
import { ChainBlockNumberIterationService as ChainBlockNumberIterationService3 } from "@xyo-network/chain-services";
|
|
2410
2405
|
import { findFirstMatching } from "@xyo-network/chain-utils";
|
|
2411
2406
|
import { isBlockBoundWitness as isBlockBoundWitness3 } from "@xyo-network/xl1-protocol";
|