Commit Graph

13 Commits

Author SHA1 Message Date
Mason
a8e1ae831e
Revert "Minting badges" 2023-03-10 15:47:49 -06:00
nftchance
7f1665bca9 fix: updated api 2023-03-05 18:21:58 -06:00
Mason
159cce3f10 feat: delegate interface
This half of the PR handles what should be all the delegate interfacing that we currently have available. Editing badges is not currently implemented but when they are, delegates should be able to do that too.

I added an API end point that simply gets the User object (just address actually) from a request with stored csrf credentials. If not, the usual not authenticated errors appear which the front end handles.

This was necessary to better support wallet switching and reduce the number of signatures that someone switching back and forth would have to sign. This way, if someone switches accounts, they receive an error message saying the account has changed, and to either sign in again or switch back to {account_address}. Switching back then does not require another signature. If this is an issue please be my guest to resolve as I spent a long time trying to find a way around it with no success.

Finally, I decided not to surface a signature request for this reason, as well as I find it annoying when I have the tab open doing other things and suddenly get a signature request. Personally, I want to do this to when we switch to a different chain as well. Surface it once but not again.

This will come with a push that better handles chain error messages and switching if approved, though.
2022-10-21 03:03:02 -05:00
nftchance
5e8873c1c1 feat: serializer that supports delegates 2022-10-19 23:45:57 -05:00
nftchance
956c2e3ad7 fix: api permissions stuck in cache 2022-10-13 14:28:15 -05:00
nftchance
08c00b779d fix: api repair 2022-10-07 01:14:07 -05:00
nftchance
2ad1dcfc05 fix: api create wallets on submit 2022-10-07 00:24:52 -05:00
masonchain
6746989e7b by god authentication works 2022-10-04 13:53:54 -05:00
nftchance
2e409ba37b feat: api + frontend connection start 2022-10-02 23:08:59 -05:00
nftchance
880b59a8cf feat: api improvements 2022-10-02 21:56:38 -05:00
nftchance
1943776248 feat: updating contract validation 2022-10-02 21:46:00 -05:00
nftchance
e36ba27850 feat: updated api to support auth 2022-10-02 21:37:56 -05:00
nftchance
10c7a58120 feat: actually function wallet users
Co-authored-by: Mason <masonchain@users.noreply.github.com>
2022-10-02 21:31:56 -05:00