Skip to content

Commit

Permalink
Integrate DEX. (#75)
Browse files Browse the repository at this point in the history
  • Loading branch information
dzmitryhil authored Jan 8, 2025
1 parent 6ee2f35 commit 3a20a4b
Show file tree
Hide file tree
Showing 34 changed files with 2,587 additions and 1,272 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ env:
jobs:
setup-build-publish-webhook:
name: Setup, Build, Publish, Webhook
runs-on: self-hosted
runs-on: ubuntu-latest

steps:
- name: Checkout
Expand Down
34 changes: 0 additions & 34 deletions .github/workflows/ci.yaml

This file was deleted.

23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: ci

on:
push:
branches:
- chains/coreum-v0.50.x
pull_request:
branches:
- chains/coreum-v0.50.x

jobs:
ci:
name: CI
runs-on: ubuntu-latest
steps:
- name: Go version used to build builder
run: go version
- name: Checkout callisto
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Run test
run: make test
50 changes: 0 additions & 50 deletions .github/workflows/docker-build.yml

This file was deleted.

3 changes: 2 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ on:

jobs:
ci:
runs-on: self-hosted
name: Release
runs-on: ubuntu-latest
steps:
- name: Check Tag
id: check-tag
Expand Down
12 changes: 12 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
FROM --platform=$TARGETPLATFORM alpine:latest
ARG TARGETOS
ARG TARGETARCH
WORKDIR /callisto
RUN apk update
RUN apk add postgresql
COPY ./bin/.cache/callisto/docker.$TARGETOS.$TARGETARCH/bin/callisto /usr/bin/callisto
COPY database/schema /var/lib/postgresql/schema
RUN chmod a+rx /var/lib/postgresql && \
chmod a+rx /var/lib/postgresql/schema

CMD [ "callisto", "start" ]
3 changes: 3 additions & 0 deletions Dockerfile.hasura
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
FROM --platform=$TARGETPLATFORM hasura/graphql-engine:v2.35.0.cli-migrations-v3
COPY hasura hasura
WORKDIR hasura
1 change: 1 addition & 0 deletions build/callisto/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,5 +33,6 @@ func buildCallisto(ctx context.Context, deps types.DepsFunc, targetPlatform tool
TargetPlatform: targetPlatform,
PackagePath: filepath.Join(repoPath, "cmd", "callisto"),
BinOutputPath: filepath.Join("bin", ".cache", binaryName, targetPlatform.String(), "bin", binaryName),
CGOEnabled: false,
})
}
25 changes: 4 additions & 21 deletions build/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,27 +5,10 @@ go 1.23.3
// Crust replacements
replace github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1

replace (
// TODO(https://github.com/cosmos/rosetta/issues/76): Rosetta requires cosmossdk.io/core v0.12.0 erroneously but
// should use v0.11.0. The Cosmos build fails with types/context.go:65:29: undefined: comet.BlockInfo otherwise.
cosmossdk.io/core => cosmossdk.io/core v0.11.0
// cosmos keyring
github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0
// We need this replacement because github.com/coinbase/rosetta-sdk-go/types was part of
// github.com/coinbase/rosetta-sdk-go module in v0.7.9 but now it is standalone module.
// And this causes "ambiguous import" error. Note: it gets broken only when using go work.
github.com/coinbase/rosetta-sdk-go v0.7.9 => github.com/coinbase/rosetta-sdk-go v0.8.4
// dgrijalva/jwt-go is deprecated and doesn't receive security updates.
// TODO(v5): remove it: https://github.com/cosmos/cosmos-sdk/issues/13134
github.com/dgrijalva/jwt-go => github.com/golang-jwt/jwt/v4 v4.4.2
// Fix upstream GHSA-h395-qcrw-5vmq vulnerability.
// TODO(v5) Remove it: https://github.com/cosmos/cosmos-sdk/issues/10409
github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.9.1
// https://github.com/cosmos/cosmos-sdk/issues/14949
// pin the version of goleveldb to v1.0.1-0.20210819022825-2ae1ddf74ef7 required by SDK v47 upgrade guide.
// replace broken goleveldb
github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
)
// Coreum replacements
// TODO(https://github.com/cosmos/rosetta/issues/76): Rosetta requires cosmossdk.io/core v0.12.0 erroneously but
// should use v0.11.0. The Cosmos build fails with types/context.go:65:29: undefined: comet.BlockInfo otherwise.
replace cosmossdk.io/core => cosmossdk.io/core v0.11.0

require github.com/CoreumFoundation/crust v0.0.0-20241206080514-16aacae70905

Expand Down
Loading

0 comments on commit 3a20a4b

Please sign in to comment.