@xyo-network/react-chain-model 1.7.7 → 1.7.9

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/README.md CHANGED
@@ -8,13 +8,132 @@
8
8
  [![npm-license-badge][]](LICENSE)
9
9
  [![socket-badge][]][socket-link]
10
10
 
11
- Version: 1.7.3
12
-
13
11
  XYO Layer One React SDK Stake
14
12
 
15
13
  ## Documentation
16
14
 
17
- [TypeDoc Generated Documentation](https://gitbook.xyo.network/xyo-data-lab/xyo-reference/package-documentation/xyo-network__react-chain-model)
15
+ ## Reference
16
+
17
+ **@xyo-network/react-chain-model**
18
+
19
+ ***
20
+
21
+ ## Interfaces
22
+
23
+ - [XyoGlobal](#interfaces/XyoGlobal)
24
+
25
+ ## Functions
26
+
27
+ - [hasXyoWalletInjectable](#functions/hasXyoWalletInjectable)
28
+ - [hasXyoWalletProvider](#functions/hasXyoWalletProvider)
29
+ - [getXyoProvider](#functions/getXyoProvider)
30
+
31
+ ### functions
32
+
33
+ ### <a id="getXyoProvider"></a>getXyoProvider
34
+
35
+ [**@xyo-network/react-chain-model**](#../README)
36
+
37
+ ***
38
+
39
+ ```ts
40
+ function getXyoProvider(options): XyoConnectionProvider;
41
+ ```
42
+
43
+ ## Parameters
44
+
45
+ ### options
46
+
47
+ ### assert
48
+
49
+ `true`
50
+
51
+ ## Returns
52
+
53
+ `XyoConnectionProvider`
54
+
55
+ ### <a id="hasXyoWalletInjectable"></a>hasXyoWalletInjectable
56
+
57
+ [**@xyo-network/react-chain-model**](#../README)
58
+
59
+ ***
60
+
61
+ ```ts
62
+ function hasXyoWalletInjectable(): boolean;
63
+ ```
64
+
65
+ ## Returns
66
+
67
+ `boolean`
68
+
69
+ ### <a id="hasXyoWalletProvider"></a>hasXyoWalletProvider
70
+
71
+ [**@xyo-network/react-chain-model**](#../README)
72
+
73
+ ***
74
+
75
+ ```ts
76
+ function hasXyoWalletProvider(): boolean;
77
+ ```
78
+
79
+ ## Returns
80
+
81
+ `boolean`
82
+
83
+ ### interfaces
84
+
85
+ ### <a id="XyoGlobal"></a>XyoGlobal
86
+
87
+ [**@xyo-network/react-chain-model**](#../README)
88
+
89
+ ***
90
+
91
+ ## Properties
92
+
93
+ ### \_debug()
94
+
95
+ ```ts
96
+ _debug: () => void;
97
+ ```
98
+
99
+ ### Returns
100
+
101
+ `void`
102
+
103
+ ***
104
+
105
+ ### connections
106
+
107
+ ```ts
108
+ connections: object;
109
+ ```
110
+
111
+ ### Index Signature
112
+
113
+ ```ts
114
+ [chainId: string]: ChainConnection
115
+ ```
116
+
117
+ ***
118
+
119
+ ### provider?
120
+
121
+ ```ts
122
+ optional provider: XyoConnectionProvider;
123
+ ```
124
+
125
+ ***
126
+
127
+ ### walletExtensionId()
128
+
129
+ ```ts
130
+ walletExtensionId: () => string;
131
+ ```
132
+
133
+ ### Returns
134
+
135
+ `string`
136
+
18
137
 
19
138
  ## Maintainers
20
139
 
@@ -1,10 +1,11 @@
1
1
  import type { ChainConnection } from '@xyo-network/chain-network-model';
2
- import type { XyoConnectionProvider } from '@xyo-network/xl1-protocol';
2
+ import type { XyoConnectionProvider, XyoGatewayProvider } from '@xyo-network/xl1-protocol';
3
3
  export interface XyoGlobal {
4
4
  _debug: () => void;
5
5
  connections: {
6
6
  [chainId: string]: ChainConnection;
7
7
  };
8
+ gateway?: XyoGatewayProvider;
8
9
  provider?: XyoConnectionProvider;
9
10
  walletExtensionId: () => string;
10
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"XyoGlobal.d.ts","sourceRoot":"","sources":["../../../src/types/XyoGlobal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AACvE,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,2BAA2B,CAAA;AAGtE,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,WAAW,EAAE;QACX,CAAC,OAAO,EAAE,MAAM,GAAG,eAAe,CAAA;KACnC,CAAA;IACD,QAAQ,CAAC,EAAE,qBAAqB,CAAA;IAChC,iBAAiB,EAAE,MAAM,MAAM,CAAA;CAChC"}
1
+ {"version":3,"file":"XyoGlobal.d.ts","sourceRoot":"","sources":["../../../src/types/XyoGlobal.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAA;AACvE,OAAO,KAAK,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAA;AAG1F,MAAM,WAAW,SAAS;IACxB,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,WAAW,EAAE;QACX,CAAC,OAAO,EAAE,MAAM,GAAG,eAAe,CAAA;KACnC,CAAA;IACD,OAAO,CAAC,EAAE,kBAAkB,CAAA;IAC5B,QAAQ,CAAC,EAAE,qBAAqB,CAAA;IAChC,iBAAiB,EAAE,MAAM,MAAM,CAAA;CAChC"}
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-model",
4
- "version": "1.7.7",
4
+ "version": "1.7.9",
5
5
  "description": "XYO Layer One React SDK Stake",
6
6
  "homepage": "https://xylabs.com",
7
7
  "bugs": {
@@ -24,23 +24,30 @@
24
24
  ".": {
25
25
  "browser": {
26
26
  "types": "./dist/browser/index.d.ts",
27
+ "source": "./src/index.ts",
27
28
  "default": "./dist/browser/index.mjs"
28
29
  },
29
30
  "types": "./dist/browser/index.d.ts",
31
+ "source": "./src/index.ts",
30
32
  "default": "./dist/browser/index.mjs"
31
33
  },
32
34
  "./package.json": "./package.json"
33
35
  },
34
- "module": "dist/browser/index.mjs",
35
- "types": "dist/browser/index.d.ts",
36
+ "module": "./dist/browser/index.mjs",
37
+ "source": "./src/index.ts",
38
+ "types": "./dist/browser/index.d.ts",
39
+ "files": [
40
+ "dist",
41
+ "src"
42
+ ],
36
43
  "dependencies": {
37
- "@xyo-network/chain-network-model": "^1.7.7",
38
- "@xyo-network/xl1-protocol": "^1.7.5"
44
+ "@xyo-network/chain-network-model": "^1.7.9",
45
+ "@xyo-network/xl1-protocol": "^1.7.10"
39
46
  },
40
47
  "devDependencies": {
41
48
  "@xylabs/ts-scripts-yarn3": "^7.0.0",
42
49
  "@xylabs/tsconfig-react": "^7.0.0",
43
- "knip": "^5.61.3",
50
+ "knip": "^5.62.0",
44
51
  "typescript": "^5.8.3"
45
52
  },
46
53
  "publishConfig": {
@@ -1,5 +1,5 @@
1
1
  import type { ChainConnection } from '@xyo-network/chain-network-model'
2
- import type { XyoConnectionProvider } from '@xyo-network/xl1-protocol'
2
+ import type { XyoConnectionProvider, XyoGatewayProvider } from '@xyo-network/xl1-protocol'
3
3
 
4
4
  // TODO - add optional send method of type Transport
5
5
  export interface XyoGlobal {
@@ -7,6 +7,7 @@ export interface XyoGlobal {
7
7
  connections: {
8
8
  [chainId: string]: ChainConnection
9
9
  }
10
+ gateway?: XyoGatewayProvider
10
11
  provider?: XyoConnectionProvider
11
12
  walletExtensionId: () => string
12
13
  }
package/typedoc.json DELETED
@@ -1,5 +0,0 @@
1
- {
2
- "$schema": "https://typedoc.org/schema.json",
3
- "entryPoints": ["src/index.ts"],
4
- "tsconfig": "./tsconfig.typedoc.json"
5
- }
package/xy.config.ts DELETED
@@ -1,10 +0,0 @@
1
- import type { XyTsupConfig } from '@xylabs/ts-scripts-yarn3'
2
- const config: XyTsupConfig = {
3
- compile: {
4
- browser: { src: true },
5
- node: {},
6
- neutral: {},
7
- },
8
- }
9
-
10
- export default config