@xyo-network/react-chain-model 1.18.0 → 1.18.1
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 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../src/types/XyoGlobal.ts"],"sourcesContent":["import { isDefinedNotNull, isObject } from '@xylabs/sdk-js'\nimport type {
|
|
1
|
+
{"version":3,"sources":["../../src/types/XyoGlobal.ts"],"sourcesContent":["import { isDefinedNotNull, isObject } from '@xylabs/sdk-js'\nimport type {\n NetworkBootstrap, NetworkId, XyoClient,\n} from '@xyo-network/xl1-sdk'\n\nexport interface XyoGlobal extends UninitializedXyoGlobal {\n client: XyoClient\n errors: Error[]\n}\n\n/**\n * Describes the initial state of the global XYO object before initialization\n * (i.e. before the client is initialized)\n */\nexport interface UninitializedXyoGlobal {\n connections: Record<NetworkId, NetworkBootstrap>\n sessionId: () => string\n walletExtensionId: () => string\n}\n\nexport const isXyoGlobal = (obj: unknown): obj is XyoGlobal => {\n return (\n isDefinedNotNull(obj)\n && isObject(obj)\n && 'client' in obj\n && 'connections' in obj\n && 'errors' in obj\n && 'sessionId' in obj\n && 'walletExtensionId' in obj\n )\n}\n\nexport const isUninitializedXyoGlobal = (obj: unknown): obj is UninitializedXyoGlobal => {\n return (\n isDefinedNotNull(obj)\n && isObject(obj)\n && 'connections' in obj\n && 'sessionId' in obj\n && 'walletExtensionId' in obj\n && !('client' in obj)\n && ('errors' in obj)\n && Array.isArray((obj).errors)\n && obj.errors.length === 0\n )\n}\n"],"mappings":";;;;AAAA,SAASA,kBAAkBC,gBAAgB;AAoBpC,IAAMC,cAAc,wBAACC,QAAAA;AAC1B,SACEC,iBAAiBD,GAAAA,KACdE,SAASF,GAAAA,KACT,YAAYA,OACZ,iBAAiBA,OACjB,YAAYA,OACZ,eAAeA,OACf,uBAAuBA;AAE9B,GAV2B;AAYpB,IAAMG,2BAA2B,wBAACH,QAAAA;AACvC,SACEC,iBAAiBD,GAAAA,KACdE,SAASF,GAAAA,KACT,iBAAiBA,OACjB,eAAeA,OACf,uBAAuBA,OACvB,EAAE,YAAYA,QACb,YAAYA,OACbI,MAAMC,QAASL,IAAKM,MAAM,KAC1BN,IAAIM,OAAOC,WAAW;AAE7B,GAZwC;","names":["isDefinedNotNull","isObject","isXyoGlobal","obj","isDefinedNotNull","isObject","isUninitializedXyoGlobal","Array","isArray","errors","length"]}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import type { NetworkBootstrap } from '@xyo-network/xl1-
|
|
2
|
-
import type { NetworkId } from '@xyo-network/xl1-protocol';
|
|
3
|
-
import type { XyoClient } from '@xyo-network/xl1-protocol-sdk';
|
|
1
|
+
import type { NetworkBootstrap, NetworkId, XyoClient } from '@xyo-network/xl1-sdk';
|
|
4
2
|
export interface XyoGlobal extends UninitializedXyoGlobal {
|
|
5
3
|
client: XyoClient;
|
|
6
4
|
errors: Error[];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XyoGlobal.d.ts","sourceRoot":"","sources":["../../../src/types/XyoGlobal.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"XyoGlobal.d.ts","sourceRoot":"","sources":["../../../src/types/XyoGlobal.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,gBAAgB,EAAE,SAAS,EAAE,SAAS,EACvC,MAAM,sBAAsB,CAAA;AAE7B,MAAM,WAAW,SAAU,SAAQ,sBAAsB;IACvD,MAAM,EAAE,SAAS,CAAA;IACjB,MAAM,EAAE,KAAK,EAAE,CAAA;CAChB;AAED;;;GAGG;AACH,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAA;IAChD,SAAS,EAAE,MAAM,MAAM,CAAA;IACvB,iBAAiB,EAAE,MAAM,MAAM,CAAA;CAChC;AAED,eAAO,MAAM,WAAW,GAAI,KAAK,OAAO,KAAG,GAAG,IAAI,SAUjD,CAAA;AAED,eAAO,MAAM,wBAAwB,GAAI,KAAK,OAAO,KAAG,GAAG,IAAI,sBAY9D,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-model",
|
|
4
|
-
"version": "1.18.
|
|
4
|
+
"version": "1.18.1",
|
|
5
5
|
"description": "XYO Layer One React SDK Stake",
|
|
6
6
|
"homepage": "https://xylabs.com",
|
|
7
7
|
"bugs": {
|
|
@@ -44,10 +44,8 @@
|
|
|
44
44
|
"!**/*.test.*"
|
|
45
45
|
],
|
|
46
46
|
"dependencies": {
|
|
47
|
-
"@xylabs/sdk-js": "~5.0.
|
|
48
|
-
"@xyo-network/xl1-
|
|
49
|
-
"@xyo-network/xl1-protocol": "~1.14.17",
|
|
50
|
-
"@xyo-network/xl1-protocol-sdk": "~1.18.0"
|
|
47
|
+
"@xylabs/sdk-js": "~5.0.61",
|
|
48
|
+
"@xyo-network/xl1-sdk": "~1.18.2"
|
|
51
49
|
},
|
|
52
50
|
"devDependencies": {
|
|
53
51
|
"@xylabs/ts-scripts-yarn3": "~7.2.32",
|
|
@@ -61,4 +59,4 @@
|
|
|
61
59
|
"access": "public"
|
|
62
60
|
},
|
|
63
61
|
"docs": "dist/docs.json"
|
|
64
|
-
}
|
|
62
|
+
}
|
package/src/types/XyoGlobal.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { isDefinedNotNull, isObject } from '@xylabs/sdk-js'
|
|
2
|
-
import type {
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import type {
|
|
3
|
+
NetworkBootstrap, NetworkId, XyoClient,
|
|
4
|
+
} from '@xyo-network/xl1-sdk'
|
|
5
5
|
|
|
6
6
|
export interface XyoGlobal extends UninitializedXyoGlobal {
|
|
7
7
|
client: XyoClient
|