Skip to content
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
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: '1.24'
go-version: '1.25'
cache: false
- name: golangci-lint
uses: golangci/golangci-lint-action@v6
uses: golangci/golangci-lint-action@v8
with:
version: v1.64.6
version: v2.4.0
args: --timeout=5m
test:
name: Test
Expand All @@ -32,7 +32,7 @@ jobs:
- name: Install Go
uses: actions/setup-go@v5
with:
go-version: 1.24.x
go-version: 1.25.x
- name: Golang tests
env:
GO111MODULE: on
Expand Down
48 changes: 34 additions & 14 deletions .golangci.yml
Original file line number Diff line number Diff line change
@@ -1,23 +1,43 @@
version: "2"
linters:
enable:
- containedctx
- copyloopvar
- goconst
- gocritic
- gofmt
- govet
- prealloc
- unconvert
- unused
- errcheck
- ineffassign
- containedctx
- usetesting
- musttag
- gosec
- makezero
- mirror
- tagalign
- zerologlint
- copyloopvar
- misspell
- musttag
- noctx
- prealloc
- protogetter
- makezero
- tagalign
- unconvert
- usetesting
- zerologlint
settings:
gosec:
excludes:
- G115
exclusions:
generated: lax
presets:
- comments
- common-false-positives
- legacy
- std-error-handling
paths:
- third_party$
- builtin$
- examples$
formatters:
enable:
- gofmt
exclusions:
generated: lax
paths:
- third_party$
- builtin$
- examples$
2 changes: 1 addition & 1 deletion build/api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ---------------------------------------------------------------------
# The first stage container, for building the application
# ---------------------------------------------------------------------
FROM golang:1.24.1-alpine as builder
FROM golang:1.25.1-alpine AS builder

ENV CGO_ENABLED=0
ENV GO111MODULE=on
Expand Down
2 changes: 1 addition & 1 deletion build/celestials/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ---------------------------------------------------------------------
# The first stage container, for building the application
# ---------------------------------------------------------------------
FROM golang:1.24.1-alpine as builder
FROM golang:1.25.1-alpine AS builder

ENV CGO_ENABLED=0
ENV GO111MODULE=on
Expand Down
2 changes: 1 addition & 1 deletion build/indexer/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ---------------------------------------------------------------------
# The first stage container, for building the application
# ---------------------------------------------------------------------
FROM golang:1.24.1-alpine as builder
FROM golang:1.25.1-alpine AS builder

ENV CGO_ENABLED=0
ENV GO111MODULE=on
Expand Down
2 changes: 1 addition & 1 deletion build/private_api/Dockerfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# ---------------------------------------------------------------------
# The first stage container, for building the application
# ---------------------------------------------------------------------
FROM golang:1.24.1-alpine as builder
FROM golang:1.25.1-alpine AS builder

ENV CGO_ENABLED=0
ENV GO111MODULE=on
Expand Down
2 changes: 1 addition & 1 deletion cmd/api/cache/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (r *ResponseRecorder) copyHeaders() {
}

r.headerCopied = true
copyHeaders(r.ResponseWriter.Header(), r.headers)
copyHeaders(r.Header(), r.headers)
}

