Skip to content

Commit

Permalink
metis integration update
Browse files Browse the repository at this point in the history
  • Loading branch information
ericlee42 committed Nov 16, 2023
1 parent abce79e commit 2560911
Show file tree
Hide file tree
Showing 7 changed files with 103 additions and 5 deletions.
57 changes: 57 additions & 0 deletions .github/workflows/metis-docker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
name: metis-docker
on:
workflow_dispatch:
push:
branches:
- metis

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
docker_build_push:
runs-on: ubuntu-latest
steps:
- name: checkout repo
uses: actions/checkout@v4

- name: Login to Github Registry
uses: docker/login-action@v3
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Set up QEMU
uses: docker/setup-qemu-action@v3

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v3

- name: Docker meta
id: docker-meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
tags: |
type=sha,enable=true,prefix=,suffix=,format=short
- name: Build and push
id: docker-build-push
uses: docker/build-push-action@v5
with:
file: docker/Dockerfile
push: true
tags: ${{ steps.docker-meta.outputs.tags }}
cache-from: type=gha
cache-to: type=gha,mode=max
platforms: |
linux/arm64
linux/amd64
build-args: |
RELEASE_VERSION=5.3.1
BLOCKSCOUT_VERSION=v5.3.1-beta
DISABLE_READ_API=false
DISABLE_WEBAPP=false
DISABLE_WRITE_API=false
2 changes: 1 addition & 1 deletion apps/block_scout_web/assets/js/lib/csv_download.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const DATE_FORMAT = 'YYYY-MM-DD'
const $button = $('#export-csv-button')

// eslint-disable-next-line
const _instance1 = generateDatePicker('.js-datepicker-from', moment().add(-1, 'months').toDate())
const _instance1 = generateDatePicker('.js-datepicker-from', moment().add(-7, 'days').toDate())
// eslint-disable-next-line
const _instance2 = generateDatePicker('.js-datepicker-to', new Date())

Expand Down
41 changes: 41 additions & 0 deletions apps/block_scout_web/assets/static/images/metis_logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ defmodule BlockScoutWeb.API.RPC.LogsController do
render(conn, :error, error: "Invalid #{param} format")

{:error, :not_found} ->
render(conn, :error, error: "No logs found", data: [])
render(conn, :error, error: "No records found", data: [])
end
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
<a href="<%= Application.get_env(:block_scout_web, :footer)[:github_link] %>" rel="noreferrer" target="_blank" class="footer-social-icon" title='<%= gettext("Github") %>'>
<div class="footer-social-icon-container fontawesome-icon github"></div>
</a>
<a href="https://www.twitter.com/blockscoutcom/" rel="noreferrer" target="_blank" class="footer-social-icon" title='<%= gettext("Twitter") %>'>
<a href="https://twitter.com/MetisDAO" rel="noreferrer" target="_blank" class="footer-social-icon" title='<%= gettext("Twitter") %>'>
<div class="footer-social-icon-container fontawesome-icon twitter"></div>
</a>
<%= if Application.get_env(:block_scout_web, :footer)[:telegram_link_enabled] && Application.get_env(:block_scout_web, :footer)[:telegram_link] do %>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ defmodule BlockScoutWeb.API.RPC.LogsControllerTest do

assert response["result"] == []
assert response["status"] == "0"
assert response["message"] == "No logs found"
assert response["message"] == "No records found"
assert :ok = ExJsonSchema.Validator.validate(getlogs_schema(), response)
end

Expand Down
2 changes: 1 addition & 1 deletion apps/explorer/lib/explorer/chain/csv_export/helper.ex
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ defmodule Explorer.Chain.CSVExport.Helper do
where: 3
]

@limit 10_000
@limit 1_000
@page_size 150
@default_paging_options %PagingOptions{page_size: @page_size}

Expand Down

0 comments on commit 2560911

Please sign in to comment.