an experiment to see if i can get a social graph working with content monetization purely using tokens
todo list
- create mint needs to work fine
- put some metadata on the token
- let user set the metadata which needs to be on the token
- mint more tokens
- ability for us the platform to mint more tokens for the user ( token 2022 )
- query the tokens on their account and let them choose one which u have mint authority towards
making $SOUL possible
- simple sign up with backend api ( connect wallet + username )
- create mint / mint new tokens / request tokens from others ( after paying a fee )
- access other people’s articles if you hold their token, or else tell them to buy
create mint:
after login, allow them to create a token mint properties:
- owner: connected wallet
- amount: user selected * 10 ** decimals
- mintauthority: owner
- freezeauthority: owner
mint tokens:
- allow them to mint tokens to their wallet
- allow them to mint tokens to their friends’ wallet
- allow friends to ask them for extra tokens
later:
- they can mint tokens to send to users or just store it themselves too
- other users can offer to buy some of their tokens for money
- offer upto 1sol / token
- wants to buy upto 100 tokens
- gated chat and gated posts and gated voting ( above x tokens )
stream:
add here
7:43 pm 24 Jan 24
hmm, the structure is very different, and im figuring out how the invokations and shit work in react like useMutation etc
but yeah im slowly getting it to work
24 Jan 24 2:49 pm
- connect wallet
- create mint if there’s no mint already
- find mint if it already exists
- how do i query that?
- post content on profile ( optionally gate )
- connect wallet first
- done
- create mint if there’s no mint already
- check if they already have a token which they have access to mint and ownership over
- if they do, let them use it as their primary token
- do we store it?
- let me just get that first
- maybe we can store that offchain - their preferred token mint
- or else also let them mint
- i think first im going to make this mint option
- then we can show the options
setting up nextjs and solana wallet stuff wtf why is this so painful
18 Jan 24 what’s the fastest way i can get a scaffold for nextjs frontend?
i saw a create-solana-dapp somewhere, lemme test that out real quick
i basically need the following
-
can just use wallets for now, no need abstraction
-
allow setting of a username ( store it offchain w the addy )
-
allow user to upload blog to arweave
-
also mint a token before they do their first blog or actually during onboarding itself
-
interaction with wallets
-
tailwind / some ui library for quick ui testing
-
typescript
bruv create-solana-dapp is PERFECTO
3:21 am
next steps:
- create transaction for
- create token mint with the necessary details
- set mintauthority to program address, so that you can mint more at will when users pay for the content 😈
yes, security bug because i hold the key, but but but but but but - who cares 💀
4:20 am wooh
a bunch of nextjs shit and ⭐ figuring it out
im not in flow 👎 i want my work days bruv
24 Jan 24 hi 2:49 pm going to break the process down and start devving
also i need to invert this shit, so from now i will be adding things to the top instead of the bottom