Need help working with multiline input

Hello there

I want to use a list of wallet addresses and values from a multiline input and use it in a plugin.

the multiline input that people will fill out is in this format:
0x3df332e44a0bbff025838c187873d77f92caf5e9,0.001
0x76d31966abf3edeb29e599eac4adcb72fba85e6a,1
0xC8c30Fa803833dD1Fd6DBCDd91Ed0b301EFf87cF,3.45

i need to get the whole list and set two states as follows:
state Wallets:
[“0x3df332e44a0bbff025838c187873d77f92caf5e9”,“0x76d31966abf3edeb29e599eac4adcb72fba85e6a”,“0xC8c30Fa803833dD1Fd6DBCDd91Ed0b301EFf87cF”]

state Values: [0.001,1,3.45]

how can i do that?

there is a plugin called “Wrap List to Array”, but i can’t get it to do what i need…

can anyone help?

thanks in advance