Skip to content

Commit f5b4270

Browse files
authored
chore: upgrade phoenix and other deps (#918)
1 parent ca820ac commit f5b4270

File tree

20 files changed

+64
-91
lines changed

20 files changed

+64
-91
lines changed

.dialyzer_ignore.exs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,5 @@
33
# created during runtime that belong to the AE core code.
44
~r/does not exist/,
55
# Following warnings are due to bad implementation of riverside.
6-
{"lib/phoenix/router.ex", :pattern_match, 402},
7-
{"lib/riverside.ex", :pattern_match, 876},
8-
{"lib/ae_mdw_web/websocket/socket_handler.ex", :overlapping_contract, 2}
6+
{"lib/phoenix/router.ex", :pattern_match, 405}
97
]

.github/actions/mdw-setup/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ runs:
66
steps:
77
- uses: erlef/setup-beam@v1
88
with:
9-
otp-version: 23.3.4.5
10-
elixir-version: 1.11.4
9+
otp-version: 23.3.4.17
10+
elixir-version: 1.13.4
1111

1212
- name: Get Mdw dependencies
1313
shell: bash

.github/actions/tests-common/action.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
11
name: 'Common Test setup'
2-
3-
inputs:
4-
deploy-key:
5-
required: true
2+
description: 'Setup docker compose'
63

74
runs:
85
using: "composite"

.github/workflows/test-action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ jobs:
9393
id: plt-cache
9494
with:
9595
path: priv/plts
96-
key: plts-v9-${{ hashFiles('mix.lock') }}
96+
key: plts-v11-${{ hashFiles('mix.lock') }}
9797

9898
- name: Mdw Setup
9999
uses: ./.github/actions/mdw-setup

.tool-versions

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
11
erlang 23.3.4.17
2-
#elixir 1.12.3-otp-22
3-
elixir 1.11.4-otp-23
2+
elixir 1.13.4-otp-23

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
FROM elixir:1.11.4
1+
FROM hexpm/elixir:1.13.4-erlang-23.3.4.17-debian-buster-20220801
22
# Add required files to download and compile only the dependencies
33

44
# Install other required dependencies
5-
RUN apt-get -qq update && apt-get -qq -y install curl libncurses5 libsodium-dev jq build-essential gcc g++ make libgmp10 \
5+
RUN apt-get -qq update && apt-get -qq -y install git curl libncurses5 libsodium-dev jq build-essential gcc g++ make libgmp10 \
66
&& ldconfig \
77
&& rm -rf /var/lib/apt/lists/*
88

config/dev.tools.sample.exs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ config :git_hooks,
77
pre_commit: [
88
verbose: true,
99
tasks: [
10-
"mix format --check-formatted --dry-run --check-equivalent"
10+
"mix format --check-formatted --dry-run"
1111
]
1212
],
1313
pre_push: [

lib/ae_mdw/aex9.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -204,7 +204,7 @@ defmodule AeMdw.Aex9 do
204204
{:ok, cursor} <- deserialize_history_cursor(cursor) do
205205
{first_gen, last_gen} =
206206
case range do
207-
{:gen, %Range{first: first, last: last}} -> {first, last}
207+
{:gen, first..last} -> {first, last}
208208
nil -> {0, DbUtil.last_gen(state)}
209209
end
210210

lib/ae_mdw/blocks.ex

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ defmodule AeMdw.Blocks do
4848
range =
4949
case range do
5050
nil -> {0, last_gen}
51-
{:gen, %Range{first: first, last: last}} -> {first, last}
51+
{:gen, first..last} -> {first, last}
5252
end
5353

5454
case Util.build_gen_pagination(cursor, direction, range, limit, last_gen) do
@@ -118,7 +118,7 @@ defmodule AeMdw.Blocks do
118118
range =
119119
case range do
120120
nil -> {0, last_gen}
121-
{:gen, %Range{first: first, last: last}} -> {first, last}
121+
{:gen, first..last} -> {first, last}
122122
end
123123

124124
case Util.build_gen_pagination(cursor, direction, range, limit, last_gen) do

lib/ae_mdw/channels.ex

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ defmodule AeMdw.Channels do
110110
defp serialize_cursor({{height, channel_pk}, is_reversed?}),
111111
do: {"#{height}-#{Enc.encode(:channel, channel_pk)}", is_reversed?}
112112

113-
defp deserialize_scope({:gen, %Range{first: first_gen, last: last_gen}}) do
113+
defp deserialize_scope({:gen, first_gen..last_gen}) do
114114
{{first_gen, Util.min_bin()}, {last_gen, Util.max_256bit_bin()}}
115115
end
116116

0 commit comments

Comments
 (0)