func (w *ResponseRecorder) WriteHeader(statusCode int) {
Expand Down
14 changes: 7 additions & 7 deletions go.mod
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
module github.com/celenium-io/astria-indexer

go 1.24.1
go 1.25.1

require (
buf.build/gen/go/astria/primitives/protocolbuffers/go v1.36.6-20250410153152-4e41f6ebb18a.1
buf.build/gen/go/astria/protocol-apis/protocolbuffers/go v1.36.6-20250418224031-4bdba75ef449.1
buf.build/gen/go/astria/primitives/protocolbuffers/go v1.36.9-00000000000000-67f8c2acb424.1
buf.build/gen/go/astria/protocol-apis/protocolbuffers/go v1.36.9-00000000000000-ccc62afb8fe0.1
buf.build/gen/go/astria/sequencerblock-apis/protocolbuffers/go v1.36.6-20250418224031-3bbc472dfc9b.1
buf.build/gen/go/astria/vendored/protocolbuffers/go v1.36.6-20250418162348-cb98d7f0591d.1
buf.build/gen/go/astria/vendored/protocolbuffers/go v1.36.9-00000000000000-0be0456e5dbf.1
cosmossdk.io/errors v1.0.1
github.com/celenium-io/celestial-module v0.0.7
github.com/cometbft/cometbft v0.38.17
Expand Down Expand Up @@ -44,7 +44,7 @@ require (
go.uber.org/fx v1.22.0
go.uber.org/mock v0.5.0
golang.org/x/time v0.10.0
google.golang.org/protobuf v1.36.6
google.golang.org/protobuf v1.36.9
)

require (
Expand Down Expand Up @@ -96,7 +96,7 @@ require (
github.com/containerd/platforms v0.2.1 // indirect
github.com/cosmos/cosmos-db v1.1.1 // indirect
github.com/cosmos/cosmos-proto v1.0.0-beta.5 // indirect
github.com/cosmos/cosmos-sdk v0.50.13 // indirect
github.com/cosmos/cosmos-sdk v0.50.14 // indirect
github.com/cosmos/go-bip39 v1.0.0 // indirect
github.com/cosmos/gogogateway v1.2.0 // indirect
github.com/cosmos/gogoproto v1.7.0 // indirect
Expand Down Expand Up @@ -261,7 +261,7 @@ require (
golang.org/x/crypto v0.37.0 // indirect
golang.org/x/exp v0.0.0-20241009180824-f66d83c29e7c // indirect
golang.org/x/net v0.38.0 // indirect
golang.org/x/oauth2 v0.26.0 // indirect
golang.org/x/oauth2 v0.27.0 // indirect
golang.org/x/sync v0.13.0 // indirect
golang.org/x/sys v0.32.0 // indirect
golang.org/x/term v0.31.0 // indirect
Expand Down
24 changes: 12 additions & 12 deletions go.sum
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
buf.build/gen/go/astria/primitives/protocolbuffers/go v1.36.6-20250410153152-4e41f6ebb18a.1 h1:LN3MNru1VwNVZFkWf+WTphdlIUznD4eFXg8F3b4U/5A=
buf.build/gen/go/astria/primitives/protocolbuffers/go v1.36.6-20250410153152-4e41f6ebb18a.1/go.mod h1:wMIS5d6G3o0qmGC5WWOVXByfPSgeSqzZ/oMKG8zLw1g=
buf.build/gen/go/astria/protocol-apis/protocolbuffers/go v1.36.6-20250418224031-4bdba75ef449.1 h1:J5YzAGKHLC4iirGRCxhc//4Do51rvk0hu30XfaiMIQs=
buf.build/gen/go/astria/protocol-apis/protocolbuffers/go v1.36.6-20250418224031-4bdba75ef449.1/go.mod h1:k+ilL78c+6nrmvRtxtUhG2CtNgYooPXkw+vD+ohBB8g=
buf.build/gen/go/astria/primitives/protocolbuffers/go v1.36.9-00000000000000-67f8c2acb424.1 h1:/n9ClSADVG0hhffq1RomR9zfu+FLlpaKdKkwSBmJj2w=
buf.build/gen/go/astria/primitives/protocolbuffers/go v1.36.9-00000000000000-67f8c2acb424.1/go.mod h1:v5+PFgMRs4R8/lqWDSStO8DFI95WRrAUhekcQSu/9/g=
buf.build/gen/go/astria/protocol-apis/protocolbuffers/go v1.36.9-00000000000000-ccc62afb8fe0.1 h1:OUxsA6FdCaW4uN51LiWzDDLxigOOE7TqHgvHDIEJVCo=
buf.build/gen/go/astria/protocol-apis/protocolbuffers/go v1.36.9-00000000000000-ccc62afb8fe0.1/go.mod h1:12QD/s/Uc9b/KHqMlZIF93FXHJ4+hkbpc9uDcOhk4Pg=
buf.build/gen/go/astria/sequencerblock-apis/protocolbuffers/go v1.36.6-20250418224031-3bbc472dfc9b.1 h1:DUCaakbu8ZKA+n2rFh4ODtsT5KIHmhvZh5T+D0B/EnU=
buf.build/gen/go/astria/sequencerblock-apis/protocolbuffers/go v1.36.6-20250418224031-3bbc472dfc9b.1/go.mod h1:OBNFm9dHNbLy8bzZt8or7romdG69nsL5xGqkHiUW3wc=
buf.build/gen/go/astria/vendored/protocolbuffers/go v1.36.6-20250418162348-cb98d7f0591d.1 h1:eAG41GXW4p7UGvua67YgkuPs+Heb864Ey65pBYl8sLk=
buf.build/gen/go/astria/vendored/protocolbuffers/go v1.36.6-20250418162348-cb98d7f0591d.1/go.mod h1:jVLJ4hKiYBPwf+gayj5gHwKAT7r4jjTj5TWzG5+/cfs=
buf.build/gen/go/astria/vendored/protocolbuffers/go v1.36.9-00000000000000-0be0456e5dbf.1 h1:Z4Dr3kRiQ+lzYmnYQc29gbRiEec4bCdOKDIPzbDdJUw=
buf.build/gen/go/astria/vendored/protocolbuffers/go v1.36.9-00000000000000-0be0456e5dbf.1/go.mod h1:Eu0eTqI9hIvtiwYK+f/73DEbvpXAiWdJOb75C/BYuMg=
cel.dev/expr v0.19.0 h1:lXuo+nDhpyJSpWxpPVi5cPUwzKb+dsdOiw6IreM5yt0=
cel.dev/expr v0.19.0/go.mod h1:MrpN08Q+lEBs+bGYdLxxHkZoUSsCp0nSKTs0nTymJgw=
cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw=
Expand Down Expand Up @@ -815,8 +815,8 @@ github.com/cosmos/cosmos-db v1.1.1 h1:FezFSU37AlBC8S98NlSagL76oqBRWq/prTPvFcEJNC
github.com/cosmos/cosmos-db v1.1.1/go.mod h1:AghjcIPqdhSLP/2Z0yha5xPH3nLnskz81pBx3tcVSAw=
github.com/cosmos/cosmos-proto v1.0.0-beta.5 h1:eNcayDLpip+zVLRLYafhzLvQlSmyab+RC5W7ZfmxJLA=
github.com/cosmos/cosmos-proto v1.0.0-beta.5/go.mod h1:hQGLpiIUloJBMdQMMWb/4wRApmI9hjHH05nefC0Ojec=
github.com/cosmos/cosmos-sdk v0.50.13 h1:xQ32hhzVy7agEe7behMdZN0ezWhPss3KoLZsF9KoBnw=
github.com/cosmos/cosmos-sdk v0.50.13/go.mod h1:hrWEFMU1eoXqLJeE6VVESpJDQH67FS1nnMrQIjO2daw=
github.com/cosmos/cosmos-sdk v0.50.14 h1:G8CtGHFWbExa+ZpVOVAb4kFmko/R30igsYOwyzRMtgY=
github.com/cosmos/cosmos-sdk v0.50.14/go.mod h1:hrWEFMU1eoXqLJeE6VVESpJDQH67FS1nnMrQIjO2daw=
github.com/cosmos/go-bip39 v1.0.0 h1:pcomnQdrdH22njcAatO0yWojsUnCO3y2tNoV1cb6hHY=
github.com/cosmos/go-bip39 v1.0.0/go.mod h1:RNJv0H/pOIVgxw6KS7QeX2a0Uo0aKUlfhZ4xuwvCdJw=
github.com/cosmos/gogogateway v1.2.0 h1:Ae/OivNhp8DqBi/sh2A8a1D0y638GpL3tkmLQAiKxTE=
Expand Down Expand Up @@ -1957,8 +1957,8 @@ golang.org/x/oauth2 v0.4.0/go.mod h1:RznEsdpjGAINPTOF0UH/t+xJ75L18YO3Ho6Pyn+uRec
golang.org/x/oauth2 v0.5.0/go.mod h1:9/XBHVqLaWO3/BRHs5jbpYCnOZVjj5V0ndyaAM7KB4I=
golang.org/x/oauth2 v0.6.0/go.mod h1:ycmewcwgD4Rpr3eZJLSB4Kyyljb3qDh40vJ8STE5HKw=
golang.org/x/oauth2 v0.7.0/go.mod h1:hPLQkd9LyjfXTiRohC/41GhcFqxisoUQ99sCUOHO9x4=
golang.org/x/oauth2 v0.26.0 h1:afQXWNNaeC4nvZ0Ed9XvCCzXM6UHJG7iCg0W4fPqSBE=
golang.org/x/oauth2 v0.26.0/go.mod h1:XYTD2NtWslqkgxebSiOHnXEap4TF09sJSc7H1sXbhtI=
golang.org/x/oauth2 v0.27.0 h1:da9Vo7/tDv5RH/7nZDz1eMGS/q1Vv1N/7FCrBhI9I3M=
golang.org/x/oauth2 v0.27.0/go.mod h1:onh5ek6nERTohokkhCD/y2cV4Do3fxFHFuAejCkRWT8=
golang.org/x/sync v0.0.0-20180314180146-1d60e4601c6f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20181108010431-42b317875d0f/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
golang.org/x/sync v0.0.0-20181221193216-37e7f081c4d4/go.mod h1:RxMgew5VJxzue5/jJTE5uejpjVlOe/izrB70Jof72aM=
Expand Down Expand Up @@ -2493,8 +2493,8 @@ google.golang.org/protobuf v1.28.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqw
google.golang.org/protobuf v1.28.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
google.golang.org/protobuf v1.29.1/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
google.golang.org/protobuf v1.30.0/go.mod h1:HV8QOd/L58Z+nl8r43ehVNZIU/HEI6OcFqwMG9pJV4I=
google.golang.org/protobuf v1.36.6 h1:z1NpPI8ku2WgiWnf+t9wTPsn6eP1L7ksHUlkfLvd9xY=
google.golang.org/protobuf v1.36.6/go.mod h1:jduwjTPXsFjZGTmRluh+L6NjiWu7pchiJ2/5YcXBHnY=
google.golang.org/protobuf v1.36.9 h1:w2gp2mA27hUeUzj9Ex9FBjsBm40zfaDtEWow293U7Iw=
google.golang.org/protobuf v1.36.9/go.mod h1:fuxRtAxBytpl4zzqUh6/eyUujkJdNiuEkXntxiD/uRU=
gopkg.in/alecthomas/kingpin.v2 v2.2.6/go.mod h1:FMv+mEhP44yOT+4EoQTLFTRgOQ1FBLkstjWtayDeSgw=
gopkg.in/check.v1 v0.0.0-20161208181325-20d25e280405/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
gopkg.in/check.v1 v1.0.0-20180628173108-788fd7840127/go.mod h1:Co6ibVJAznAaIkqp8huTwlJQCZ016jof/cbN4VW5Yz0=
Expand Down
18 changes: 10 additions & 8 deletions internal/storage/bridge.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ package storage

import (
"context"

pkgTypes "github.com/celenium-io/astria-indexer/pkg/types"
"github.com/dipdup-net/indexer-sdk/pkg/storage"
"github.com/uptrace/bun"
Expand All @@ -24,14 +25,15 @@ type IBridge interface {
type Bridge struct {
bun.BaseModel `bun:"table:bridge" comment:"Table with bridges"`

Id uint64 `bun:"id,pk,notnull,autoincrement" comment:"Unique internal identity"`
RollupId uint64 `bun:"rollup_id" comment:"Rollup id"`
AddressId uint64 `bun:"address_id,unique:bridge_address_id" comment:"Address id"`
Asset string `bun:"asset" comment:"Asset"`
FeeAsset string `bun:"fee_asset" comment:"Fee asset"`
SudoId uint64 `bun:"sudo_id" comment:"Address which is authorized to change the bridge"`
WithdrawerId uint64 `bun:"withdrawer_id" comment:"Address which is used to make withdrawals from the bridge account"`
InitHeight pkgTypes.Level `bun:"init_height" comment:"Height when bridge was initialized"`
Id uint64 `bun:"id,pk,notnull,autoincrement" comment:"Unique internal identity"`
RollupId uint64 `bun:"rollup_id" comment:"Rollup id"`
AddressId uint64 `bun:"address_id,unique:bridge_address_id" comment:"Address id"`
Asset string `bun:"asset" comment:"Asset"`
FeeAsset string `bun:"fee_asset" comment:"Fee asset"`
SudoId uint64 `bun:"sudo_id" comment:"Address which is authorized to change the bridge"`
WithdrawerId uint64 `bun:"withdrawer_id" comment:"Address which is used to make withdrawals from the bridge account"`
InitHeight pkgTypes.Level `bun:"init_height" comment:"Height when bridge was initialized"`
DisableDeposits bool `bun:"disable_deposits" comment:"Disable deposits to the bridge account"`

Rollup *Rollup `bun:"rel:has-one,join:rollup_id=id"`
Address *Address `bun:"rel:has-one,join:address_id=id"`
Expand Down
4 changes: 2 additions & 2 deletions internal/storage/market.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,8 +42,8 @@ func (Market) TableName() string {
func (m Market) String() string {
var sb = new(strings.Builder)
sb.WriteString(m.Pair)
sb.WriteString(fmt.Sprintf(" was updated at %s", m.UpdatedAt.String()))
sb.WriteString(fmt.Sprintf("\r\n\tdecimals: %d | enabled: %v | providers count: %d | removed: %v\r\n", m.Decimals, m.Enabled, m.MinProviderCount, m.Removed))
fmt.Fprintf(sb, " was updated at %s", m.UpdatedAt.String())
fmt.Fprintf(sb, "\r\n\tdecimals: %d | enabled: %v | providers count: %d | removed: %v\r\n", m.Decimals, m.Enabled, m.MinProviderCount, m.Removed)
return sb.String()
}

Expand Down
16 changes: 8 additions & 8 deletions internal/storage/postgres/action_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -130,10 +130,10 @@ func (s *StorageTestSuite) TestActionByRollupAndBridge() {
s.Require().EqualValues(7316, action.Height)
s.Require().NotNil(action.Tx)
s.Require().NotNil(action.Action)
s.Require().EqualValues(1, action.Action.TxId)
s.Require().EqualValues(types.ActionTypeRollupDataSubmission, action.Action.Type)
s.Require().NotNil(action.Action.Data)
s.Require().NotNil(action.Action.Fee)
s.Require().EqualValues(1, action.TxId)
s.Require().EqualValues(types.ActionTypeRollupDataSubmission, action.Type)
s.Require().NotNil(action.Data)
s.Require().NotNil(action.Fee)
}

func (s *StorageTestSuite) TestActionByRollupAndBridgeWithoutRollupActions() {
Expand All @@ -154,8 +154,8 @@ func (s *StorageTestSuite) TestActionByRollupAndBridgeWithoutRollupActions() {
s.Require().EqualValues(7316, action.Height)
s.Require().NotNil(action.Tx)
s.Require().NotNil(action.Action)
s.Require().EqualValues(1, action.Action.TxId)
s.Require().EqualValues(types.ActionTypeRollupDataSubmission, action.Action.Type)
s.Require().NotNil(action.Action.Data)
s.Require().NotNil(action.Action.Fee)
s.Require().EqualValues(1, action.TxId)
s.Require().EqualValues(types.ActionTypeRollupDataSubmission, action.Type)
s.Require().NotNil(action.Data)
s.Require().NotNil(action.Fee)
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
ALTER TABLE public."bridge" ADD IF NOT EXISTS disable_deposits bool DEFAULT false NOT NULL;

--bun:split

ALTER TABLE public."bridge" ALTER COLUMN disable_deposits SET STORAGE PLAIN;

--bun:split

COMMENT ON COLUMN public."bridge".disable_deposits IS 'Disable deposits to the bridge account';
5 changes: 3 additions & 2 deletions internal/storage/postgres/transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -308,8 +308,9 @@ func (tx Transaction) SaveBridges(ctx context.Context, bridges ...*models.Bridge
add.Bridge = bridges[i]

query := tx.Tx().NewInsert().Model(add).
Column("rollup_id", "address_id", "asset", "fee_asset", "sudo_id", "withdrawer_id", "init_height").
On("CONFLICT (address_id) DO UPDATE")
Column("rollup_id", "address_id", "asset", "fee_asset", "sudo_id", "withdrawer_id", "init_height", "disable_deposits").
On("CONFLICT (address_id) DO UPDATE").
Set("disable_deposits = ?", bridges[i].DisableDeposits)

if bridges[i].SudoId > 0 {
query.Set("sudo_id = ?", bridges[i].SudoId)
Expand Down
1 change: 1 addition & 0 deletions internal/storage/postgres/transaction_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,7 @@ func (s *TransactionTestSuite) TestSaveBridges() {
bridges[i].WithdrawerId = uint64(i + 100)
bridges[i].SudoId = uint64(i + 10)
bridges[i].RollupId = uint64(i + 50)
bridges[i].DisableDeposits = i%2 == 0
}

count, err := tx.SaveBridges(ctx, bridges...)
Expand Down
4 changes: 2 additions & 2 deletions internal/test_suite/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ func createTestBlock(tx types.ResponseDeliverTx, version uint64, txs []string, w
for i := 0; i < len(txs); i++ {
raw, _ := base64.StdEncoding.DecodeString(txs[i])
txResults = append(txResults, &tx)
headerBlock.Data.Txs = append(headerBlock.Data.Txs, raw)
headerBlock.Txs = append(headerBlock.Txs, raw)
}
}

Expand Down Expand Up @@ -89,7 +89,7 @@ func CreateBlockWithTxs(tx types.ResponseDeliverTx, txData []byte, count int) (t
var txResults = make([]*types.ResponseDeliverTx, count)
for i := 0; i < count; i++ {
txResults[i] = &tx
headerBlock.Data.Txs[i] = txData
headerBlock.Txs[i] = txData
}

block := types.BlockData{
Expand Down
8 changes: 5 additions & 3 deletions pkg/indexer/decode/actions.go
Original file line number Diff line number Diff line change
Expand Up @@ -571,6 +571,7 @@ func parseBridgeSudoChange(body *astria.Action_BridgeSudoChange, height types.Le
withdrawer := body.BridgeSudoChange.GetNewWithdrawerAddress().GetBech32M()
feeAsset := body.BridgeSudoChange.GetFeeAsset()

action.Data["disable_deposits"] = body.BridgeSudoChange.GetDisableDeposits()
action.Data["bridge"] = bridgeAddress
bridgeAddr := ctx.Addresses.Set(bridgeAddress, height, decimal.Zero, "", 1, 0)
action.Addresses = append(action.Addresses, &storage.AddressAction{
Expand All @@ -582,9 +583,10 @@ func parseBridgeSudoChange(body *astria.Action_BridgeSudoChange, height types.Le
})

bridge := storage.Bridge{
Address: bridgeAddr,
Sudo: bridgeAddr,
Withdrawer: bridgeAddr,
Address: bridgeAddr,
Sudo: bridgeAddr,
Withdrawer: bridgeAddr,
DisableDeposits: body.BridgeSudoChange.GetDisableDeposits(),
}

if sudo != "" {
Expand Down
Loading
Loading