From 79530d1da3f248d459668fff55550a1cb89b6aad Mon Sep 17 00:00:00 2001 From: Nischal Sharma Date: Wed, 17 Apr 2024 12:21:15 +0530 Subject: [PATCH] added solc 0.8.21 to 0.8.25 Signed-off-by: Nischal Sharma --- CHANGELOG.md | 16 ++++++++++ README.md | 2 -- .../kotlin/org/web3j/sokt/VersionResolver.kt | 2 +- src/main/resources/releases.json | 30 +++++++++++++++++++ 4 files changed, 47 insertions(+), 3 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index fbbe41c..1abdf73 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,22 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +# [0.2.5]() (Upcoming) + +### Bug Fixes + +* NIL + +### Features + +* Added 0.8.21 to 0.8.25 solc releases [#27](https://github.com/web3j/web3j-sokt/pull/27) +* master to main changes and repo migration fixes [#25](https://github.com/hyperledger/web3j-sokt/pull/25) +* Files added for repo migration [#23](https://github.com/hyperledger/web3j-sokt/pull/23) + +### BREAKING CHANGES + +* Updated Gradle and Java to v17 [#26](https://github.com/hyperledger/web3j-sokt/pull/26) + # [0.2.4](https://github.com/web3j/web3j-sokt/releases/tag/v0.2.4) (2023-06-14) ### Bug Fixes diff --git a/README.md b/README.md index 51e6fcd..b97929a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,4 @@ # Sokt -[![Build Status](https://api.travis-ci.org/web3j/web3j-sokt.svg?branch=master)](https://travis-ci.org/web3j/web3j-sokt) - Sokt is a Kotlin wrapper for the Solidity compiler (solc). Given a solidity file, it can identify the ideal compiler version to use from the pragma statement at the top of the file. It can then download, install and invoke the compiler. Rather than using Dockerized versions of Solc, Sokt uses native builds and is compatible with Mac, Windows and Linux (x86/64 only)*. This means that the only dependency is a Java installation. Sokt also plays nicely with GraalVM, eliminating the Java dependency if necessary. diff --git a/src/main/kotlin/org/web3j/sokt/VersionResolver.kt b/src/main/kotlin/org/web3j/sokt/VersionResolver.kt index d34f901..ed532de 100644 --- a/src/main/kotlin/org/web3j/sokt/VersionResolver.kt +++ b/src/main/kotlin/org/web3j/sokt/VersionResolver.kt @@ -47,7 +47,7 @@ class VersionResolver(private val directoryPath: String = ".web3j") { fun getSolcReleases(): List { val versionsFile = Paths.get(System.getProperty("user.home"), directoryPath, "solc", "releases.json").toFile() try { - val result = get("https://raw.githubusercontent.com/web3j/web3j-sokt/master/src/main/resources/releases.json") + val result = get("https://raw.githubusercontent.com/hyperledger/web3j-sokt/main/src/main/resources/releases.json") versionsFile.parentFile.mkdirs() versionsFile.writeText(result) return Json.decodeFromString>(result) diff --git a/src/main/resources/releases.json b/src/main/resources/releases.json index 2854806..beb067d 100644 --- a/src/main/resources/releases.json +++ b/src/main/resources/releases.json @@ -418,5 +418,35 @@ "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.8.20/solc-windows.exe", "mac_url": "https://github.com/ethereum/solidity/releases/download/v0.8.20/solc-macos", "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.8.20/solc-static-linux" + }, + { + "version": "0.8.21", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.8.21/solc-windows.exe", + "mac_url": "https://github.com/ethereum/solidity/releases/download/v0.8.21/solc-macos", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.8.21/solc-static-linux" + }, + { + "version": "0.8.22", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.8.22/solc-windows.exe", + "mac_url": "https://github.com/ethereum/solidity/releases/download/v0.8.22/solc-macos", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.8.22/solc-static-linux" + }, + { + "version": "0.8.23", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.8.23/solc-windows.exe", + "mac_url": "https://github.com/ethereum/solidity/releases/download/v0.8.23/solc-macos", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.8.23/solc-static-linux" + }, + { + "version": "0.8.24", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.8.24/solc-windows.exe", + "mac_url": "https://github.com/ethereum/solidity/releases/download/v0.8.24/solc-macos", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.8.24/solc-static-linux" + }, + { + "version": "0.8.25", + "windows_url": "https://github.com/ethereum/solidity/releases/download/v0.8.25/solc-windows.exe", + "mac_url": "https://github.com/ethereum/solidity/releases/download/v0.8.25/solc-macos", + "linux_url": "https://github.com/ethereum/solidity/releases/download/v0.8.25/solc-static-linux" } ]