Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 0.8 #36

Merged
merged 9 commits into from
Aug 9, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/local-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
branches: [ "0.8.x" ]
env:
CARGO_TERM_COLOR: always
jobs:
Expand Down
59 changes: 31 additions & 28 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,54 @@

## [Unreleased](https://github.com/babylonchain/babylon-contract/tree/HEAD)

[Full Changelog](https://github.com/babylonchain/babylon-contract/compare/v0.7.0...HEAD)
[Full Changelog](https://github.com/babylonchain/babylon-contract/compare/v0.8.0...HEAD)

## [v0.7.0](https://github.com/babylonchain/babylon-contract/tree/v0.7.0) (2024-06-24)
## [v0.8.0](https://github.com/babylonchain/babylon-contract/tree/v0.7.0) (2024-07-09)

[Full Changelog](https://github.com/babylonchain/babylon-contract/compare/v0.7.0-rc.1...v0.7.0)
[Full Changelog](https://github.com/babylonchain/babylon-contract/compare/v0.7.0...v0.8.0)

**Closed issues:**

- add a killswitch to disable finality gadget [\#181](https://github.com/babylonchain/babylon-contract/issues/181)
- Update babylon-private to latest base/consumer-chain-support (2024-08-09)

**Merged pull requests:**

- fix: build-optimizer.sh to properly generate code for arm64 [\#185](https://github.com/babylonchain/babylon-contract/pull/185) ([bap2pecs](https://github.com/bap2pecs))
- fix: init pr empty issue [\#184](https://github.com/babylonchain/babylon-contract/pull/184) ([bap2pecs](https://github.com/bap2pecs))
- fix: pub rand and finality sig query [\#183](https://github.com/babylonchain/babylon-contract/pull/183) ([gusin13](https://github.com/gusin13))
- feat: implement killswitch [\#182](https://github.com/babylonchain/babylon-contract/pull/182) ([parketh](https://github.com/parketh))
- fix: comment out unused code [\#146](https://github.com/babylonchain/babylon-contract/pull/146) ([bap2pecs](https://github.com/bap2pecs))
- F/babylon private rebase (#211)
- fix: allow query_block_voters() to return `None` if the block doesn't exist (#204)
- chore: refactor pub rand commit (#200)
- feat: add the query msg `FirstPubRandCommit ` and `Event` (#198)
- feat: add query msg `HasPubRandCommit` (#196)
- fix: decode hex hash (#195)
- feat: set `isEnabled` at instantiation (#193)
- feat: update admin (#192)
- fix: cannot compare babylon chain height with consumer chain height (#190)
- test: add finality gadget tests (#188)
- chore: clean up scripts/optimizer.sh (#187)

## [v0.7.0-rc.1](https://github.com/babylonchain/babylon-contract/tree/v0.7.0-rc.1) (2024-06-21)
## [v0.7.0](https://github.com/babylonchain/babylon-contract/tree/v0.7.0) (2024-06-24)

[Full Changelog](https://github.com/babylonchain/babylon-contract/compare/v0.7.0-rc.0...v0.7.0-rc.1)
[Full Changelog](https://github.com/babylonchain/babylon-contract/compare/v0.6.0...v0.7.0)

**Closed issues:**

- add a killswitch to disable finality gadget [\#181](https://github.com/babylonchain/babylon-contract/issues/181)
- Simplify packages/apis/src/queries.rs [\#172](https://github.com/babylonchain/babylon-contract/issues/172)
- Set an activated height when deploying the op-finality-gadget contract [\#167](https://github.com/babylonchain/babylon-contract/issues/167)
- Store block hash in the op-finality-gadget contract [\#159](https://github.com/babylonchain/babylon-contract/issues/159)
- Finality round [\#153](https://github.com/babylonchain/babylon-contract/issues/153)
- Upgrade to CosmWasm 2.x [\#140](https://github.com/babylonchain/babylon-contract/issues/140)
- Refactor btc-staking contract into modules [\#130](https://github.com/babylonchain/babylon-contract/issues/130)
- Active finality provider set [\#118](https://github.com/babylonchain/babylon-contract/issues/118)
- Finality signatures submission [\#109](https://github.com/babylonchain/babylon-contract/issues/109)

**Merged pull requests:**

- fix: build-optimizer.sh to properly generate code for arm64 [\#185](https://github.com/babylonchain/babylon-contract/pull/185) ([bap2pecs](https://github.com/bap2pecs))
- fix: init pr empty issue [\#184](https://github.com/babylonchain/babylon-contract/pull/184) ([bap2pecs](https://github.com/bap2pecs))
- fix: pub rand and finality sig query [\#183](https://github.com/babylonchain/babylon-contract/pull/183) ([gusin13](https://github.com/gusin13))
- feat: implement killswitch [\#182](https://github.com/babylonchain/babylon-contract/pull/182) ([parketh](https://github.com/parketh))
- fix: comment out unused code [\#146](https://github.com/babylonchain/babylon-contract/pull/146) ([bap2pecs](https://github.com/bap2pecs))

- Fix: Set initial FP power to zero [\#180](https://github.com/babylonchain/babylon-contract/pull/180) ([maurolacy](https://github.com/maurolacy))
- chore: change to query block votes [\#178](https://github.com/babylonchain/babylon-contract/pull/178) ([lesterli](https://github.com/lesterli))
- feat: query last pub rand commit [\#177](https://github.com/babylonchain/babylon-contract/pull/177) ([lesterli](https://github.com/lesterli))
Expand All @@ -42,21 +60,6 @@
- fix: typo [\#169](https://github.com/babylonchain/babylon-contract/pull/169) ([lesterli](https://github.com/lesterli))
- feat: set activated height [\#168](https://github.com/babylonchain/babylon-contract/pull/168) ([lesterli](https://github.com/lesterli))
- feat: Use gRPC to query the Babylon Chain [\#158](https://github.com/babylonchain/babylon-contract/pull/158) ([lesterli](https://github.com/lesterli))

## [v0.7.0-rc.0](https://github.com/babylonchain/babylon-contract/tree/v0.7.0-rc.0) (2024-06-19)

[Full Changelog](https://github.com/babylonchain/babylon-contract/compare/v0.6.0-rc.0...v0.7.0-rc.0)

**Closed issues:**

- Finality round [\#153](https://github.com/babylonchain/babylon-contract/issues/153)
- Upgrade to CosmWasm 2.x [\#140](https://github.com/babylonchain/babylon-contract/issues/140)
- Refactor btc-staking contract into modules [\#130](https://github.com/babylonchain/babylon-contract/issues/130)
- Active finality provider set [\#118](https://github.com/babylonchain/babylon-contract/issues/118)
- Finality signatures submission [\#109](https://github.com/babylonchain/babylon-contract/issues/109)

**Merged pull requests:**

- Active finality provider set [\#163](https://github.com/babylonchain/babylon-contract/pull/163) ([maurolacy](https://github.com/maurolacy))
- R/sudo msgs [\#162](https://github.com/babylonchain/babylon-contract/pull/162) ([maurolacy](https://github.com/maurolacy))
- F/finality queries tests [\#161](https://github.com/babylonchain/babylon-contract/pull/161) ([maurolacy](https://github.com/maurolacy))
Expand All @@ -73,9 +76,9 @@
- crypto: error/option handling in EOTS implementation [\#139](https://github.com/babylonchain/babylon-contract/pull/139) ([SebastianElvis](https://github.com/SebastianElvis))
- R/btc staking modules [\#138](https://github.com/babylonchain/babylon-contract/pull/138) ([maurolacy](https://github.com/maurolacy))

## [v0.6.0-rc.0](https://github.com/babylonchain/babylon-contract/tree/v0.6.0-rc.0) (2024-06-07)
## [v0.6.0](https://github.com/babylonchain/babylon-contract/tree/v0.6.0) (2024-06-07)

[Full Changelog](https://github.com/babylonchain/babylon-contract/compare/v0.5.3...v0.6.0-rc.0)
[Full Changelog](https://github.com/babylonchain/babylon-contract/compare/v0.5.3...v0.6.0)

**Closed issues:**

Expand Down
20 changes: 10 additions & 10 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ resolver = "2"

[workspace.package]
edition = "2021"
version = "0.7.0"
version = "0.8.0"
license = "Apache-2.0"
repository = "https://github.com/babylonchain/babylon-contract"
authors = ["BabylonChain Inc. <[email protected]>"]
Expand Down
2 changes: 1 addition & 1 deletion contracts/babylon/schema/babylon-contract.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"contract_name": "babylon-contract",
"contract_version": "0.7.0",
"contract_version": "0.8.0",
"idl_version": "1.0.0",
"instantiate": {
"$schema": "http://json-schema.org/draft-07/schema#",
Expand Down
1 change: 0 additions & 1 deletion contracts/babylon/src/utils/ics23_commitment/specs.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use ics23::ProofSpec as Ics23ProofSpec;
///
/// This type encapsulates different types of proof specifications, mostly predefined, e.g., for
/// Cosmos-SDK.
#[cfg_attr(feature = "serde", derive(serde::Serialize, serde::Deserialize))]
#[derive(Clone, Debug, PartialEq, Eq)]
pub struct ProofSpecs(Vec<Ics23ProofSpec>);

Expand Down
2 changes: 1 addition & 1 deletion contracts/btc-staking/schema/btc-staking.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"contract_name": "btc-staking",
"contract_version": "0.7.0",
"contract_version": "0.8.0",
"idl_version": "1.0.0",
"instantiate": {
"$schema": "http://json-schema.org/draft-07/schema#",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"contract_name": "op-finality-gadget",
"contract_version": "0.7.0",
"contract_version": "0.8.0",
"idl_version": "1.0.0",
"instantiate": {
"$schema": "http://json-schema.org/draft-07/schema#",
Expand Down
17 changes: 7 additions & 10 deletions datagen/go.mod
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
module github.com/babylonchain/babylon-contract/datagen
module github.com/babylonlabs-io/babylon-contract/datagen

go 1.21

toolchain go1.21.4

require (
cosmossdk.io/math v1.3.0
github.com/babylonchain/babylon v0.8.0
github.com/babylonlabs-io/babylon v0.9.0
github.com/boljen/go-bitmap v0.0.0-20151001105940-23cd2fb0ce7d
github.com/btcsuite/btcd v0.24.2
github.com/btcsuite/btcd/btcec/v2 v2.3.2
github.com/cometbft/cometbft v0.38.6
github.com/cometbft/cometbft v0.38.7
github.com/stretchr/testify v1.9.0
)

Expand Down Expand Up @@ -38,7 +38,7 @@ require (
github.com/99designs/go-keychain v0.0.0-20191008050251-8e49817e8af4 // indirect
github.com/99designs/keyring v1.2.1 // indirect
github.com/CosmWasm/wasmd v0.51.0 // indirect
github.com/CosmWasm/wasmvm/v2 v2.0.0 // indirect
github.com/CosmWasm/wasmvm/v2 v2.0.1 // indirect
github.com/DataDog/datadog-go v3.2.0+incompatible // indirect
github.com/DataDog/zstd v1.5.5 // indirect
github.com/aead/siphash v1.0.1 // indirect
Expand Down Expand Up @@ -70,7 +70,8 @@ require (
github.com/cosmos/gogoproto v1.4.12 // indirect
github.com/cosmos/iavl v1.1.2 // indirect
github.com/cosmos/ibc-go/modules/capability v1.0.0 // indirect
github.com/cosmos/ibc-go/v8 v8.0.0 // indirect
github.com/cosmos/ibc-go/modules/light-clients/08-wasm v0.0.0-20240429153234-e1e6da7e4ead // indirect
github.com/cosmos/ibc-go/v8 v8.3.0 // indirect
github.com/cosmos/ics23/go v0.10.0 // indirect
github.com/cosmos/ledger-cosmos-go v0.13.3 // indirect
github.com/danieljoos/wincred v1.1.2 // indirect
Expand Down Expand Up @@ -219,8 +220,4 @@ require (
sigs.k8s.io/yaml v1.4.0 // indirect
)

replace (
github.com/babylonchain/babylon v0.8.0 => github.com/babylonchain/babylon v0.9.0-rc.2.0.20240703134344-1c4a32e16e95

github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1
)
replace github.com/gogo/protobuf => github.com/regen-network/protobuf v1.3.3-alpha.regen.1
18 changes: 10 additions & 8 deletions datagen/go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -227,8 +227,8 @@ github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03
github.com/BurntSushi/xgb v0.0.0-20160522181843-27f122750802/go.mod h1:IVnqGOEym/WlBOVXweHU+Q+/VP0lqqI8lqeDx9IjBqo=
github.com/CosmWasm/wasmd v0.51.0 h1:3A2o20RrdF7P1D3Xb+R7A/pHbbHWsYCDXrHLa7S0SC8=
github.com/CosmWasm/wasmd v0.51.0/go.mod h1:7TSaj5HoolghujuVWeExqmcUKgpcYWEySGLSODbnnwY=
github.com/CosmWasm/wasmvm/v2 v2.0.0 h1:IqNCI2G0mvs7K6ej17/I28805rVqnu+Y1cWDqIdwb08=
github.com/CosmWasm/wasmvm/v2 v2.0.0/go.mod h1:su9lg5qLr7adV95eOfzjZWkGiky8WNaNIHDr7Fpu7Ck=
github.com/CosmWasm/wasmvm/v2 v2.0.1 h1:0YCQ7MKGNri7NFeRp75erPJXrqyCtH4gdc9jMstyMzk=
github.com/CosmWasm/wasmvm/v2 v2.0.1/go.mod h1:su9lg5qLr7adV95eOfzjZWkGiky8WNaNIHDr7Fpu7Ck=
github.com/DataDog/datadog-go v3.2.0+incompatible h1:qSG2N4FghB1He/r2mFrWKCaL7dXCilEuNEeAn20fdD4=
github.com/DataDog/datadog-go v3.2.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ=
github.com/DataDog/zstd v1.5.5 h1:oWf5W7GtOLgp6bciQYDmhHHjdhYkALu6S/5Ni9ZgSvQ=
Expand Down Expand Up @@ -268,8 +268,8 @@ github.com/aws/aws-sdk-go v1.44.122/go.mod h1:y4AeaBuwd2Lk+GepC1E9v0qOiTws0MIWAX
github.com/aws/aws-sdk-go v1.44.312 h1:llrElfzeqG/YOLFFKjg1xNpZCFJ2xraIi3PqSuP+95k=
github.com/aws/aws-sdk-go v1.44.312/go.mod h1:aVsgQcEevwlmQ7qHE9I3h+dtQgpqhFB+i8Phjh7fkwI=
github.com/aws/aws-sdk-go-v2 v0.18.0/go.mod h1:JWVYvqSMppoMJC0x5wdwiImzgXTI9FuZwxzkQq9wy+g=
github.com/babylonchain/babylon v0.9.0-rc.2.0.20240703134344-1c4a32e16e95 h1:Fdx9EGoy8RMadzEv21Rsc4phZM2ajXaz/yOzRL0jXqA=
github.com/babylonchain/babylon v0.9.0-rc.2.0.20240703134344-1c4a32e16e95/go.mod h1:QTjpnEAEReQofIpZikCQXUZxSkdK0TrWAUbgxOSF9yA=
github.com/babylonlabs-io/babylon v0.9.0 h1:dHZ9wUrI5XLaO4UIwJRgiCdnzFdi5yv7dpibbu6TDv0=
github.com/babylonlabs-io/babylon v0.9.0/go.mod h1:t7B4e+ooD2oYvAxkegtNKDL9bXe+vU29a8xnCQh+UKo=
github.com/benbjohnson/clock v1.1.0/go.mod h1:J11/hYXuz8f4ySSvYwY0FKfm+ezbsZBKZxNJlLklBHA=
github.com/beorn7/perks v0.0.0-20180321164747-3a771d992973/go.mod h1:Dwedo/Wpr24TaqPxmxbtue+5NUziq4I4S80YR8gNf3Q=
github.com/beorn7/perks v1.0.0/go.mod h1:KWe93zE9D1o94FZ5RNwFwVgaQK1VOXiVxmqh+CedLV8=
Expand Down Expand Up @@ -366,8 +366,8 @@ github.com/cockroachdb/redact v1.1.5/go.mod h1:BVNblN9mBWFyMyqK1k3AAiSxhvhfK2oOZ
github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06 h1:zuQyyAKVxetITBuuhv3BI9cMrmStnpT18zmgmTxunpo=
github.com/cockroachdb/tokenbucket v0.0.0-20230807174530-cc333fc44b06/go.mod h1:7nc4anLGjupUW/PeY5qiNYsdNXj7zopG+eqsS7To5IQ=
github.com/codahale/hdrhistogram v0.0.0-20161010025455-3a0bb77429bd/go.mod h1:sE/e/2PUdi/liOCUjSTXgM1o87ZssimdTWN964YiIeI=
github.com/cometbft/cometbft v0.38.6 h1:QSgpCzrGWJ2KUq1qpw+FCfASRpE27T6LQbfEHscdyOk=
github.com/cometbft/cometbft v0.38.6/go.mod h1:8rSPxzUJYquCN8uuBgbUHOMg2KAwvr7CyUw+6ukO4nw=
github.com/cometbft/cometbft v0.38.7 h1:ULhIOJ9+LgSy6nLekhq9ae3juX3NnQUMMPyVdhZV6Hk=
github.com/cometbft/cometbft v0.38.7/go.mod h1:HIyf811dFMI73IE0F7RrnY/Fr+d1+HuJAgtkEpQjCMY=
github.com/cometbft/cometbft-db v0.9.1 h1:MIhVX5ja5bXNHF8EYrThkG9F7r9kSfv8BX4LWaxWJ4M=
github.com/cometbft/cometbft-db v0.9.1/go.mod h1:iliyWaoV0mRwBJoizElCwwRA9Tf7jZJOURcRZF9m60U=
github.com/containerd/continuity v0.3.0 h1:nisirsYROK15TAMVukJOUyGJjz4BNQJBVsNvAXZJ/eg=
Expand Down Expand Up @@ -397,8 +397,10 @@ github.com/cosmos/iavl v1.1.2 h1:zL9FK7C4L/P4IF1Dm5fIwz0WXCnn7Bp1M2FxH0ayM7Y=
github.com/cosmos/iavl v1.1.2/go.mod h1:jLeUvm6bGT1YutCaL2fIar/8vGUE8cPZvh/gXEWDaDM=
github.com/cosmos/ibc-go/modules/capability v1.0.0 h1:r/l++byFtn7jHYa09zlAdSeevo8ci1mVZNO9+V0xsLE=
github.com/cosmos/ibc-go/modules/capability v1.0.0/go.mod h1:D81ZxzjZAe0ZO5ambnvn1qedsFQ8lOwtqicG6liLBco=
github.com/cosmos/ibc-go/v8 v8.0.0 h1:QKipnr/NGwc+9L7NZipURvmSIu+nw9jOIWTJuDBqOhg=
github.com/cosmos/ibc-go/v8 v8.0.0/go.mod h1:C6IiJom0F3cIQCD5fKwVPDrDK9j/xTu563AWuOmXois=
github.com/cosmos/ibc-go/modules/light-clients/08-wasm v0.0.0-20240429153234-e1e6da7e4ead h1:QB50+AmrEVqFr2hzvIxMkICziWQ/uuebze0vNYKMnBg=
github.com/cosmos/ibc-go/modules/light-clients/08-wasm v0.0.0-20240429153234-e1e6da7e4ead/go.mod h1:AJeroAXnPKeFpD1AfEfjYBHGEWt5gBfzUjgs4SYn2ZY=
github.com/cosmos/ibc-go/v8 v8.3.0 h1:fdW2S7NjZYFhSwmCaFjjyDv80kI1ePOJDQmco4qrnD0=
github.com/cosmos/ibc-go/v8 v8.3.0/go.mod h1:izwHZvn9lKrBn8xWj0aXWut6HKcwHMPD3uyuvOJoPSA=
github.com/cosmos/ics23/go v0.10.0 h1:iXqLLgp2Lp+EdpIuwXTYIQU+AiHj9mOC2X9ab++bZDM=
github.com/cosmos/ics23/go v0.10.0/go.mod h1:ZfJSmng/TBNTBkFemHHHj5YY7VAU/MBU980F4VU1NG0=
github.com/cosmos/ledger-cosmos-go v0.13.3 h1:7ehuBGuyIytsXbd4MP43mLeoN2LTOEnk5nvue4rK+yM=
Expand Down
2 changes: 1 addition & 1 deletion datagen/main.go
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package main

import (
"github.com/babylonchain/babylon-contract/datagen/utils"
"github.com/babylonlabs-io/babylon-contract/datagen/utils"
)

const (
Expand Down
2 changes: 1 addition & 1 deletion datagen/utils/btccheckpoint.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import (
"path/filepath"
"time"

"github.com/babylonchain/babylon/testutil/datagen"
"github.com/babylonlabs-io/babylon/testutil/datagen"
)

const (
Expand Down
8 changes: 4 additions & 4 deletions datagen/utils/btclightclient.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"path/filepath"
"time"

bbnapp "github.com/babylonchain/babylon/app"
"github.com/babylonchain/babylon/testutil/datagen"
"github.com/babylonchain/babylon/types"
btclctypes "github.com/babylonchain/babylon/x/btclightclient/types"
bbnapp "github.com/babylonlabs-io/babylon/app"
"github.com/babylonlabs-io/babylon/testutil/datagen"
"github.com/babylonlabs-io/babylon/types"
btclctypes "github.com/babylonlabs-io/babylon/x/btclightclient/types"
"github.com/btcsuite/btcd/chaincfg"
)

Expand Down
6 changes: 3 additions & 3 deletions datagen/utils/btcstaking.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@ import (
"time"

sdkmath "cosmossdk.io/math"
"github.com/babylonchain/babylon/testutil/datagen"
bbn "github.com/babylonchain/babylon/types"
"github.com/babylonchain/babylon/x/btcstaking/types"
"github.com/babylonlabs-io/babylon/testutil/datagen"
bbn "github.com/babylonlabs-io/babylon/types"
"github.com/babylonlabs-io/babylon/x/btcstaking/types"
"github.com/btcsuite/btcd/chaincfg"
"github.com/stretchr/testify/require"
)
Expand Down
Loading