@xyo-network/xl1-protocol 1.12.45 → 1.12.47

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.
@@ -5,7 +5,7 @@ export interface NetworkStakeStepAddressRewardViewInterface {
5
5
  networkStakeStepAddressReward(address: Address, step: number, block: number): Promisable<Record<Address, bigint>>;
6
6
  networkStakeStepRewardAddressHistory(address: Address): Promisable<Record<Address, bigint>>;
7
7
  networkStakeStepRewardAddressShare(address: Address, step: number, block: number): Promisable<[/* address shares */ bigint, /* total shares */ bigint]>;
8
- networkStakeStepRewardWeightForAddress?(address: Address, step: number): Promisable<bigint>;
8
+ networkStakeStepRewardWeightForAddress(address: Address, step: number): Promisable<bigint>;
9
9
  networkStakeUnclaimedRewards(address: Address): Promisable<bigint>;
10
10
  }
11
11
  export interface NetworkStakeStepPoolRewardViewInterface {
@@ -1 +1 @@
1
- {"version":3,"file":"NetworkStakeStepReward.d.ts","sourceRoot":"","sources":["../../../../src/interfaces/view/NetworkStakeStepReward.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAA;AAC1C,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAA;AAEjD,MAAM,WAAW,0CAA0C;IACzD,0BAA0B,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAGhE,6BAA6B,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;IAGjH,oCAAoC,CAAC,OAAO,EAAE,OAAO,GAAG,UAAU,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAA;IAG3F,kCAAkC,CAAC,OAAO,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,UA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M,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAGxF,2CAA2C,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;CAChG;AAED,MAAM,WAAW,mCAAoC,SACnD,uCAAuC,EACvC,0CAA0C,EAC1C,2CAA2C;IAG3C,6BAA6B,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAG/D,gCAAgC,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;IAGjF,iCAAiC,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,UAAU,CAAC,MAAM,CAAC,CAAA;CACnF"}
@@ -4,7 +4,7 @@ import type { JsonValue } from '@xylabs/object';
4
4
  * See - https://eips.ethereum.org/EIPS/eip-2255#specification
5
5
  */
6
6
  export interface PermissionRequest {
7
- [capability: string]: {
7
+ [parentCapability: string]: {
8
8
  [caveatName: string]: JsonValue;
9
9
  };
10
10
  }
@@ -13,10 +13,10 @@ export interface PermissionRequest {
13
13
  * See - https://eips.ethereum.org/EIPS/eip-2255#specification
14
14
  */
15
15
  export interface RequestedPermission {
16
- /** Permission identifier (i.e. RPC method, action, etc.) */
17
- capability: string;
18
16
  /** Optional timestamp for when the permission was granted */
19
17
  date?: number;
18
+ /** Permission identifier (i.e. RPC method, action, etc.) */
19
+ parentCapability: string;
20
20
  }
21
21
  export type CaveatTypes = 'chain' | 'expiration' | 'filteredResponse' | 'rateLimit' | 'restrictReturnedAccounts';
22
22
  /**
@@ -34,12 +34,12 @@ export interface Caveats {
34
34
  * See - https://eips.ethereum.org/EIPS/eip-2255#specification
35
35
  */
36
36
  export interface Permission {
37
- /** Permission identifier (i.e. RPC method, action, etc.) */
38
- capability: string;
39
37
  /** Caveats for the permission, if applicable (i.e. allowed accounts, signing, etc.) */
40
38
  caveats?: Caveats[];
41
39
  /** Invoker for the given permission (URI, domain, webpage, address, etc.) */
42
40
  invoker: string;
41
+ /** Permission identifier (i.e. RPC method, action, etc.) */
42
+ parentCapability: string;
43
43
  }
44
44
  export interface InvokerPermission extends Permission {
45
45
  /** Time at which the permission was granted */
@@ -1 +1 @@
1
- {"version":3,"file":"InvokerPermission.d.ts","sourceRoot":"","sources":["../../../../src/provider/permissions/InvokerPermission.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE/C;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,CAAC,UAAU,EAAE,MAAM,GAAG;QACpB,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;KAChC,CAAA;CACF;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,4DAA4D;IAC5D,UAAU,EAAE,MAAM,CAAA;IAClB,6DAA6D;IAC7D,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,YAAY,GAAG,kBAAkB,GAAG,WAAW,GAAG,0BAA0B,CAAA;AAEhH;;;GAGG;AACH,MAAM,WAAW,OAAO;IACtB,qBAAqB;IACrB,IAAI,EAAE,WAAW,CAAA;IACjB,yGAAyG;IACzG,KAAK,EAAE,SAAS,CAAA;CACjB;AAED;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,4DAA4D;IAC5D,UAAU,EAAE,MAAM,CAAA;IAClB,uFAAuF;IACvF,OAAO,CAAC,EAAE,OAAO,EAAE,CAAA;IACnB,6EAA6E;IAC7E,OAAO,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,iBAAkB,SAAQ,UAAU;IACnD,+CAA+C;IAC/C,IAAI,CAAC,EAAE,MAAM,CAAA;CACd"}
1
+ {"version":3,"file":"InvokerPermission.d.ts","sourceRoot":"","sources":["../../../../src/provider/permissions/InvokerPermission.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAA;AAE/C;;;GAGG;AACH,MAAM,WAAW,iBAAiB;IAChC,CAAC,gBAAgB,EAAE,MAAM,GAAG;QAC1B,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;KAChC,CAAA;CACF;AAED;;;GAGG;AACH,MAAM,WAAW,mBAAmB;IAClC,6DAA6D;IAC7D,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,4DAA4D;IAC5D,gBAAgB,EAAE,MAAM,CAAA;CACzB;AAED,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,YAAY,GAAG,kBAAkB,GAAG,WAAW,GAAG,0BAA0B,CAAA;AAEhH;;;GAGG;AACH,MAAM,WAAW,OAAO;IACtB,qBAAqB;IACrB,IAAI,EAAE,WAAW,CAAA;IACjB,yGAAyG;IACzG,KAAK,EAAE,SAAS,CAAA;CACjB;AAED;;;GAGG;AACH,MAAM,WAAW,UAAU;IACzB,uFAAuF;IACvF,OAAO,CAAC,EAAE,OAAO,EAAE,CAAA;IACnB,6EAA6E;IAC7E,OAAO,EAAE,MAAM,CAAA;IACf,4DAA4D;IAC5D,gBAAgB,EAAE,MAAM,CAAA;CACzB;AAED,MAAM,WAAW,iBAAkB,SAAQ,UAAU;IACnD,+CAA+C;IAC/C,IAAI,CAAC,EAAE,MAAM,CAAA;CACd"}
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.12.45",
4
+ "version": "1.12.47",
5
5
  "description": "XYO Layer One Protocol",
6
6
  "homepage": "https://xylabs.com",
7
7
  "bugs": {
@@ -14,7 +14,7 @@ export interface NetworkStakeStepAddressRewardViewInterface {
14
14
  networkStakeStepRewardAddressShare(address: Address, step: number, block: number): Promisable<[/* address shares */bigint, /* total shares */bigint]>
15
15
 
16
16
  // estimate the current reward weight for a given address at a given step
17
- networkStakeStepRewardWeightForAddress?(address: Address, step: number): Promisable<bigint>
17
+ networkStakeStepRewardWeightForAddress(address: Address, step: number): Promisable<bigint>
18
18
 
19
19
  networkStakeUnclaimedRewards(address: Address): Promisable<bigint>
20
20
  }
@@ -5,7 +5,7 @@ import type { JsonValue } from '@xylabs/object'
5
5
  * See - https://eips.ethereum.org/EIPS/eip-2255#specification
6
6
  */
7
7
  export interface PermissionRequest {
8
- [capability: string]: {
8
+ [parentCapability: string]: {
9
9
  [caveatName: string]: JsonValue
10
10
  }
11
11
  }
@@ -15,10 +15,10 @@ export interface PermissionRequest {
15
15
  * See - https://eips.ethereum.org/EIPS/eip-2255#specification
16
16
  */
17
17
  export interface RequestedPermission {
18
- /** Permission identifier (i.e. RPC method, action, etc.) */
19
- capability: string
20
18
  /** Optional timestamp for when the permission was granted */
21
19
  date?: number
20
+ /** Permission identifier (i.e. RPC method, action, etc.) */
21
+ parentCapability: string
22
22
  }
23
23
 
24
24
  export type CaveatTypes = 'chain' | 'expiration' | 'filteredResponse' | 'rateLimit' | 'restrictReturnedAccounts'
@@ -39,12 +39,12 @@ export interface Caveats {
39
39
  * See - https://eips.ethereum.org/EIPS/eip-2255#specification
40
40
  */
41
41
  export interface Permission {
42
- /** Permission identifier (i.e. RPC method, action, etc.) */
43
- capability: string
44
42
  /** Caveats for the permission, if applicable (i.e. allowed accounts, signing, etc.) */
45
43
  caveats?: Caveats[]
46
44
  /** Invoker for the given permission (URI, domain, webpage, address, etc.) */
47
45
  invoker: string
46
+ /** Permission identifier (i.e. RPC method, action, etc.) */
47
+ parentCapability: string
48
48
  }
49
49
 
50
50
  export interface InvokerPermission extends Permission {