Skip to content

Commit 9183add

Browse files
fixed some bugs
1 parent 33e4eff commit 9183add

File tree

328 files changed

+0
-27152
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

328 files changed

+0
-27152
lines changed

client/src/main/kotlin/io/github/hosseinkarami_dev/near/rpc/client/.gitignore

Lines changed: 0 additions & 1 deletion
This file was deleted.

client/src/main/kotlin/io/github/hosseinkarami_dev/near/rpc/client/NearClient.kt

Lines changed: 0 additions & 1246 deletions
This file was deleted.

generator/src/test/kotlin/io/github/hosseinkarami_dev/near/rpc/generator/ModelsGenerationTest.kt

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -28,23 +28,6 @@ class ModelsGenerationTest {
2828
assertTrue(file.readText().isNotBlank(), "${file.name} should not be empty")
2929
}
3030
}
31-
32-
// @Test
33-
// fun `generated model files should compile without errors`() {
34-
// val modelsDir = File(MODELS_DIR)
35-
// val kotlinFiles = modelsDir.walkTopDown().filter { it.isFile && it.extension == "kt" }.toList()
36-
// assert(kotlinFiles.isNotEmpty()) { "No model files found in $MODELS_DIR" }
37-
//
38-
// val compiler = K2JVMCompiler()
39-
// val args = arrayOf(
40-
// "-classpath", System.getProperty("java.class.path"),
41-
// *kotlinFiles.map { it.absolutePath }.toTypedArray()
42-
// )
43-
//
44-
// val exitCode = compiler.exec(System.err, *args).code
45-
// assertEquals(0, exitCode, "Generated model files should compile without errors")
46-
// }
47-
4831
companion object {
4932
const val MODELS_DIR = "../models/src/main/kotlin/io/github/hosseinkarami_dev/near/rpc/models"
5033
}

generator/src/test/kotlin/io/github/hosseinkarami_dev/near/rpc/generator/NearClientGenerationTest.kt

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,21 +22,6 @@ class NearClientGenerationTest {
2222
assertTrue("class NearClient" in content, "Generated client should contain NearClient class")
2323
}
2424

25-
// @Test
26-
// fun `generated client should compile without errors`() {
27-
// val clientFile = File(NEAR_CLIENT_LOCATION)
28-
// assertTrue(clientFile.exists(), "NearClient.kt should exist before compilation")
29-
//
30-
// val compiler = K2JVMCompiler()
31-
// val args = arrayOf(
32-
// "-classpath", System.getProperty("java.class.path"),
33-
// clientFile.absolutePath
34-
// )
35-
//
36-
// val exitCode = compiler.exec(System.err, *args).code
37-
// assertEquals(0, exitCode, "Generated client file should compile without syntax errors")
38-
// }
39-
4025
companion object {
4126
private const val NEAR_CLIENT_LOCATION = "../client/src/main/kotlin/io/github/hosseinkarami_dev/near/rpc/client/NearClient.kt"
4227
}

models/src/main/kotlin/io/github/hosseinkarami_dev/near/rpc/models/AccessKey.kt

Lines changed: 0 additions & 30 deletions
This file was deleted.

models/src/main/kotlin/io/github/hosseinkarami_dev/near/rpc/models/AccessKeyCreationConfigView.kt

Lines changed: 0 additions & 26 deletions
This file was deleted.

models/src/main/kotlin/io/github/hosseinkarami_dev/near/rpc/models/AccessKeyInfoView.kt

Lines changed: 0 additions & 15 deletions
This file was deleted.

models/src/main/kotlin/io/github/hosseinkarami_dev/near/rpc/models/AccessKeyList.kt

Lines changed: 0 additions & 14 deletions
This file was deleted.

models/src/main/kotlin/io/github/hosseinkarami_dev/near/rpc/models/AccessKeyPermission.kt

Lines changed: 0 additions & 26 deletions
This file was deleted.

models/src/main/kotlin/io/github/hosseinkarami_dev/near/rpc/models/AccessKeyPermissionView.kt

Lines changed: 0 additions & 36 deletions
This file was deleted.

0 commit comments

Comments
 (0)