Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexOnomy committed May 6, 2024
1 parent 5379e12 commit 0499629
Show file tree
Hide file tree
Showing 818 changed files with 58,089 additions and 191,820 deletions.
44 changes: 44 additions & 0 deletions .build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
#!/bin/bash

set -ue

# Expect the following envvars to be set:
# - APP
# - VERSION
# - COMMIT
# - TARGET_OS
# - LEDGER_ENABLED
# - DEBUG

# Source builder's functions library
. /usr/local/share/tendermint/buildlib.sh

# These variables are now available
# - BASEDIR
# - OUTDIR

# Build for each os-architecture pair
for platform in ${TARGET_PLATFORMS} ; do
# This function sets GOOS, GOARCH, and OS_FILE_EXT environment variables
# according to the build target platform. OS_FILE_EXT is empty in all
# cases except when the target platform is 'windows'.
setup_build_env_for_platform "${platform}"

make clean
echo Building for $(go env GOOS)/$(go env GOARCH) >&2
GOROOT_FINAL="$(go env GOROOT)" \
make build \
LDFLAGS=-buildid=${VERSION} \
VERSION=${VERSION} \
COMMIT=${COMMIT} \
LEDGER_ENABLED=${LEDGER_ENABLED}
mv ./build/${APP}${OS_FILE_EXT} ${OUTDIR}/${APP}-${VERSION}-$(go env GOOS)-$(go env GOARCH)${OS_FILE_EXT}

# This function restore the build environment variables to their
# original state.
restore_build_env
done

# Generate and display build report.
generate_build_report
cat ${OUTDIR}/build_report
20 changes: 20 additions & 0 deletions .changelog/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
project_url = "https://github.com/onomyprotocol/onomy-rebuild"

# Settings related to components/sub-modules. Only relevant if you make use of
# components/sub-modules.
[components]

# The title to use for the section of entries not relating to a specific
# component.
general_entries_title = "General"

# The number of spaces to inject before each component-related entry.
entry_indent = 2

# The components themselves. Each component has a name (used when rendered
# to Markdown) and a path relative to the project folder (i.e. relative to
# the parent of the `.changelog` folder).
[components.all]
globalfee = { name = "GlobalFee", path = "x/globalfee" }
tests = { name = "Tests", path = "tests" }
docs = { name = "Documentation", path = "docs" }
3 changes: 3 additions & 0 deletions .changelog/epilogue.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## Previous Versions

