@xyo-network/xl1-protocol 1.12.49 → 1.12.50
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/dist/neutral/provider/XyoGateway.d.ts +1 -30
- package/dist/neutral/provider/XyoGateway.d.ts.map +1 -1
- package/dist/neutral/provider/XyoWallet.d.ts +1 -1
- package/dist/neutral/provider/XyoWallet.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/provider/XyoGateway.ts +1 -35
- package/src/provider/XyoWallet.ts +1 -1
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import type { Promisable } from '@xylabs/promise';
|
|
2
|
-
import type { InvokerPermission, Permission } from './permissions/index.ts';
|
|
3
|
-
import type { TransactionSubmitter } from './TransactionSubmitter.ts';
|
|
4
2
|
import type { XyoConnection } from './XyoConnection.ts';
|
|
5
3
|
import type { XyoGatewayHelpers } from './XyoGatewayHelpers.ts';
|
|
6
4
|
import type { XyoSigner } from './XyoSigner.ts';
|
|
@@ -8,34 +6,7 @@ import type { XyoSigner } from './XyoSigner.ts';
|
|
|
8
6
|
export interface XyoConnectionConfigDeprecated {
|
|
9
7
|
name: string;
|
|
10
8
|
}
|
|
11
|
-
|
|
12
|
-
export interface XyoGatewayProviderDeprecated extends TransactionSubmitter {
|
|
13
|
-
/**
|
|
14
|
-
* @deprecated use `connection()` instead
|
|
15
|
-
*/
|
|
16
|
-
activeConnection(): Promisable<XyoConnection | undefined>;
|
|
17
|
-
/**
|
|
18
|
-
* @deprecated use `connection()` instead
|
|
19
|
-
*/
|
|
20
|
-
addConnection(config: XyoConnectionConfigDeprecated): Promisable<XyoConnection>;
|
|
21
|
-
/**
|
|
22
|
-
* @deprecated use `connection()` instead
|
|
23
|
-
*/
|
|
24
|
-
connections(): Promisable<Record<string, XyoConnection>>;
|
|
25
|
-
/**
|
|
26
|
-
* @deprecated Permissions now at Client level
|
|
27
|
-
*/
|
|
28
|
-
getPermissions(): Promisable<InvokerPermission[]>;
|
|
29
|
-
/**
|
|
30
|
-
* @deprecated Permissions now at Client level
|
|
31
|
-
*/
|
|
32
|
-
requestPermissions(permissions: Permission[]): Promisable<boolean>;
|
|
33
|
-
/**
|
|
34
|
-
* @deprecated Permissions now at Client level
|
|
35
|
-
*/
|
|
36
|
-
revokePermissions(permissions: Permission[]): Promisable<boolean>;
|
|
37
|
-
}
|
|
38
|
-
export interface XyoGatewayProvider extends Partial<XyoGatewayHelpers>, Partial<XyoGatewayProviderDeprecated> {
|
|
9
|
+
export interface XyoGatewayProvider extends Partial<XyoGatewayHelpers> {
|
|
39
10
|
/**
|
|
40
11
|
* Returns the connection provider for this gateway.
|
|
41
12
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XyoGateway.d.ts","sourceRoot":"","sources":["../../../src/provider/XyoGateway.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,
|
|
1
|
+
{"version":3,"file":"XyoGateway.d.ts","sourceRoot":"","sources":["../../../src/provider/XyoGateway.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAA;AACvD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAC/D,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE/C,kDAAkD;AAClD,MAAM,WAAW,6BAA6B;IAC5C,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,kBAAmB,SAAQ,OAAO,CAAC,iBAAiB,CAAC;IACpE;;OAEG;IACH,UAAU,IAAI,UAAU,CAAC,aAAa,CAAC,CAAA;IACvC;;OAEG;IACH,MAAM,IAAI,UAAU,CAAC,SAAS,CAAC,CAAA;CAChC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { Address } from '@xylabs/hex';
|
|
2
2
|
import type { Promisable } from '@xylabs/promise';
|
|
3
3
|
import type { Chain } from '../model.ts';
|
|
4
|
-
/** @deprecated - use
|
|
4
|
+
/** @deprecated - use XyoClient instead */
|
|
5
5
|
export interface XyoWallet {
|
|
6
6
|
accounts(): Promisable<Address[]>;
|
|
7
7
|
addChain(chain: Chain, name?: string): Promisable<object>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XyoWallet.d.ts","sourceRoot":"","sources":["../../../src/provider/XyoWallet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAExC,
|
|
1
|
+
{"version":3,"file":"XyoWallet.d.ts","sourceRoot":"","sources":["../../../src/provider/XyoWallet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,aAAa,CAAA;AAExC,2CAA2C;AAC3C,MAAM,WAAW,SAAS;IACxB,QAAQ,IAAI,UAAU,CAAC,OAAO,EAAE,CAAC,CAAA;IACjC,QAAQ,CAAC,KAAK,EAAE,KAAK,EAAE,IAAI,CAAC,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IACzD,KAAK,IAAI,UAAU,CAAC,KAAK,CAAC,CAAA;IAC1B,MAAM,IAAI,UAAU,CAAC,MAAM,CAAC,CAAA;IAC5B,WAAW,IAAI,UAAU,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC,CAAA;IACjD,kBAAkB,CAAC,WAAW,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAC3D,iBAAiB,CAAC,WAAW,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAC1D,WAAW,CAAC,KAAK,EAAE,KAAK,GAAG,UAAU,CAAC,IAAI,CAAC,CAAA;CAC5C"}
|
package/package.json
CHANGED
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
import type { Promisable } from '@xylabs/promise'
|
|
2
2
|
|
|
3
|
-
import type { InvokerPermission, Permission } from './permissions/index.ts'
|
|
4
|
-
// eslint-disable-next-line sonarjs/deprecation
|
|
5
|
-
import type { TransactionSubmitter } from './TransactionSubmitter.ts'
|
|
6
3
|
import type { XyoConnection } from './XyoConnection.ts'
|
|
7
4
|
import type { XyoGatewayHelpers } from './XyoGatewayHelpers.ts'
|
|
8
5
|
import type { XyoSigner } from './XyoSigner.ts'
|
|
@@ -12,38 +9,7 @@ export interface XyoConnectionConfigDeprecated {
|
|
|
12
9
|
name: string
|
|
13
10
|
}
|
|
14
11
|
|
|
15
|
-
|
|
16
|
-
// eslint-disable-next-line sonarjs/deprecation
|
|
17
|
-
export interface XyoGatewayProviderDeprecated extends TransactionSubmitter {
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated use `connection()` instead
|
|
20
|
-
*/
|
|
21
|
-
activeConnection(): Promisable<XyoConnection | undefined>
|
|
22
|
-
/**
|
|
23
|
-
* @deprecated use `connection()` instead
|
|
24
|
-
*/
|
|
25
|
-
// eslint-disable-next-line sonarjs/deprecation
|
|
26
|
-
addConnection(config: XyoConnectionConfigDeprecated): Promisable<XyoConnection>
|
|
27
|
-
/**
|
|
28
|
-
* @deprecated use `connection()` instead
|
|
29
|
-
*/
|
|
30
|
-
connections(): Promisable<Record<string, XyoConnection>>
|
|
31
|
-
/**
|
|
32
|
-
* @deprecated Permissions now at Client level
|
|
33
|
-
*/
|
|
34
|
-
getPermissions(): Promisable<InvokerPermission[]>
|
|
35
|
-
/**
|
|
36
|
-
* @deprecated Permissions now at Client level
|
|
37
|
-
*/
|
|
38
|
-
requestPermissions(permissions: Permission[]): Promisable<boolean>
|
|
39
|
-
/**
|
|
40
|
-
* @deprecated Permissions now at Client level
|
|
41
|
-
*/
|
|
42
|
-
revokePermissions(permissions: Permission[]): Promisable<boolean>
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
// eslint-disable-next-line sonarjs/deprecation
|
|
46
|
-
export interface XyoGatewayProvider extends Partial<XyoGatewayHelpers>, Partial<XyoGatewayProviderDeprecated> {
|
|
12
|
+
export interface XyoGatewayProvider extends Partial<XyoGatewayHelpers> {
|
|
47
13
|
/**
|
|
48
14
|
* Returns the connection provider for this gateway.
|
|
49
15
|
*/
|
|
@@ -3,7 +3,7 @@ import type { Promisable } from '@xylabs/promise'
|
|
|
3
3
|
|
|
4
4
|
import type { Chain } from '../model.ts'
|
|
5
5
|
|
|
6
|
-
/** @deprecated - use
|
|
6
|
+
/** @deprecated - use XyoClient instead */
|
|
7
7
|
export interface XyoWallet {
|
|
8
8
|
accounts(): Promisable<Address[]>
|
|
9
9
|
addChain(chain: Chain, name?: string): Promisable<object>
|