@metamask-previews/perps-controller 8.0.0-preview-afaf415 → 8.0.0-preview-7bc7196a6

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 +1 @@
1
- {"version":3,"file":"messenger.cjs","sourceRoot":"","sources":["../../src/types/messenger.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n AccountTreeControllerGetAccountsFromSelectedAccountGroupAction,\n AccountTreeControllerSelectedAccountGroupChangeEvent,\n} from '@metamask/account-tree-controller';\nimport type {\n AccountsControllerGetSelectedAccountAction,\n AccountsControllerSelectedAccountChangeEvent,\n} from '@metamask/accounts-controller';\nimport type { GeolocationControllerGetGeolocationAction } from '@metamask/geolocation-controller';\nimport type {\n KeyringControllerGetStateAction,\n KeyringControllerSignTypedMessageAction,\n} from '@metamask/keyring-controller';\nimport type { Messenger } from '@metamask/messenger';\nimport type {\n NetworkControllerGetStateAction,\n NetworkControllerGetNetworkClientByIdAction,\n NetworkControllerFindNetworkClientIdByChainIdAction,\n} from '@metamask/network-controller';\nimport type { AuthenticationController } from '@metamask/profile-sync-controller';\nimport type {\n RemoteFeatureFlagControllerGetStateAction,\n RemoteFeatureFlagControllerStateChangeEvent,\n} from '@metamask/remote-feature-flag-controller';\nimport type { TransactionControllerAddTransactionAction } from '@metamask/transaction-controller';\n\n/**\n * Actions from other controllers that PerpsController is allowed to call.\n */\nexport type PerpsControllerAllowedActions =\n | GeolocationControllerGetGeolocationAction\n | NetworkControllerGetStateAction\n | NetworkControllerGetNetworkClientByIdAction\n | NetworkControllerFindNetworkClientIdByChainIdAction\n | KeyringControllerGetStateAction\n | KeyringControllerSignTypedMessageAction\n | TransactionControllerAddTransactionAction\n | RemoteFeatureFlagControllerGetStateAction\n | AccountsControllerGetSelectedAccountAction\n | AccountTreeControllerGetAccountsFromSelectedAccountGroupAction\n | AuthenticationController.AuthenticationControllerGetBearerTokenAction;\n\n/**\n * Events from other controllers that PerpsController is allowed to subscribe to.\n */\nexport type PerpsControllerAllowedEvents =\n | RemoteFeatureFlagControllerStateChangeEvent\n | AccountsControllerSelectedAccountChangeEvent\n | AccountTreeControllerSelectedAccountGroupChangeEvent;\n\n/**\n * The messenger type used by PerpsController and its services.\n * Defined here (rather than in PerpsController.ts) to avoid circular imports\n * between the controller and service files.\n *\n * The first two type parameters (Actions, Events) are filled in by\n * PerpsController.ts when it unions in its own actions/events.\n * Services use this base type directly since they only need the allowed\n * external actions/events.\n */\nexport type PerpsControllerMessengerBase = Messenger<\n 'PerpsController',\n PerpsControllerAllowedActions,\n PerpsControllerAllowedEvents\n>;\n"]}
1
+ {"version":3,"file":"messenger.cjs","sourceRoot":"","sources":["../../src/types/messenger.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n AccountTreeControllerGetAccountsFromSelectedAccountGroupAction,\n AccountTreeControllerSelectedAccountGroupChangeEvent,\n} from '@metamask/account-tree-controller';\nimport type {\n AccountsControllerGetSelectedAccountAction,\n AccountsControllerSelectedAccountChangeEvent,\n} from '@metamask/accounts-controller';\nimport type {\n AuthenticatedUserStorageServiceGetNotificationPreferencesAction,\n AuthenticatedUserStorageServicePutNotificationPreferencesAction,\n} from '@metamask/authenticated-user-storage';\nimport type { GeolocationControllerGetGeolocationAction } from '@metamask/geolocation-controller';\nimport type {\n KeyringControllerGetStateAction,\n KeyringControllerSignTypedMessageAction,\n} from '@metamask/keyring-controller';\nimport type { Messenger } from '@metamask/messenger';\nimport type {\n NetworkControllerGetStateAction,\n NetworkControllerGetNetworkClientByIdAction,\n NetworkControllerFindNetworkClientIdByChainIdAction,\n} from '@metamask/network-controller';\nimport type { AuthenticationController } from '@metamask/profile-sync-controller';\nimport type {\n RemoteFeatureFlagControllerGetStateAction,\n RemoteFeatureFlagControllerStateChangeEvent,\n} from '@metamask/remote-feature-flag-controller';\nimport type { TransactionControllerAddTransactionAction } from '@metamask/transaction-controller';\n\n/**\n * Actions from other controllers that PerpsController is allowed to call.\n */\nexport type PerpsControllerAllowedActions =\n | GeolocationControllerGetGeolocationAction\n | NetworkControllerGetStateAction\n | NetworkControllerGetNetworkClientByIdAction\n | NetworkControllerFindNetworkClientIdByChainIdAction\n | KeyringControllerGetStateAction\n | KeyringControllerSignTypedMessageAction\n | TransactionControllerAddTransactionAction\n | RemoteFeatureFlagControllerGetStateAction\n | AccountsControllerGetSelectedAccountAction\n | AccountTreeControllerGetAccountsFromSelectedAccountGroupAction\n | AuthenticationController.AuthenticationControllerGetBearerTokenAction\n | AuthenticatedUserStorageServiceGetNotificationPreferencesAction\n | AuthenticatedUserStorageServicePutNotificationPreferencesAction;\n\n/**\n * Events from other controllers that PerpsController is allowed to subscribe to.\n */\nexport type PerpsControllerAllowedEvents =\n | RemoteFeatureFlagControllerStateChangeEvent\n | AccountsControllerSelectedAccountChangeEvent\n | AccountTreeControllerSelectedAccountGroupChangeEvent;\n\n/**\n * The messenger type used by PerpsController and its services.\n * Defined here (rather than in PerpsController.ts) to avoid circular imports\n * between the controller and service files.\n *\n * The first two type parameters (Actions, Events) are filled in by\n * PerpsController.ts when it unions in its own actions/events.\n * Services use this base type directly since they only need the allowed\n * external actions/events.\n */\nexport type PerpsControllerMessengerBase = Messenger<\n 'PerpsController',\n PerpsControllerAllowedActions,\n PerpsControllerAllowedEvents\n>;\n"]}
@@ -1,5 +1,6 @@
1
1
  import type { AccountTreeControllerGetAccountsFromSelectedAccountGroupAction, AccountTreeControllerSelectedAccountGroupChangeEvent } from "@metamask/account-tree-controller";
