NOTES
functions:
- getTokens - read-only
- hasToken - read-only
- spendToken - write - requires user sig
- transferToken - write - requires user sig
- awardToken - write - requires user wallet addr only
- register - write - verifies & takes in user pub key to store in back end
requires user wallet addr requests to REST api returns list of ERC20 and ERC721 (relevant ones only)
just a filter on getTokens really
calls a function on a smart contract accesses user wallet sig sends a token(s) to a specified address
essentially same as transferToken
requires user wallet address sends request to REST api action happens on backend
accesses user wallet sig requires a sign to prove it's you sends request to ?
register getTokens awardToken
transferToken spendToken
REST:
- centralized server
- security: timestamp in request, consider jwt too
- standard APIs, pluggable security & backend?
ON-CHAIN:
- ?
UNITY:
- ?
- ?
TASKS:
-
create a token
-
create an NFT
-
use case: getTokens
- restapi method
- call method from Unity module
-
use case: hasToken (in game)
-
use case: awardToken (in game)
-
use case: spendToken (in game)