Skip to content

Commit

Permalink
build: Release v1.2.x (#539)
Browse files Browse the repository at this point in the history
- Applies pruning patch.
- Brings state-sync to working state.
  • Loading branch information
Eengineer1 authored Feb 7, 2023
2 parents 52abf7b + cbdf914 commit c78a6cd
Show file tree
Hide file tree
Showing 9 changed files with 40 additions and 33 deletions.
41 changes: 20 additions & 21 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,28 +13,27 @@ permissions:

jobs:

interactive-installer:
name: "Interactive Installer"
runs-on: ubuntu-20.04
# interactive-installer:
# name: "Interactive Installer"
# runs-on: ubuntu-20.04

steps:
- uses: actions/checkout@v3

- name: "Fresh install"
working-directory: ./installer
run: |
sudo bash -c "python3 installer.py < install-from-scratch.txt"
- name: "Upgrade existing installation"
working-directory: ./installer
run: |
sudo bash -c "python3 installer.py < upgrade-existing.txt"
- name: Debugging with tmate
if: ${{ failure() }}
uses: mxschmitt/action-tmate@v3
with:
timeout-minutes: 10
# steps:
# - uses: actions/checkout@v3

# - name: "Fresh install"
# working-directory: ./installer
# run: |
# sudo bash -c "python3 installer.py < install-from-scratch.txt"

# - name: "Upgrade existing installation"
# working-directory: ./installer
# run: |
# sudo bash -c "python3 installer.py < upgrade-existing.txt"

# - name: Debugging with tmate
# if: ${{ failure() }}
# uses: mxschmitt/action-tmate@v3
# timeout-minutes: 10

unit-tests:
name: "Unit Tests"
Expand Down
8 changes: 7 additions & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,12 @@ replace (
// cheqd-node/api module replacement
github.com/cheqd/cheqd-node/api/v2 => ./api

// cosmos-sdk state sync allow fast forward to latest height version
github.com/cosmos/cosmos-sdk => github.com/cheqd/cosmos-sdk v0.46.8-cheqd-state-sync

// iavl allow pruning of uneven heights
github.com/cosmos/iavl => github.com/cheqd/iavl v0.19.4-blunt.3

// Fix upstream GHSA-h395-qcrw-5vmq vulnerability.
// TODO Remove it: https://github.com/cosmos/cosmos-sdk/issues/10409
github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.7.0
Expand All @@ -190,6 +196,6 @@ replace (
// From Cosmos SDK v0.46.8 upstream
github.com/jhump/protoreflect => github.com/jhump/protoreflect v1.9.0

// use informal system fork of tendermint
// use informal systems fork of tendermint
github.com/tendermint/tendermint => github.com/informalsystems/tendermint v0.34.24
)
8 changes: 4 additions & 4 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,10 @@ github.com/cespare/xxhash/v2 v2.1.1/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XL
github.com/cespare/xxhash/v2 v2.1.2 h1:YRXhKfTDauu4ajMg1TPgFO5jnlC2HCbmLXMcTG5cbYE=
github.com/cespare/xxhash/v2 v2.1.2/go.mod h1:VGX0DQ3Q6kWi7AoAeZDth3/j3BFtOZR5XLFGgcrjCOs=
github.com/cheggaaa/pb v1.0.27/go.mod h1:pQciLPpbU0oxA0h+VJYYLxO+XeDQb5pZijXscXHm81s=
github.com/cheqd/cosmos-sdk v0.46.8-cheqd-state-sync h1:5RQYp1sHdjnkSrfSX5nygVpl+npzY89xnp8tzd8Omxs=
github.com/cheqd/cosmos-sdk v0.46.8-cheqd-state-sync/go.mod h1:lg+FqwndbbCYQk1YTUWRDpOsNbQG0nINQqxY7ZnsAP8=
github.com/cheqd/iavl v0.19.4-blunt.3 h1:CHhRzmlpm7lVjV0kWLgJBhXZc0V/O9stSgT+fhVk874=
github.com/cheqd/iavl v0.19.4-blunt.3/go.mod h1:X9PKD3J0iFxdmgNLa7b2LYWdsGd90ToV5cAONApkEPw=
github.com/chzyer/logex v1.1.10 h1:Swpa1K6QvQznwJRcfTfQJmTE72DqScAa40E+fbHEXEE=
github.com/chzyer/logex v1.1.10/go.mod h1:+Ywpsq7O8HXn0nuIou7OrIPyXbp3wmkHB+jjWRnGsAI=
github.com/chzyer/readline v0.0.0-20180603132655-2972be24d48e h1:fY5BOSpyZCqRo5OhCuC+XN+r/bBCmeuuJtjz+bCNIf8=
Expand Down Expand Up @@ -212,17 +216,13 @@ github.com/cosmos/btcutil v1.0.5 h1:t+ZFcX77LpKtDBhjucvnOH8C2l2ioGsBNEQ3jef8xFk=
github.com/cosmos/btcutil v1.0.5/go.mod h1:IyB7iuqZMJlthe2tkIFL33xPyzbFYP0XVdS8P5lUPis=
github.com/cosmos/cosmos-proto v1.0.0-alpha8 h1:d3pCRuMYYvGA5bM0ZbbjKn+AoQD4A7dyNG2wzwWalUw=
github.com/cosmos/cosmos-proto v1.0.0-alpha8/go.mod h1:6/p+Bc4O8JKeZqe0VqUGTX31eoYqemTT4C1hLCWsO7I=
github.com/cosmos/cosmos-sdk v0.46.8 h1:n3brrFOwTwR9cKpr+k6vf6ryU+4iyzNdKOnQzEP9DwM=
github.com/cosmos/cosmos-sdk v0.46.8/go.mod h1:lg+FqwndbbCYQk1YTUWRDpOsNbQG0nINQqxY7ZnsAP8=
github.com/cosmos/go-bip39 v0.0.0-20180819234021-555e2067c45d/go.mod h1:tSxLoYXyBmiFeKpvmq4dzayMdCjCnu8uqmCysIGBT2Y=
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/gogoproto v1.4.3 h1:RP3yyVREh9snv/lsOvmsAPQt8f44LgL281X0IOIhhcI=
github.com/cosmos/gogoproto v1.4.3/go.mod h1:0hLIG5TR7IvV1fme1HCFKjfzW9X2x0Mo+RooWXCnOWU=
github.com/cosmos/gorocksdb v1.2.0 h1:d0l3jJG8M4hBouIZq0mDUHZ+zjOx044J3nGRskwTb4Y=
github.com/cosmos/gorocksdb v1.2.0/go.mod h1:aaKvKItm514hKfNJpUJXnnOWeBnk2GL4+Qw9NHizILw=
github.com/cosmos/iavl v0.19.4 h1:t82sN+Y0WeqxDLJRSpNd8YFX5URIrT+p8n6oJbJ2Dok=
github.com/cosmos/iavl v0.19.4/go.mod h1:X9PKD3J0iFxdmgNLa7b2LYWdsGd90ToV5cAONApkEPw=
github.com/cosmos/ibc-go/v6 v6.1.0 h1:o7oXws2vKkKfOFzJI+oNylRn44PCNt5wzHd/zKQKbvQ=
github.com/cosmos/ibc-go/v6 v6.1.0/go.mod h1:CY3zh2HLfetRiW8LY6kVHMATe90Wj/UOoY8T6cuB0is=
github.com/cosmos/keyring v1.1.7-0.20210622111912-ef00f8ac3d76 h1:DdzS1m6o/pCqeZ8VOAit/gyATedRgjvkVI+UCrLpyuU=
Expand Down
2 changes: 2 additions & 0 deletions go.work.sum
Original file line number Diff line number Diff line change
Expand Up @@ -341,6 +341,8 @@ github.com/cespare/cp v0.1.0 h1:SE+dxFebS7Iik5LK0tsi1k9ZCxEaFX4AjQmoyA+1dJk=
github.com/charithe/durationcheck v0.0.9 h1:mPP4ucLrf/rKZiIG/a9IPXHGlh8p4CzgpyTy6EEutYk=
github.com/chavacava/garif v0.0.0-20220630083739-93517212f375 h1:E7LT642ysztPWE0dfz43cWOvMiF42DyTRC+eZIaO4yI=
github.com/cheggaaa/pb v1.0.27 h1:wIkZHkNfC7R6GI5w7l/PdAdzXzlrbcI3p8OAlnkTsnc=
github.com/cheqd/cosmos-sdk v0.46.8-cheqd-state-sync h1:5RQYp1sHdjnkSrfSX5nygVpl+npzY89xnp8tzd8Omxs=
github.com/cheqd/cosmos-sdk v0.46.8-cheqd-state-sync/go.mod h1:lg+FqwndbbCYQk1YTUWRDpOsNbQG0nINQqxY7ZnsAP8=
github.com/circonus-labs/circonus-gometrics v2.3.1+incompatible h1:C29Ae4G5GtYyYMm1aztcyj/J5ckgJm2zwdDajFbx1NY=
github.com/circonus-labs/circonusllhist v0.1.3 h1:TJH+oke8D16535+jHExHj4nQvzlZrj7ug5D7I/orNUA=
github.com/clbanning/mxj v1.8.4 h1:HuhwZtbyvyOw+3Z1AowPkU87JkJUSv751ELWaiTpj8I=
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"title": "Did Param Change",
"description": "This is a simple example of a param change - double the values",
"description": "This is a simple example of a param change - double the values, 99% burn factor",
"type": "ParameterChange",
"changes": [
{
"subspace": "cheqd",
"key": "feeparams",
"value": {"create_did": {"denom": "ncheq", "amount": "100000000000"}, "update_did": {"denom": "ncheq", "amount": "50000000000"}, "deactivate_did": {"denom": "ncheq", "amount": "20000000000"}, "burn_factor": "0.600000000000000000"}
"value": {"create_did": {"denom": "ncheq", "amount": "100000000000"}, "update_did": {"denom": "ncheq", "amount": "50000000000"}, "deactivate_did": {"denom": "ncheq", "amount": "20000000000"}, "burn_factor": "0.990000000000000000"}
}
],
"deposit": "10000000000ncheq"
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"title": "Resource Param Change",
"description": "This is a simple example of a param change - double the values",
"description": "This is a simple example of a param change - double the values, 99% burn factor",
"type": "ParameterChange",
"changes": [
{
"subspace": "resource",
"key": "feeparams",
"value": {"image": {"denom": "ncheq", "amount": "20000000000"}, "json": {"denom": "ncheq", "amount": "5000000000"}, "default": {"denom": "ncheq", "amount": "10000000000"}, "burn_factor": "0.600000000000000000"}
"value": {"image": {"denom": "ncheq", "amount": "20000000000"}, "json": {"denom": "ncheq", "amount": "5000000000"}, "default": {"denom": "ncheq", "amount": "10000000000"}, "burn_factor": "0.990000000000000000"}
}
],
"deposit": "10000000000ncheq"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"denom": "ncheq",
"amount": "20000000000"
},
"burn_factor": "0.600000000000000000"
"burn_factor": "0.990000000000000000"
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,5 @@
"denom": "ncheq",
"amount": "10000000000"
},
"burn_factor": "0.600000000000000000"
"burn_factor": "0.990000000000000000"
}
2 changes: 1 addition & 1 deletion x/resource/client/cli/query_collection_resources.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (

func CmdGetCollectionResources() *cobra.Command {
cmd := &cobra.Command{
Use: "collection-metadata [collection-id] [resource-id]",
Use: "collection-metadata [collection-id]",
Short: "Query metadata for an entire Collection",
Long: `Query metadata for an entire Collection by Collection ID. This will return the metadata for all Resources in the Collection.
Expand Down

0 comments on commit c78a6cd

Please sign in to comment.