{"id":15292369,"url":"https://github.com/ganchix/testcontainers-java-module-ganache","last_synced_at":"2025-04-13T11:12:23.781Z","repository":{"id":57733308,"uuid":"134178526","full_name":"ganchix/testcontainers-java-module-ganache","owner":"ganchix","description":"Testcontainers module for Ganache CLI","archived":false,"fork":false,"pushed_at":"2018-09-13T18:08:45.000Z","size":72,"stargazers_count":8,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-13T11:12:17.931Z","etag":null,"topics":["ethereum","ganache","ganache-cli","java","test","testcontainers","testing"],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ganchix.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-05-20T19:06:50.000Z","updated_at":"2023-07-27T02:32:38.000Z","dependencies_parsed_at":"2022-09-26T22:11:20.059Z","dependency_job_id":null,"html_url":"https://github.com/ganchix/testcontainers-java-module-ganache","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganchix%2Ftestcontainers-java-module-ganache","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganchix%2Ftestcontainers-java-module-ganache/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganchix%2Ftestcontainers-java-module-ganache/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ganchix%2Ftestcontainers-java-module-ganache/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ganchix","download_url":"https://codeload.github.com/ganchix/testcontainers-java-module-ganache/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248703198,"owners_count":21148118,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ethereum","ganache","ganache-cli","java","test","testcontainers","testing"],"created_at":"2024-09-30T16:17:32.945Z","updated_at":"2025-04-13T11:12:23.755Z","avatar_url":"https://github.com/ganchix.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TestContainers Ganache testing module [![Build Status](https://travis-ci.org/ganchix/testcontainers-java-module-ganache.svg?branch=master)](https://travis-ci.org/ganchix/testcontainers-java-module-ganache) [![codecov](https://codecov.io/gh/ganchix/testcontainers-java-module-ganache/branch/master/graph/badge.svg)](https://codecov.io/gh/ganchix/testcontainers-java-module-ganache) [![Maven Central](https://maven-badges.herokuapp.com/maven-central/io.github.ganchix/testcontainers-java-module-ganache/badge.svg?style=plastic)](https://maven-badges.herokuapp.com/maven-central/io.github.ganchix/testcontainers-java-module-ganache) [![GitHub stars](https://img.shields.io/github/stars/badges/shields.svg?style=social\u0026label=Star)](https://github.com/ganchix/testcontainers-java-module-ganache)\n\nTestcontainers module for [Ganache](http://truffleframework.com/ganache/).\n\n# Table of Contents\n \n- [Overview](#overview)\n- [Getting started](#getting-started)\n- [Considerations](#considerations)\n- [License](#license)\n\n\n### Overview\n\nA simple way to test [Ethereum](https://www.ethereum.org/) in your Java Code\n\nSee [testcontainers.org](https://www.testcontainers.org) for more information about Testcontainers.\n\n### Getting started\n\n#### Add dependency\n\n##### Maven\n\n```\n\u003cdependency\u003e\n    \u003cgroupId\u003eio.github.ganchix\u003c/groupId\u003e\n    \u003cartifactId\u003etestcontainers-java-module-ganache\u003c/artifactId\u003e\n    \u003cversion\u003e0.0.4\u003c/version\u003e\n\u003c/dependency\u003e\n```\n\n##### Gradle\n\n```\ncompile group: 'io.github.ganchix', name: 'testcontainers-java-module-ganache', version: '0.0.4'\n```\n\n#### Code example\n\nRunning Ganache during a test:\n\n```java\npublic class SomeTest {\n\n\n\t@Rule\n\tpublic GanacheContainer GanacheContainer = new GanacheContainer();\n\n    \n\t@Test\n\tpublic void simpleTestWithClientCreation() {\n            Web3j web3j = ganacheContainer.getWeb3j();\n            assertEquals( web3j.ethBlockNumber().send().getBlockNumber(), BigInteger.ZERO);\n            assertNotNull(ganacheContainer);\n\t}\n}\n```\n\n### Considerations\nTo obtain the data of addresses and privates keys of console log we implemented a custom log consumer [LogGanacheExtractorConsumer](src/main/java/io/github/ganchix/ganache/LogGanacheExtractorConsumer.java), \nif you overwrite it this information will not be extracted.\n \n\n### License\n\nTestcontainers module for Ganache is licensed under the MIT License. See [LICENSE](LICENSE.md) for details.\n\nCopyright (c) 2018 Rafael Ríos Moya\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fganchix%2Ftestcontainers-java-module-ganache","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fganchix%2Ftestcontainers-java-module-ganache","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fganchix%2Ftestcontainers-java-module-ganache/lists"}