@xyo-network/react-chain-network 1.6.0 → 1.6.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.
Files changed (110) hide show
  1. package/dist/browser/index.mjs +127 -267
  2. package/dist/browser/index.mjs.map +1 -1
  3. package/dist/types/components/menu/MenuItem.d.ts +1 -1
  4. package/dist/types/components/menu/MenuItem.d.ts.map +1 -1
  5. package/dist/types/components/status/NetworkStatus.d.ts +7 -0
  6. package/dist/types/components/status/NetworkStatus.d.ts.map +1 -0
  7. package/dist/types/components/status/index.d.ts +1 -0
  8. package/dist/types/components/status/index.d.ts.map +1 -1
  9. package/dist/types/context/network/Provider.d.ts +1 -1
  10. package/dist/types/context/network/Provider.d.ts.map +1 -1
  11. package/dist/types/context/network/context.d.ts +12 -12
  12. package/dist/types/context/network/state.d.ts +2 -2
  13. package/dist/types/context/network/state.d.ts.map +1 -1
  14. package/dist/types/context/network/use.d.ts +4 -4
  15. package/dist/types/context/network/use.d.ts.map +1 -1
  16. package/dist/types/hooks/index.d.ts +3 -0
  17. package/dist/types/hooks/index.d.ts.map +1 -0
  18. package/dist/types/hooks/provider/index.d.ts +6 -0
  19. package/dist/types/hooks/provider/index.d.ts.map +1 -0
  20. package/dist/types/hooks/provider/useActiveNetworkCurrentBlock.d.ts +2 -0
  21. package/dist/types/hooks/provider/useActiveNetworkCurrentBlock.d.ts.map +1 -0
  22. package/dist/types/hooks/provider/useActiveNetworkHostViewer.d.ts +2 -0
  23. package/dist/types/hooks/provider/useActiveNetworkHostViewer.d.ts.map +1 -0
  24. package/dist/types/hooks/provider/useActiveNetworkNetwork.d.ts +2 -0
  25. package/dist/types/hooks/provider/useActiveNetworkNetwork.d.ts.map +1 -0
  26. package/dist/types/hooks/provider/useActiveNetworkRunner.d.ts +2 -0
  27. package/dist/types/hooks/provider/useActiveNetworkRunner.d.ts.map +1 -0
  28. package/dist/types/hooks/provider/useActiveNetworkViewer.d.ts +2 -0
  29. package/dist/types/hooks/provider/useActiveNetworkViewer.d.ts.map +1 -0
  30. package/dist/types/hooks/status/index.d.ts +2 -0
  31. package/dist/types/hooks/status/index.d.ts.map +1 -0
  32. package/dist/types/hooks/status/usePollNetworkStatus.d.ts +3 -0
  33. package/dist/types/hooks/status/usePollNetworkStatus.d.ts.map +1 -0
  34. package/dist/types/index.d.ts +1 -3
  35. package/dist/types/index.d.ts.map +1 -1
  36. package/package.json +14 -24
  37. package/src/components/menu/MenuItem.tsx +1 -1
  38. package/src/components/status/NetworkStatus.tsx +21 -0
  39. package/src/components/status/index.ts +1 -0
  40. package/src/context/network/Provider.tsx +4 -4
  41. package/src/context/network/state.ts +2 -3
  42. package/src/context/network/use.ts +1 -1
  43. package/src/hooks/index.ts +2 -0
  44. package/src/hooks/provider/index.ts +5 -0
  45. package/src/hooks/provider/useActiveNetworkCurrentBlock.ts +10 -0
  46. package/src/hooks/provider/useActiveNetworkHostViewer.ts +9 -0
  47. package/src/hooks/provider/useActiveNetworkNetwork.ts +9 -0
  48. package/src/hooks/provider/useActiveNetworkRunner.ts +10 -0
  49. package/src/hooks/provider/useActiveNetworkViewer.ts +9 -0
  50. package/src/hooks/status/index.ts +1 -0
  51. package/src/hooks/status/usePollNetworkStatus.ts +41 -0
  52. package/src/index.ts +1 -3
  53. package/dist/browser/XL1_Logo_Icon_Localhost-2ZA6P5DV.svg +0 -1
  54. package/dist/browser/XL1_Logo_Icon_Mainnet-OLUPYV7Q.svg +0 -1
  55. package/dist/browser/XL1_Logo_Icon_Testnet-HCQCTXVQ.svg +0 -1
  56. package/dist/types/helpers/Networks.d.ts +0 -6
  57. package/dist/types/helpers/Networks.d.ts.map +0 -1
  58. package/dist/types/helpers/getNetworkNode.d.ts +0 -2
  59. package/dist/types/helpers/getNetworkNode.d.ts.map +0 -1
  60. package/dist/types/helpers/getNetworkNodes.d.ts +0 -3
  61. package/dist/types/helpers/getNetworkNodes.d.ts.map +0 -1
  62. package/dist/types/helpers/index.d.ts +0 -4
  63. package/dist/types/helpers/index.d.ts.map +0 -1
  64. package/dist/types/helpers/initNetworkNode.d.ts +0 -4
  65. package/dist/types/helpers/initNetworkNode.d.ts.map +0 -1
  66. package/dist/types/helpers/manifest/index.d.ts +0 -2
  67. package/dist/types/helpers/manifest/index.d.ts.map +0 -1
  68. package/dist/types/helpers/manifest/networkManifest.d.ts +0 -6
  69. package/dist/types/helpers/manifest/networkManifest.d.ts.map +0 -1
  70. package/dist/types/images/icons/index.d.ts +0 -5
  71. package/dist/types/images/icons/index.d.ts.map +0 -1
  72. package/dist/types/images/icons/local/index.d.ts +0 -5
  73. package/dist/types/images/icons/local/index.d.ts.map +0 -1
  74. package/dist/types/images/icons/mainnet/index.d.ts +0 -5
  75. package/dist/types/images/icons/mainnet/index.d.ts.map +0 -1
  76. package/dist/types/images/icons/sequence/index.d.ts +0 -5
  77. package/dist/types/images/icons/sequence/index.d.ts.map +0 -1
  78. package/dist/types/images/icons/xyoColorLogo.d.ts +0 -5
  79. package/dist/types/images/icons/xyoColorLogo.d.ts.map +0 -1
  80. package/dist/types/images/index.d.ts +0 -2
  81. package/dist/types/images/index.d.ts.map +0 -1
  82. package/dist/types/models/Bootstrap.d.ts +0 -42
  83. package/dist/types/models/Bootstrap.d.ts.map +0 -1
  84. package/dist/types/models/index.d.ts +0 -2
  85. package/dist/types/models/index.d.ts.map +0 -1
  86. package/dist/types/provider/NetworkProvider.d.ts +0 -47
  87. package/dist/types/provider/NetworkProvider.d.ts.map +0 -1
  88. package/dist/types/provider/index.d.ts +0 -2
  89. package/dist/types/provider/index.d.ts.map +0 -1
  90. package/src/helpers/Networks.ts +0 -40
  91. package/src/helpers/getNetworkNode.ts +0 -11
  92. package/src/helpers/getNetworkNodes.ts +0 -7
  93. package/src/helpers/index.ts +0 -3
  94. package/src/helpers/initNetworkNode.ts +0 -15
  95. package/src/helpers/manifest/index.ts +0 -1
  96. package/src/helpers/manifest/network.json +0 -17
  97. package/src/helpers/manifest/networkManifest.ts +0 -8
  98. package/src/images/icons/index.ts +0 -4
  99. package/src/images/icons/local/XL1_Logo_Icon_Localhost.svg +0 -1
  100. package/src/images/icons/local/index.tsx +0 -15
  101. package/src/images/icons/mainnet/XL1_Logo_Icon_Mainnet.svg +0 -1
  102. package/src/images/icons/mainnet/index.tsx +0 -15
  103. package/src/images/icons/sequence/XL1_Logo_Icon_Testnet.svg +0 -1
  104. package/src/images/icons/sequence/index.tsx +0 -15
  105. package/src/images/icons/xyoColorLogo.tsx +0 -54
  106. package/src/images/index.ts +0 -1
  107. package/src/models/Bootstrap.ts +0 -51
  108. package/src/models/index.ts +0 -1
  109. package/src/provider/NetworkProvider.ts +0 -176
  110. package/src/provider/index.ts +0 -1
