@xyo-network/xl1-protocol 1.9.2 → 1.9.3

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,3 +1,10 @@
1
- export type DefaultNetworkIds = 'mainnet' | 'sequence' | 'local';
2
- export type NetworkId<T extends string | void = void> = T extends void ? DefaultNetworkIds : T | DefaultNetworkIds;
1
+ import type { GatewayName } from '../provider/index.ts';
2
+ export type DefaultNetworkIds = ('mainnet' & {
3
+ __gatewayName: true;
4
+ }) | ('sequence' & {
5
+ __gatewayName: true;
6
+ }) | ('local' & {
7
+ __gatewayName: true;
8
+ });
9
+ export type NetworkId<T extends GatewayName | void = void> = T extends void ? DefaultNetworkIds : T | DefaultNetworkIds;
3
10
  //# sourceMappingURL=NetworkId.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"NetworkId.d.ts","sourceRoot":"","sources":["../../../src/network/NetworkId.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,iBAAiB,GAAG,SAAS,GAAG,UAAU,GAAG,OAAO,CAAA;AAChE,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,MAAM,GAAG,IAAI,GAAG,IAAI,IAAM,CAAC,SAAS,IAAI,GAAG,iBAAiB,GAAG,CAAC,GAAG,iBAAiB,CAAA"}
1
+ {"version":3,"file":"NetworkId.d.ts","sourceRoot":"","sources":["../../../src/network/NetworkId.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAA;AAEvD,MAAM,MAAM,iBAAiB,GAAG,CAAC,SAAS,GAAG;IAAE,aAAa,EAAE,IAAI,CAAA;CAAE,CAAC,GAAG,CAAC,UAAU,GAAG;IAAE,aAAa,EAAE,IAAI,CAAA;CAAE,CAAC,GAAG,CAAC,OAAO,GAAG;IAAE,aAAa,EAAE,IAAI,CAAA;CAAE,CAAC,CAAA;AACpJ,MAAM,MAAM,SAAS,CAAC,CAAC,SAAS,WAAW,GAAG,IAAI,GAAG,IAAI,IAAM,CAAC,SAAS,IAAI,GAAG,iBAAiB,GAAG,CAAC,GAAG,iBAAiB,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/xl1-protocol",
4
- "version": "1.9.2",
4
+ "version": "1.9.3",
5
5
  "description": "XYO Layer One Protocol",
6
6
  "homepage": "https://xylabs.com",
7
7
  "bugs": {
@@ -1,2 +1,4 @@
1
- export type DefaultNetworkIds = 'mainnet' | 'sequence' | 'local'
2
- export type NetworkId<T extends string | void = void> = | T extends void ? DefaultNetworkIds : T | DefaultNetworkIds
1
+ import type { GatewayName } from '../provider/index.ts'
2
+
3
+ export type DefaultNetworkIds = ('mainnet' & { __gatewayName: true }) | ('sequence' & { __gatewayName: true }) | ('local' & { __gatewayName: true })
4
+ export type NetworkId<T extends GatewayName | void = void> = | T extends void ? DefaultNetworkIds : T | DefaultNetworkIds