2
2
  import type { AccountsControllerGetSelectedAccountAction, AccountsControllerSelectedAccountChangeEvent } from "@metamask/accounts-controller";
3
+ import type { AuthenticatedUserStorageServiceGetNotificationPreferencesAction, AuthenticatedUserStorageServicePutNotificationPreferencesAction } from "@metamask/authenticated-user-storage";
3
4
  import type { GeolocationControllerGetGeolocationAction } from "@metamask/geolocation-controller";
4
5
  import type { KeyringControllerGetStateAction, KeyringControllerSignTypedMessageAction } from "@metamask/keyring-controller";
5
6
  import type { Messenger } from "@metamask/messenger";
@@ -10,7 +11,7 @@ import type { TransactionControllerAddTransactionAction } from "@metamask/transa
10
11
  /**
11
12
  * Actions from other controllers that PerpsController is allowed to call.
12
13
  */
13
- export type PerpsControllerAllowedActions = GeolocationControllerGetGeolocationAction | NetworkControllerGetStateAction | NetworkControllerGetNetworkClientByIdAction | NetworkControllerFindNetworkClientIdByChainIdAction | KeyringControllerGetStateAction | KeyringControllerSignTypedMessageAction | TransactionControllerAddTransactionAction | RemoteFeatureFlagControllerGetStateAction | AccountsControllerGetSelectedAccountAction | AccountTreeControllerGetAccountsFromSelectedAccountGroupAction | AuthenticationController.AuthenticationControllerGetBearerTokenAction;
14
+ export type PerpsControllerAllowedActions = GeolocationControllerGetGeolocationAction | NetworkControllerGetStateAction | NetworkControllerGetNetworkClientByIdAction | NetworkControllerFindNetworkClientIdByChainIdAction | KeyringControllerGetStateAction | KeyringControllerSignTypedMessageAction | TransactionControllerAddTransactionAction | RemoteFeatureFlagControllerGetStateAction | AccountsControllerGetSelectedAccountAction | AccountTreeControllerGetAccountsFromSelectedAccountGroupAction | AuthenticationController.AuthenticationControllerGetBearerTokenAction | AuthenticatedUserStorageServiceGetNotificationPreferencesAction | AuthenticatedUserStorageServicePutNotificationPreferencesAction;
14
15
  /**
15
16
  * Events from other controllers that PerpsController is allowed to subscribe to.
16
17
  */
