Content pfp
Content
@
https://warpcast.com/~/channel/base-builds
0 reply
0 recast
0 reaction

tmo - nature coiner pfp
tmo - nature coiner
@tmoindustries
This week I built.... a script thats checks and returns a full list of any NFT collection's /tokenbound 0x TBA addresses along with owner, token Id, token name, and if owner is EOA or multi-sig we use this for /basin protocol https://github.com/basin-global/Situs-Protocol-Contracts/tree/main/Tools/getAccountData
3 replies
1 recast
4 reactions

tmo - nature coiner pfp
tmo - nature coiner
@tmoindustries
@sweetman.eth I suspect you can use this for your projects
1 reply
0 recast
0 reaction

sweetman pfp
sweetman
@sweetman.eth
how can you tell if the bytecode returned is - EOA vs - TBA which has yet to be deployed both would return the same 0x bytecode right?
1 reply
0 recast
0 reaction

tmo - nature coiner pfp
tmo - nature coiner
@tmoindustries
thanks for taking time to review Just Saturday night I had noticed several ones (which I knew were TBA’s) returning ‘contract’ and been meaning to ask you or @0xjw.eth Maybe there is a 3rd option to define ‘is TBA’ ?
3 replies
0 recast
0 reaction

jw 🦺 ERC6551 pfp
jw 🦺 ERC6551
@0xjw.eth
You can verify it is a TBA by computing the TBA address with the expected input values and comparing it with the actual address. The alternative would be to pre-compute the addresses for all/a subset of TBAs and index them
1 reply
0 recast
0 reaction

tmo - nature coiner pfp
tmo - nature coiner
@tmoindustries
tried not less than 20 versions of this. I'm not sure where the error is. It pulls the right owner and right TBA 0x but eg token 558 owner should be "Is TBA" cc @sweetman.eth https://github.com/basin-global/Situs-Protocol-Contracts/blob/tmoindustries-patch-3/Tools/getAccountData/getAccountDataEdit
1 reply
0 recast
0 reaction

sweetman pfp
sweetman
@sweetman.eth
sounds like the TBA for 558 hasn't been set up yet simple solution: setup the TBA for 558 and your problem should be fixed anything I'm missing?
1 reply
0 recast
0 reaction

tmo - nature coiner pfp
tmo - nature coiner
@tmoindustries
its set up and deployed. 441 owns 558. if my script worked right it would return "Is TBA" for both those and EOA or Contract for other tokens. Jayden had some good suggestions with viem and or a 6551 .sol lib as alt methods to get the expected create2 but I need to move on to other things for now. see 6551 TG chat.
0 reply
0 recast
0 reaction