@@ -0,0 +1,9 @@
1
+ import { useViewerBase } from '@xyo-network/react-chain-provider'
2
+
3
+ import { useChainNetwork } from '../../context/index.ts'
4
+
5
+ export const useActiveNetworkViewer = () => {
6
+ const { activeNetwork } = useChainNetwork()
7
+ const viewer = useViewerBase(activeNetwork?.id, activeNetwork?.url)
8
+ return viewer
9
+ }
@@ -0,0 +1 @@
1
+ export * from './usePollNetworkStatus.ts'
@@ -0,0 +1,41 @@
1
+ import { delay } from '@xylabs/delay'
2
+ import { isUndefined } from '@xylabs/typeof'
3
+ import type { NetworkStatus } from '@xyo-network/xl1-protocol'
4
+ import { useEffect, useState } from 'react'
5
+
6
+ import { useActiveNetworkNetwork } from '../index.ts'
7
+
8
+ const STATUS_CHECK_INTERVAL = 10_000
9
+
10
+ export const usePollNetworkStatus = () => {
11
+ const network = useActiveNetworkNetwork()
12
+ const [networkStatus, setNetworkStatus] = useState<NetworkStatus>()
13
+ const [networkStatusError, setNetworkStatusError] = useState<Error>()
14
+
15
+ // Check network status every 10 seconds
16
+ useEffect(() => {
17
+ let checkNetwork = true
18
+ void (async () => {
19
+ if (isUndefined(network)) return
20
+ while (checkNetwork) {
21
+ try {
22
+ const response = await network.status()
23
+ setNetworkStatus(response)
24
+ setNetworkStatusError(undefined)
25
+ } catch (error) {
26
+ console.error('Error fetching network status:', error)
27
+ setNetworkStatus(undefined)
28
+ setNetworkStatusError(error as Error)
29
+ }
30
+ await delay(STATUS_CHECK_INTERVAL)
31
+ }
32
+ })()
33
+
34
+ return () => {
35
+ // Cleanup function to stop checking network status at the current statusUrl
36
+ checkNetwork = false
37
+ }
38
+ }, [network])
39
+
40
+ return [networkStatus, networkStatusError] as const
41
+ }
package/src/index.ts CHANGED
@@ -1,5 +1,3 @@
1
1
  export * from './components/index.ts'
2
2
  export * from './context/index.ts'
