@@ -17,38 +17,39 @@ import { erc721Routes } from "./contract/extensions/erc721";
1717import { marketplaceV3Routes } from "./contract/extensions/marketplaceV3/index" ;
1818import { prebuiltsRoutes } from "./deploy" ;
1919
20- // Chain
20+ // Chains
2121import { getChainData } from "./chain/get" ;
2222import { getAllChainData } from "./chain/getAll" ;
2323
24- // Contract Events
24+ // Contract events
2525import { getAllEvents } from "./contract/events/getAllEvents" ;
2626import { getEvents } from "./contract/events/getEvents" ;
2727
28- // Contract Roles
28+ // Contract roles
2929import { getRoles } from "./contract/roles/read/get" ;
3030import { getAllRoles } from "./contract/roles/read/getAll" ;
3131import { grantRole } from "./contract/roles/write/grant" ;
3232import { revokeRole } from "./contract/roles/write/revoke" ;
3333
34- // Contract Royalties
34+ // Contract royalties
3535import { getDefaultRoyaltyInfo } from "./contract/royalties/read/getDefaultRoyaltyInfo" ;
3636import { getTokenRoyaltyInfo } from "./contract/royalties/read/getTokenRoyaltyInfo" ;
3737import { setDefaultRoyaltyInfo } from "./contract/royalties/write/setDefaultRoyaltyInfo" ;
3838import { setTokenRoyaltyInfo } from "./contract/royalties/write/setTokenRoyaltyInfo" ;
3939
40- // Contract Metadata
40+ // Contract metadata
4141import { getABI } from "./contract/metadata/abi" ;
4242import { extractEvents } from "./contract/metadata/events" ;
4343import { extractFunctions } from "./contract/metadata/functions" ;
4444
4545// Wallet
46- import { createWallet } from "./backend-wallet/create" ;
46+ import { createBackendWallet } from "./backend-wallet/create" ;
4747import { getAll } from "./backend-wallet/getAll" ;
4848import { getBalance } from "./backend-wallet/getBalance" ;
49- import { importWallet } from "./backend-wallet/import" ;
49+ import { importBackendWallet } from "./backend-wallet/import" ;
5050import { sendTransaction } from "./backend-wallet/send" ;
5151import { transfer } from "./backend-wallet/transfer" ;
52+ import { updateBackendWallet } from "./backend-wallet/update" ;
5253
5354// Configuration
5455import { getBackendWalletBalanceConfiguration } from "./configuration/backend-wallet-balance/get" ;
@@ -66,17 +67,24 @@ import { getWebhooksEventTypes } from "./webhooks/events";
6667import { getAllWebhooksData } from "./webhooks/getAll" ;
6768import { revokeWebhook } from "./webhooks/revoke" ;
6869
69- // Accounts
70+ // Access tokens
7071import { createAccessToken } from "./auth/access-tokens/create" ;
7172import { getAllAccessTokens } from "./auth/access-tokens/getAll" ;
7273import { revokeAccessToken } from "./auth/access-tokens/revoke" ;
74+ import { updateAccessToken } from "./auth/access-tokens/update" ;
75+
76+ // Admins
7377import { getAllPermissions } from "./auth/permissions/getAll" ;
7478import { grantPermissions } from "./auth/permissions/grant" ;
7579import { revokePermissions } from "./auth/permissions/revoke" ;
7680import { getAuthConfiguration } from "./configuration/auth/get" ;
7781import { updateAuthConfiguration } from "./configuration/auth/update" ;
82+
83+ // Smart accounts
7884import { accountRoutes } from "./contract/extensions/account" ;
7985import { accountFactoryRoutes } from "./contract/extensions/accountFactory" ;
86+
87+ // Relayers
8088import { relayTransaction } from "./relayer" ;
8189import { createRelayer } from "./relayer/create" ;
8290import { getAllRelayers } from "./relayer/getAll" ;
@@ -87,9 +95,10 @@ import { healthCheck } from "./health";
8795import { home } from "./home" ;
8896
8997export const withRoutes = async ( fastify : FastifyInstance ) => {
90- // Wallet
91- await fastify . register ( createWallet ) ;
92- await fastify . register ( importWallet ) ;
98+ // Backend Wallets
99+ await fastify . register ( createBackendWallet ) ;
100+ await fastify . register ( importBackendWallet ) ;
101+ await fastify . register ( updateBackendWallet ) ;
93102 await fastify . register ( getBalance ) ;
94103 await fastify . register ( getAll ) ;
95104 await fastify . register ( transfer ) ;
@@ -122,6 +131,7 @@ export const withRoutes = async (fastify: FastifyInstance) => {
122131 await fastify . register ( getAllAccessTokens ) ;
123132 await fastify . register ( createAccessToken ) ;
124133 await fastify . register ( revokeAccessToken ) ;
134+ await fastify . register ( updateAccessToken ) ;
125135
126136 // Chains
127137 await fastify . register ( getChainData ) ;
0 commit comments