Skip to content

Commit 799df1a

Browse files
committed
feat: ics20 transfer implementation added
1 parent 4007678 commit 799df1a

File tree

13 files changed

+569
-869
lines changed

13 files changed

+569
-869
lines changed
+83
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,83 @@
1+
version = '0.1.0'
2+
3+
dependencies {
4+
implementation project(':lib')
5+
implementation project(':score-util')
6+
implementation "com.github.sink772:minimal-json:0.9.6"
7+
testImplementation project(':test-lib')
8+
}
9+
10+
11+
test {
12+
useJUnitPlatform()
13+
finalizedBy jacocoTestReport
14+
}
15+
16+
jacocoTestReport {
17+
dependsOn test
18+
reports {
19+
xml.required = true
20+
csv.required = false
21+
html.outputLocation = layout.buildDirectory.dir('jacocoHtml')
22+
}
23+
}
24+
25+
optimizedJar {
26+
dependsOn(project(':lib').jar)
27+
dependsOn(project(':score-util').jar)
28+
mainClassName = 'ibc.ics20.ICS20Transfer'
29+
from {
30+
configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) }
31+
}
32+
}
33+
34+
deployJar {
35+
endpoints {
36+
berlin {
37+
uri = 'https://berlin.net.solidwallet.io/api/v3'
38+
nid = 0x7
39+
}
40+
lisbon {
41+
uri = 'https://lisbon.net.solidwallet.io/api/v3'
42+
nid = 0x2
43+
}
44+
local {
45+
uri = 'http://localhost:9082/api/v3'
46+
nid = 0x3
47+
}
48+
uat {
49+
uri = project.findProperty('uat.host') as String
50+
nid = property('uat.nid') as Integer
51+
to = "$xCallConnection"?:null
52+
}
53+
}
54+
keystore = rootProject.hasProperty('keystoreName') ? "$keystoreName" : ''
55+
password = rootProject.hasProperty('keystorePass') ? "$keystorePass" : ''
56+
// parameters {
57+
// arg('_xCall', "$xCallMultiProtocol")
58+
// arg('_ibc', "$ibcCore")
59+
// arg('_port', "mock")
60+
// }
61+
}
62+
63+
task integrationTest(type: Test) {
64+
useJUnitPlatform()
65+
66+
rootProject.allprojects {
67+
if (it.getTasks().findByName('optimizedJar')) {
68+
dependsOn(it.getTasks().getByName('optimizedJar'))
69+
}
70+
}
71+
72+
options {
73+
testLogging.showStandardStreams = true
74+
description = 'Runs integration tests.'
75+
group = 'verification'
76+
77+
testClassesDirs = sourceSets.intTest.output.classesDirs
78+
classpath = sourceSets.intTest.runtimeClasspath
79+
80+
systemProperty "java", optimizedJar.outputJarName
81+
}
82+
83+
}

0 commit comments

Comments
 (0)