Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dependency update #2

Merged
merged 1 commit into from
Sep 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import com.adarshr.gradle.testlogger.theme.ThemeType

@Suppress("DSL_SCOPE_VIOLATION")
plugins {
kotlin("jvm") version "1.9.0"
kotlin("jvm") version "2.0.20"

`java-library`
`java-test-fixtures`
Expand Down
18 changes: 9 additions & 9 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
[versions]
kotlinx-coroutines = "1.7.3"
kotlinx-atomicfu = "0.21.0"
kotlinx-coroutines = "1.9.0"
kotlinx-atomicfu = "0.25.0"
kotlin-logging = "3.0.5"
kotlinx-serialization = "1.5.1"
junit-jupiter = "5.10.0"
slf4j-api = "2.0.7"
kotlinx-serialization = "1.7.3"
junit-jupiter = "5.11.1"
slf4j-api = "2.0.16"

kotlin = "1.9.0"
kotlin = "2.0.20"
kover-plugin = "0.7.2"
ktlint-plugin = "11.5.0"
nexus-plugin = "1.3.0"
versions-plugin = "0.47.0"
testlogger-plugin = "3.2.0"
testlogger-plugin = "4.0.0"
protobuf-plugin = "0.9.3"

ipaddress = "5.4.0"
ktor = "2.3.2"
ipaddress = "5.5.1"
ktor = "2.3.12"

result-monad = "1.4.0"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -59,12 +59,14 @@ enum class Multicodec(val typeName: String, val code: Int, val tag: MulticodecTa
GIT_RAW("git-raw", 0x78, MulticodecTag.Ipld),
TORRENT_INFO("torrent-info", 0x7b, MulticodecTag.Ipld),
TORRENT_FILE("torrent-file", 0x7c, MulticodecTag.Ipld),
BLAKE3_HASHSEQ("blake3-hashseq", 0x80, MulticodecTag.Ipld),
LEOFCOIN_BLOCK("leofcoin-block", 0x81, MulticodecTag.Ipld),
LEOFCOIN_TX("leofcoin-tx", 0x82, MulticodecTag.Ipld),
LEOFCOIN_PR("leofcoin-pr", 0x83, MulticodecTag.Ipld),
SCTP("sctp", 0x84, MulticodecTag.Multiaddr),
DAG_JOSE("dag-jose", 0x85, MulticodecTag.Ipld),
DAG_COSE("dag-cose", 0x86, MulticodecTag.Ipld),
LBRY("lbry", 0x8c, MulticodecTag.Namespace),
ETH_BLOCK("eth-block", 0x90, MulticodecTag.Ipld),
ETH_BLOCK_LIST("eth-block-list", 0x91, MulticodecTag.Ipld),
ETH_TX_TRIE("eth-tx-trie", 0x92, MulticodecTag.Ipld),
Expand Down Expand Up @@ -135,6 +137,7 @@ enum class Multicodec(val typeName: String, val code: Int, val tag: MulticodecTa
TLS("tls", 0x1c0, MulticodecTag.Multiaddr),
SNI("sni", 0x1c1, MulticodecTag.Multiaddr),
NOISE("noise", 0x1c6, MulticodecTag.Multiaddr),
SHS("shs", 0x1c8, MulticodecTag.Multiaddr),
QUIC("quic", 0x1cc, MulticodecTag.Multiaddr),
QUIC_V1("quic-v1", 0x1cd, MulticodecTag.Multiaddr),
WEBTRANSPORT("webtransport", 0x1d1, MulticodecTag.Multiaddr),
Expand All @@ -143,6 +146,7 @@ enum class Multicodec(val typeName: String, val code: Int, val tag: MulticodecTa
WSS("wss", 0x1de, MulticodecTag.Multiaddr),
P2P_WEBSOCKET_STAR("p2p-websocket-star", 0x1df, MulticodecTag.Multiaddr),
HTTP("http", 0x1e0, MulticodecTag.Multiaddr),
HTTP_PATH("http-path", 0x1e1, MulticodecTag.Multiaddr),
SWHID_1_SNP("swhid-1-snp", 0x1f0, MulticodecTag.Ipld),
JSON("json", 0x200, MulticodecTag.Ipld),
MESSAGEPACK("messagepack", 0x201, MulticodecTag.Serialization),
Expand Down Expand Up @@ -182,6 +186,9 @@ enum class Multicodec(val typeName: String, val code: Int, val tag: MulticodecTa
P256_PRIV("p256-priv", 0x1306, MulticodecTag.Key),
P384_PRIV("p384-priv", 0x1307, MulticodecTag.Key),
P521_PRIV("p521-priv", 0x1308, MulticodecTag.Key),
BLS12_381_G1_PRIV("bls12_381-g1-priv", 0x1309, MulticodecTag.Key),
BLS12_381_G2_PRIV("bls12_381-g2-priv", 0x130a, MulticodecTag.Key),
BLS12_381_G1G2_PRIV("bls12_381-g1g2-priv", 0x130b, MulticodecTag.Key),
KANGAROOTWELVE("kangarootwelve", 0x1d01, MulticodecTag.Multihash),
AES_GCM_256("aes-gcm-256", 0x2000, MulticodecTag.Encryption),
SILVERPINE("silverpine", 0x3f42, MulticodecTag.Multiaddr),
Expand Down Expand Up @@ -513,9 +520,10 @@ enum class Multicodec(val typeName: String, val code: Int, val tag: MulticodecTa
XXH3_128("xxh3-128", 0xb3e4, MulticodecTag.Hash),
POSEIDON_BLS12_381_A2_FC1("poseidon-bls12_381-a2-fc1", 0xb401, MulticodecTag.Multihash),
POSEIDON_BLS12_381_A2_FC1_SC("poseidon-bls12_381-a2-fc1-sc", 0xb402, MulticodecTag.Multihash),
URDCA_2015_CANON("urdca-2015-canon", 0xb403, MulticodecTag.Ipld),
RDFC_1("rdfc-1", 0xb403, MulticodecTag.Ipld),
SSZ("ssz", 0xb501, MulticodecTag.Serialization),
SSZ_SHA2_256_BMT("ssz-sha2-256-bmt", 0xb502, MulticodecTag.Multihash),
SHA2_256_CHUNKED("sha2-256-chunked", 0xb510, MulticodecTag.Multihash),
JSON_JCS("json-jcs", 0xb601, MulticodecTag.Ipld),
ISCC("iscc", 0xcc01, MulticodecTag.Softhash),
ZEROXCERT_IMPRINT_256("zeroxcert-imprint-256", 0xce11, MulticodecTag.Zeroxcert),
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/org/erwinkok/multiformat/spec/multicodec
Submodule multicodec updated 2 files
+5 −1 README.md
+9 −1 table.csv
2 changes: 1 addition & 1 deletion src/main/kotlin/org/erwinkok/multiformat/spec/multihash
Submodule multihash updated 1 files
+3 −5 README.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ private val logger = KotlinLogging.logger {}
internal class MultibaseTest {
private data class MultibaseSpec(
val name: String,
val unicode: String,
val code: String,
val description: String,
val status: String,
Expand All @@ -34,7 +35,7 @@ internal class MultibaseTest {
@Test
fun `test specification`() {
val multibaseSpec = readMultibaseSpec()
for (mb in Multibase.values()) {
for (mb in Multibase.entries) {
assertTrue(multibaseSpec.containsKey(mb.encoding), "Specification does define ${mb.encoding}")
val spec = multibaseSpec[mb.encoding]!!
assertEquals(spec.code, mb.code, "Code mismatch for ${mb.encoding}: ${spec.code} != ${mb.code}")
Expand Down Expand Up @@ -243,14 +244,11 @@ internal class MultibaseTest {
return reader.lineSequence()
.filter { it.isNotBlank() }
.map {
val (name, code, description, status) = it.split(',', ignoreCase = false, limit = 4)
val sCode = code.trim()
val cCode = if (sCode.startsWith("0x")) {
Integer.decode(sCode).toChar().toString()
} else {
sCode
}
MultibaseSpec(name.trim(), cCode, description.trim(), status.trim())
}.map { it.name to it }.toMap()
val (unicode, character, encoding, description, status) = it.split(',', ignoreCase = false, limit = 5)
MultibaseSpec(encoding.trim(), unicode.trim(), character.trim(), description.trim(), status.trim())
}.map { it.name to it }
.filter { it.second.status != "reserved" }
.toMap()
.plus("identity" to MultibaseSpec("identity", "U+0000", "\u0000", "8-bit binary (encoder and decoder keeps data unmodified)", "reserved"))
}
}
Loading