@xyo-network/react-chain-boundwitness 1.7.19 → 1.7.20
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/transactions/TransactionBoundWitnessDetails.stories.d.ts.map +1 -1
- package/dist/browser/components/transactions/hooks/usePayloadTypes.d.ts +4 -3
- package/dist/browser/components/transactions/hooks/usePayloadTypes.d.ts.map +1 -1
- package/dist/browser/lib/formatPayloadsForTable.d.ts +1 -1
- package/package.json +51 -51
- package/src/components/transactions/TransactionBoundWitnessDetails.stories.tsx +8 -3
package/dist/browser/components/transactions/TransactionBoundWitnessDetails.stories.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"TransactionBoundWitnessDetails.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/transactions/TransactionBoundWitnessDetails.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAA;
|
|
1
|
+
{"version":3,"file":"TransactionBoundWitnessDetails.stories.d.ts","sourceRoot":"","sources":["../../../../src/components/transactions/TransactionBoundWitnessDetails.stories.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,uBAAuB,CAAA;wBAerD,IAAI;AAHT,wBAGS;AAwBT,QAAA,MAAM,OAAO,sLAAoB,CAAA;AAGjC,QAAA,MAAM,QAAQ,sLAAoB,CAAA;AAGlC,QAAA,MAAM,cAAc,sLAA8B,CAAA;AAGlD,QAAA,MAAM,eAAe,sLAAoB,CAAA;AAGzC,OAAO,EACL,OAAO,EAAE,QAAQ,EAAE,cAAc,EAAE,eAAe,GACnD,CAAA"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
|
+
import type { Hash } from '@xylabs/hex';
|
|
1
2
|
import type { HydratedTransactionInstance } from '@xyo-network/xl1-protocol-sdk';
|
|
2
3
|
export declare const useTransactionPayloadTypes: (wrapper?: HydratedTransactionInstance) => {
|
|
3
|
-
elevatedPayloadHashes:
|
|
4
|
+
elevatedPayloadHashes: Hash[] | undefined;
|
|
4
5
|
elevatedPayloadSchemas: string[] | undefined;
|
|
5
6
|
elevatedPayloadSetsError: Error | undefined;
|
|
6
|
-
publicPayloadHashes:
|
|
7
|
+
publicPayloadHashes: Hash[] | undefined;
|
|
7
8
|
publicPayloadSchemas: string[] | undefined;
|
|
8
9
|
publicPayloadsError: Error | undefined;
|
|
9
|
-
referencedPayloadHashes:
|
|
10
|
+
referencedPayloadHashes: Hash[];
|
|
10
11
|
referencedPayloadSchemas: string[];
|
|
11
12
|
referencedPayloadsError: Error[];
|
|
12
13
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePayloadTypes.d.ts","sourceRoot":"","sources":["../../../../../src/components/transactions/hooks/usePayloadTypes.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"usePayloadTypes.d.ts","sourceRoot":"","sources":["../../../../../src/components/transactions/hooks/usePayloadTypes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,aAAa,CAAA;AAOvC,OAAO,KAAK,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAA;AAKhF,eAAO,MAAM,0BAA0B,GAAI,UAAU,2BAA2B;;;;;;;;;;CA6D/E,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Hash } from '@xylabs/hex';
|
|
2
2
|
import type { Payload } from '@xyo-network/payload-model';
|
|
3
3
|
export declare const formatPayloadsForTable: (pairs: [Payload, Hash][]) => {
|
|
4
|
-
hashes:
|
|
4
|
+
hashes: Hash[];
|
|
5
5
|
schemas: string[];
|
|
6
6
|
};
|
|
7
7
|
//# sourceMappingURL=formatPayloadsForTable.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-boundwitness",
|
|
4
|
-
"version": "1.7.
|
|
4
|
+
"version": "1.7.20",
|
|
5
5
|
"description": "XYO Layer One React SDK BoundWitness",
|
|
6
6
|
"homepage": "https://xylabs.com",
|
|
7
7
|
"bugs": {
|
|
@@ -41,62 +41,62 @@
|
|
|
41
41
|
"src"
|
|
42
42
|
],
|
|
43
43
|
"dependencies": {
|
|
44
|
-
"@xylabs/array": "
|
|
45
|
-
"@xylabs/assert": "
|
|
46
|
-
"@xylabs/eth-address": "
|
|
47
|
-
"@xylabs/hex": "
|
|
48
|
-
"@xylabs/react-error": "
|
|
49
|
-
"@xylabs/react-flexbox": "
|
|
50
|
-
"@xylabs/react-promise": "
|
|
51
|
-
"@xylabs/react-quick-tip-button": "
|
|
52
|
-
"@xylabs/typeof": "
|
|
53
|
-
"@xyo-network/boundwitness-model": "
|
|
54
|
-
"@xyo-network/chain-utils": "
|
|
55
|
-
"@xyo-network/chain-validation": "
|
|
56
|
-
"@xyo-network/chain-wrappers": "
|
|
57
|
-
"@xyo-network/payload-builder": "
|
|
58
|
-
"@xyo-network/payload-model": "
|
|
59
|
-
"@xyo-network/react-boundwitness-plugin": "
|
|
60
|
-
"@xyo-network/react-chain-blockchain": "
|
|
61
|
-
"@xyo-network/react-chain-blockies": "
|
|
62
|
-
"@xyo-network/react-chain-shared": "
|
|
63
|
-
"@xyo-network/react-event": "
|
|
64
|
-
"@xyo-network/react-shared": "
|
|
65
|
-
"@xyo-network/react-table": "
|
|
66
|
-
"@xyo-network/xl1-protocol": "
|
|
67
|
-
"@xyo-network/xl1-protocol-sdk": "
|
|
68
|
-
"@xyo-network/xl1-validation": "
|
|
69
|
-
"@xyo-network/xl1-wrappers": "
|
|
70
|
-
"react-icons": "
|
|
44
|
+
"@xylabs/array": "^4.15.0",
|
|
45
|
+
"@xylabs/assert": "^4.15.0",
|
|
46
|
+
"@xylabs/eth-address": "^4.15.0",
|
|
47
|
+
"@xylabs/hex": "^4.15.0",
|
|
48
|
+
"@xylabs/react-error": "^6.4.0",
|
|
49
|
+
"@xylabs/react-flexbox": "^6.4.0",
|
|
50
|
+
"@xylabs/react-promise": "^6.4.0",
|
|
51
|
+
"@xylabs/react-quick-tip-button": "^6.4.0",
|
|
52
|
+
"@xylabs/typeof": "^4.15.0",
|
|
53
|
+
"@xyo-network/boundwitness-model": "^4.3.0",
|
|
54
|
+
"@xyo-network/chain-utils": "^1.7.20",
|
|
55
|
+
"@xyo-network/chain-validation": "^1.7.20",
|
|
56
|
+
"@xyo-network/chain-wrappers": "^1.7.20",
|
|
57
|
+
"@xyo-network/payload-builder": "^4.3.0",
|
|
58
|
+
"@xyo-network/payload-model": "^4.3.0",
|
|
59
|
+
"@xyo-network/react-boundwitness-plugin": "^6.2.0",
|
|
60
|
+
"@xyo-network/react-chain-blockchain": "^1.7.20",
|
|
61
|
+
"@xyo-network/react-chain-blockies": "^1.7.20",
|
|
62
|
+
"@xyo-network/react-chain-shared": "^1.7.20",
|
|
63
|
+
"@xyo-network/react-event": "^6.2.0",
|
|
64
|
+
"@xyo-network/react-shared": "^6.2.0",
|
|
65
|
+
"@xyo-network/react-table": "^6.2.0",
|
|
66
|
+
"@xyo-network/xl1-protocol": "^1.7.33",
|
|
67
|
+
"@xyo-network/xl1-protocol-sdk": "^1.7.20",
|
|
68
|
+
"@xyo-network/xl1-validation": "^1.7.20",
|
|
69
|
+
"@xyo-network/xl1-wrappers": "^1.7.20",
|
|
70
|
+
"react-icons": "^5.5.0"
|
|
71
71
|
},
|
|
72
72
|
"devDependencies": {
|
|
73
|
-
"@emotion/react": "
|
|
74
|
-
"@emotion/styled": "
|
|
75
|
-
"@mui/icons-material": "
|
|
76
|
-
"@mui/material": "
|
|
77
|
-
"@storybook/react-vite": "
|
|
78
|
-
"@xylabs/ts-scripts-yarn3": "
|
|
79
|
-
"@xylabs/tsconfig-react": "
|
|
80
|
-
"@xyo-network/account": "
|
|
81
|
-
"@xyo-network/chain-network-model": "
|
|
82
|
-
"@xyo-network/chain-protocol": "
|
|
83
|
-
"@xyo-network/react-chain-network": "
|
|
84
|
-
"@xyo-network/react-chain-provider": "
|
|
85
|
-
"@xyo-network/react-chain-shared": "
|
|
86
|
-
"knip": "
|
|
87
|
-
"react": "
|
|
88
|
-
"react-dom": "
|
|
89
|
-
"react-router-dom": "
|
|
90
|
-
"typescript": "
|
|
73
|
+
"@emotion/react": "^11.14.0",
|
|
74
|
+
"@emotion/styled": "^11.14.1",
|
|
75
|
+
"@mui/icons-material": "^7.2.0",
|
|
76
|
+
"@mui/material": "^7.2.0",
|
|
77
|
+
"@storybook/react-vite": "^9.0.18",
|
|
78
|
+
"@xylabs/ts-scripts-yarn3": "^7.0.1",
|
|
79
|
+
"@xylabs/tsconfig-react": "^7.0.1",
|
|
80
|
+
"@xyo-network/account": "^4.3.0",
|
|
81
|
+
"@xyo-network/chain-network-model": "^1.7.20",
|
|
82
|
+
"@xyo-network/chain-protocol": "^1.7.20",
|
|
83
|
+
"@xyo-network/react-chain-network": "^1.7.20",
|
|
84
|
+
"@xyo-network/react-chain-provider": "^1.7.20",
|
|
85
|
+
"@xyo-network/react-chain-shared": "^1.7.20",
|
|
86
|
+
"knip": "^5.62.0",
|
|
87
|
+
"react": "^19.1.1",
|
|
88
|
+
"react-dom": "^19.1.1",
|
|
89
|
+
"react-router-dom": "^7.7.1",
|
|
90
|
+
"typescript": "^5.8.3"
|
|
91
91
|
},
|
|
92
92
|
"peerDependencies": {
|
|
93
|
-
"@emotion/react": "
|
|
94
|
-
"@emotion/styled": "
|
|
93
|
+
"@emotion/react": "^11",
|
|
94
|
+
"@emotion/styled": "^11",
|
|
95
95
|
"@mui/icons-material": ">=6 <8",
|
|
96
96
|
"@mui/material": ">=6 <8",
|
|
97
|
-
"react": "
|
|
98
|
-
"react-dom": "
|
|
99
|
-
"react-router-dom": "
|
|
97
|
+
"react": "^19",
|
|
98
|
+
"react-dom": "^19",
|
|
99
|
+
"react-router-dom": "^7"
|
|
100
100
|
},
|
|
101
101
|
"publishConfig": {
|
|
102
102
|
"access": "restricted"
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import type { Meta, StoryFn } from '@storybook/react-vite'
|
|
2
|
+
import { assertEx } from '@xylabs/assert'
|
|
3
|
+
import type { Address } from '@xylabs/hex'
|
|
4
|
+
import { asHash, toAddress } from '@xylabs/hex'
|
|
2
5
|
import { Account } from '@xyo-network/account'
|
|
3
6
|
import { useEvent } from '@xyo-network/react-event'
|
|
4
7
|
import type { HashPayload, HydratedTransaction } from '@xyo-network/xl1-protocol'
|
|
@@ -12,12 +15,14 @@ export default {
|
|
|
12
15
|
component: TransactionBoundWitnessDetails,
|
|
13
16
|
} as Meta
|
|
14
17
|
|
|
15
|
-
const
|
|
18
|
+
const hash = assertEx(asHash('1234567890abcdef1234567890abcdef1234567890abcdef1234567890abcdef'))
|
|
19
|
+
const elevated: HashPayload = { schema: 'network.xyo.hash', hash }
|
|
16
20
|
const publicPayload = { schema: 'network.xyo.test.public', test: '123' }
|
|
17
21
|
const referenced = { schema: 'network.xyo.test.referenced', test: '123' }
|
|
18
22
|
const signer = await Account.random()
|
|
19
|
-
const
|
|
20
|
-
const
|
|
23
|
+
const chainId = toAddress('a82920051db4fcbb804463440dd45e03f72442fd')
|
|
24
|
+
const builtTx = await buildTransaction(chainId, [elevated], [publicPayload, referenced], signer, 0, 1)
|
|
25
|
+
const builtInvalidTx = await buildTransaction('0x123' as Address, [elevated], [publicPayload, referenced], signer, 0, 1)
|
|
21
26
|
const tx = [builtTx[0], builtTx[1].filter(payload => payload.schema !== referenced.schema)] as HydratedTransaction// HydratedTransaction
|
|
22
27
|
const invalidTx = [builtInvalidTx[0], builtInvalidTx[1].filter(payload => payload.schema !== referenced.schema)] as HydratedTransaction// HydratedTransaction
|
|
23
28
|
|