File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11# 🍴 LocalNode: get Hardhat and Foundry Anvil integrated in your Java/Kotlin app
22
3- [ ![ build status] ( https://github.com/ruXlab/pokefork /actions/workflows/tests.yml/badge.svg )] ( https://github.com/ruXlab/pokefork /actions )
3+ [ ![ build status] ( https://github.com/ruXlab/localnode /actions/workflows/tests.yml/badge.svg )] ( https://github.com/ruXlab/localnode /actions )
44[ ![ License: MIT] ( https://img.shields.io/badge/License-MIT-yellow.svg )] ( https://opensource.org/licenses/MIT )
5- [ ![ Maven Central] ( https://img.shields.io/maven-central/v/vc.rux.pokefork/ktx-module.svg )] ( https://search.maven.org/artifact/vc.rux.pokefork/web3j )
5+ [ ![ Maven Central] ( https://img.shields.io/maven-central/v/vc.rux.pokefork/ktx-module.svg )] ( https://search.maven.org/artifact/vc.rux.localnode/localnode )
66
77
88LocalNode allows to run a local development or forked node of the Ethereum-like network
Original file line number Diff line number Diff line change @@ -7,11 +7,13 @@ version = "0.0-SNAPSHOT"
77
88repositories {
99 mavenCentral()
10- maven(url = " https://s01.oss.sonatype.org/content/repositories/snapshots/" ) // optional for snapshots
10+ // maven(url = "https://s01.oss.sonatype.org/content/repositories/releases/") // optional for releases
11+ // maven(url = "https://s01.oss.sonatype.org/content/repositories/snapshots/") // optional for snapshots
12+ // maven(url = "https://s01.oss.sonatype.org/content/groups/staging/") // optional for staging
1113}
1214
1315dependencies {
14- implementation(" vc.rux.localnode:web3j :0.1.0" )
16+ implementation(" vc.rux.localnode:localnode :0.1.0" )
1517 implementation(" org.web3j:core:4.10.3" )
1618}
1719
Original file line number Diff line number Diff line change @@ -3,9 +3,9 @@ import misc.archiveNodeUrl
33import org.web3j.protocol.core.DefaultBlockParameter
44import org.web3j.utils.Convert.Unit
55import org.web3j.utils.Convert.fromWei
6- import vc.rux.pokefork .anvil.AnvilNode
7- import vc.rux.pokefork .anvil.AnvilNodeConfig
8- import vc.rux.pokefork .web3j.LocalWeb3jNode
6+ import vc.rux.localnode .anvil.AnvilNode
7+ import vc.rux.localnode .anvil.AnvilNodeConfig
8+ import vc.rux.localnode .web3j.LocalWeb3jNode
99
1010object QueryBalanceApp {
1111 @JvmStatic
Original file line number Diff line number Diff line change @@ -108,9 +108,10 @@ publishing {
108108}
109109
110110signing {
111- val signingKey = project.ext[" signing.key" ] as ? String
112- val signingPassword = project.ext[" signing.password" ] as ? String
113- val keyFilePath = project.ext[" signing.secretKeyRingFile" ] as ? String
111+ fun getProp (name : String ) = runCatching { project.ext[name] }.getOrNull() as ? String
112+ val signingKey = getProp(" signing.keyId" )
113+ val signingPassword = getProp(" signing.password" )
114+ val keyFilePath = getProp(" signing.secretKeyRingFile" )
114115
115116 if (signingKey != null && signingPassword != null && keyFilePath != null ) {
116117 val keyContent = File (keyFilePath).readText()
Original file line number Diff line number Diff line change @@ -41,6 +41,5 @@ dependencyResolutionManagement {
4141 }
4242}
4343
44- include(" web3j" )
4544include(" localnode" )
4645include(" examples" )
Load diff This file was deleted.
Load diff This file was deleted.
You can’t perform that action at this time.
0 commit comments