-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
- Loading branch information
Showing
13 changed files
with
411 additions
and
138 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
264 changes: 190 additions & 74 deletions
264
bivrost-abi-parser/src/main/kotlin/pm/gnosis/AbiParser.kt
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 2 additions & 5 deletions
7
bivrost-solidity-types/src/main/kotlin/pm/gnosis/model/Solidity.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
apply plugin: 'java' | ||
apply plugin: 'kotlin' | ||
apply plugin: 'maven' | ||
|
||
sourceCompatibility = 1.8 | ||
|
||
task runSolidityTypeGenerator(type: JavaExec) { | ||
def srcDirs = sourceSets.main.kotlin.getSrcDirs() | ||
if (srcDirs.isEmpty()) { | ||
logger.error("Couldn't find kotlin main source sets") | ||
return | ||
} | ||
|
||
def path = "${sourceSets.main.kotlin.getSrcDirs().getAt(0)}" | ||
main = 'pm.gnosis.SolidityTypeGenerator' | ||
classpath = sourceSets.main.runtimeClasspath | ||
args (path, project.group) | ||
} | ||
|
||
dependencies { | ||
|
||
implementation project(':bivrost-solidity-types') | ||
|
||
implementation deps.kotlin.stdLibJre8 | ||
|
||
implementation 'com.squareup.moshi:moshi:1.4.0' | ||
implementation 'com.squareup:kotlinpoet:0.4.0' | ||
implementation group: 'org.bouncycastle', name: 'bcprov-jdk15on', version: '1.57' | ||
|
||
testImplementation group: 'junit', name: 'junit', version: '4.12' | ||
} | ||
|
||
compileKotlin { | ||
kotlinOptions.jvmTarget = "1.8" | ||
} | ||
compileTestKotlin { | ||
kotlinOptions.jvmTarget = "1.8" | ||
} | ||
|
||
uploadArchives { | ||
repositories { | ||
mavenDeployer { | ||
repository(url: uri('../repo')) | ||
} | ||
} | ||
} |
Oops, something went wrong.