File tree Expand file tree Collapse file tree
packages/chomp-api-service Expand file tree Collapse file tree Original file line number Diff line number Diff line change 33 "version" : " 0.0.0" ,
44 "description" : " Data service for the Chomp API" ,
55 "keywords" : [
6- " MetaMask " ,
7- " Ethereum "
6+ " Ethereum " ,
7+ " MetaMask "
88 ],
99 "homepage" : " https://github.com/MetaMask/core/tree/main/packages/chomp-api-service#readme" ,
1010 "bugs" : {
5050 "@metamask/base-data-service" : " ^0.1.1" ,
5151 "@metamask/controller-utils" : " ^11.20.0" ,
5252 "@metamask/messenger" : " ^1.1.1" ,
53- "@metamask/profile-sync-controller" : " ^28.0.2" ,
5453 "@metamask/superstruct" : " ^3.1.0" ,
5554 "@metamask/utils" : " ^11.9.0" ,
5655 "@tanstack/query-core" : " ^4.43.0"
5756 },
5857 "devDependencies" : {
59- "@metamask/auto-changelog" : " ^3.4.4 " ,
58+ "@metamask/auto-changelog" : " ^6.0.0 " ,
6059 "@ts-bridge/cli" : " ^0.6.4" ,
6160 "@types/jest" : " ^29.5.14" ,
6261 "deepmerge" : " ^4.2.2" ,
Original file line number Diff line number Diff line change @@ -7,7 +7,6 @@ import type {
77import type { CreateServicePolicyOptions } from '@metamask/controller-utils' ;
88import { HttpError } from '@metamask/controller-utils' ;
99import type { Messenger } from '@metamask/messenger' ;
10- import type { AuthenticationControllerGetBearerTokenAction } from '@metamask/profile-sync-controller/auth' ;
1110import {
1211 array ,
1312 boolean ,
@@ -77,7 +76,10 @@ export type ChompApiServiceActions =
7776/**
7877 * Actions from other messengers that {@link ChompApiService} calls.
7978 */
80- type AllowedActions = AuthenticationControllerGetBearerTokenAction ;
79+ type AllowedActions = {
80+ type : 'AuthenticationController:getBearerToken' ;
81+ handler : ( entropySourceId ?: string ) => Promise < string > ;
82+ } ;
8183
8284/**
8385 * Published when {@link ChompApiService}'s cache is updated.
@@ -176,7 +178,7 @@ const CreateWithdrawalResponseStruct = type({
176178 * This service is responsible for communicating with the CHOMP API.
177179 *
178180 * All requests are authenticated via JWT Bearer tokens obtained from the
179- * { @link AuthenticationControllerGetBearerTokenAction} messenger action.
181+ * `AuthenticationController:getBearerToken` messenger action.
180182 */
181183export class ChompApiService extends BaseDataService <
182184 typeof serviceName ,
You can’t perform that action at this time.
0 commit comments