Skip to content

Commit

Permalink
Add support for allora-chain v0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
fernandofcampos committed Oct 24, 2024
1 parent 929e8af commit 7fc1e62
Show file tree
Hide file tree
Showing 21 changed files with 19,611 additions and 119 deletions.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
bin/
*.out
config.yaml
.env
*.env
*.log
*.html
*.tmp
Expand Down
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
FROM golang:1.22-alpine
RUN apk add git

# Default to localnet
ARG CHAIN_NAME=allora-localnet-1
Expand All @@ -17,7 +18,7 @@ RUN go mod download

COPY . .

RUN go build -o allora-producer ./cmd/producer
RUN go build -buildvcs -o allora-producer ./cmd/producer

COPY ./config/config.${CHAIN_NAME}.yaml ./config.yaml

Expand Down
3 changes: 2 additions & 1 deletion cmd/producer/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ import (
"github.com/allora-network/allora-producer/app/usecase"
"github.com/allora-network/allora-producer/codec"
"github.com/allora-network/allora-producer/infra"
"github.com/allora-network/allora-producer/util"
"github.com/jackc/pgx/v4/pgxpool"

"github.com/allora-network/allora-producer/config"
Expand All @@ -19,7 +20,7 @@ import (
)

func main() {
log.Info().Msg("Starting Allora Chain Producers")
log.Info().Str("revision", util.Revision()).Msg("Starting Allora Chain Producers")
// Load config
cfg, err := initializeConfig()
if err != nil {
Expand Down
11 changes: 11 additions & 0 deletions codec/allora-chain/x/emissions/v4types/codec.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
package types

import (
types "github.com/cosmos/cosmos-sdk/codec/types"
"github.com/cosmos/cosmos-sdk/types/msgservice"
)

// RegisterInterfaces registers the interfaces types with the interface registry.
func RegisterInterfaces(registry types.InterfaceRegistry) {
msgservice.RegisterMsgServiceDesc(registry, &_MsgService_serviceDesc)
}
Loading

0 comments on commit 7fc1e62

Please sign in to comment.