Skip to content

Commit

Permalink
Babylonchain rename (#52)
Browse files Browse the repository at this point in the history
Rename some babylonchain left-overs
  • Loading branch information
maurolacy committed Oct 18, 2024
1 parent 137df26 commit f5287b2
Show file tree
Hide file tree
Showing 16 changed files with 172 additions and 663 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ build-linux-static:
$(MAKE) -C demo build-linux-static

build-docker:
$(DOCKER) build --tag babylonchain/bcd -f Dockerfile \
$(DOCKER) build --tag babylonlabs-io/bcd -f Dockerfile \
$(shell git rev-parse --show-toplevel)

########################################
Expand Down
4 changes: 2 additions & 2 deletions demo/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ build-vendored:
build-linux-static:
go mod vendor # quick hack to make local dependencies work in Docker
mkdir -p $(BUILD_DIR)
docker build --tag babylonchain/bcd:local ./
docker create --name bcd_temp babylonchain/bcd:local
docker build --tag babylonlabs-io/bcd:local ./
docker create --name bcd_temp babylonlabs-io/bcd:local
docker cp bcd_temp:/usr/bin/bcd $(BUILD_DIR)/
docker rm -f bcd_temp
rm -rf vendor/
Expand Down
66 changes: 33 additions & 33 deletions docs/proto/proto-docs.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,36 +4,36 @@

## Table of Contents

- [babylonchain/babylon/v1beta1/babylon.proto](#babylonchain/babylon/v1beta1/babylon.proto)
- [Params](#babylonchain.babylon.v1beta1.Params)
- [babylonlabs/babylon/v1beta1/babylon.proto](#babylonlabs/babylon/v1beta1/babylon.proto)
- [Params](#babylonlabs.babylon.v1beta1.Params)

- [babylonchain/babylon/v1beta1/genesis.proto](#babylonchain/babylon/v1beta1/genesis.proto)
- [GenesisState](#babylonchain.babylon.v1beta1.GenesisState)
- [babylonlabs/babylon/v1beta1/genesis.proto](#babylonlabs/babylon/v1beta1/genesis.proto)
- [GenesisState](#babylonlabs.babylon.v1beta1.GenesisState)

- [babylonchain/babylon/v1beta1/query.proto](#babylonchain/babylon/v1beta1/query.proto)
- [QueryParamsRequest](#babylonchain.babylon.v1beta1.QueryParamsRequest)
- [QueryParamsResponse](#babylonchain.babylon.v1beta1.QueryParamsResponse)
- [babylonlabs/babylon/v1beta1/query.proto](#babylonlabs/babylon/v1beta1/query.proto)
- [QueryParamsRequest](#babylonlabs.babylon.v1beta1.QueryParamsRequest)
- [QueryParamsResponse](#babylonlabs.babylon.v1beta1.QueryParamsResponse)

- [Query](#babylonchain.babylon.v1beta1.Query)
- [Query](#babylonlabs.babylon.v1beta1.Query)

- [babylonchain/babylon/v1beta1/tx.proto](#babylonchain/babylon/v1beta1/tx.proto)
- [MsgUpdateParams](#babylonchain.babylon.v1beta1.MsgUpdateParams)
- [MsgUpdateParamsResponse](#babylonchain.babylon.v1beta1.MsgUpdateParamsResponse)
- [babylonlabs/babylon/v1beta1/tx.proto](#babylonlabs/babylon/v1beta1/tx.proto)
- [MsgUpdateParams](#babylonlabs.babylon.v1beta1.MsgUpdateParams)
- [MsgUpdateParamsResponse](#babylonlabs.babylon.v1beta1.MsgUpdateParamsResponse)

- [Msg](#babylonchain.babylon.v1beta1.Msg)
- [Msg](#babylonlabs.babylon.v1beta1.Msg)

- [Scalar Value Types](#scalar-value-types)



<a name="babylonchain/babylon/v1beta1/babylon.proto"></a>
<a name="babylonlabs/babylon/v1beta1/babylon.proto"></a>
<p align="right"><a href="#top">Top</a></p>

## babylonchain/babylon/v1beta1/babylon.proto
## babylonlabs/babylon/v1beta1/babylon.proto



<a name="babylonchain.babylon.v1beta1.Params"></a>
<a name="babylonlabs.babylon.v1beta1.Params"></a>

### Params
Params defines the parameters for the x/babylon module.
Expand All @@ -60,22 +60,22 @@ Params defines the parameters for the x/babylon module.



<a name="babylonchain/babylon/v1beta1/genesis.proto"></a>
<a name="babylonlabs/babylon/v1beta1/genesis.proto"></a>
<p align="right"><a href="#top">Top</a></p>

## babylonchain/babylon/v1beta1/genesis.proto
## babylonlabs/babylon/v1beta1/genesis.proto



<a name="babylonchain.babylon.v1beta1.GenesisState"></a>
<a name="babylonlabs.babylon.v1beta1.GenesisState"></a>

### GenesisState
GenesisState defines babylon module's genesis state.


| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `params` | [Params](#babylonchain.babylon.v1beta1.Params) | | |
| `params` | [Params](#babylonlabs.babylon.v1beta1.Params) | | |



Expand All @@ -91,14 +91,14 @@ GenesisState defines babylon module's genesis state.



<a name="babylonchain/babylon/v1beta1/query.proto"></a>
<a name="babylonlabs/babylon/v1beta1/query.proto"></a>
<p align="right"><a href="#top">Top</a></p>

## babylonchain/babylon/v1beta1/query.proto
## babylonlabs/babylon/v1beta1/query.proto



<a name="babylonchain.babylon.v1beta1.QueryParamsRequest"></a>
<a name="babylonlabs.babylon.v1beta1.QueryParamsRequest"></a>

### QueryParamsRequest
QueryParamsRequest is the request type for the
Expand All @@ -109,7 +109,7 @@ Query/Params RPC method



<a name="babylonchain.babylon.v1beta1.QueryParamsResponse"></a>
<a name="babylonlabs.babylon.v1beta1.QueryParamsResponse"></a>

### QueryParamsResponse
QueryParamsResponse is the response type for the
Expand All @@ -118,7 +118,7 @@ Query/Params RPC method

| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `params` | [Params](#babylonchain.babylon.v1beta1.Params) | | |
| `params` | [Params](#babylonlabs.babylon.v1beta1.Params) | | |



Expand All @@ -131,27 +131,27 @@ Query/Params RPC method
<!-- end HasExtensions -->


<a name="babylonchain.babylon.v1beta1.Query"></a>
<a name="babylonlabs.babylon.v1beta1.Query"></a>

### Query
Query provides defines the gRPC querier service

| Method Name | Request Type | Response Type | Description | HTTP Verb | Endpoint |
| ----------- | ------------ | ------------- | ------------| ------- | -------- |
| `Params` | [QueryParamsRequest](#babylonchain.babylon.v1beta1.QueryParamsRequest) | [QueryParamsResponse](#babylonchain.babylon.v1beta1.QueryParamsResponse) | Params queries the parameters of x/babylon module. | GET|/babylonchain/babylon/v1beta1/params|
| `Params` | [QueryParamsRequest](#babylonlabs.babylon.v1beta1.QueryParamsRequest) | [QueryParamsResponse](#babylonlabs.babylon.v1beta1.QueryParamsResponse) | Params queries the parameters of x/babylon module. | GET|/babylonlabs/babylon/v1beta1/params|

<!-- end services -->



<a name="babylonchain/babylon/v1beta1/tx.proto"></a>
<a name="babylonlabs/babylon/v1beta1/tx.proto"></a>
<p align="right"><a href="#top">Top</a></p>

## babylonchain/babylon/v1beta1/tx.proto
## babylonlabs/babylon/v1beta1/tx.proto



<a name="babylonchain.babylon.v1beta1.MsgUpdateParams"></a>
<a name="babylonlabs.babylon.v1beta1.MsgUpdateParams"></a>

### MsgUpdateParams
MsgUpdateParams is the Msg/UpdateParams request type.
Expand All @@ -160,7 +160,7 @@ MsgUpdateParams is the Msg/UpdateParams request type.
| Field | Type | Label | Description |
| ----- | ---- | ----- | ----------- |
| `authority` | [string](#string) | | authority is the address that controls the module (defaults to x/gov unless overwritten). |
| `params` | [Params](#babylonchain.babylon.v1beta1.Params) | | params defines the x/auth parameters to update.
| `params` | [Params](#babylonlabs.babylon.v1beta1.Params) | | params defines the x/auth parameters to update.

NOTE: All parameters must be supplied. |

Expand All @@ -169,7 +169,7 @@ NOTE: All parameters must be supplied. |



<a name="babylonchain.babylon.v1beta1.MsgUpdateParamsResponse"></a>
<a name="babylonlabs.babylon.v1beta1.MsgUpdateParamsResponse"></a>

### MsgUpdateParamsResponse
MsgUpdateParamsResponse defines the response structure for executing a
Expand All @@ -186,14 +186,14 @@ MsgUpdateParams message.
<!-- end HasExtensions -->


<a name="babylonchain.babylon.v1beta1.Msg"></a>
<a name="babylonlabs.babylon.v1beta1.Msg"></a>

### Msg
Msg defines the wasm Msg service.

| Method Name | Request Type | Response Type | Description | HTTP Verb | Endpoint |
| ----------- | ------------ | ------------- | ------------| ------- | -------- |
| `UpdateParams` | [MsgUpdateParams](#babylonchain.babylon.v1beta1.MsgUpdateParams) | [MsgUpdateParamsResponse](#babylonchain.babylon.v1beta1.MsgUpdateParamsResponse) | UpdateParams defines a (governance) operation for updating the x/auth module parameters. The authority defaults to the x/gov module account. | |
| `UpdateParams` | [MsgUpdateParams](#babylonlabs.babylon.v1beta1.MsgUpdateParams) | [MsgUpdateParamsResponse](#babylonlabs.babylon.v1beta1.MsgUpdateParamsResponse) | UpdateParams defines a (governance) operation for updating the x/auth module parameters. The authority defaults to the x/gov module account. | |

<!-- end services -->

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
syntax = "proto3";
package babylonchain.babylon.v1beta1;
package babylonlabs.babylon.v1beta1;

import "cosmos_proto/cosmos.proto";
import "gogoproto/gogo.proto";
Expand All @@ -24,4 +24,4 @@ message Params {
// max_gas_begin_blocker defines the maximum gas that can be spent in a
// contract sudo callback
uint32 max_gas_begin_blocker = 4;
}
}
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";
package babylonchain.babylon.v1beta1;
package babylonlabs.babylon.v1beta1;

import "babylonchain/babylon/v1beta1/babylon.proto";
import "babylonlabs/babylon/v1beta1/babylon.proto";
import "gogoproto/gogo.proto";
import "amino/amino.proto";

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
syntax = "proto3";
package babylonchain.babylon.v1beta1;
package babylonlabs.babylon.v1beta1;

import "babylonchain/babylon/v1beta1/babylon.proto";
import "babylonlabs/babylon/v1beta1/babylon.proto";
import "gogoproto/gogo.proto";
import "google/api/annotations.proto";
import "amino/amino.proto";
Expand All @@ -14,7 +14,7 @@ option (gogoproto.equal_all) = false;
service Query {
// Params queries the parameters of x/babylon module.
rpc Params(QueryParamsRequest) returns (QueryParamsResponse) {
option (google.api.http).get = "/babylonchain/babylon/v1beta1/params";
option (google.api.http).get = "/babylonlabs/babylon/v1beta1/params";
}
}

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
syntax = "proto3";
package babylonchain.babylon.v1beta1;
package babylonlabs.babylon.v1beta1;

import "gogoproto/gogo.proto";
import "cosmos/msg/v1/msg.proto";
import "cosmos_proto/cosmos.proto";
import "babylonchain/babylon/v1beta1/babylon.proto";
import "babylonlabs/babylon/v1beta1/babylon.proto";

option go_package = "github.com/babylonlabs-io/babylon-sdk/x/babylon/types";
option (gogoproto.goproto_getters_all) = false;
Expand Down Expand Up @@ -33,4 +33,4 @@ message MsgUpdateParams {
}
// MsgUpdateParamsResponse defines the response structure for executing a
// MsgUpdateParams message.
message MsgUpdateParamsResponse {}
message MsgUpdateParamsResponse {}
6 changes: 3 additions & 3 deletions proto/buf.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,11 +10,11 @@ The `buf` CLI comes with an export command. Use `buf export -h` for details

Download Babylon SDK protos for a commit:
```bash
## todo: not published, yet
buf export buf.build/babylonchain/babylon-sdk:${commit} --output ./tmp
## TODO: not published, yet
buf export buf.build/babylonlabs/babylon-sdk:${commit} --output ./tmp
```

Download all project protos:
```bash
buf export . --output ./tmp
```
```
2 changes: 1 addition & 1 deletion proto/buf.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
version: v1
name: buf.build/babylonchain/babylon-sdk
name: buf.build/babylonlabs/babylon-sdk
deps:
- buf.build/cosmos/cosmos-proto
- buf.build/cosmos/cosmos-sdk:v0.47.0
Expand Down
2 changes: 1 addition & 1 deletion scripts/protocgen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ protoc_install_proto_gen_doc() {
}

cd proto
proto_dirs=$(find ./babylonchain -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq)
proto_dirs=$(find ./babylonlabs -path -prune -o -name '*.proto' -print0 | xargs -0 -n1 dirname | sort | uniq)
for dir in $proto_dirs; do
for file in $(find "${dir}" -maxdepth 1 -name '*.proto'); do
if grep "option go_package" $file &> /dev/null ; then
Expand Down
56 changes: 28 additions & 28 deletions x/babylon/types/babylon.pb.go

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

Loading

0 comments on commit f5287b2

Please sign in to comment.