4 ms·
Can you elaborate on the blockchain testing environments/CIs thing please?
by avg_dev 4y ago
Can you elaborate on the blockchain testing environments/CIs thing please?
- exdsq 4y agoSure! So when testing you want a deterministic environment - starting from genesis, couple accounts, the ability to build or wipe state, etc… sometimes projects use multiple chains, so maybe Ethereum and Polkadot along with a bridge between them. Building this out in Docker, managing it in CI, and building a test framework to allow devs to easily complete actions like sending a tx or waiting for an event to occur in a block has been my bread and butter for three years (and taken me from a median salary to a top 1% rate). I’ve recently moved to another industry but it was good fun.
- avg_dev 4y agoWow, that's fantastic. So basically: unit test fixture setup spanning multiple external services ("Chains?") in a scriptable build, with various common/comprehensive/programmable interaction flows, and then integrating with CI? I'm making some guesses here as I'm not very familiar with the space. I think it's amazing that you have (had) made this into a career. I am a dev and spent a couple years as a QA developer. Do you think this is a space I could break into? (Decade plus of development experience plus the good fortune of growing up with a mother who was a software developer. I learned to code (badly) when I was 13. I'm more than double that age now :) If so, I'm wondering if you'd be up for chatting some more like on IM (Google Chat or Whatsapp or whatever) to elaborate further if you think this is still a viable proposition for someone new. I'd be happy to pay you for your time if you think this could make me money. I know how to set up CI, I'm vaguely familiar with bitcoin (I used to own some), and I don't care for cryptocurrency but I'm happy to meet market needs with a smile to pay the bills and then some.
- avg_dev 4y agoAnd here's another thought. I know very little of the space, again, but I've seen some headlines about smart contracts going wrong. Do you think there's any space for low hanging fruit simple auditing of smart contracts? Maybe a linter? EDIT: Here's what Ethereum suggests: https://consensys.github.io/smart-contract-best-practices/security-tools/linters-and-formatters/ https://consensys.github.io/smart-contract-best-practices/se... In particular, https://github.com/protofire/solhint/blob/master/docs/rules.md#security-rules https://github.com/protofire/solhint/blob/master/docs/rules.... https://github.com/protofire/solhint/blob/master/docs/rules.md#best-practise-rules https://github.com/protofire/solhint/blob/master/docs/rules.... https://github.com/prettier-solidity/prettier-plugin-solidity https://github.com/prettier-solidity/prettier-plugin-solidit...