
Security News
New Website “Is It Really FOSS?” Tracks Transparency in Open Source Distribution Models
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
EtherFly is a Ethereum smart contract test framework in ruby.It provides two testing environments: testing in ruby EVM and testing in geth.You don't need to understand ruby grammar, just enjoy syntactic sugar.
bundle install ether-fly
Help command:
$ ether-fly
Create a new Smart Contract application
$ ether-fly n project
$ cd project
Generate new Smart Contract and test file
$ ether-fly g game
Run tests
$ ether-fly t game
You can wirte fast, simple tests.
class TokenTest < Minitest::Test
include Ethereum
def setup
@state = Tester::State.new
@solidity_code = File.read('./contracts/Token.sol')
@c = @state.abi_contract @solidity_code, language: :solidity
end
def test_issue_balance
assert_equal 0, @c.getBalance(Tester::Fixture.accounts[2])
@c.issue Tester::Fixture.accounts[2], 100
assert_equal 100, @c.getBalance(Tester::Fixture.accounts[2])
end
def test_issue_exception
assert_raises(TransactionFailed) { @c.issue Tester::Fixture.accounts[3], 100, sender: Tester::Fixture.keys[4] }
assert_equal 0, @c.getBalance(Tester::Fixture.accounts[3])
end
def test_token_transfer
@c.issue Tester::Fixture.accounts[2], 100
@c.transfer Tester::Fixture.accounts[3], 90, sender: Tester::Fixture.keys[2]
assert_equal 90, @c.getBalance(Tester::Fixture.accounts[3])
assert_raises(TransactionFailed) { @c.transfer Tester::Fixture.accounts[3], 90, sender: Tester::Fixture.keys[2] }
end
end
More details: https://github.com/seattlerb/minitest
FAQs
Unknown package
We found that ether-fly demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
A new site reviews software projects to reveal if they’re truly FOSS, making complex licensing and distribution models easy to understand.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.