TommyJo ✈️ @ ethcc 🎩 pfp

TommyJo ✈️ @ ethcc 🎩

@tommyjo.eth

727 Following
1315 Followers


TommyJo ✈️ @ ethcc 🎩 pfp
TommyJo ✈️ @ ethcc 🎩
@tommyjo.eth
Day 25 of /100days of code. Found the issue. My getCreate2Address() function was spitting out an icorrect address for the prediction market. For now I just reverted to finding the prediction market address retroactively once deployed. Will pick up the create2 function bug once further along... but glad I have things working end to end with postman now https://github.com/tomstuart123/hive-markets-gnosis/commits/main/
0 reply
0 recast
0 reaction

TommyJo ✈️ @ ethcc 🎩 pfp
TommyJo ✈️ @ ethcc 🎩
@tommyjo.eth
@thethriller love your point about convex/concave decision This was how Vitalik thought about centralised v.s. decentralised decision making - https://vitalik.eth.limo/general/2022/09/20/daos.html
0 reply
0 recast
2 reactions

TommyJo ✈️ @ ethcc 🎩 pfp
TommyJo ✈️ @ ethcc 🎩
@tommyjo.eth
Day 24 of /100days not sure why but the erc-20 token flows aren't happening as expected. Annoying
0 reply
0 recast
1 reaction

TommyJo ✈️ @ ethcc 🎩 pfp
TommyJo ✈️ @ ethcc 🎩
@tommyjo.eth
Day 23 of /100days - so the math on sell does seem to be working better. however, to be 100% confidence I need to track the token amounts on buy and sell despite some of the functions being not set to 'public'. need another morning on this. Good signs though that using the OG contracts of gnosis was a good call
0 reply
0 recast
1 reaction

TommyJo ✈️ @ ethcc 🎩 pfp
TommyJo ✈️ @ ethcc 🎩
@tommyjo.eth
I suck at asteroids 980 in the Atari Onchain Asteroids game! Can you beat me? www.arcade.fun/?ref=0xf26d75b2Fc048F1F6C793aE9F939Fa0946a0E104
0 reply
0 recast
3 reactions

TommyJo ✈️ @ ethcc 🎩 pfp
TommyJo ✈️ @ ethcc 🎩
@tommyjo.eth
Day 22 of /100days - dumb. my old contracts hadnt provided initial liquidity so there was no need for the factory to be approved for token spend. For the old FPMM contracts of gnosis it is required. Solved now. The server can run all endpoints end to end EXCEPT, those related to selling. big test starts tomorrow; lets see if I still get the math issues when selling when I dont alter the OG contracts of gnosis https://github.com/tomstuart123/hive-markets-gnosis/commits/main/
0 reply
0 recast
1 reaction

TommyJo ✈️ @ ethcc 🎩 pfp
TommyJo ✈️ @ ethcc 🎩
@tommyjo.eth
Day 21 of /100days - hitting nonce issues in my server. Don't think thats the real issue. An error is causing the misalignment but the nonce issues make it hard to replicate. Will come back at it tomorrow
0 reply
0 recast
2 reactions

TommyJo ✈️ @ ethcc 🎩 pfp
TommyJo ✈️ @ ethcc 🎩
@tommyjo.eth
Day 20 of /100days - Updated the code in my server to work with gnosis' - not my - contracts. Will test it for bugs with postman tomorrow https://github.com/tomstuart123/hive-markets-gnosis/commits/main/
0 reply
0 recast
3 reactions

TommyJo ✈️ @ ethcc 🎩 pfp
TommyJo ✈️ @ ethcc 🎩
@tommyjo.eth
Day 19 of /100days. nice my test script now works. I only skipped over one or two functions that didnt directly translate... but I can pick that up in my server testing. Will start that tomorrow https://github.com/tomstuart123/hive-markets-gnosis/commits/main/
0 reply
0 recast
2 reactions

TommyJo ✈️ @ ethcc 🎩 pfp
TommyJo ✈️ @ ethcc 🎩
@tommyjo.eth
Day 18 of /100days. I had to go back to the deploy contracts as didn't mint any tokens to myself for testing. Turns out ERC20.sol from this 5 year old version doesn't have a public mint function... but an extended contract instead of erc20mintable.sol. Crazy. Anyway, redeployed and my test script does now create the market (again) but faces an issue in the add liquidity. Will pick up this flow for the 3rd time again this weekend https://github.com/tomstuart123/hive-markets-gnosis/commits/main/
0 reply
0 recast
2 reactions

