Skip to content

Commit

Permalink
Merge pull request #575 from alephium/update-common
Browse files Browse the repository at this point in the history
Update common
  • Loading branch information
tdroxler authored Oct 31, 2024
2 parents 899327a + 8e587fd commit c6664e2
Show file tree
Hide file tree
Showing 8 changed files with 6,096 additions and 6,033 deletions.
12,111 changes: 6,084 additions & 6,027 deletions app/src/main/resources/explorer-backend-openapi.json

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ trait BaseEndpoint extends ErrorExamples with TapirCodecs with TapirSchemasLike

val baseEndpoint: BaseEndpoint[Unit, Unit] =
endpoint
.out(emptyOutput.description("Ok"))
.errorOut(
oneOf[ApiError[_ <: StatusCode]](
error(BadRequest, { case BadRequest(_) => true }),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,8 @@ object BlockFlowClient extends StrictLogging {
with Endpoints
with ApiModelCodec {

override val apiKeys: AVector[api.model.ApiKey] = AVector.empty

private val endpointSender = new EndpointSender(maybeApiKey)

override def startSelfOnce(): Future[Unit] = {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class DocumentationServer(
val routes: ArraySeq[Router => Route] =
ArraySeq.from(
SwaggerUI(
openApiJson(docs, dropAuth = false),
openApiJson(docs, dropAuth = false, truncateAddresses = true),
openapiFileName = "explorer-backend-openapi.json"
).map(route(_))
)
Expand Down
4 changes: 3 additions & 1 deletion app/src/test/scala/org/alephium/explorer/GenCoreApi.scala
Original file line number Diff line number Diff line change
Expand Up @@ -344,10 +344,12 @@ object GenCoreApi {
unsigned <- unsignedTxGen
inputSignatures <- Gen.listOfN(2, bytesGen)
scriptSignatures <- Gen.listOfN(2, bytesGen)
seenAt <- timestampGen
} yield TransactionTemplate(
unsigned,
AVector.from(inputSignatures),
AVector.from(scriptSignatures)
AVector.from(scriptSignatures),
seenAt
)

val outputRefProtocolGen: Gen[OutputRef] = for {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -148,8 +148,9 @@ class BlockFlowClientSpec extends AlephiumFutureSpec with DatabaseFixtureForAll
object BlockFlowClientSpec extends ScalaFutures with IntegrationPatience {
class BlockFlowServerMock(localhost: InetAddress, port: Int) extends api.Endpoints with Server {

implicit val groupConfig: GroupConfig = groupSetting.groupConfig
val maybeApiKey: Option[api.model.ApiKey] = None
implicit val groupConfig: GroupConfig = groupSetting.groupConfig
override val apiKeys: AVector[api.model.ApiKey] = AVector.empty
val maybeApiKey: Option[api.model.ApiKey] = None

val cliqueId = CliqueId.generate

Expand Down
2 changes: 1 addition & 1 deletion project/Dependencies.scala
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import sbt._

object Version {
lazy val common = "3.0.2"
lazy val common = "3.8.7"

lazy val akka = "2.6.20"
lazy val rxJava = "3.1.8"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ object OpenApiUpdate {
val currencies = config.market.currencies
val tokensWithPrice = config.market.symbolName

private val json = openApiJson(docs, dropAuth = false)
private val json = openApiJson(docs, dropAuth = false, truncateAddresses = true)

import java.io.PrintWriter
new PrintWriter("../app/src/main/resources/explorer-backend-openapi.json") {
Expand Down

0 comments on commit c6664e2

Please sign in to comment.