3
- export * from './helpers/index.ts'
4
- export * from './models/index.ts'
5
- export * from './provider/index.ts'
3
+ export * from './hooks/index.ts'
@@ -1 +0,0 @@
1
- <svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><g style="opacity:.5;"><path d="M154.71,97c.46,2.59,2.5,4.62,5.1,5.05l14.05,2.34,31.71-46.17c4.57-6.65-3.62-14.62-10.14-9.87l-43.68,31.83,2.97,16.82Z" style="fill:#f47f00;"/><path d="M173.86,151.62l-14.05,2.34c-2.6.43-4.64,2.45-5.1,5.05l-2.97,16.82,43.68,31.83c6.52,4.75,14.71-3.21,10.14-9.87l-31.71-46.17Z" style="fill:#f47f00;"/><path d="M82.14,104.38l14.05-2.34c2.6-.43,4.64-2.45,5.1-5.05l2.97-16.82-43.68-31.83c-6.52-4.75-14.71,3.21-10.14,9.87l31.71,46.17Z" style="fill:#f47f00;"/><path d="M101.29,159c-.46-2.59-2.5-4.62-5.1-5.05l-14.05-2.34-31.71,46.17c-4.57,6.65,3.62,14.62,10.14,9.87l43.68-31.83-2.97-16.82Z" style="fill:#f47f00;"/></g><path d="M107.33,104l15.94-90.32c.93-5.3,8.53-5.3,9.47,0l15.94,90.32c.35,2.01,1.94,3.57,3.95,3.91l92.24,15.35c5.36.89,5.36,8.59,0,9.49l-92.24,15.35c-2.01.33-3.59,1.9-3.95,3.91l-15.94,90.32c-.93,5.3-8.53,5.3-9.47,0l-15.94-90.32c-.35-2.01-1.94-3.57-3.95-3.91l-92.24-15.35c-5.36-.89-5.36-8.59,0-9.49l92.24-15.35c2.01-.33,3.59-1.9,3.95-3.91Z" style="fill:#f47f00;"/></svg>
@@ -1 +0,0 @@
1
- <svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path d="M154.71,97c.46,2.59,2.5,4.62,5.1,5.05l14.05,2.34,31.71-46.17c4.57-6.65-3.62-14.62-10.14-9.87l-43.68,31.83,2.97,16.82Z" style="fill:#8d8fc6;"/><path d="M173.86,151.62l-14.05,2.34c-2.6.43-4.64,2.45-5.1,5.05l-2.97,16.82,43.68,31.83c6.52,4.75,14.71-3.21,10.14-9.87l-31.71-46.17Z" style="fill:#eb407a;"/><path d="M82.14,104.38l14.05-2.34c2.6-.43,4.64-2.45,5.1-5.05l2.97-16.82-43.68-31.83c-6.52-4.75-14.71,3.21-10.14,9.87l31.71,46.17Z" style="fill:#579fd6;"/><path d="M101.29,159c-.46-2.59-2.5-4.62-5.1-5.05l-14.05-2.34-31.71,46.17c-4.57,6.65,3.62,14.62,10.14,9.87l43.68-31.83-2.97-16.82Z" style="fill:#f27046;"/><path d="M107.33,104l15.94-90.32c.93-5.3,8.53-5.3,9.47,0l15.94,90.32c.35,2.01,1.94,3.57,3.95,3.91l92.24,15.35c5.36.89,5.36,8.59,0,9.49l-92.24,15.35c-2.01.33-3.59,1.9-3.95,3.91l-15.94,90.32c-.93,5.3-8.53,5.3-9.47,0l-15.94-90.32c-.35-2.01-1.94-3.57-3.95-3.91l-92.24-15.35c-5.36-.89-5.36-8.59,0-9.49l92.24-15.35c2.01-.33,3.59-1.9,3.95-3.91Z" style="fill:#572aff;"/></svg>
@@ -1 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?><svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><g style="opacity:.5;"><path d="M154.71,97c.46,2.59,2.5,4.62,5.1,5.05l14.05,2.34,31.71-46.17c4.57-6.65-3.62-14.62-10.14-9.87l-43.68,31.83,2.97,16.82Z" style="fill:#579fd6;"/><path d="M173.86,151.62l-14.05,2.34c-2.6.43-4.64,2.45-5.1,5.05l-2.97,16.82,43.68,31.83c6.52,4.75,14.71-3.21,10.14-9.87l-31.71-46.17Z" style="fill:#579fd6;"/><path d="M82.14,104.38l14.05-2.34c2.6-.43,4.64-2.45,5.1-5.05l2.97-16.82-43.68-31.83c-6.52-4.75-14.71,3.21-10.14,9.87l31.71,46.17Z" style="fill:#579fd6;"/><path d="M101.29,159c-.46-2.59-2.5-4.62-5.1-5.05l-14.05-2.34-31.71,46.17c-4.57,6.65,3.62,14.62,10.14,9.87l43.68-31.83-2.97-16.82Z" style="fill:#579fd6;"/></g><path d="M107.33,104l15.94-90.32c.93-5.3,8.53-5.3,9.47,0l15.94,90.32c.35,2.01,1.94,3.57,3.95,3.91l92.24,15.35c5.36.89,5.36,8.59,0,9.49l-92.24,15.35c-2.01.33-3.59,1.9-3.95,3.91l-15.94,90.32c-.93,5.3-8.53,5.3-9.47,0l-15.94-90.32c-.35-2.01-1.94-3.57-3.95-3.91l-92.24-15.35c-5.36-.89-5.36-8.59,0-9.49l92.24-15.35c2.01-.33,3.59-1.9,3.95-3.91Z" style="fill:#579fd6;"/></svg>
@@ -1,6 +0,0 @@
1
- import type { NetworkBootstrap } from '../models/index.ts';
2
- export declare const MainNetwork: NetworkBootstrap;
3
- export declare const SequenceNetwork: NetworkBootstrap;
4
- export declare const LocalNetwork: NetworkBootstrap;
5
- export declare const DefaultNetworks: NetworkBootstrap[];
6
- //# sourceMappingURL=Networks.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Networks.d.ts","sourceRoot":"","sources":["../../../src/helpers/Networks.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAG1D,eAAO,MAAM,WAAW,EAAE,gBASzB,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,gBAS7B,CAAA;AAED,eAAO,MAAM,YAAY,EAAE,gBAS1B,CAAA;AAED,eAAO,MAAM,eAAe,EAAE,gBAAgB,EAAiD,CAAA"}
@@ -1,2 +0,0 @@
1
- export declare const getNetworkNode: () => Promise<import("@xyo-network/node-memory").MemoryNode<import("@xyo-network/node-memory").MemoryNodeParams, import("@xyo-network/node-model").NodeModuleEventData>>;
2
- //# sourceMappingURL=getNetworkNode.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getNetworkNode.d.ts","sourceRoot":"","sources":["../../../src/helpers/getNetworkNode.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,cAAc,0KAI1B,CAAA"}
@@ -1,3 +0,0 @@
1
- import type { AttachableNodeInstance } from '@xyo-network/node-model';
2
- export declare const getNetworkNodes: () => Map<string, AttachableNodeInstance<import("@xyo-network/node-model").NodeParams<import("@xyo-network/module-model").AnyConfigSchema<import("@xyo-network/node-model").NodeConfig>>, import("@xyo-network/node-model").NodeModuleEventData>>;
3
- //# sourceMappingURL=getNetworkNodes.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"getNetworkNodes.d.ts","sourceRoot":"","sources":["../../../src/helpers/getNetworkNodes.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AAIrE,eAAO,MAAM,eAAe,mPAE3B,CAAA"}
@@ -1,4 +0,0 @@
1
- export * from './getNetworkNodes.ts';
2
- export * from './initNetworkNode.ts';
3
- export * from './Networks.ts';
4
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/helpers/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA;AACpC,cAAc,sBAAsB,CAAA;AACpC,cAAc,eAAe,CAAA"}
@@ -1,4 +0,0 @@
1
- import type { AttachableNodeInstance } from '@xyo-network/node-model';
2
- import type { NetworkBootstrap } from '../models/index.ts';
3
- export declare const initNetworkNode: (activeNetwork: NetworkBootstrap) => Promise<AttachableNodeInstance>;
4
- //# sourceMappingURL=initNetworkNode.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"initNetworkNode.d.ts","sourceRoot":"","sources":["../../../src/helpers/initNetworkNode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,yBAAyB,CAAA;AAErE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAA;AAI1D,eAAO,MAAM,eAAe,GAAU,eAAe,gBAAgB,KAAG,OAAO,CAAC,sBAAsB,CAQrG,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './networkManifest.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/helpers/manifest/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA"}
@@ -1,6 +0,0 @@
1
- import type { PackageManifestPayload } from '@xyo-network/manifest-model';
2
- /**
3
- * Root Node Manifest
4
- */
5
- export declare const NetworkNodeManifest: PackageManifestPayload;
6
- //# sourceMappingURL=networkManifest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"networkManifest.d.ts","sourceRoot":"","sources":["../../../../src/helpers/manifest/networkManifest.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,6BAA6B,CAAA;AAIzE;;GAEG;AACH,eAAO,MAAM,mBAAmB,EAAW,sBAAsB,CAAA"}
@@ -1,5 +0,0 @@
1
- export * from './local/index.tsx';
2
- export * from './mainnet/index.tsx';
3
- export * from './sequence/index.tsx';
4
- export * from './xyoColorLogo.tsx';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/images/icons/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,qBAAqB,CAAA;AACnC,cAAc,sBAAsB,CAAA;AACpC,cAAc,oBAAoB,CAAA"}
@@ -1,5 +0,0 @@
1
- import { SvgIcon } from '@mui/material';
2
- import React from 'react';
3
- export declare const LocalNetworkIcon: (props: React.ComponentProps<typeof SvgIcon>) => import("react/jsx-runtime").JSX.Element;
4
- export { default as LocalNetworkIconString } from './XL1_Logo_Icon_Localhost.svg?raw';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/images/icons/local/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,eAAO,MAAM,gBAAgB,GAAI,OAAO,KAAK,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,4CAQ3E,CAAA;AAED,OAAO,EAAE,OAAO,IAAI,sBAAsB,EAAE,MAAM,mCAAmC,CAAA"}
@@ -1,5 +0,0 @@
1
- import { SvgIcon } from '@mui/material';
2
- import React from 'react';
3
- export declare const MainNetworkIcon: (props: React.ComponentProps<typeof SvgIcon>) => import("react/jsx-runtime").JSX.Element;
4
- export { default as MainNetworkIconString } from './XL1_Logo_Icon_Mainnet.svg?raw';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/images/icons/mainnet/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,eAAO,MAAM,eAAe,GAAI,OAAO,KAAK,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,4CAQ1E,CAAA;AAED,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,iCAAiC,CAAA"}
@@ -1,5 +0,0 @@
1
- import { SvgIcon } from '@mui/material';
2
- import React from 'react';
3
- export declare const SequenceNetworkIcon: (props: React.ComponentProps<typeof SvgIcon>) => import("react/jsx-runtime").JSX.Element;
4
- export { default as SequenceNetworkIconString } from './XL1_Logo_Icon_Testnet.svg?raw';
5
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/images/icons/sequence/index.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,eAAO,MAAM,mBAAmB,GAAI,OAAO,KAAK,CAAC,cAAc,CAAC,OAAO,OAAO,CAAC,4CAQ9E,CAAA;AAED,OAAO,EAAE,OAAO,IAAI,yBAAyB,EAAE,MAAM,iCAAiC,CAAA"}
@@ -1,5 +0,0 @@
1
- export declare const XyoColorLogo: import("@mui/material/OverridableComponent").OverridableComponent<import("@mui/material").SvgIconTypeMap<{}, "svg">> & {
2
- muiName: string;
3
- };
4
- export declare const XyoColorLogoString = "\n<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 256 238\">\n <path\n className=\"cls-1\"\n d=\"M74.5,28.33,21.29,120.5,74.5,212.67H180.94l1.76-3,51.46-89.13L180.94,28.33ZM84.65,40.54h78.83L111.65,56.93a15.85,15.85,0,0,1,2,5l59.66-18.81L185.22,101a20.12,20.12,0,0,1,5.36-.78l-10-47.91,37.87,65.53h-7.62a24.21,24.21,0,0,1,.15,2.68,23.29,23.29,0,0,1-.15,2.68h7.62l-39.1,67.75,10.92-50.13A20.57,20.57,0,0,1,185,140l-12.88,59-58.37-19.53a17.61,17.61,0,0,1-1.7,5l47.5,15.92H84.65l4-6.85A20.17,20.17,0,0,1,83.93,191L80,197.78,42.67,133.13l37,32.66a20.52,20.52,0,0,1,3.6-4L36.69,120.66,85,77.79a17.45,17.45,0,0,1-3.19-4.32l-39.46,35L80,43.22l5.56,9.69A17.51,17.51,0,0,1,90.12,50Zm28.24,31.17a16.15,16.15,0,0,1-2.68,4.64l62,35.81a19.74,19.74,0,0,1,2.83-4.54Zm-20,10.51v75.33a18,18,0,0,1,2.47-.16,17.18,17.18,0,0,1,2.89.21v-75a11.21,11.21,0,0,1-1.29,0,17.57,17.57,0,0,1-4.07-.47Zm79.34,46.63-62.08,35.81a18.45,18.45,0,0,1,2.68,4.68l62.23-36a19.68,19.68,0,0,1-2.83-4.53Z\"\n fill=\"#8d8fc6\"\n />\n <path\n className=\"cls-2\"\n d=\"M97,48.58a17.06,17.06,0,1,0,17,17,17.08,17.08,0,0,0-17-17Zm0,5.36a11.7,11.7,0,1,1-11.7,11.69A11.65,11.65,0,0,1,97,53.94Z\"\n fill=\"#579fd6\"\n />\n <path\n className=\"cls-3\"\n d=\"M95.37,157.39a18.73,18.73,0,1,0,18.7,18.7,18.74,18.74,0,0,0-18.7-18.7Zm0,5.31A13.4,13.4,0,1,1,82,176.09a13.37,13.37,0,0,1,13.4-13.39Z\"\n fill=\"#f27046\"\n />\n <path\n className=\"cls-4\"\n d=\"M190.73,100.2A20.3,20.3,0,1,0,211,120.5a20.34,20.34,0,0,0-20.3-20.3Zm0,5.36a14.94,14.94,0,1,1-14.94,14.94,14.88,14.88,0,0,1,14.94-14.94Z\"\n fill=\"#eb407a\"\n />\n </svg>\n";
5
- //# sourceMappingURL=xyoColorLogo.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"xyoColorLogo.d.ts","sourceRoot":"","sources":["../../../../src/images/icons/xyoColorLogo.tsx"],"names":[],"mappings":"AAIA,eAAO,MAAM,YAAY;;CAwBxB,CAAA;AAED,eAAO,MAAM,kBAAkB,0oDAuB9B,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './icons/index.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/images/index.ts"],"names":[],"mappings":"AAAA,cAAc,kBAAkB,CAAA"}
@@ -1,42 +0,0 @@
1
- import type { Address } from '@xylabs/hex';
2
- import type { Payload } from '@xyo-network/payload-model';
3
- import type { NetworkId } from '@xyo-network/xl1-protocol';
4
- export declare const NetworkBootstrapSchema: "network.xyo.network.bootstrap";
5
- export type NetworkBootstrapSchema = typeof NetworkBootstrapSchema;
6
- export interface ChainForkFields {
7
- /** Block Number at which the chain was forked from */
8
- forkedAtLastBlockNumber?: string;
9
- /** Hash in the last block the chain was forked from */
10
- forkedAtLastHash?: string;
11
- /** Address of the forked chain */
12
- forkedChainId?: Address;
13
- }
14
- export interface NetworkFields {
15
- /** Description of the network */
16
- description: string;
17
- /** Url for accessing the network explorer */
18
- explorerUrl?: string;
19
- /** string representation of the icon (svg) */
20
- icon?: string;
21
- /** Machine-readable identifier */
22
- id: NetworkId;
23
- /** Human-readable identifier */
24
- name: string;
25
- schema: NetworkBootstrapSchema;
26
- /** Symbol of the network */
27
- symbol?: string;
28
- /** Url for accessing the network */
29
- url: string;
30
- }
31
- /** Note: Optional Properties can be found walking the chain to the genesis block */
32
- export interface NetworkBootstrapFields extends NetworkFields, ChainForkFields {
33
- /** Address of the chain, i.e. smart contract address */
34
- chainId?: Address;
35
- }
36
- export interface Network extends NetworkBootstrap {
37
- custom: boolean;
38
- }
39
- export type NetworkBootstrap = Payload<NetworkBootstrapFields, NetworkBootstrapSchema>;
40
- export declare const isNetworkBootstrap: (x?: unknown | null) => x is NetworkBootstrap;
41
- export declare const asOptionalNetwork: (value: import("@xylabs/promise").AnyNonPromise) => NetworkBootstrap | undefined;
42
- //# sourceMappingURL=Bootstrap.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"Bootstrap.d.ts","sourceRoot":"","sources":["../../../src/models/Bootstrap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAE1C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAA;AAEzD,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,2BAA2B,CAAA;AAE1D,eAAO,MAAM,sBAAsB,EAAG,+BAAwC,CAAA;AAC9E,MAAM,MAAM,sBAAsB,GAAG,OAAO,sBAAsB,CAAA;AAElE,MAAM,WAAW,eAAe;IAC9B,sDAAsD;IACtD,uBAAuB,CAAC,EAAE,MAAM,CAAA;IAChC,uDAAuD;IACvD,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,kCAAkC;IAClC,aAAa,CAAC,EAAE,OAAO,CAAA;CACxB;AAED,MAAM,WAAW,aAAa;IAC5B,iCAAiC;IACjC,WAAW,EAAE,MAAM,CAAA;IACnB,6CAA6C;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,8CAA8C;IAC9C,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,kCAAkC;IAClC,EAAE,EAAE,SAAS,CAAA;IACb,gCAAgC;IAChC,IAAI,EAAE,MAAM,CAAA;IACZ,MAAM,EAAE,sBAAsB,CAAA;IAC9B,4BAA4B;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,oCAAoC;IACpC,GAAG,EAAE,MAAM,CAAA;CACZ;AAED,oFAAoF;AACpF,MAAM,WAAW,sBAAuB,SAAQ,aAAa,EAAE,eAAe;IAC5E,wDAAwD;IACxD,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,OAAQ,SAAQ,gBAAgB;IAC/C,MAAM,EAAE,OAAO,CAAA;CAChB;AAED,MAAM,MAAM,gBAAgB,GAAG,OAAO,CAAC,sBAAsB,EAAE,sBAAsB,CAAC,CAAA;AAEtF,eAAO,MAAM,kBAAkB,+CAAkE,CAAA;AAEjG,eAAO,MAAM,iBAAiB,kFAAqD,CAAA"}
@@ -1,2 +0,0 @@
1
- export * from './Bootstrap.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,gBAAgB,CAAA"}
@@ -1,47 +0,0 @@
1
- import type { Address, Hash } from '@xylabs/hex';
2
- import type { Promisable } from '@xylabs/promise';
3
- import type { Signed } from '@xyo-network/boundwitness-model';
4
- import type { BridgeInstance } from '@xyo-network/bridge-model';
5
- import type { Payload } from '@xyo-network/payload-model';
6
- import type { AllowedBlockPayload, HydratedBlock, HydratedTransaction, TransactionBoundWitness, TransactionFeesBigInt, Transfer, XyoRunner, XyoSigner, XyoViewer, XyoWallet } from '@xyo-network/xl1-protocol';
7
- export declare const FINALIZED_ARCHIVIST: "XYOChain:Chain:Finalized";
8
- export interface NetworkProviderParams {
9
- chainId?: Address;
10
- network: string;
11
- }
12
- /**
13
- * @deprecated Use MemoryXyoProvider instead
14
- */
15
- export declare class NetworkProvider implements XyoSigner, XyoViewer, XyoWallet, XyoRunner {
16
- private _bridge;
17
- constructor(bridge: BridgeInstance);
18
- private get bridge();
19
- static create({ network }: NetworkProviderParams): Promise<NetworkProvider>;
20
- accountBalance(_address: Address): Promisable<bigint>;
21
- accountHistory(_address: Address): Promisable<[TransactionBoundWitness[], Transfer[]]>;
22
- accounts(): Promisable<Address[]>;
23
- addChain(_chain: Address, _name?: string): Promisable<object>;
24
- address(): Promisable<Address>;
25
- blockByHash(_hash: Hash): Promisable<HydratedBlock | null>;
26
- blockByNumber(_blockNumber: number): Promisable<HydratedBlock | null>;
27
- blocksByHash(_hash: Hash, _limit?: number): Promisable<HydratedBlock[]>;
28
- broadcastTransaction(_transaction: HydratedTransaction): Promisable<Hash>;
29
- chain(): Promisable<Address>;
30
- chainId(): Promisable<Address>;
31
- chains(): Promisable<object>;
32
- createSignedTransaction(_chain: Address, _elevatedPayloads: AllowedBlockPayload[], _additionalPayloads: Payload[], _nbf: number, _exp: number, _fees: TransactionFeesBigInt, _from?: Address): Promisable<Signed<TransactionBoundWitness>>;
33
- currentBlock(): Promisable<HydratedBlock>;
34
- currentBlockHash(): Promisable<Hash>;
35
- currentBlockNumber(): Promisable<number>;
36
- permissions(): Promisable<Record<string, object>>;
37
- previousBlocks(startingBlock?: Hash, count?: number): Promise<HydratedBlock[]>;
38
- requestPermissions(_permissions: object): Promisable<object>;
39
- revokePermissions(_permissions: object): Promisable<object>;
40
- signTransaction(_transaction: TransactionBoundWitness): Promisable<Signed<TransactionBoundWitness>>;
41
- switchChain(_chain: Address): Promisable<void>;
42
- transactionByBlockHashAndIndex(_blockHash: Hash, _transactionIndex: number): Promisable<HydratedTransaction | null>;
43
- transactionByBlockNumberAndIndex(_blockNumber: number, _transactionIndex: number): Promisable<HydratedTransaction | null>;
44
- transactionByHash(_transactionHash: Hash): Promisable<HydratedTransaction | null>;
45
- private getFinalizedArchivist;
46
- }
47
- //# sourceMappingURL=NetworkProvider.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"NetworkProvider.d.ts","sourceRoot":"","sources":["../../../src/provider/NetworkProvider.ts"],"names":[],"mappings":"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"}
@@ -1,2 +0,0 @@
1
- export * from './NetworkProvider.ts';
2
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/provider/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAA"}
@@ -1,40 +0,0 @@
1
- import {
2
- LocalNetworkIconString, MainNetworkIconString, SequenceNetworkIconString,
3
- } from '../images/index.ts'
4
- import type { NetworkBootstrap } from '../models/index.ts'
5
- import { NetworkBootstrapSchema } from '../models/index.ts'
6
-
7
- export const MainNetwork: NetworkBootstrap = {
8
- description: 'Main Network for XYO Layer 1',
9
- icon: MainNetworkIconString,
10
- id: 'mainnet',
11
- name: 'Mainnet',
12
- schema: NetworkBootstrapSchema,
13
- symbol: 'XL1',
14
- url: 'https://api.chain.xyo.network',
15
- explorerUrl: 'https://explore.xyo.network',
16
- }
17
-
18
- export const SequenceNetwork: NetworkBootstrap = {
19
- description: 'Test Network for XYO Layer 1',
20
- icon: SequenceNetworkIconString,
21
- id: 'sequence',
22
- name: 'Sequence',
23
- schema: NetworkBootstrapSchema,
24
- symbol: 'XL1',
25
- url: 'https://beta.api.chain.xyo.network',
26
- explorerUrl: 'https://beta.explore.xyo.network',
27
- }
28
-
29
- export const LocalNetwork: NetworkBootstrap = {
30
- description: 'Local Node',
31
- icon: LocalNetworkIconString,
32
- id: 'local',
33
- name: 'Local',
34
- schema: NetworkBootstrapSchema,
35
- symbol: 'XL1',
36
- url: 'http://localhost:8080',
37
- explorerUrl: 'http://localhost:3000',
38
- }
39
-
40
- export const DefaultNetworks: NetworkBootstrap[] = [MainNetwork, SequenceNetwork, LocalNetwork]
@@ -1,11 +0,0 @@
1
- import { ManifestWrapper } from '@xyo-network/manifest-wrapper'
2
- import { ModuleFactoryLocator } from '@xyo-network/module-factory-locator'
3
- import { HDWallet } from '@xyo-network/wallet'
4
-
5
- import { NetworkNodeManifest } from './manifest/index.ts'
6
-
7
- export const getNetworkNode = async () => {
8
- const wrapper = new ManifestWrapper(NetworkNodeManifest, await HDWallet.random(), new ModuleFactoryLocator())
9
- const [node] = await wrapper.loadNodes()
10
- return node
11
- }
@@ -1,7 +0,0 @@
1
- import type { AttachableNodeInstance } from '@xyo-network/node-model'
2
-
3
- const networkNodeMap = new Map<string, AttachableNodeInstance>()
4
-
5
- export const getNetworkNodes = () => {
6
- return networkNodeMap
7
- }
@@ -1,3 +0,0 @@
1
- export * from './getNetworkNodes.ts'
2
- export * from './initNetworkNode.ts'
3
- export * from './Networks.ts'
@@ -1,15 +0,0 @@
1
- import type { AttachableNodeInstance } from '@xyo-network/node-model'
2
-
3
- import type { NetworkBootstrap } from '../models/index.ts'
4
- import { getNetworkNode } from './getNetworkNode.ts'
5
- import { getNetworkNodes } from './getNetworkNodes.ts'
6
-
7
- export const initNetworkNode = async (activeNetwork: NetworkBootstrap): Promise<AttachableNodeInstance> => {
8
- const networkNodeMap = getNetworkNodes()
9
- if (networkNodeMap.has(activeNetwork.url)) return networkNodeMap.get(activeNetwork.url)!
10
-
11
- const activeNetworkNode = await getNetworkNode()
12
- networkNodeMap.set(activeNetwork.url, activeNetworkNode)
13
-
14
- return activeNetworkNode
15
- }
@@ -1 +0,0 @@
1
- export * from './networkManifest.ts'
@@ -1,17 +0,0 @@
1
- {
2
- "$schema": "https://raw.githubusercontent.com/XYOracleNetwork/sdk-xyo-client-js/main/packages/manifest/src/schema.json",
3
- "nodes": [
4
- {
5
- "config": {
6
- "accountPath": "44'/60'/1",
7
- "name": "Network",
8
- "schema": "network.xyo.node.config"
9
- },
10
- "modules": {
11
- "private": [],
12
- "public": []
13
- }
14
- }
15
- ],
16
- "schema": "network.xyo.manifest"
17
- }
@@ -1,8 +0,0 @@
1
- import type { PackageManifestPayload } from '@xyo-network/manifest-model'
2
-
3
- import node from './network.json' with { type: 'json' }
4
-
5
- /**
6
- * Root Node Manifest
7
- */
8
- export const NetworkNodeManifest = node as PackageManifestPayload
@@ -1,4 +0,0 @@
1
- export * from './local/index.tsx'
2
- export * from './mainnet/index.tsx'
3
- export * from './sequence/index.tsx'
4
- export * from './xyoColorLogo.tsx'
@@ -1 +0,0 @@
1
- <svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><g style="opacity:.5;"><path d="M154.71,97c.46,2.59,2.5,4.62,5.1,5.05l14.05,2.34,31.71-46.17c4.57-6.65-3.62-14.62-10.14-9.87l-43.68,31.83,2.97,16.82Z" style="fill:#f47f00;"/><path d="M173.86,151.62l-14.05,2.34c-2.6.43-4.64,2.45-5.1,5.05l-2.97,16.82,43.68,31.83c6.52,4.75,14.71-3.21,10.14-9.87l-31.71-46.17Z" style="fill:#f47f00;"/><path d="M82.14,104.38l14.05-2.34c2.6-.43,4.64-2.45,5.1-5.05l2.97-16.82-43.68-31.83c-6.52-4.75-14.71,3.21-10.14,9.87l31.71,46.17Z" style="fill:#f47f00;"/><path d="M101.29,159c-.46-2.59-2.5-4.62-5.1-5.05l-14.05-2.34-31.71,46.17c-4.57,6.65,3.62,14.62,10.14,9.87l43.68-31.83-2.97-16.82Z" style="fill:#f47f00;"/></g><path d="M107.33,104l15.94-90.32c.93-5.3,8.53-5.3,9.47,0l15.94,90.32c.35,2.01,1.94,3.57,3.95,3.91l92.24,15.35c5.36.89,5.36,8.59,0,9.49l-92.24,15.35c-2.01.33-3.59,1.9-3.95,3.91l-15.94,90.32c-.93,5.3-8.53,5.3-9.47,0l-15.94-90.32c-.35-2.01-1.94-3.57-3.95-3.91l-92.24-15.35c-5.36-.89-5.36-8.59,0-9.49l92.24-15.35c2.01-.33,3.59-1.9,3.95-3.91Z" style="fill:#f47f00;"/></svg>
@@ -1,15 +0,0 @@
1
- import { SvgIcon } from '@mui/material'
2
- import React from 'react'
3
-
4
- import LocalNetworkSvg from './XL1_Logo_Icon_Localhost.svg?react'
5
- export const LocalNetworkIcon = (props: React.ComponentProps<typeof SvgIcon>) => {
6
- return (
7
- <SvgIcon
8
- viewBox="0 0 256 256"
9
- component={LocalNetworkSvg}
10
- {...props}
11
- />
12
- )
13
- }
14
-
15
- export { default as LocalNetworkIconString } from './XL1_Logo_Icon_Localhost.svg?raw'
@@ -1 +0,0 @@
1
- <svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><path d="M154.71,97c.46,2.59,2.5,4.62,5.1,5.05l14.05,2.34,31.71-46.17c4.57-6.65-3.62-14.62-10.14-9.87l-43.68,31.83,2.97,16.82Z" style="fill:#8d8fc6;"/><path d="M173.86,151.62l-14.05,2.34c-2.6.43-4.64,2.45-5.1,5.05l-2.97,16.82,43.68,31.83c6.52,4.75,14.71-3.21,10.14-9.87l-31.71-46.17Z" style="fill:#eb407a;"/><path d="M82.14,104.38l14.05-2.34c2.6-.43,4.64-2.45,5.1-5.05l2.97-16.82-43.68-31.83c-6.52-4.75-14.71,3.21-10.14,9.87l31.71,46.17Z" style="fill:#579fd6;"/><path d="M101.29,159c-.46-2.59-2.5-4.62-5.1-5.05l-14.05-2.34-31.71,46.17c-4.57,6.65,3.62,14.62,10.14,9.87l43.68-31.83-2.97-16.82Z" style="fill:#f27046;"/><path d="M107.33,104l15.94-90.32c.93-5.3,8.53-5.3,9.47,0l15.94,90.32c.35,2.01,1.94,3.57,3.95,3.91l92.24,15.35c5.36.89,5.36,8.59,0,9.49l-92.24,15.35c-2.01.33-3.59,1.9-3.95,3.91l-15.94,90.32c-.93,5.3-8.53,5.3-9.47,0l-15.94-90.32c-.35-2.01-1.94-3.57-3.95-3.91l-92.24-15.35c-5.36-.89-5.36-8.59,0-9.49l92.24-15.35c2.01-.33,3.59-1.9,3.95-3.91Z" style="fill:#572aff;"/></svg>
@@ -1,15 +0,0 @@
1
- import { SvgIcon } from '@mui/material'
2
- import React from 'react'
3
-
4
- import MainNetworkSvg from './XL1_Logo_Icon_Mainnet.svg?react'
5
- export const MainNetworkIcon = (props: React.ComponentProps<typeof SvgIcon>) => {
6
- return (
7
- <SvgIcon
8
- viewBox="0 0 256 256"
9
- component={MainNetworkSvg}
10
- {...props}
11
- />
12
- )
13
- }
14
-
15
- export { default as MainNetworkIconString } from './XL1_Logo_Icon_Mainnet.svg?raw'
@@ -1 +0,0 @@
1
- <?xml version="1.0" encoding="UTF-8"?><svg id="Layer_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 256"><g style="opacity:.5;"><path d="M154.71,97c.46,2.59,2.5,4.62,5.1,5.05l14.05,2.34,31.71-46.17c4.57-6.65-3.62-14.62-10.14-9.87l-43.68,31.83,2.97,16.82Z" style="fill:#579fd6;"/><path d="M173.86,151.62l-14.05,2.34c-2.6.43-4.64,2.45-5.1,5.05l-2.97,16.82,43.68,31.83c6.52,4.75,14.71-3.21,10.14-9.87l-31.71-46.17Z" style="fill:#579fd6;"/><path d="M82.14,104.38l14.05-2.34c2.6-.43,4.64-2.45,5.1-5.05l2.97-16.82-43.68-31.83c-6.52-4.75-14.71,3.21-10.14,9.87l31.71,46.17Z" style="fill:#579fd6;"/><path d="M101.29,159c-.46-2.59-2.5-4.62-5.1-5.05l-14.05-2.34-31.71,46.17c-4.57,6.65,3.62,14.62,10.14,9.87l43.68-31.83-2.97-16.82Z" style="fill:#579fd6;"/></g><path d="M107.33,104l15.94-90.32c.93-5.3,8.53-5.3,9.47,0l15.94,90.32c.35,2.01,1.94,3.57,3.95,3.91l92.24,15.35c5.36.89,5.36,8.59,0,9.49l-92.24,15.35c-2.01.33-3.59,1.9-3.95,3.91l-15.94,90.32c-.93,5.3-8.53,5.3-9.47,0l-15.94-90.32c-.35-2.01-1.94-3.57-3.95-3.91l-92.24-15.35c-5.36-.89-5.36-8.59,0-9.49l92.24-15.35c2.01-.33,3.59-1.9,3.95-3.91Z" style="fill:#579fd6;"/></svg>
@@ -1,15 +0,0 @@
1
- import { SvgIcon } from '@mui/material'
2
- import React from 'react'
3
-
4
- import SequenceNetworkSvg from './XL1_Logo_Icon_Testnet.svg?react'
5
- export const SequenceNetworkIcon = (props: React.ComponentProps<typeof SvgIcon>) => {
6
- return (
7
- <SvgIcon
8
- viewBox="0 0 256 256"
9
- component={SequenceNetworkSvg}
10
- {...props}
11
- />
12
- )
13
- }
14
-
15
- export { default as SequenceNetworkIconString } from './XL1_Logo_Icon_Testnet.svg?raw'
@@ -1,54 +0,0 @@
1
- /* eslint-disable @stylistic/max-len */
2
- import { createSvgIcon } from '@mui/material'
3
- import React from 'react'
4
-
5
- export const XyoColorLogo = createSvgIcon(
6
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 238">
7
- <path
8
- className="cls-1"
9
- d="M74.5,28.33,21.29,120.5,74.5,212.67H180.94l1.76-3,51.46-89.13L180.94,28.33ZM84.65,40.54h78.83L111.65,56.93a15.85,15.85,0,0,1,2,5l59.66-18.81L185.22,101a20.12,20.12,0,0,1,5.36-.78l-10-47.91,37.87,65.53h-7.62a24.21,24.21,0,0,1,.15,2.68,23.29,23.29,0,0,1-.15,2.68h7.62l-39.1,67.75,10.92-50.13A20.57,20.57,0,0,1,185,140l-12.88,59-58.37-19.53a17.61,17.61,0,0,1-1.7,5l47.5,15.92H84.65l4-6.85A20.17,20.17,0,0,1,83.93,191L80,197.78,42.67,133.13l37,32.66a20.52,20.52,0,0,1,3.6-4L36.69,120.66,85,77.79a17.45,17.45,0,0,1-3.19-4.32l-39.46,35L80,43.22l5.56,9.69A17.51,17.51,0,0,1,90.12,50Zm28.24,31.17a16.15,16.15,0,0,1-2.68,4.64l62,35.81a19.74,19.74,0,0,1,2.83-4.54Zm-20,10.51v75.33a18,18,0,0,1,2.47-.16,17.18,17.18,0,0,1,2.89.21v-75a11.21,11.21,0,0,1-1.29,0,17.57,17.57,0,0,1-4.07-.47Zm79.34,46.63-62.08,35.81a18.45,18.45,0,0,1,2.68,4.68l62.23-36a19.68,19.68,0,0,1-2.83-4.53Z"
10
- fill="#8d8fc6"
11
- />
12
- <path
13
- className="cls-2"
14
- d="M97,48.58a17.06,17.06,0,1,0,17,17,17.08,17.08,0,0,0-17-17Zm0,5.36a11.7,11.7,0,1,1-11.7,11.69A11.65,11.65,0,0,1,97,53.94Z"
15
- fill="#579fd6"
16
- />
17
- <path
18
- className="cls-3"
19
- d="M95.37,157.39a18.73,18.73,0,1,0,18.7,18.7,18.74,18.74,0,0,0-18.7-18.7Zm0,5.31A13.4,13.4,0,1,1,82,176.09a13.37,13.37,0,0,1,13.4-13.39Z"
20
- fill="#f27046"
21
- />
22
- <path
23
- className="cls-4"
24
- d="M190.73,100.2A20.3,20.3,0,1,0,211,120.5a20.34,20.34,0,0,0-20.3-20.3Zm0,5.36a14.94,14.94,0,1,1-14.94,14.94,14.88,14.88,0,0,1,14.94-14.94Z"
25
- fill="#eb407a"
26
- />
27
- </svg>,
28
- 'XyoColorLogo',
29
- )
30
-
31
- export const XyoColorLogoString = `
32
- <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 256 238">
33
- <path
34
- className="cls-1"
35
- d="M74.5,28.33,21.29,120.5,74.5,212.67H180.94l1.76-3,51.46-89.13L180.94,28.33ZM84.65,40.54h78.83L111.65,56.93a15.85,15.85,0,0,1,2,5l59.66-18.81L185.22,101a20.12,20.12,0,0,1,5.36-.78l-10-47.91,37.87,65.53h-7.62a24.21,24.21,0,0,1,.15,2.68,23.29,23.29,0,0,1-.15,2.68h7.62l-39.1,67.75,10.92-50.13A20.57,20.57,0,0,1,185,140l-12.88,59-58.37-19.53a17.61,17.61,0,0,1-1.7,5l47.5,15.92H84.65l4-6.85A20.17,20.17,0,0,1,83.93,191L80,197.78,42.67,133.13l37,32.66a20.52,20.52,0,0,1,3.6-4L36.69,120.66,85,77.79a17.45,17.45,0,0,1-3.19-4.32l-39.46,35L80,43.22l5.56,9.69A17.51,17.51,0,0,1,90.12,50Zm28.24,31.17a16.15,16.15,0,0,1-2.68,4.64l62,35.81a19.74,19.74,0,0,1,2.83-4.54Zm-20,10.51v75.33a18,18,0,0,1,2.47-.16,17.18,17.18,0,0,1,2.89.21v-75a11.21,11.21,0,0,1-1.29,0,17.57,17.57,0,0,1-4.07-.47Zm79.34,46.63-62.08,35.81a18.45,18.45,0,0,1,2.68,4.68l62.23-36a19.68,19.68,0,0,1-2.83-4.53Z"
36
- fill="#8d8fc6"
37
- />
38
- <path
39
- className="cls-2"
40
- d="M97,48.58a17.06,17.06,0,1,0,17,17,17.08,17.08,0,0,0-17-17Zm0,5.36a11.7,11.7,0,1,1-11.7,11.69A11.65,11.65,0,0,1,97,53.94Z"
41
- fill="#579fd6"
42
- />
43
- <path
44
- className="cls-3"
45
- d="M95.37,157.39a18.73,18.73,0,1,0,18.7,18.7,18.74,18.74,0,0,0-18.7-18.7Zm0,5.31A13.4,13.4,0,1,1,82,176.09a13.37,13.37,0,0,1,13.4-13.39Z"
46
- fill="#f27046"
47
- />
48
- <path
49
- className="cls-4"
50
- d="M190.73,100.2A20.3,20.3,0,1,0,211,120.5a20.34,20.34,0,0,0-20.3-20.3Zm0,5.36a14.94,14.94,0,1,1-14.94,14.94,14.88,14.88,0,0,1,14.94-14.94Z"
51
- fill="#eb407a"
52
- />
53
- </svg>
54
- `
@@ -1 +0,0 @@
1
- export * from './icons/index.ts'