near / fast-auth-signer

https://fast-auth-signer.vercel.app
MIT License
30 stars 9 forks source link

[TECH DEBT]: Extract API calls to service file #134

Open Pessina opened 9 months ago

Pessina commented 9 months ago

Currently our API calls are spread across the codebase and not typed.

The idea of this ticket it's create a service files where we will place the API calls, doing the following:

I think this is a good ticket to discuss the approach, I extracted two API calls but we may have better solutions

Currently I'm placing the calls here: https://github.com/near/fast-auth-signer/blob/main/packages/near-fast-auth-signer/src/api/index.ts

cc: @esaminu

Pessina commented 9 months ago

createNEARAccount PR: https://github.com/near/fast-auth-signer/pull/131/files