Skip to content

Commit

Permalink
feat: add ics20-irc2 support (#852)
Browse files Browse the repository at this point in the history
  • Loading branch information
gcranju authored Apr 1, 2024
1 parent feebe68 commit 68daa8c
Show file tree
Hide file tree
Showing 6 changed files with 1,157 additions and 1 deletion.
85 changes: 85 additions & 0 deletions contracts/javascore/ics20/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,85 @@
version = '0.1.0'

dependencies {
implementation project(':lib')
implementation project(':score-util')
implementation project(':proto-lib')
implementation "com.github.sink772:minimal-json:0.9.6"
testImplementation project(':test-lib')
}


test {
useJUnitPlatform()
finalizedBy jacocoTestReport
}

jacocoTestReport {
dependsOn test
reports {
xml.required = true
csv.required = false
html.outputLocation = layout.buildDirectory.dir('jacocoHtml')
}
}

optimizedJar {
dependsOn(project(':lib').jar)
dependsOn(project(':score-util').jar)
dependsOn(project(':proto-lib').jar)
mainClassName = 'ibc.ics20.ICS20Transfer'
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from {
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
}
}

deployJar {
endpoints {
berlin {
uri = 'https://berlin.net.solidwallet.io/api/v3'
nid = 0x7
}
lisbon {
uri = 'https://lisbon.net.solidwallet.io/api/v3'
nid = 0x2
}
local {
uri = 'http://localhost:9082/api/v3'
nid = 0x3
}
uat {
uri = project.findProperty('uat.host') as String
nid = property('uat.nid') as Integer
to = "$xCallConnection"?:null
}
}
keystore = rootProject.hasProperty('keystoreName') ? "$keystoreName" : ''
password = rootProject.hasProperty('keystorePass') ? "$keystorePass" : ''
parameters {
arg('_ibcHandler', "$ibcCore")
arg('_serializeIrc2', "")
}
}

task integrationTest(type: Test) {
useJUnitPlatform()

rootProject.allprojects {
if (it.getTasks().findByName('optimizedJar')) {
dependsOn(it.getTasks().getByName('optimizedJar'))
}
}

options {
testLogging.showStandardStreams = true
description = 'Runs integration tests.'
group = 'verification'

testClassesDirs = sourceSets.intTest.output.classesDirs
classpath = sourceSets.intTest.runtimeClasspath

systemProperty "java", optimizedJar.outputJarName
}

}
Loading

0 comments on commit 68daa8c

Please sign in to comment.