@xyo-network/react-chain-blockchain 1.3.17 → 1.3.18
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/index.mjs +8 -6
- package/dist/browser/index.mjs.map +1 -1
- package/dist/types/components/transactions/TransactionsQuickTipButton.d.ts.map +1 -1
- package/dist/types/helpers/txsFromBlock.d.ts +2 -8
- package/dist/types/helpers/txsFromBlock.d.ts.map +1 -1
- package/dist/types/hooks/useTxsFromBlock.d.ts +1 -7
- package/dist/types/hooks/useTxsFromBlock.d.ts.map +1 -1
- package/package.json +30 -29
- package/src/components/transactions/TransactionsQuickTipButton.tsx +2 -1
- package/src/helpers/txsFromBlock.ts +6 -4
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionsQuickTipButton.d.ts","sourceRoot":"","sources":["../../../../src/components/transactions/TransactionsQuickTipButton.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAA;AAEzE,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,
|
|
1
|
+
{"version":3,"file":"TransactionsQuickTipButton.d.ts","sourceRoot":"","sources":["../../../../src/components/transactions/TransactionsQuickTipButton.tsx"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,gCAAgC,CAAA;AAEzE,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,9 +1,3 @@
|
|
|
1
|
-
import type
|
|
2
|
-
export declare const txsFromBlock: (block: HydratedBlock) => Promise<[import("@
|
|
3
|
-
schema: string;
|
|
4
|
-
}> & Partial<import("@xyo-network/payload-model").PayloadMetaFields> & import("@xyo-network/payload-model").StorageMeta & import("@xylabs/object").DeepRestrictToStringKeys<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/boundwitness-model").BoundWitnessFields & import("@xyo-network/xl1-protocol").TransactionBoundWitnessFields & object & Partial<import("@xyo-network/xl1-protocol").ExecutableFields> & import("@xyo-network/xl1-protocol").FromFields & {
|
|
5
|
-
schema: "network.xyo.boundwitness";
|
|
6
|
-
}> & import("@xyo-network/boundwitness-model").BoundWitnessMeta & {
|
|
7
|
-
$signatures: import("@xylabs/hex").Hex[];
|
|
8
|
-
}, Lowercase<string>][]>;
|
|
1
|
+
import { type HydratedBlock } from '@xyo-network/xl1-protocol';
|
|
2
|
+
export declare const txsFromBlock: (block: HydratedBlock) => Promise<[import("@xyo-network/xl1-protocol").TransactionBoundWitness, Lowercase<string>][]>;
|
|
9
3
|
//# sourceMappingURL=txsFromBlock.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"txsFromBlock.d.ts","sourceRoot":"","sources":["../../../src/helpers/txsFromBlock.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"txsFromBlock.d.ts","sourceRoot":"","sources":["../../../src/helpers/txsFromBlock.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAE9D,eAAO,MAAM,YAAY,GAAU,OAAO,aAAa,gGAKtD,CAAA"}
|
|
@@ -1,9 +1,3 @@
|
|
|
1
1
|
import { type HydratedBlock } from '@xyo-network/xl1-protocol';
|
|
2
|
-
export declare const useTxsFromBlock: (block?: HydratedBlock) => [[import("@
|
|
3
|
-
schema: string;
|
|
4
|
-
}> & Partial<import("@xyo-network/payload-model").PayloadMetaFields> & import("@xyo-network/payload-model").StorageMeta & import("@xylabs/object").DeepRestrictToStringKeys<import("@xyo-network/payload-model").SchemaFields & import("@xyo-network/payload-model").PayloadFields & import("@xyo-network/boundwitness-model").BoundWitnessFields & import("@xyo-network/xl1-protocol").TransactionBoundWitnessFields & object & Partial<import("@xyo-network/xl1-protocol").ExecutableFields> & import("@xyo-network/xl1-protocol").FromFields & {
|
|
5
|
-
schema: "network.xyo.boundwitness";
|
|
6
|
-
}> & import("@xyo-network/boundwitness-model").BoundWitnessMeta & {
|
|
7
|
-
$signatures: import("@xylabs/hex").Hex[];
|
|
8
|
-
}, Lowercase<string>][] | undefined, Error | undefined, import("@xylabs/react-promise").UsePromiseState | undefined];
|
|
2
|
+
export declare const useTxsFromBlock: (block?: HydratedBlock) => [[import("@xyo-network/xl1-protocol").TransactionBoundWitness, Lowercase<string>][] | undefined, Error | undefined, import("@xylabs/react-promise").UsePromiseState | undefined];
|
|
9
3
|
//# sourceMappingURL=useTxsFromBlock.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTxsFromBlock.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTxsFromBlock.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAI9D,eAAO,MAAM,eAAe,GAAI,QAAQ,aAAa
|
|
1
|
+
{"version":3,"file":"useTxsFromBlock.d.ts","sourceRoot":"","sources":["../../../src/hooks/useTxsFromBlock.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,KAAK,aAAa,EAAE,MAAM,2BAA2B,CAAA;AAI9D,eAAO,MAAM,eAAe,GAAI,QAAQ,aAAa,qLAMpD,CAAA"}
|
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.3.
|
|
4
|
+
"version": "1.3.18",
|
|
5
5
|
"description": "XYO Layer One React SDK Blockchain",
|
|
6
6
|
"homepage": "https://xylabs.com",
|
|
7
7
|
"bugs": {
|
|
@@ -37,12 +37,12 @@
|
|
|
37
37
|
"package-cycle": "echo Nothing to do"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@xylabs/assert": "^4.9.
|
|
41
|
-
"@xylabs/axios": "^4.9.
|
|
42
|
-
"@xylabs/eth-address": "^4.9.
|
|
43
|
-
"@xylabs/exists": "^4.9.
|
|
44
|
-
"@xylabs/hex": "^4.9.
|
|
45
|
-
"@xylabs/promise": "^4.9.
|
|
40
|
+
"@xylabs/assert": "^4.9.4",
|
|
41
|
+
"@xylabs/axios": "^4.9.4",
|
|
42
|
+
"@xylabs/eth-address": "^4.9.4",
|
|
43
|
+
"@xylabs/exists": "^4.9.4",
|
|
44
|
+
"@xylabs/hex": "^4.9.4",
|
|
45
|
+
"@xylabs/promise": "^4.9.4",
|
|
46
46
|
"@xylabs/react-animation": "^6.2.19",
|
|
47
47
|
"@xylabs/react-error": "^6.2.19",
|
|
48
48
|
"@xylabs/react-flexbox": "^6.2.19",
|
|
@@ -50,26 +50,27 @@
|
|
|
50
50
|
"@xylabs/react-promise": "^6.2.19",
|
|
51
51
|
"@xylabs/react-quick-tip-button": "^6.2.19",
|
|
52
52
|
"@xylabs/react-theme": "^6.2.19",
|
|
53
|
-
"@xyo-network/account": "^3.14.
|
|
54
|
-
"@xyo-network/archivist-model": "^3.14.
|
|
55
|
-
"@xyo-network/boundwitness-builder": "^3.14.
|
|
56
|
-
"@xyo-network/boundwitness-model": "^3.14.
|
|
57
|
-
"@xyo-network/bridge-http": "^3.14.
|
|
58
|
-
"@xyo-network/chain-analyze": "^1.3.
|
|
59
|
-
"@xyo-network/chain-protocol": "^1.3.
|
|
60
|
-
"@xyo-network/chain-services": "^1.3.
|
|
61
|
-
"@xyo-network/
|
|
62
|
-
"@xyo-network/
|
|
63
|
-
"@xyo-network/payload-
|
|
53
|
+
"@xyo-network/account": "^3.14.18",
|
|
54
|
+
"@xyo-network/archivist-model": "^3.14.18",
|
|
55
|
+
"@xyo-network/boundwitness-builder": "^3.14.18",
|
|
56
|
+
"@xyo-network/boundwitness-model": "^3.14.18",
|
|
57
|
+
"@xyo-network/bridge-http": "^3.14.18",
|
|
58
|
+
"@xyo-network/chain-analyze": "^1.3.18",
|
|
59
|
+
"@xyo-network/chain-protocol": "^1.3.18",
|
|
60
|
+
"@xyo-network/chain-services": "^1.3.18",
|
|
61
|
+
"@xyo-network/chain-wrappers": "^1.3.18",
|
|
62
|
+
"@xyo-network/module-model": "^3.14.18",
|
|
63
|
+
"@xyo-network/payload-builder": "^3.14.18",
|
|
64
|
+
"@xyo-network/payload-model": "^3.14.18",
|
|
64
65
|
"@xyo-network/react-boundwitness-plugin": "^5.2.8",
|
|
65
|
-
"@xyo-network/react-chain-blockies": "^1.3.
|
|
66
|
+
"@xyo-network/react-chain-blockies": "^1.3.18",
|
|
66
67
|
"@xyo-network/react-event": "^5.2.8",
|
|
67
68
|
"@xyo-network/react-payload-raw-info": "^5.2.8",
|
|
68
69
|
"@xyo-network/react-payload-table": "^5.2.8",
|
|
69
70
|
"@xyo-network/react-shared": "^5.2.8",
|
|
70
71
|
"@xyo-network/react-table": "^5.2.8",
|
|
71
72
|
"@xyo-network/xl1-protocol": "^1.3.12",
|
|
72
|
-
"@xyo-network/xl1-protocol-sdk": "^1.3.
|
|
73
|
+
"@xyo-network/xl1-protocol-sdk": "^1.3.18"
|
|
73
74
|
},
|
|
74
75
|
"devDependencies": {
|
|
75
76
|
"@emotion/react": "^11.14.0",
|
|
@@ -78,19 +79,19 @@
|
|
|
78
79
|
"@mui/material": "^7.1.0",
|
|
79
80
|
"@storybook/react": "^8.6.12",
|
|
80
81
|
"@types/react": "^19.1.3",
|
|
81
|
-
"@xylabs/delay": "^4.9.
|
|
82
|
-
"@xylabs/hex": "^4.9.
|
|
82
|
+
"@xylabs/delay": "^4.9.4",
|
|
83
|
+
"@xylabs/hex": "^4.9.4",
|
|
83
84
|
"@xylabs/ts-scripts-yarn3": "^6.5.5",
|
|
84
85
|
"@xylabs/tsconfig-react": "^6.5.5",
|
|
85
|
-
"@xyo-network/api-models": "^3.14.
|
|
86
|
-
"@xyo-network/archivist-memory": "^3.14.
|
|
87
|
-
"@xyo-network/chain-ethereum": "^1.3.
|
|
88
|
-
"@xyo-network/chain-utils": "^1.3.
|
|
89
|
-
"@xyo-network/react-chain-shared": "^1.3.
|
|
90
|
-
"knip": "^5.
|
|
86
|
+
"@xyo-network/api-models": "^3.14.18",
|
|
87
|
+
"@xyo-network/archivist-memory": "^3.14.18",
|
|
88
|
+
"@xyo-network/chain-ethereum": "^1.3.18",
|
|
89
|
+
"@xyo-network/chain-utils": "^1.3.18",
|
|
90
|
+
"@xyo-network/react-chain-shared": "^1.3.18",
|
|
91
|
+
"knip": "^5.55.1",
|
|
91
92
|
"react": "^19.1.0",
|
|
92
93
|
"react-dom": "^19.1.0",
|
|
93
|
-
"react-router-dom": "^7.
|
|
94
|
+
"react-router-dom": "^7.6.0",
|
|
94
95
|
"storybook": "^8.6.12",
|
|
95
96
|
"typescript": "^5.8.3"
|
|
96
97
|
},
|
|
@@ -49,6 +49,7 @@ export const TransactionsQuickTipButton: React.FC<TransactionsQuickTipButtonQuic
|
|
|
49
49
|
? null
|
|
50
50
|
: (
|
|
51
51
|
<FlexGrowCol gap={1} alignItems="stretch">
|
|
52
|
+
{/* eslint-disable-next-line @typescript-eslint/no-unused-vars */}
|
|
52
53
|
{transactions?.map(([transaction, hash]) => (
|
|
53
54
|
<Fragment key={hash}>
|
|
54
55
|
<FlexGrowRow gap={2} justifyContent="start">
|
|
@@ -57,7 +58,7 @@ export const TransactionsQuickTipButton: React.FC<TransactionsQuickTipButtonQuic
|
|
|
57
58
|
overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap',
|
|
58
59
|
}}
|
|
59
60
|
>
|
|
60
|
-
{
|
|
61
|
+
{hash}
|
|
61
62
|
</Typography>
|
|
62
63
|
</FlexGrowRow>
|
|
63
64
|
<FlexRow>
|
|
@@ -1,8 +1,10 @@
|
|
|
1
|
+
import { SignedHydratedBlockWrapper } from '@xyo-network/chain-wrappers'
|
|
1
2
|
import { PayloadBuilder } from '@xyo-network/payload-builder'
|
|
2
|
-
import type
|
|
3
|
-
import { isTransactionBoundWitness } from '@xyo-network/xl1-protocol'
|
|
3
|
+
import { type HydratedBlock } from '@xyo-network/xl1-protocol'
|
|
4
4
|
|
|
5
5
|
export const txsFromBlock = async (block: HydratedBlock) => {
|
|
6
|
-
const
|
|
7
|
-
|
|
6
|
+
const wrapper = await SignedHydratedBlockWrapper.parse(block)
|
|
7
|
+
const txs = wrapper.transactions
|
|
8
|
+
const txPayloads = txs.map(tx => tx.boundWitness)
|
|
9
|
+
return await PayloadBuilder.hashPairs(txPayloads)
|
|
8
10
|
}
|