Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions packages/eth-json-rpc-middleware/CHANGELOG.md
Original file line numberDiff line numberDiff line change
Expand Up@@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Support for `wallet_getSupportedExecutionPermissions` and `wallet_getGrantedExecutionPermissions` RPC methods ([#7603](https://github.com/MetaMask/core/pull/7603))

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

PermissionDependency is also exported now


### Changed

- Upgrade `@metamask/utils` from `^11.8.1` to `^11.9.0` ([#7511](https://github.com/MetaMask/core/pull/7511))
Expand Down
282 changes: 282 additions & 0 deletions packages/eth-json-rpc-middleware/src/index.test.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -4,6 +4,288 @@ describe('index module', () => {
it('has expected JavaScript exports', () => {
expect(indexModule).toMatchInlineSnapshot(`
Object {
"GetGrantedExecutionPermissionsResultStruct": Struct {
"coercer": [Function],
"entries": [Function],
"refiner": [Function],
"schema": Struct {
"coercer": [Function],
"entries": [Function],
"refiner": [Function],
"schema": Object {
"chainId": Struct {
"coercer": [Function],
"entries": [Function],
"refiner": [Function],
"schema": null,
"type": "string",
"validator": [Function],
},
"context": Struct {
"coercer": [Function],
"entries": [Function],
"refiner": [Function],
"schema": null,
"type": "string",
"validator": [Function],
},
"delegationManager": Struct {
"coercer": [Function],
"entries": [Function],
"refiner": [Function],
"schema": null,
"type": "string",
"validator": [Function],
},
"dependencies": Struct {
"coercer": [Function],
"entries": [Function],
"refiner": [Function],
"schema": Struct {
"coercer": [Function],
"entries": [Function],
"refiner": [Function],
"schema": Object {
"factory": Struct {
"coercer": [Function],
"entries": [Function],
"refiner": [Function],
"schema": null,
"type": "string",
"validator": [Function],
},
"factoryData": Struct {
"coercer": [Function],
"entries": [Function],
"refiner": [Function],
"schema": null,
"type": "string",
"validator": [Function],
},
},
"type": "object",
"validator": [Function],
},
"type": "array",
"validator": [Function],
},
"from": Struct {
"coercer": [Function],
"entries": [Function],
"refiner": [Function],
"schema": null,
"type": "string",
"validator": [Function],
},
"permission": Struct {
"coercer": [Function],
"entries": [Function],
"refiner": [Function],
"schema": Object {
"data": Struct {
"coercer": [Function],
"entries": [Function],
"refiner": [Function],
"schema": null,
"type": "record",
"validator": [Function],
},
"isAdjustmentAllowed": Struct {
"coercer": [Function],
"entries": [Function],
"refiner": [Function],
"schema": null,
"type": "boolean",
"validator": [Function],
},
"type": Struct {
"coercer": [Function],
"entries": [Function],
"refiner": [Function],
"schema": null,
"type": "string",
"validator": [Function],
},
},
"type": "object",
"validator": [Function],
},
"to": Struct {
"coercer": [Function],
"entries": [Function],
"refiner": [Function],
"schema": null,
"type": "string",
"validator": [Function],
},
},
"type": "object",
"validator": [Function],
},
"type": "array",
"validator": [Function],
},
"GetSupportedExecutionPermissionsResultStruct": Struct {
"coercer": [Function],
"entries": [Function],
"refiner": [Function],
"schema": null,
"type": "record",
"validator": [Function],
},
"GrantedExecutionPermissionStruct": Struct {
"coercer": [Function],
"entries": [Function],
"refiner": [Function],
"schema": Object {
"chainId": Struct {
"coercer": [Function],
"entries": [Function],
"refiner": [Function],
"schema": null,
"type": "string",
"validator": [Function],
},
"context": Struct {
"coercer": [Function],
"entries": [Function],
"refiner": [Function],
"schema": null,
"type": "string",
"validator": [Function],
},
"delegationManager": Struct {
"coercer": [Function],
"entries": [Function],
"refiner": [Function],
"schema": null,
"type": "string",
"validator": [Function],
},
"dependencies": Struct {
"coercer": [Function],
"entries": [Function],
"refiner": [Function],
"schema": Struct {
"coercer": [Function],
"entries": [Function],
"refiner": [Function],
"schema": Object {
"factory": Struct {
"coercer": [Function],
"entries": [Function],
"refiner": [Function],
"schema": null,
"type": "string",
"validator": [Function],
},
"factoryData": Struct {
"coercer": [Function],
"entries": [Function],
"refiner": [Function],
"schema": null,
"type": "string",
"validator": [Function],
},
},
"type": "object",
"validator": [Function],
},
"type": "array",
"validator": [Function],
},
"from": Struct {
"coercer": [Function],
"entries": [Function],
"refiner": [Function],
"schema": null,
"type": "string",
"validator": [Function],
},
"permission": Struct {
"coercer": [Function],
"entries": [Function],
"refiner": [Function],
"schema": Object {
"data": Struct {
"coercer": [Function],
"entries": [Function],
"refiner": [Function],
"schema": null,
"type": "record",
"validator": [Function],
},
"isAdjustmentAllowed": Struct {
"coercer": [Function],
"entries": [Function],
"refiner": [Function],
"schema": null,
"type": "boolean",
"validator": [Function],
},
"type": Struct {
"coercer": [Function],
"entries": [Function],
"refiner": [Function],
"schema": null,
"type": "string",
"validator": [Function],
},
},
"type": "object",
"validator": [Function],
},
"to": Struct {
"coercer": [Function],
"entries": [Function],
"refiner": [Function],
"schema": null,
"type": "string",
"validator": [Function],
},
},
"type": "object",
"validator": [Function],
},
"SupportedExecutionPermissionConfigStruct": Struct {
"coercer": [Function],
"entries": [Function],
"refiner": [Function],
"schema": Object {
"chainIds": Struct {
"coercer": [Function],
"entries": [Function],
"refiner": [Function],
"schema": Struct {
"coercer": [Function],
"entries": [Function],
"refiner": [Function],
"schema": null,
"type": "string",
"validator": [Function],
},
"type": "array",
"validator": [Function],
},
"ruleTypes": Struct {
"coercer": [Function],
"entries": [Function],
"refiner": [Function],
"schema": Struct {
"coercer": [Function],
"entries": [Function],
"refiner": [Function],
"schema": null,
"type": "string",
"validator": [Function],
},
"type": "array",
"validator": [Function],
},
},
"type": "object",
"validator": [Function],
},
"createBlockCacheMiddleware": [Function],
"createBlockRefMiddleware": [Function],
"createBlockRefRewriteMiddleware": [Function],
Expand Down
19 changes: 19 additions & 0 deletions packages/eth-json-rpc-middleware/src/index.ts
Original file line numberDiff line numberDiff line change
Expand Up@@ -5,6 +5,7 @@ export * from './block-tracker-inspector';
export { createFetchMiddleware } from './fetch';
export * from './inflight-cache';
export type {
PermissionDependency,
RequestExecutionPermissionsRequestParams,
RequestExecutionPermissionsResult,
ProcessRequestExecutionPermissionsHook,
Expand All@@ -14,6 +15,24 @@ export type {
RevokeExecutionPermissionRequestParams,
RevokeExecutionPermissionResult,
} from './methods/wallet-revoke-execution-permission';
export type {
GrantedExecutionPermission,
GetGrantedExecutionPermissionsResult,
ProcessGetGrantedExecutionPermissionsHook,
} from './methods/wallet-get-granted-execution-permissions';
export {
GrantedExecutionPermissionStruct,
GetGrantedExecutionPermissionsResultStruct,
} from './methods/wallet-get-granted-execution-permissions';
export type {
SupportedExecutionPermissionConfig,
GetSupportedExecutionPermissionsResult,
ProcessGetSupportedExecutionPermissionsHook,
} from './methods/wallet-get-supported-execution-permissions';
export {
SupportedExecutionPermissionConfigStruct,
GetSupportedExecutionPermissionsResultStruct,
} from './methods/wallet-get-supported-execution-permissions';
export * from './providerAsMiddleware';
export * from './retryOnEmpty';
export * from './wallet';
Loading
Loading