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

0.8.x integ #37

Merged
merged 4 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
58 changes: 30 additions & 28 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,36 +2,53 @@

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

[Full Changelog](https://github.com/babylonlabs-io/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/babylonlabs-io/babylon-contract/tree/v0.7.0) (2024-06-24)
## [v0.8.0](https://github.com/babylonchain/babylon-contract/tree/v0.8.0) (2024-07-09)

[Full Changelog](https://github.com/babylonlabs-io/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/babylonlabs-io/babylon-contract/tree/v0.7.0-rc.1) (2024-06-21)
## [v0.7.0](https://github.com/babylonlabs-io/babylon-contract/tree/v0.7.0) (2024-06-24)

[Full Changelog](https://github.com/babylonlabs-io/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 +59,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/babylonlabs-io/babylon-contract/tree/v0.7.0-rc.0) (2024-06-19)

[Full Changelog](https://github.com/babylonlabs-io/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 +75,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/babylonlabs-io/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/babylonlabs-io/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/babylonlabs-io/babylon-contract"
authors = ["Babylon Labs Ltd. <admin@babylonlabs.io>"]
Expand Down
47 changes: 46 additions & 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 Expand Up @@ -107,6 +107,51 @@
}
},
"additionalProperties": false
},
{
"description": "`slashing` is a slashing event from the BTC staking contract.\n\nThis will be forwarded over IBC to the Babylon side for propagation to other Consumers, and Babylon itself",
"type": "object",
"required": [
"slashing"
],
"properties": {
"slashing": {
"type": "object",
"required": [
"block_height",
"fp_btc_pk",
"secret_key"
],
"properties": {
"block_height": {
"description": "`block_height` is the Consumer blockchain slashing height",
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"fp_btc_pk": {
"description": "`fp_btc_pk` is the BTC PK of the slashed finality provider",
"type": "array",
"items": {
"type": "integer",
"format": "uint8",
"minimum": 0.0
}
},
"secret_key": {
"description": "`secret_key` is the secret key extracted from the slashing evidence",
"type": "array",
"items": {
"type": "integer",
"format": "uint8",
"minimum": 0.0
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
],
"definitions": {
Expand Down
45 changes: 45 additions & 0 deletions contracts/babylon/schema/raw/execute.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,51 @@
}
},
"additionalProperties": false
},
{
"description": "`slashing` is a slashing event from the BTC staking contract.\n\nThis will be forwarded over IBC to the Babylon side for propagation to other Consumers, and Babylon itself",
"type": "object",
"required": [
"slashing"
],
"properties": {
"slashing": {
"type": "object",
"required": [
"block_height",
"fp_btc_pk",
"secret_key"
],
"properties": {
"block_height": {
"description": "`block_height` is the Consumer blockchain slashing height",
"type": "integer",
"format": "uint64",
"minimum": 0.0
},
"fp_btc_pk": {
"description": "`fp_btc_pk` is the BTC PK of the slashed finality provider",
"type": "array",
"items": {
"type": "integer",
"format": "uint8",
"minimum": 0.0
}
},
"secret_key": {
"description": "`secret_key` is the secret key extracted from the slashing evidence",
"type": "array",
"items": {
"type": "integer",
"format": "uint8",
"minimum": 0.0
}
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}
],
"definitions": {
Expand Down
Loading