@xyo-network/react-chain-blockchain 1.7.19 → 1.8.0

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.
@@ -1,4 +1,4 @@
1
- import type { Address } from '@xylabs/hex';
1
+ import { type Address } from '@xylabs/hex';
2
2
  import type { Promisable } from '@xylabs/promise';
3
3
  export declare const getChainId: () => Promisable<Address>;
4
4
  //# sourceMappingURL=getChainId.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getChainId.d.ts","sourceRoot":"","sources":["../../../src/lib/getChainId.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAIjD,eAAO,MAAM,UAAU,QAAO,UAAU,CAAC,OAAO,CAE/C,CAAA"}
1
+ {"version":3,"file":"getChainId.d.ts","sourceRoot":"","sources":["../../../src/lib/getChainId.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,OAAO,EAAa,MAAM,aAAa,CAAA;AACrD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAIjD,eAAO,MAAM,UAAU,QAAO,UAAU,CAAC,OAAO,CAE/C,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.7.19",
4
+ "version": "1.8.0",
5
5
  "description": "XYO Layer One React SDK Blockchain",
6
6
  "homepage": "https://xylabs.com",
7
7
  "bugs": {
@@ -44,71 +44,71 @@
44
44
  "package-cycle": "echo Nothing to do"
45
45
  },
46
46
  "dependencies": {
47
- "@storybook/react-vite": "~9.0.18",
48
- "@xylabs/assert": "~4.13.23",
49
- "@xylabs/axios": "~4.13.23",
50
- "@xylabs/delay": "~4.13.23",
51
- "@xylabs/eth-address": "~4.13.23",
52
- "@xylabs/exists": "~4.13.23",
53
- "@xylabs/hex": "~4.13.23",
54
- "@xylabs/promise": "~4.13.23",
55
- "@xylabs/react-animation": "~6.3.13",
56
- "@xylabs/react-error": "~6.3.13",
57
- "@xylabs/react-flexbox": "~6.3.13",
58
- "@xylabs/react-promise": "~6.3.13",
59
- "@xylabs/react-quick-tip-button": "~6.3.13",
60
- "@xylabs/react-shared": "~6.3.13",
61
- "@xylabs/react-theme": "~6.3.13",
62
- "@xylabs/typeof": "~4.13.23",
63
- "@xyo-network/account": "~4.1.7",
64
- "@xyo-network/archivist-memory": "~4.1.7",
65
- "@xyo-network/archivist-model": "~4.1.7",
66
- "@xyo-network/boundwitness-builder": "~4.1.7",
67
- "@xyo-network/boundwitness-model": "~4.1.7",
68
- "@xyo-network/bridge-http": "~4.1.7",
69
- "@xyo-network/chain-analyze": "~1.7.19",
70
- "@xyo-network/chain-protocol": "~1.7.19",
71
- "@xyo-network/chain-services": "~1.7.19",
72
- "@xyo-network/chain-utils": "~1.7.19",
73
- "@xyo-network/chain-wrappers": "~1.7.19",
74
- "@xyo-network/module-model": "~4.1.7",
75
- "@xyo-network/payload-builder": "~4.1.7",
76
- "@xyo-network/payload-model": "~4.1.7",
77
- "@xyo-network/react-boundwitness-plugin": "~6.1.4",
78
- "@xyo-network/react-chain-blockies": "~1.7.19",
79
- "@xyo-network/react-chain-shared": "~1.7.19",
80
- "@xyo-network/react-event": "~6.1.4",
81
- "@xyo-network/react-payload-raw-info": "~6.1.4",
82
- "@xyo-network/react-payload-table": "~6.1.4",
83
- "@xyo-network/react-shared": "~6.1.4",
84
- "@xyo-network/react-table": "~6.1.4",
85
- "@xyo-network/xl1-protocol": "~1.7.22",
86
- "@xyo-network/xl1-protocol-sdk": "~1.7.19"
47
+ "@storybook/react-vite": "^9.0.18",
48
+ "@xylabs/assert": "^4.15.0",
49
+ "@xylabs/axios": "^4.15.0",
50
+ "@xylabs/delay": "^4.15.0",
51
+ "@xylabs/eth-address": "^4.15.0",
52
+ "@xylabs/exists": "^4.15.0",
53
+ "@xylabs/hex": "^4.15.0",
54
+ "@xylabs/promise": "^4.15.0",
55
+ "@xylabs/react-animation": "^6.4.0",
56
+ "@xylabs/react-error": "^6.4.0",
57
+ "@xylabs/react-flexbox": "^6.4.0",
58
+ "@xylabs/react-promise": "^6.4.0",
59
+ "@xylabs/react-quick-tip-button": "^6.4.0",
60
+ "@xylabs/react-shared": "^6.4.0",
61
+ "@xylabs/react-theme": "^6.4.0",
62
+ "@xylabs/typeof": "^4.15.0",
63
+ "@xyo-network/account": "^4.3.0",
64
+ "@xyo-network/archivist-memory": "^4.3.0",
65
+ "@xyo-network/archivist-model": "^4.3.0",
66
+ "@xyo-network/boundwitness-builder": "^4.3.0",
67
+ "@xyo-network/boundwitness-model": "^4.3.0",
68
+ "@xyo-network/bridge-http": "^4.3.0",
69
+ "@xyo-network/chain-analyze": "^1.8.0",
70
+ "@xyo-network/chain-protocol": "^1.8.0",
71
+ "@xyo-network/chain-services": "^1.8.0",
72
+ "@xyo-network/chain-utils": "^1.8.0",
73
+ "@xyo-network/chain-wrappers": "^1.8.0",
74
+ "@xyo-network/module-model": "^4.3.0",
75
+ "@xyo-network/payload-builder": "^4.3.0",
76
+ "@xyo-network/payload-model": "^4.3.0",
77
+ "@xyo-network/react-boundwitness-plugin": "^6.2.0",
78
+ "@xyo-network/react-chain-blockies": "^1.8.0",
79
+ "@xyo-network/react-chain-shared": "^1.8.0",
80
+ "@xyo-network/react-event": "^6.2.0",
81
+ "@xyo-network/react-payload-raw-info": "^6.2.0",
82
+ "@xyo-network/react-payload-table": "^6.2.0",
83
+ "@xyo-network/react-shared": "^6.2.0",
84
+ "@xyo-network/react-table": "^6.2.0",
85
+ "@xyo-network/xl1-protocol": "^1.7.33",
86
+ "@xyo-network/xl1-protocol-sdk": "^1.8.0"
87
87
  },
88
88
  "devDependencies": {
89
- "@emotion/react": "~11.14.0",
90
- "@emotion/styled": "~11.14.1",
91
- "@mui/icons-material": "~7.2.0",
92
- "@mui/material": "~7.2.0",
93
- "@types/react": "~19.1.8",
94
- "@xylabs/hex": "~4.13.23",
95
- "@xylabs/ts-scripts-yarn3": "~7.0.1",
96
- "@xylabs/tsconfig-react": "~7.0.1",
97
- "@xyo-network/api-models": "~4.1.7",
98
- "knip": "~5.62.0",
99
- "react": "~19.1.0",
100
- "react-dom": "~19.1.0",
101
- "react-router-dom": "~7.7.1",
102
- "storybook": "~9.0.18",
103
- "typescript": "~5.8.3"
89
+ "@emotion/react": "^11.14.0",
90
+ "@emotion/styled": "^11.14.1",
91
+ "@mui/icons-material": "^7.2.0",
92
+ "@mui/material": "^7.2.0",
93
+ "@types/react": "^19.1.8",
94
+ "@xylabs/hex": "^4.15.0",
95
+ "@xylabs/ts-scripts-yarn3": "^7.0.1",
96
+ "@xylabs/tsconfig-react": "^7.0.1",
97
+ "@xyo-network/api-models": "^4.3.0",
98
+ "knip": "^5.62.0",
99
+ "react": "^19.1.1",
100
+ "react-dom": "^19.1.1",
101
+ "react-router-dom": "^7.7.1",
102
+ "storybook": "^9.0.18",
103
+ "typescript": "^5.8.3"
104
104
  },
105
105
  "peerDependencies": {
106
- "@emotion/react": "~11",
107
- "@emotion/styled": "~11",
106
+ "@emotion/react": "^11",
107
+ "@emotion/styled": "^11",
108
108
  "@mui/icons-material": ">=6 <8",
109
109
  "@mui/material": ">=6 <8",
110
- "react": "~19",
111
- "react-dom": "~19"
110
+ "react": "^19",
111
+ "react-dom": "^19"
112
112
  },
113
113
  "publishConfig": {
114
114
  "access": "restricted"
@@ -1,5 +1,6 @@
1
1
  import { Button, FormControl } from '@mui/material'
2
- import { type Address, isAddress } from '@xylabs/hex'
2
+ import type { Address, Hex } from '@xylabs/hex'
3
+ import { isAddress } from '@xylabs/hex'
3
4
  import type { Transfer } from '@xyo-network/xl1-protocol'
4
5
  import { TransferSchema } from '@xyo-network/xl1-protocol'
5
6
  import type { MouseEventHandler } from 'react'
@@ -38,9 +39,9 @@ export const TransferBuilderForm: React.FC<TransferBuilderFormProps> = ({ onBuil
38
39
 
39
40
  const onTransferAdded = () => {
40
41
  const transferAmount: TransferAmount = {
41
- amount: '',
42
+ amount: '' as Hex,
42
43
  transferId: Date.now(),
43
- to: '',
44
+ to: '' as Address,
44
45
  }
45
46
  setTransfers(prev => [...prev, transferAmount])
46
47
  }
@@ -1,7 +1,7 @@
1
- import type { Address } from '@xylabs/hex'
1
+ import { type Address, toAddress } from '@xylabs/hex'
2
2
  import type { Promisable } from '@xylabs/promise'
3
3
 
4
- const id = 'ce080bf3043a40c6c8838c7e813c00ab53df1684'
4
+ const id = toAddress('ce080bf3043a40c6c8838c7e813c00ab53df1684')
5
5
 
6
6
  export const getChainId = (): Promisable<Address> => {
7
7
  return id