TommyJo ✈️ @ ethcc 🎩 pfp
TommyJo ✈️ @ ethcc 🎩
@tommyjo.eth
Day 17 of /100days okay, deployed contracts on my local gnosischain via ganache. will try the test-script later today. https://github.com/tomstuart123/hive-markets-gnosis/commits/main/
0 reply
0 recast
2 reactions

TommyJo ✈️ @ ethcc 🎩 pfp
TommyJo ✈️ @ ethcc 🎩
@tommyjo.eth
Day 16 of /100days - okay, compiled now. I was importing @openzeppelin instead of 'openzeppelin-solidity'. Hate these 5 year old versions of contract packages but oh well. Edited my script to deploy the contracts to my local ganache instead of baseSepolia. https://github.com/tomstuart123/hive-markets-gnosis/commits/main/
0 reply
0 recast
2 reactions

TommyJo ✈️ @ ethcc 🎩 pfp
TommyJo ✈️ @ ethcc 🎩
@tommyjo.eth
Day 15 of /100days - pulled the abis from @gnosis package in node modules. Altered by config.js to work with my local ganache gnosis chain. Still got an error with the target address...but hopefully close https://github.com/tomstuart123/hive-markets-gnosis/commits/main/
0 reply
0 recast
1 reaction

TommyJo ✈️ @ ethcc 🎩 pfp
TommyJo ✈️ @ ethcc 🎩
@tommyjo.eth
Day 14 of /100days. I altered the script further to fit gnosis' already-deployed contracts... but hardhat isn't compiling. I might just use their ABIs directly as working with these old solidity contracts (0.5.1) isnt fun https://github.com/tomstuart123/hive-markets-gnosis/commits/main/
0 reply
0 recast
2 reactions

TommyJo ✈️ @ ethcc 🎩 pfp
TommyJo ✈️ @ ethcc 🎩
@tommyjo.eth
Day 13 of /100days - set up my own local gnosis chain with ganache. new draft of script to interact with FPMMDeterministic.sol / conditionaltokens.sol on gnosis https://github.com/tomstuart123/hive-markets-gnosis/commits/main/
0 reply
0 recast
3 reactions

TommyJo ✈️ @ ethcc 🎩 pfp
TommyJo ✈️ @ ethcc 🎩
@tommyjo.eth
Day 12 of /100days - duplicated the repo just to explore a refactor using gnosis' current. Now reviewing whether to stick with FPMM or LSMR prediction contracts https://github.com/tomstuart123/hive-markets-gnosis
0 reply
0 recast
3 reactions

TommyJo ✈️ @ ethcc 🎩 pfp
TommyJo ✈️ @ ethcc 🎩
@tommyjo.eth
Day 11-13 of /100days - using this weekend to research how heavy the option #3 refactor (below) would be. I want to be have this on base... but underestimated how many areas of code change would be required. using the contracts as they were originally on Gnosis chain, could make sense... warpcast.com/tommyjo.eth/...
0 reply
0 recast
1 reaction

TommyJo ✈️ @ ethcc 🎩 pfp
TommyJo ✈️ @ ethcc 🎩
@tommyjo.eth
Join us in talking about /daos Live now - aburra.xyz/space/245
0 reply
0 recast
2 reactions

TommyJo ✈️ @ ethcc 🎩 pfp
TommyJo ✈️ @ ethcc 🎩
@tommyjo.eth
Day 10 of /100days - still blocked...but have researched a few paths forward. 1) I solve the math problem in FixedProductMarketMaker 2) redeploy the LSMRMarketMaker on base and use that instead or 3) I give up trying to redeploy on base and just use the existing gnosis chain Kinda coming around to (3). Will give it a couple more days https://github.com/tomstuart123/hive-markets-app/commits/main/ https://warpcast.com/tommyjo.eth/0x0fa6bbab
0 reply
0 recast
1 reaction

TommyJo ✈️ @ ethcc 🎩 pfp
TommyJo ✈️ @ ethcc 🎩
@tommyjo.eth
Day 9 of /100days - Ive had massive problems with calc-sell arithmatic. when I removed safeMath to work with new versions of eth, something must have broken. My brain is going to explode with this https://github.com/tomstuart123/hive-markets-app/commits/main/ https://warpcast.com/tommyjo.eth/0x4175ec21
1 reply
0 recast
2 reactions