Skip to content

Commit

Permalink
Merge pull request #11 from rarimo/chains/mainnet-v1.1.0
Browse files Browse the repository at this point in the history
Chains/mainnet v1.1.0
  • Loading branch information
olegfomenko authored Dec 23, 2023
2 parents 564e091 + 5521efb commit 5454835
Show file tree
Hide file tree
Showing 135 changed files with 11,094 additions and 3,880 deletions.
29 changes: 27 additions & 2 deletions .github/workflows/tag.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,13 @@ on:
push:
tags:
- 'v[0-9]+.[0-9]+.[0-9]+'
- 'v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+'

jobs:
converge:
name: Converge
runs-on: ubuntu-latest
steps:

- name: Checkout code
uses: actions/checkout@v3
with:
Expand All @@ -28,7 +28,32 @@ jobs:
docker version
echo $GITHUB_REPOSITORY
echo $GITHUB_REF_NAME
- name: Run Build
run: |
. $(werf ci-env github --as-file)
werf export service --tag ghcr.io/$GITHUB_REPOSITORY:$GITHUB_REF_NAME
werf export service --tag ghcr.io/$GITHUB_REPOSITORY:$GITHUB_REF_NAME
- uses: shrink/actions-docker-extract@v3
id: extract
with:
image: ghcr.io/$GITHUB_REPOSITORY:$GITHUB_REF_NAME
path: "/usr/local/bin/rarimo-core"

- uses: ncipollo/release-action@v1
id: create-release
with:
allowUpdates: true
tag: ${{ github.ref_name }}
name: Release ${{ github.ref_name }}
token: ${{ secrets.GITHUB_TOKEN }}

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create-release.outputs.upload_url }}
asset_path: ${{steps.extract.outputs.destination}}/rarimo-core
asset_name: rarimo-core-alpine-linux-amd64
asset_content_type: application/octet-stream
15 changes: 15 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
before:
hooks:
- go mod tidy
- go mod vendor

builds:
- id: linux-amd64-build
main: ./cmd/rarimo-cored
binary: rarimo-core
env:
- CGO_ENABLED=1
goos:
- linux
goarch:
- amd64
32 changes: 27 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,19 +2,22 @@

[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)


***Chains:***

* [***Mainnet information***](./docs/common/mainnet/001-mainnet.md)

* [***Testnet (Mainnet-beta) information***](./docs/common/testnet/001-testnet.md)

## Introduction

**rarimo-core** is a blockchain built using Cosmos SDK and Tendermint and created with [Ignite CLI](https://ignite.com/cli).
**rarimo-core** is a blockchain built using Cosmos SDK and Tendermint and created
with [Ignite CLI](https://ignite.com/cli).

Based on Tendermint + Cosmos SDK blockchain core the main goal is to provide validated information about different cross-chain operations.
Based on Tendermint + Cosmos SDK blockchain core the main goal is to provide validated information about different
cross-chain operations.

Documentation:

* [Rarimo core modules business logic](./x/README.md)
* [Bridge contract architecture](./docs/common/contracts/001-contracts.md)
* [Bridging flow overview](./docs/common/bridging/001-bridging.md)
Expand All @@ -25,22 +28,41 @@ Documentation:
### Install

Use

```shell
ignite chain build
```

If it fails in generate proto stage with error on etheremint .proto files just re-execute that command or try to add `--clear-cache` flag.
If it fails in generate proto stage with error on etheremint .proto files just re-execute that command or try to
add `--clear-cache` flag.

### Generate proto files

Use

```shell
ignite generate proto-go
```

If it fails in generate proto stage with error on etheremint .proto files remove `./proto/ethermint` package and execute command again.
If it fails in generate proto stage with error on etheremint .proto files remove `./proto/ethermint` package and execute
command again.
DO NOT FORGET TO RETURN DELETED PACKAGE.

## Versioning

Rarimo core leverages on the following branches:

- `master` branch with vanilla core version
- `mainnet-beta` branch with testnet core with all testnet upgrades
- `mainnet` branch with mainnet core with all mainnet upgrades

For the tags we are using an approach when stable releases with `vX.X.X` tag has only the `mainnet` core. On the other
side `mainnet-beta` releases are build under `vX.X.X-rcX` tag. For the master branch releases only hash tagged images
will be provided.

Before creating the `mainnet` release be sure that it includes all unreleased changes from `mainnet-beta` and then
select the corresponding version number that will cover all released tags on `mainnet-beta`.

## Learn more

- [Ignite CLI](https://ignite.com/cli)
Expand Down
7 changes: 7 additions & 0 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -973,6 +973,13 @@ func New(
},
)

app.UpgradeKeeper.SetUpgradeHandler(
"v1.1.0",
func(ctx sdk.Context, plan upgradetypes.Plan, fromVM module.VersionMap) (module.VersionMap, error) {
return app.mm.RunMigrations(ctx, app.configurator, fromVM)
},
)

if loadLatest {
if err := app.LoadLatestVersion(); err != nil {
tmos.Exit(err.Error())
Expand Down
57 changes: 0 additions & 57 deletions docker-compose.yaml

This file was deleted.

7 changes: 6 additions & 1 deletion docs/common/bridging/001-bridging.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
---
layout: default
title: Bridging
---

# Bridging

Bridging documentation describes current existing implementations over our cross-chain messaging protocol.

* [Bridging identity from Polygon](./002-identity.md)
* [Bridging identity from Polygon](./002-identity.md)
* [Bridging identity from Rarimo](./003-rarimo-identity.md)
Loading

0 comments on commit 5454835

Please sign in to comment.