Skip to content

Commit

Permalink
0.8.x integ (#37)
Browse files Browse the repository at this point in the history
* Release 0.8 (#36)
* Update schemas
* Update test data proper
* Revert 0.8.x CI changes
  • Loading branch information
maurolacy authored Aug 9, 2024
1 parent ba091f4 commit bf86b7d
Show file tree
Hide file tree
Showing 24 changed files with 501 additions and 158 deletions.
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. <[email protected]>"]
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

0 comments on commit bf86b7d

Please sign in to comment.