File tree Expand file tree Collapse file tree 5 files changed +16
-16
lines changed Expand file tree Collapse file tree 5 files changed +16
-16
lines changed Original file line number Diff line number Diff line change @@ -28,11 +28,11 @@ export const createWallet = async (fastify: FastifyInstance) => {
28
28
Reply : Static < typeof responseSchema > ;
29
29
} > ( {
30
30
method : "POST" ,
31
- url : "/wallet/create" ,
31
+ url : "/backend- wallet/create" ,
32
32
schema : {
33
33
description : "Create a new backend wallet" ,
34
- tags : [ "Wallet" ] ,
35
- operationId : "wallet_create " ,
34
+ tags : [ "Backend Wallet" ] ,
35
+ operationId : "backendWallet_create " ,
36
36
response : {
37
37
...standardResponseSchema ,
38
38
[ StatusCodes . OK ] : responseSchema ,
Original file line number Diff line number Diff line change @@ -32,11 +32,11 @@ export async function getAll(fastify: FastifyInstance) {
32
32
Reply : Static < typeof responseSchema > ;
33
33
} > ( {
34
34
method : "GET" ,
35
- url : "/wallet/get-all" ,
35
+ url : "/backend- wallet/get-all" ,
36
36
schema : {
37
37
description : "Get all created EOA wallet" ,
38
- tags : [ "Wallet" ] ,
39
- operationId : "wallet_getAll " ,
38
+ tags : [ "Backend Wallet" ] ,
39
+ operationId : "backendWallet_getAll " ,
40
40
response : {
41
41
...standardResponseSchema ,
42
42
[ StatusCodes . OK ] : responseSchema ,
Original file line number Diff line number Diff line change @@ -37,11 +37,11 @@ export async function getBalance(fastify: FastifyInstance) {
37
37
Reply : Static < typeof responseSchema > ;
38
38
} > ( {
39
39
method : "GET" ,
40
- url : "/wallet/:chain/:wallet_address/get-balance" ,
40
+ url : "/backend- wallet/:chain/:wallet_address/get-balance" ,
41
41
schema : {
42
42
description : "Get Wallet Balance" ,
43
- tags : [ "Wallet" ] ,
44
- operationId : "wallet_getBalance " ,
43
+ tags : [ "Backend Wallet" ] ,
44
+ operationId : "backendWallet_getBalance " ,
45
45
params : requestSchema ,
46
46
response : {
47
47
...standardResponseSchema ,
Original file line number Diff line number Diff line change @@ -97,11 +97,11 @@ export const importWallet = async (fastify: FastifyInstance) => {
97
97
Body : Static < typeof RequestBodySchema > ;
98
98
} > ( {
99
99
method : "POST" ,
100
- url : "/wallet/import" ,
100
+ url : "/backend- wallet/import" ,
101
101
schema : {
102
102
description : "Import a wallet that has already been created" ,
103
- tags : [ "Wallet" ] ,
104
- operationId : "wallet_import " ,
103
+ tags : [ "Backend Wallet" ] ,
104
+ operationId : "backendWallet_import " ,
105
105
body : RequestBodySchema ,
106
106
response : {
107
107
...standardResponseSchema ,
Original file line number Diff line number Diff line change @@ -36,12 +36,12 @@ import { extractEvents } from "./contract/metadata/events";
36
36
import { extractFunctions } from "./contract/metadata/functions" ;
37
37
38
38
// Wallet
39
+ import { createWallet } from "./backend-wallet/create" ;
40
+ import { getAll } from "./backend-wallet/getAll" ;
41
+ import { getBalance } from "./backend-wallet/getBalance" ;
42
+ import { importWallet } from "./backend-wallet/import" ;
39
43
import { accountRoutes } from "./contract/extensions/account" ;
40
44
import { accountFactoryRoutes } from "./contract/extensions/accountFactory" ;
41
- import { createWallet } from "./wallet/create" ;
42
- import { getAll } from "./wallet/getAll" ;
43
- import { getBalance } from "./wallet/getBalance" ;
44
- import { importWallet } from "./wallet/import" ;
45
45
46
46
export const apiRoutes = async ( fastify : FastifyInstance ) => {
47
47
// Wallet
You can’t perform that action at this time.
0 commit comments