@@ -1 +1 @@
1
- {"version":3,"file":"messenger.d.cts","sourceRoot":"","sources":["../../src/types/messenger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,8DAA8D,EAC9D,oDAAoD,EACrD,0CAA0C;AAC3C,OAAO,KAAK,EACV,0CAA0C,EAC1C,4CAA4C,EAC7C,sCAAsC;AACvC,OAAO,KAAK,EAAE,yCAAyC,EAAE,yCAAyC;AAClG,OAAO,KAAK,EACV,+BAA+B,EAC/B,uCAAuC,EACxC,qCAAqC;AACtC,OAAO,KAAK,EAAE,SAAS,EAAE,4BAA4B;AACrD,OAAO,KAAK,EACV,+BAA+B,EAC/B,2CAA2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,KAAK,EAAE,yCAAyC,EAAE,yCAAyC;AAElG;;GAEG;AACH,MAAM,MAAM,6BAA6B,GACrC,yCAAyC,GACzC,+BAA+B,GAC/B,2CAA2C,GAC3C,mDAAmD,GACnD,+BAA+B,GAC/B,uCAAuC,GACvC,yCAAyC,GACzC,yCAAyC,GACzC,0CAA0C,GAC1C,8DAA8D,GAC9D,wBAAwB,CAAC,4CAA4C,GACrE,+DAA+D,GAC/D,+DAA+D,CAAC;AAEpE;;GAEG;AACH,MAAM,MAAM,4BAA4B,GACpC,2CAA2C,GAC3C,4CAA4C,GAC5C,oDAAoD,CAAC;AAEzD;;;;;;;;;GASG;AACH,MAAM,MAAM,4BAA4B,GAAG,SAAS,CAClD,iBAAiB,EACjB,6BAA6B,EAC7B,4BAA4B,CAC7B,CAAC"}
@@ -1,5 +1,6 @@
1
1
  import type { AccountTreeControllerGetAccountsFromSelectedAccountGroupAction, AccountTreeControllerSelectedAccountGroupChangeEvent } from "@metamask/account-tree-controller";
2
2
  import type { AccountsControllerGetSelectedAccountAction, AccountsControllerSelectedAccountChangeEvent } from "@metamask/accounts-controller";
3
+ import type { AuthenticatedUserStorageServiceGetNotificationPreferencesAction, AuthenticatedUserStorageServicePutNotificationPreferencesAction } from "@metamask/authenticated-user-storage";
3
4
  import type { GeolocationControllerGetGeolocationAction } from "@metamask/geolocation-controller";
4
5
  import type { KeyringControllerGetStateAction, KeyringControllerSignTypedMessageAction } from "@metamask/keyring-controller";
5
6
  import type { Messenger } from "@metamask/messenger";
@@ -10,7 +11,7 @@ import type { TransactionControllerAddTransactionAction } from "@metamask/transa
10
11
  /**
11
12
  * Actions from other controllers that PerpsController is allowed to call.
12
13
  */
13
- export type PerpsControllerAllowedActions = GeolocationControllerGetGeolocationAction | NetworkControllerGetStateAction | NetworkControllerGetNetworkClientByIdAction | NetworkControllerFindNetworkClientIdByChainIdAction | KeyringControllerGetStateAction | KeyringControllerSignTypedMessageAction | TransactionControllerAddTransactionAction | RemoteFeatureFlagControllerGetStateAction | AccountsControllerGetSelectedAccountAction | AccountTreeControllerGetAccountsFromSelectedAccountGroupAction | AuthenticationController.AuthenticationControllerGetBearerTokenAction;
14
+ export type PerpsControllerAllowedActions = GeolocationControllerGetGeolocationAction | NetworkControllerGetStateAction | NetworkControllerGetNetworkClientByIdAction | NetworkControllerFindNetworkClientIdByChainIdAction | KeyringControllerGetStateAction | KeyringControllerSignTypedMessageAction | TransactionControllerAddTransactionAction | RemoteFeatureFlagControllerGetStateAction | AccountsControllerGetSelectedAccountAction | AccountTreeControllerGetAccountsFromSelectedAccountGroupAction | AuthenticationController.AuthenticationControllerGetBearerTokenAction | AuthenticatedUserStorageServiceGetNotificationPreferencesAction | AuthenticatedUserStorageServicePutNotificationPreferencesAction;
14
15
  /**
15
16
  * Events from other controllers that PerpsController is allowed to subscribe to.
16
17
  */
@@ -1 +1 @@
1
- {"version":3,"file":"messenger.d.mts","sourceRoot":"","sources":["../../src/types/messenger.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,8DAA8D,EAC9D,oDAAoD,EACrD,0CAA0C;AAC3C,OAAO,KAAK,EACV,0CAA0C,EAC1C,4CAA4C,EAC7C,sCAAsC;AACvC,OAAO,KAAK,EAAE,yCAAyC,EAAE,yCAAyC;AAClG,OAAO,KAAK,EACV,+BAA+B,EAC/B,uCAAuC,EACxC,qCAAqC;AACtC,OAAO,KAAK,EAAE,SAAS,EAAE,4BAA4B;AACrD,OAAO,KAAK,EACV,+BAA+B,EAC/B,2CAA2C,EAC3C,mDAAmD,EACpD,qCAAqC;AACtC,OAAO,KAAK,EAAE,wBAAwB,EAAE,0CAA0C;AAClF,OAAO,KAAK,EACV,yCAAyC,EACzC,2CAA2C,EAC5C,iDAAiD;AAClD,OAAO,KAAK,EAAE,yCAAyC,EAAE,yCAAyC;AAElG;;GAEG;AACH,MAAM,MAAM,6BAA6B,GACrC,yCAAyC,GACzC,+BAA+B,GAC/B,2CAA2C,GAC3C,mDAAmD,GACnD,+BAA+B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AEG;AACH,MAAM,MAAM,4BAA4B,GACpC,2CAA2C,GAC3C,4CAA4C,GAC5C,oDAAoD,CAAC;AAEzD;;;;;;;;;GASG;AACH,MAAM,MAAM,4BAA4B,GAAG,SAAS,CAClD,iBAAiB,EACjB,6BAA6B,EAC7B,4BAA4B,CAC7B,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"messenger.mjs","sourceRoot":"","sources":["../../src/types/messenger.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n AccountTreeControllerGetAccountsFromSelectedAccountGroupAction,\n AccountTreeControllerSelectedAccountGroupChangeEvent,\n} from '@metamask/account-tree-controller';\nimport type {\n AccountsControllerGetSelectedAccountAction,\n AccountsControllerSelectedAccountChangeEvent,\n} from '@metamask/accounts-controller';\nimport type { GeolocationControllerGetGeolocationAction } from '@metamask/geolocation-controller';\nimport type {\n KeyringControllerGetStateAction,\n KeyringControllerSignTypedMessageAction,\n} from '@metamask/keyring-controller';\nimport type { Messenger } from '@metamask/messenger';\nimport type {\n NetworkControllerGetStateAction,\n NetworkControllerGetNetworkClientByIdAction,\n NetworkControllerFindNetworkClientIdByChainIdAction,\n} from '@metamask/network-controller';\nimport type { AuthenticationController } from '@metamask/profile-sync-controller';\nimport type {\n RemoteFeatureFlagControllerGetStateAction,\n RemoteFeatureFlagControllerStateChangeEvent,\n} from '@metamask/remote-feature-flag-controller';\nimport type { TransactionControllerAddTransactionAction } from '@metamask/transaction-controller';\n\n/**\n * Actions from other controllers that PerpsController is allowed to call.\n */\nexport type PerpsControllerAllowedActions =\n | GeolocationControllerGetGeolocationAction\n | NetworkControllerGetStateAction\n | NetworkControllerGetNetworkClientByIdAction\n | NetworkControllerFindNetworkClientIdByChainIdAction\n | KeyringControllerGetStateAction\n | KeyringControllerSignTypedMessageAction\n | TransactionControllerAddTransactionAction\n | RemoteFeatureFlagControllerGetStateAction\n | AccountsControllerGetSelectedAccountAction\n | AccountTreeControllerGetAccountsFromSelectedAccountGroupAction\n | AuthenticationController.AuthenticationControllerGetBearerTokenAction;\n\n/**\n * Events from other controllers that PerpsController is allowed to subscribe to.\n */\nexport type PerpsControllerAllowedEvents =\n | RemoteFeatureFlagControllerStateChangeEvent\n | AccountsControllerSelectedAccountChangeEvent\n | AccountTreeControllerSelectedAccountGroupChangeEvent;\n\n/**\n * The messenger type used by PerpsController and its services.\n * Defined here (rather than in PerpsController.ts) to avoid circular imports\n * between the controller and service files.\n *\n * The first two type parameters (Actions, Events) are filled in by\n * PerpsController.ts when it unions in its own actions/events.\n * Services use this base type directly since they only need the allowed\n * external actions/events.\n */\nexport type PerpsControllerMessengerBase = Messenger<\n 'PerpsController',\n PerpsControllerAllowedActions,\n PerpsControllerAllowedEvents\n>;\n"]}
1
+ {"version":3,"file":"messenger.mjs","sourceRoot":"","sources":["../../src/types/messenger.ts"],"names":[],"mappings":"","sourcesContent":["import type {\n AccountTreeControllerGetAccountsFromSelectedAccountGroupAction,\n AccountTreeControllerSelectedAccountGroupChangeEvent,\n} from '@metamask/account-tree-controller';\nimport type {\n AccountsControllerGetSelectedAccountAction,\n AccountsControllerSelectedAccountChangeEvent,\n} from '@metamask/accounts-controller';\nimport type {\n AuthenticatedUserStorageServiceGetNotificationPreferencesAction,\n AuthenticatedUserStorageServicePutNotificationPreferencesAction,\n} from '@metamask/authenticated-user-storage';\nimport type { GeolocationControllerGetGeolocationAction } from '@metamask/geolocation-controller';\nimport type {\n KeyringControllerGetStateAction,\n KeyringControllerSignTypedMessageAction,\n} from '@metamask/keyring-controller';\nimport type { Messenger } from '@metamask/messenger';\nimport type {\n NetworkControllerGetStateAction,\n NetworkControllerGetNetworkClientByIdAction,\n NetworkControllerFindNetworkClientIdByChainIdAction,\n} from '@metamask/network-controller';\nimport type { AuthenticationController } from '@metamask/profile-sync-controller';\nimport type {\n RemoteFeatureFlagControllerGetStateAction,\n RemoteFeatureFlagControllerStateChangeEvent,\n} from '@metamask/remote-feature-flag-controller';\nimport type { TransactionControllerAddTransactionAction } from '@metamask/transaction-controller';\n\n/**\n * Actions from other controllers that PerpsController is allowed to call.\n */\nexport type PerpsControllerAllowedActions =\n | GeolocationControllerGetGeolocationAction\n | NetworkControllerGetStateAction\n | NetworkControllerGetNetworkClientByIdAction\n | NetworkControllerFindNetworkClientIdByChainIdAction\n | KeyringControllerGetStateAction\n | KeyringControllerSignTypedMessageAction\n | TransactionControllerAddTransactionAction\n | RemoteFeatureFlagControllerGetStateAction\n | AccountsControllerGetSelectedAccountAction\n | AccountTreeControllerGetAccountsFromSelectedAccountGroupAction\n | AuthenticationController.AuthenticationControllerGetBearerTokenAction\n | AuthenticatedUserStorageServiceGetNotificationPreferencesAction\n | AuthenticatedUserStorageServicePutNotificationPreferencesAction;\n\n/**\n * Events from other controllers that PerpsController is allowed to subscribe to.\n */\nexport type PerpsControllerAllowedEvents =\n | RemoteFeatureFlagControllerStateChangeEvent\n | AccountsControllerSelectedAccountChangeEvent\n | AccountTreeControllerSelectedAccountGroupChangeEvent;\n\n/**\n * The messenger type used by PerpsController and its services.\n * Defined here (rather than in PerpsController.ts) to avoid circular imports\n * between the controller and service files.\n *\n * The first two type parameters (Actions, Events) are filled in by\n * PerpsController.ts when it unions in its own actions/events.\n * Services use this base type directly since they only need the allowed\n * external actions/events.\n */\nexport type PerpsControllerMessengerBase = Messenger<\n 'PerpsController',\n PerpsControllerAllowedActions,\n PerpsControllerAllowedEvents\n>;\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@metamask-previews/perps-controller",
3
- "version": "8.0.0-preview-afaf415",
3
+ "version": "8.0.0-preview-7bc7196a6",
4
4
  "description": "Controller for perpetual trading functionality in MetaMask",
5
5
  "keywords": [
6
6
  "Ethereum",
@@ -108,6 +108,7 @@
108
108
  },
109
109
  "devDependencies": {
110
110
  "@metamask/account-tree-controller": "^7.5.2",
111
+ "@metamask/authenticated-user-storage": "^2.0.0",
111
112
  "@metamask/auto-changelog": "^6.1.0",
112
113
  "@metamask/geolocation-controller": "^0.1.3",
113
114
  "@metamask/keyring-controller": "^27.0.0",
@@ -115,7 +116,7 @@
115
116
  "@metamask/network-controller": "^32.0.0",
116
117
  "@metamask/profile-sync-controller": "^28.1.1",
117
118
  "@metamask/remote-feature-flag-controller": "^4.2.2",
118
- "@metamask/transaction-controller": "^67.0.0",
119
+ "@metamask/transaction-controller": "^67.1.0",
119
120
  "@ts-bridge/cli": "^0.6.4",
120
121
  "@types/jest": "^29.5.14",
121
122
  "@types/uuid": "^8.3.0",