@xyo-network/xl1-protocol-sdk 1.16.18 → 1.16.19
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/XyoClient.d.ts +1 -1
- package/dist/neutral/provider/XyoClient.d.ts.map +1 -1
- package/dist/neutral/provider/permissions/InvokerPermission.d.ts +1 -1
- package/package.json +4 -4
- package/src/provider/XyoClient.ts +1 -1
- package/src/provider/permissions/InvokerPermission.ts +1 -1
- package/src/provider/viewer/NetworkStake/Rewards/ByPositionViewer.ts +1 -1
- package/src/provider/viewer/NetworkStake/Rewards/ByStakerViewer.ts +1 -1
- package/src/provider/viewer/NetworkStake/Rewards/ByStepViewer.ts +1 -1
- package/src/provider/viewer/NetworkStake/Rewards/TotalViewer.ts +1 -1
- package/src/provider/viewer/NetworkStake/index.ts +1 -1
|
@@ -9,7 +9,7 @@ export interface XyoRpcGatewayConfig extends XyoGatewayConfig {
|
|
|
9
9
|
networkEndpoint: string;
|
|
10
10
|
}
|
|
11
11
|
export interface XyoClient {
|
|
12
|
-
gateways: Readonly<Record<GatewayName, XyoGateway
|
|
12
|
+
gateways: Readonly<Partial<Record<GatewayName, XyoGateway>>>;
|
|
13
13
|
permissions: XyoPermissions;
|
|
14
14
|
addGateway?(providerOrConfig: XyoGatewayConfig | XyoRpcGatewayConfig | XyoGateway): Promise<XyoGateway>;
|
|
15
15
|
removeGateway?(name: GatewayName): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"XyoClient.d.ts","sourceRoot":"","sources":["../../../src/provider/XyoClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAE5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,WAAW,CAAA;CAClB;AAED,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB;IAC3D,gBAAgB,EAAE,MAAM,CAAA;IACxB,eAAe,EAAE,MAAM,CAAA;CACxB;AAED,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,QAAQ,CAAC,MAAM,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC,CAAA;
|
|
1
|
+
{"version":3,"file":"XyoClient.d.ts","sourceRoot":"","sources":["../../../src/provider/XyoClient.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAA;AAE5D,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAA;AAC5D,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,WAAW,CAAA;CAClB;AAED,MAAM,WAAW,mBAAoB,SAAQ,gBAAgB;IAC3D,gBAAgB,EAAE,MAAM,CAAA;IACxB,eAAe,EAAE,MAAM,CAAA;CACxB;AAED,MAAM,WAAW,SAAS;IACxB,QAAQ,EAAE,QAAQ,CAAC,OAAO,CAAC,MAAM,CAAC,WAAW,EAAE,UAAU,CAAC,CAAC,CAAC,CAAA;IAC5D,WAAW,EAAE,cAAc,CAAA;IAE3B,UAAU,CAAC,CAAC,gBAAgB,EAAE,gBAAgB,GAAG,mBAAmB,GAAG,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAAA;IACvG,aAAa,CAAC,CAAC,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;CACjD"}
|
|
@@ -3,7 +3,7 @@ import type { JsonValue } from '@xylabs/sdk-js';
|
|
|
3
3
|
* Modeled after EIP-2255
|
|
4
4
|
* See - https://eips.ethereum.org/EIPS/eip-2255#specification
|
|
5
5
|
*
|
|
6
|
-
*
|
|
6
|
+
* In order to send multiple permission requests at once, do not send multiple parentCapability keys.
|
|
7
7
|
* Instead, send multiple PermissionRequest objects in the params array of the rpc call.
|
|
8
8
|
*/
|
|
9
9
|
export interface PermissionRequest {
|
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-sdk",
|
|
4
|
-
"version": "1.16.
|
|
4
|
+
"version": "1.16.19",
|
|
5
5
|
"description": "XYO Layer One SDK Protocol",
|
|
6
6
|
"homepage": "https://xylabs.com",
|
|
7
7
|
"bugs": {
|
|
@@ -39,8 +39,8 @@
|
|
|
39
39
|
"!**/*.test.*"
|
|
40
40
|
],
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@xylabs/sdk-js": "~5.0.
|
|
43
|
-
"@xylabs/telemetry": "~5.0.
|
|
42
|
+
"@xylabs/sdk-js": "~5.0.37",
|
|
43
|
+
"@xylabs/telemetry": "~5.0.37",
|
|
44
44
|
"@xyo-network/account-model": "~5.1.23",
|
|
45
45
|
"@xyo-network/archivist-memory": "~5.1.23",
|
|
46
46
|
"@xyo-network/archivist-model": "~5.1.23",
|
|
@@ -65,7 +65,7 @@
|
|
|
65
65
|
"axios": "^1.13.2",
|
|
66
66
|
"eslint": "^9.39.1",
|
|
67
67
|
"typescript": "~5.9.3",
|
|
68
|
-
"vitest": "~4.0.
|
|
68
|
+
"vitest": "~4.0.10"
|
|
69
69
|
},
|
|
70
70
|
"peerDependencies": {
|
|
71
71
|
"axios": "^1.13.2"
|
|
@@ -13,7 +13,7 @@ export interface XyoRpcGatewayConfig extends XyoGatewayConfig {
|
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
export interface XyoClient {
|
|
16
|
-
gateways: Readonly<Record<GatewayName, XyoGateway
|
|
16
|
+
gateways: Readonly<Partial<Record<GatewayName, XyoGateway>>>
|
|
17
17
|
permissions: XyoPermissions
|
|
18
18
|
|
|
19
19
|
addGateway?(providerOrConfig: XyoGatewayConfig | XyoRpcGatewayConfig | XyoGateway): Promise<XyoGateway>
|
|
@@ -4,7 +4,7 @@ import type { JsonValue } from '@xylabs/sdk-js'
|
|
|
4
4
|
* Modeled after EIP-2255
|
|
5
5
|
* See - https://eips.ethereum.org/EIPS/eip-2255#specification
|
|
6
6
|
*
|
|
7
|
-
*
|
|
7
|
+
* In order to send multiple permission requests at once, do not send multiple parentCapability keys.
|
|
8
8
|
* Instead, send multiple PermissionRequest objects in the params array of the rpc call.
|
|
9
9
|
*/
|
|
10
10
|
export interface PermissionRequest {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { NetworkStakeStepRewardsByPositionViewerOptions } from './Options.ts'
|
|
2
2
|
import type { NetworkStakeStepRewardsByIndexViewerMethodsTemplate } from './templates/index.ts'
|
|
3
3
|
|
|
4
|
-
//
|
|
4
|
+
// Viewers are client objects that can nest other viewers and ViewerMethods objects consist only of methods that return data.
|
|
5
5
|
|
|
6
6
|
export interface NetworkStakeStepRewardsByPositionViewerMethods extends
|
|
7
7
|
NetworkStakeStepRewardsByIndexViewerMethodsTemplate<NetworkStakeStepRewardsByPositionViewerOptions, number> {}
|
|
@@ -3,7 +3,7 @@ import type { Address } from '@xylabs/sdk-js'
|
|
|
3
3
|
import type { NetworkStakeStepRewardsByStakerViewerOptions } from './Options.ts'
|
|
4
4
|
import type { NetworkStakeStepRewardsByIndexViewerMethodsTemplate } from './templates/index.ts'
|
|
5
5
|
|
|
6
|
-
//
|
|
6
|
+
// Viewers are client objects that can nest other viewers and ViewerMethods objects consist only of methods that return data.
|
|
7
7
|
|
|
8
8
|
export interface NetworkStakeStepRewardsByStakerViewerMethods
|
|
9
9
|
extends NetworkStakeStepRewardsByIndexViewerMethodsTemplate<NetworkStakeStepRewardsByStakerViewerOptions, Address> {}
|
|
@@ -3,7 +3,7 @@ import type { StepIdentityString } from '@xyo-network/xl1-protocol'
|
|
|
3
3
|
import type { NetworkStakeStepRewardsByStepViewerOptions } from './Options.ts'
|
|
4
4
|
import type { NetworkStakeStepRewardsByIndexViewerMethodsTemplate } from './templates/index.ts'
|
|
5
5
|
|
|
6
|
-
//
|
|
6
|
+
// Viewers are client objects that can nest other viewers and ViewerMethods objects consist only of methods that return data.
|
|
7
7
|
|
|
8
8
|
export interface NetworkStakeStepRewardsByStepViewerMethods extends
|
|
9
9
|
NetworkStakeStepRewardsByIndexViewerMethodsTemplate<NetworkStakeStepRewardsByStepViewerOptions, StepIdentityString> {}
|
|
@@ -3,7 +3,7 @@ import type { AttoXL1 } from '@xyo-network/xl1-protocol'
|
|
|
3
3
|
import type { NetworkStakeStepRewardsRangeOptions } from './Options.ts'
|
|
4
4
|
import type { NetworkStakeStepRewardsViewerMethodsTemplate } from './templates/index.ts'
|
|
5
5
|
|
|
6
|
-
//
|
|
6
|
+
// Viewers are client objects that can nest other viewers and ViewerMethods objects consist only of methods that return data.
|
|
7
7
|
|
|
8
8
|
export interface NetworkStakeStepRewardsTotalViewerMethods extends NetworkStakeStepRewardsViewerMethodsTemplate<NetworkStakeStepRewardsRangeOptions, AttoXL1> {}
|
|
9
9
|
export interface NetworkStakeStepRewardsTotalViewer extends NetworkStakeStepRewardsTotalViewerMethods {}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
export * from './NetworkStakeViewer.ts'
|
|
2
2
|
export * from './Rewards/index.ts'
|
|
3
3
|
|
|
4
|
-
//
|
|
4
|
+
// Viewers are client objects that can nest other viewers and ViewerMethods objects consist only of methods that return data.
|