[CHANGELOG of previous versions](https://github.com/onomyprotocol/onomy-rebuild/blob/main/CHANGELOG.md)
Empty file added .changelog/unreleased/.gitkeep
Empty file.
2 changes: 2 additions & 0 deletions .changelog/v15.0.0/api-breaking/2912-vote-spam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Reject `MsgVote` messages from accounts with less than 1 atom staked.
([\#2912](https://github.com/onomyprotocol/onomy-rebuild/pull/2912))
4 changes: 4 additions & 0 deletions .changelog/v15.0.0/api-breaking/2967-bump-ics.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- The consumer CCV genesis state obtained from the provider chain needs to be
transformed to be compatible with older versions of consumer chains
(see [ICS docs](https://cosmos.github.io/interchain-security/consumer-development/consumer-genesis-transformation)).
([\#2967](https://github.com/onomyprotocol/onomy-rebuild/pull/2967))
8 changes: 8 additions & 0 deletions .changelog/v15.0.0/api-breaking/2967-bump-sdk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
- Bump [cosmos-sdk](https://github.com/cosmos/cosmos-sdk) to
[v0.47.10-ics-lsm](https://github.com/cosmos/cosmos-sdk/tree/v0.47.10-ics-lsm).
As compared to [v0.47.10](https://github.com/cosmos/cosmos-sdk/tree/v0.47.10),
this special branch of cosmos-sdk has the following API-breaking changes:
([\#2967](https://github.com/onomyprotocol/onomy-rebuild/pull/2967))
- Limit the accepted deposit coins for a proposal to the minimum proposal deposit denoms (e.g., `uatom` for Cosmos Hub). ([sdk-#19302](https://github.com/cosmos/cosmos-sdk/pull/19302))
- Add denom check to reject denoms outside of those listed in `MinDeposit`. A new `MinDepositRatio` param is added (with a default value of `0.01`) and now deposits are required to be at least `MinDepositRatio*MinDeposit` to be accepted. ([sdk-#19312](https://github.com/cosmos/cosmos-sdk/pull/19312))
- Disable the `DenomOwners` query. ([sdk-#19266](https://github.com/cosmos/cosmos-sdk/pull/19266))
2 changes: 2 additions & 0 deletions .changelog/v15.0.0/bug-fixes/2912-vote-spam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Add ante handler that only allows `MsgVote` messages from accounts with at least
1 atom staked. ([\#2912](https://github.com/onomyprotocol/onomy-rebuild/pull/2912))
12 changes: 12 additions & 0 deletions .changelog/v15.0.0/bug-fixes/2967-bump-sdk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
- Bump [cosmos-sdk](https://github.com/cosmos/cosmos-sdk) to
[v0.47.10-ics-lsm](https://github.com/cosmos/cosmos-sdk/tree/v0.47.10-ics-lsm).
This special branch of cosmos-sdk backports a series of fixes for issues found
during the [Oak Security audit of SDK 0.47](https://github.com/oak-security/audit-reports/blob/master/Cosmos%20SDK/2024-01-23%20Audit%20Report%20-%20Cosmos%20SDK%20v1.0.pdf).
([\#2967](https://github.com/onomyprotocol/onomy-rebuild/pull/2967))
- Backport [sdk-#18146](https://github.com/cosmos/cosmos-sdk/pull/18146): Add denom check to reject denoms outside of those listed in `MinDeposit`. A new `MinDepositRatio` param is added (with a default value of `0.01`) and now deposits are required to be at least `MinDepositRatio*MinDeposit` to be accepted. ([sdk-#19312](https://github.com/cosmos/cosmos-sdk/pull/19312))
- Partially backport [sdk-#18047](https://github.com/cosmos/cosmos-sdk/pull/18047): Add a limit of 200 grants pruned per `EndBlock` in the feegrant module. ([sdk-#19314](https://github.com/cosmos/cosmos-sdk/pull/19314))
- Partially backport [skd-#18737](https://github.com/cosmos/cosmos-sdk/pull/18737): Add a limit of 200 grants pruned per `BeginBlock` in the authz module. ([sdk-#19315](https://github.com/cosmos/cosmos-sdk/pull/19315))
- Backport [sdk-#18173](https://github.com/cosmos/cosmos-sdk/pull/18173): Gov Hooks now returns error and are "blocking" if they fail. Expect for `AfterProposalFailedMinDeposit` and `AfterProposalVotingPeriodEnded` that will log the error and continue. ([sdk-#19305](https://github.com/cosmos/cosmos-sdk/pull/19305))
- Backport [sdk-#18189](https://github.com/cosmos/cosmos-sdk/pull/18189): Limit the accepted deposit coins for a proposal to the minimum proposal deposit denoms. ([sdk-#19302](https://github.com/cosmos/cosmos-sdk/pull/19302))
- Backport [sdk-#18214](https://github.com/cosmos/cosmos-sdk/pull/18214) and [sdk-#17352](https://github.com/cosmos/cosmos-sdk/pull/17352): Ensure that modifying the argument to `NewUIntFromBigInt` and `NewIntFromBigInt` doesn't mutate the returned value. ([sdk-#19293](https://github.com/cosmos/cosmos-sdk/pull/19293))

3 changes: 3 additions & 0 deletions .changelog/v15.0.0/dependencies/2852-bump-comet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Bump [CometBFT](https://github.com/cometbft/cometbft)
to [v0.37.4](https://github.com/cometbft/cometbft/releases/tag/v0.37.4)
([\#2852](https://github.com/onomyprotocol/onomy-rebuild/pull/2852))
3 changes: 3 additions & 0 deletions .changelog/v15.0.0/dependencies/2852-bump-ibc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Bump [ibc-go](https://github.com/cosmos/ibc-go) to
[v7.3.1](https://github.com/cosmos/ibc-go/releases/tag/v7.3.1)
([\#2852](https://github.com/onomyprotocol/onomy-rebuild/pull/2852))
3 changes: 3 additions & 0 deletions .changelog/v15.0.0/dependencies/2852-bump-pfm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Bump [PFM](https://github.com/cosmos/ibc-apps/tree/main/middleware)
to [v7.1.2](https://github.com/cosmos/ibc-apps/releases/tag/middleware%2Fpacket-forward-middleware%2Fv7.1.2)
([\#2852](https://github.com/onomyprotocol/onomy-rebuild/pull/2852))
3 changes: 3 additions & 0 deletions .changelog/v15.0.0/dependencies/2967-bump-ics.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Bump [ICS](https://github.com/cosmos/interchain-security) to
[v3.3.3-lsm](https://github.com/cosmos/interchain-security/releases/tag/v3.3.3-lsm)
([\#2967](https://github.com/onomyprotocol/onomy-rebuild/pull/2967))
4 changes: 4 additions & 0 deletions .changelog/v15.0.0/dependencies/2967-bump-sdk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
- Bump [cosmos-sdk](https://github.com/cosmos/cosmos-sdk) to
[v0.47.10-ics-lsm](https://github.com/cosmos/cosmos-sdk/tree/v0.47.10-ics-lsm).
This is a special cosmos-sdk branch with support for both ICS and LSM.
([\#2967](https://github.com/onomyprotocol/onomy-rebuild/pull/2967))
2 changes: 2 additions & 0 deletions .changelog/v15.0.0/features/2960-add-metaprotocols-support.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Add support for metaprotocols using Tx extension options.
([\#2960](https://github.com/onomyprotocol/onomy-rebuild/pull/2960))
3 changes: 3 additions & 0 deletions .changelog/v15.0.0/state-breaking/2852-bump-comet.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Bump [CometBFT](https://github.com/cometbft/cometbft)
to [v0.37.4](https://github.com/cometbft/cometbft/releases/tag/v0.37.4)
([\#2852](https://github.com/onomyprotocol/onomy-rebuild/pull/2852))
3 changes: 3 additions & 0 deletions .changelog/v15.0.0/state-breaking/2852-bump-ibc.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Bump [ibc-go](https://github.com/cosmos/ibc-go) to
[v7.3.1](https://github.com/cosmos/ibc-go/releases/tag/v7.3.1)
([\#2852](https://github.com/onomyprotocol/onomy-rebuild/pull/2852))
3 changes: 3 additions & 0 deletions .changelog/v15.0.0/state-breaking/2852-bump-pfm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Bump [PFM](https://github.com/cosmos/ibc-apps/tree/main/middleware)
to [v7.1.2](https://github.com/cosmos/ibc-apps/releases/tag/middleware%2Fpacket-forward-middleware%2Fv7.1.2)
([\#2852](https://github.com/onomyprotocol/onomy-rebuild/pull/2852))
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
- Set min commission rate staking parameter to `5%`
([prop 826](https://www.mintscan.io/cosmos/proposals/826))
and update the commission rate for all validators that have a commission
rate less than `5%`. ([\#2855](https://github.com/onomyprotocol/onomy-rebuild/pull/2855))



Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- Migrate the signing infos of validators for which the consensus address is missing.
([\#2886](https://github.com/onomyprotocol/onomy-rebuild/pull/2886))



Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Migrate vesting funds from "cosmos145hytrc49m0hn6fphp8d5h4xspwkawcuzmx498"
to community pool according to signal prop [860](https://www.mintscan.io/cosmos/proposals/860).
([\#2891](https://github.com/onomyprotocol/onomy-rebuild/pull/2891))
2 changes: 2 additions & 0 deletions .changelog/v15.0.0/state-breaking/2912-vote-spam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Add ante handler that only allows `MsgVote` messages from accounts with at least
1 atom staked. ([\#2912](https://github.com/onomyprotocol/onomy-rebuild/pull/2912))
3 changes: 3 additions & 0 deletions .changelog/v15.0.0/state-breaking/2913-gov-spam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Remove `GovPreventSpamDecorator` and initialize the `MinInitialDepositRatio` gov
param to `10%`.
([\#2913](https://github.com/onomyprotocol/onomy-rebuild/pull/2913))
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Add support for metaprotocols using Tx extension options.
([\#2960](https://github.com/onomyprotocol/onomy-rebuild/pull/2960))
3 changes: 3 additions & 0 deletions .changelog/v15.0.0/state-breaking/2967-bump-ics.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Bump [ICS](https://github.com/cosmos/interchain-security) to
[v3.3.3-lsm](https://github.com/cosmos/interchain-security/releases/tag/v3.3.3-lsm)
([\#2967](https://github.com/onomyprotocol/onomy-rebuild/pull/2967))
5 changes: 5 additions & 0 deletions .changelog/v15.0.0/state-breaking/2967-bump-sdk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
- Bump [cosmos-sdk](https://github.com/cosmos/cosmos-sdk) to
[v0.47.10-ics-lsm](https://github.com/cosmos/cosmos-sdk/tree/v0.47.10-ics-lsm).
This is a special cosmos-sdk branch with support for both ICS and LSM.
([\#2967](https://github.com/onomyprotocol/onomy-rebuild/pull/2967))
- Skip running `addDenomReverseIndex` in `bank/v3` migration as it is prohibitively expensive to run on the Cosmos Hub. ([sdk-#19266](https://github.com/cosmos/cosmos-sdk/pull/19266))
1 change: 1 addition & 0 deletions .changelog/v15.0.0/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*February 20, 2024*
2 changes: 2 additions & 0 deletions .changelog/v15.1.0/dependencies/2982-bump-pfm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Bump [PFM](https://github.com/cosmos/ibc-apps/tree/main/middleware) to `v7.1.3-0.20240228213828-cce7f56d000b`.
([\#2982](https://github.com/onomyprotocol/onomy-rebuild/pull/2982))
1 change: 1 addition & 0 deletions .changelog/v15.1.0/features/2974-add-snapshot-commands.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Add onomyd snapshots command set ([\#2974](https://github.com/onomyprotocol/onomy-rebuild/pull/2974))
2 changes: 2 additions & 0 deletions .changelog/v15.1.0/state-breaking/2982-bump-pfm.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
- Bump [PFM](https://github.com/cosmos/ibc-apps/tree/main/middleware) to `v7.1.3-0.20240228213828-cce7f56d000b`.
([\#2982](https://github.com/onomyprotocol/onomy-rebuild/pull/2982))
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
- Mint and transfer missing assets in escrow accounts
to reach parity with counterparty chain supply.
([\#2993](https://github.com/onomyprotocol/onomy-rebuild/pull/2993))
1 change: 1 addition & 0 deletions .changelog/v15.1.0/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*March 15, 2024*
1 change: 1 addition & 0 deletions .changelog/v15.2.0/bug-fixes/3025-gov-metatdata-len.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Increase x/gov metadata fields length to 10200 ([\#3025](https://github.com/onomyprotocol/onomy-rebuild/pull/3025))
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fix parsing of historic Txs with TxExtensionOptions ([\#3032](https://github.com/onomyprotocol/onomy-rebuild/pull/3032))
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Increase x/gov metadata fields length to 10200 ([\#3025](https://github.com/onomyprotocol/onomy-rebuild/pull/3025))
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
- Fix parsing of historic Txs with TxExtensionOptions ([\#3032](https://github.com/onomyprotocol/onomy-rebuild/pull/3032))
2 changes: 2 additions & 0 deletions .changelog/v15.2.0/summary.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*March 29, 2024*

4 changes: 4 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
node_modules
build
.github
.vscode
Empty file added .gitattributes
Empty file.
5 changes: 5 additions & 0 deletions .github/CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# CODEOWNERS: https://help.github.com/articles/about-codeowners/

# Primary repo maintainers
* @alexanderbez @zmanian @crodriguezvega @jackzampolin @cosmos/informal_onomy_maintain

34 changes: 34 additions & 0 deletions .github/ISSUE_TEMPLATE/bug-report.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
---
name: Bug Report
about: Create a report to help us squash bugs!
labels: bug, needs-triage
---

<!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺
v ✰ Thanks for opening an issue! ✰
v Before smashing the submit button please review the template.
v Please also ensure that this is not a duplicate issue :)
☺ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -->

## Summary of Bug

<!-- Concisely describe the issue -->

## Version

<!-- git commit hash, output of `onomycli version`, output of `onomyd version` -->

## Steps to Reproduce

<!-- What commands in order should someone run to reproduce your problem -->

____

#### For Admin Use

- [ ] Not duplicate issue
- [ ] Appropriate labels applied
- [ ] Appropriate contributors tagged
- [ ] Contributor assigned/self-assigned
- [ ] Is a spike necessary to map out how the issue should be approached?

30 changes: 30 additions & 0 deletions .github/ISSUE_TEMPLATE/epic-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
---
name: EPIC Template
about: Basic template for EPICs (used by the team)
labels: epic, needs-triage
---

## Problem

<!-- Please write a concise 1-3 line problem. -->

## Closing criteria

<!-- Please write a satisfiable criteria for closing this issue. -->


## Problem details

<!-- Please describe the problem in all detail. -->

## Task list

```[tasklist]
### Must have
```

```[tasklist]
### Nice to have
```
50 changes: 50 additions & 0 deletions .github/ISSUE_TEMPLATE/feature-request.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
---
name: Feature Request
about: Create a proposal to request a feature
labels: enhancement, epic, needs-triage
---

<!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺
v ✰ Thanks for opening an issue! ✰
v Before smashing the submit button please review the template.
v Word of caution: poorly thought-out proposals may be rejected
v without deliberation
☺ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -->

## Summary

<!-- Short, concise description of the proposed feature -->

## Problem Definition

<!-- Why do we need this feature?
What problems may be addressed by introducing this feature?
What benefits does onomy stand to gain by including this feature?
Are there any disadvantages of including this feature? -->

## Proposal

<!-- Detailed description of requirements of implementation -->

## Task list

```[tasklist]
### Must have
- [ ] discuss proposal (if proposal rejected, close EPIC)
- [ ] create ADR (if ADR rejected, close EPIC)
- [ ] add sub-tasks needed to implement the proposed feature
```

```[tasklist]
### Nice to have
- [ ] add sub-tasks that are nice to have for the proposed feature
```
____

#### For Admin Use

- [ ] Not duplicate issue
- [ ] Appropriate labels applied
- [ ] Appropriate contributors tagged
- [ ] Contributor assigned/self-assigned
- [ ] Is a spike necessary to map out how the issue should be approached?
24 changes: 24 additions & 0 deletions .github/ISSUE_TEMPLATE/issue-template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
name: Issue Template
about: Basic template for issues (used by the team)
labels: needs-triage
---

<!-- < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < ☺
v ✰ Thanks for opening an issue! ✰
v Before smashing the submit button please review the template.
v Please also ensure that this is not a duplicate issue :)
☺ > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -->

# Problem

<!-- Please write a concise 1-3 line problem. -->

# Closing criteria

<!-- Please write a satisfiable criteria for closing this issue. -->


# Problem details

<!-- Please describe the problem in all detail. -->
Loading

0 comments on commit 0499629

Please sign in to comment.