Create an API mutation updateContributorAdvanceWallet
That will check first if the user already has a wallet entry on the DB. If that's the case update the row.
If the user has no entry on the Wallet table create a new one.
Before storing the data in the DB check that the node is valid.
Similar to this implementation: https://github.com/setlife-network/trinary/pull/801/files#diff-35ed3315bcd4a93dba2a1648ddf7dae4917d36c6717ee187ed43a48100c84d28
Create an API mutation
updateContributorAdvanceWallet
That will check first if the user already has a wallet entry on the DB. If that's the case update the row. If the user has no entry on the Wallet table create a new one.Before storing the data in the DB check that the node is valid.