Skip to content

Commit

Permalink
change package path to gravity-devs
Browse files Browse the repository at this point in the history
  • Loading branch information
dongsam committed Jun 16, 2021
1 parent 44220af commit c65468c
Show file tree
Hide file tree
Showing 69 changed files with 511 additions and 511 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ lint:
format:
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "*.pb.go" -not -path "*/statik*" | xargs gofmt -w -s
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "*.pb.go" -not -path "*/statik*" | xargs misspell -w
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "*.pb.go" -not -path "*/statik*" | xargs goimports -w -local github.com/tendermint/liquidity
find . -name '*.go' -type f -not -path "./vendor*" -not -path "*.git*" -not -path "*.pb.go" -not -path "*/statik*" | xargs goimports -w -local github.com/gravity-devs/liquidity

.PHONY: format

Expand Down
10 changes: 5 additions & 5 deletions app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,13 +88,13 @@ import (
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
dbm "github.com/tendermint/tm-db"

liquidityparams "github.com/tendermint/liquidity/app/params"
"github.com/tendermint/liquidity/x/liquidity"
liquiditykeeper "github.com/tendermint/liquidity/x/liquidity/keeper"
liquiditytypes "github.com/tendermint/liquidity/x/liquidity/types"
liquidityparams "github.com/gravity-devs/liquidity/app/params"
"github.com/gravity-devs/liquidity/x/liquidity"
liquiditykeeper "github.com/gravity-devs/liquidity/x/liquidity/keeper"
liquiditytypes "github.com/gravity-devs/liquidity/x/liquidity/types"

// unnamed import of statik for swagger UI support
_ "github.com/tendermint/liquidity/client/docs/statik"
_ "github.com/gravity-devs/liquidity/client/docs/statik"
)

const appName = "LiquidityApp"
Expand Down
2 changes: 1 addition & 1 deletion app/encoding.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ package app
import (
"github.com/cosmos/cosmos-sdk/std"

"github.com/tendermint/liquidity/app/params"
"github.com/gravity-devs/liquidity/app/params"
)

// MakeEncodingConfig creates an EncodingConfig for testing
Expand Down
2 changes: 1 addition & 1 deletion app/sim_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import (
tmproto "github.com/tendermint/tendermint/proto/tendermint/types"
dbm "github.com/tendermint/tm-db"

liquiditytypes "github.com/tendermint/liquidity/x/liquidity/types"
liquiditytypes "github.com/gravity-devs/liquidity/x/liquidity/types"
)

// Get flags every time the simulator is run
Expand Down
6 changes: 3 additions & 3 deletions app/test_helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ import (
tmtypes "github.com/tendermint/tendermint/types"
dbm "github.com/tendermint/tm-db"

"github.com/tendermint/liquidity/x/liquidity"
"github.com/tendermint/liquidity/x/liquidity/keeper"
"github.com/tendermint/liquidity/x/liquidity/types"
"github.com/gravity-devs/liquidity/x/liquidity"
"github.com/gravity-devs/liquidity/x/liquidity/keeper"
"github.com/gravity-devs/liquidity/x/liquidity/types"
)

// DefaultConsensusParams defines the default Tendermint consensus params used in
Expand Down
9 changes: 4 additions & 5 deletions client/docs/statik/statik.go

Large diffs are not rendered by default.

48 changes: 24 additions & 24 deletions client/docs/swagger-ui/swagger.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -843,7 +843,7 @@ paths:
See:
https://github.com/tendermint/liquidity/blob/develop/x/liquidity/spec/04_messages.md
https://github.com/gravity-devs/liquidity/blob/develop/x/liquidity/spec/04_messages.md
description: >-
DepositMsgState defines the state of deposit message that
contains state information as it is processed in the next
Expand Down Expand Up @@ -1072,7 +1072,7 @@ paths:
See:
https://github.com/tendermint/liquidity/blob/develop/x/liquidity/spec/04_messages.md
https://github.com/gravity-devs/liquidity/blob/develop/x/liquidity/spec/04_messages.md
description: >-
DepositMsgState defines the state of deposit message that
contains state information as it is processed in the next
Expand Down Expand Up @@ -1360,9 +1360,9 @@ paths:
See:
https://github.com/tendermint/liquidity/tree/develop/doc
https://github.com/gravity-devs/liquidity/tree/develop/doc
https://github.com/tendermint/liquidity/blob/develop/x/liquidity/spec/04_messages.md
https://github.com/gravity-devs/liquidity/blob/develop/x/liquidity/spec/04_messages.md
description: >-
SwapMsgState defines the state of the swap message that
contains state information as the message is processed in
Expand Down Expand Up @@ -1708,9 +1708,9 @@ paths:
See:
https://github.com/tendermint/liquidity/tree/develop/doc
https://github.com/gravity-devs/liquidity/tree/develop/doc
https://github.com/tendermint/liquidity/blob/develop/x/liquidity/spec/04_messages.md
https://github.com/gravity-devs/liquidity/blob/develop/x/liquidity/spec/04_messages.md
description: >-
SwapMsgState defines the state of the swap message that
contains state information as the message is processed in the
Expand Down Expand Up @@ -1877,7 +1877,7 @@ paths:
See:
https://github.com/tendermint/liquidity/blob/develop/x/liquidity/spec/04_messages.md
https://github.com/gravity-devs/liquidity/blob/develop/x/liquidity/spec/04_messages.md
description: >-
WithdrawMsgState defines the state of the withdraw message
that contains state information as the message is processed
Expand Down Expand Up @@ -2102,7 +2102,7 @@ paths:
See:
https://github.com/tendermint/liquidity/blob/develop/x/liquidity/spec/04_messages.md
https://github.com/gravity-devs/liquidity/blob/develop/x/liquidity/spec/04_messages.md
description: >-
WithdrawMsgState defines the state of the withdraw message
that contains state information as the message is processed in
Expand Down Expand Up @@ -2364,7 +2364,7 @@ definitions:
See:
https://github.com/tendermint/liquidity/blob/develop/x/liquidity/spec/04_messages.md
https://github.com/gravity-devs/liquidity/blob/develop/x/liquidity/spec/04_messages.md
description: >-
DepositMsgState defines the state of deposit message that contains state
information as it is processed in the next batch or batches.
Expand Down Expand Up @@ -2421,7 +2421,7 @@ definitions:
See:
https://github.com/tendermint/liquidity/blob/develop/x/liquidity/spec/04_messages.md
https://github.com/gravity-devs/liquidity/blob/develop/x/liquidity/spec/04_messages.md
tendermint.liquidity.v1beta1.MsgSwapWithinBatch:
type: object
properties:
Expand Down Expand Up @@ -2515,9 +2515,9 @@ definitions:
Only the default `swap_type_id` 1 is supported.
See: https://github.com/tendermint/liquidity/tree/develop/doc
See: https://github.com/gravity-devs/liquidity/tree/develop/doc
https://github.com/tendermint/liquidity/blob/develop/x/liquidity/spec/04_messages.md
https://github.com/gravity-devs/liquidity/blob/develop/x/liquidity/spec/04_messages.md
tendermint.liquidity.v1beta1.MsgWithdrawWithinBatch:
type: object
properties:
Expand Down Expand Up @@ -2565,7 +2565,7 @@ definitions:
See:
https://github.com/tendermint/liquidity/blob/develop/x/liquidity/spec/04_messages.md
https://github.com/gravity-devs/liquidity/blob/develop/x/liquidity/spec/04_messages.md
tendermint.liquidity.v1beta1.Params:
type: object
properties:
Expand Down Expand Up @@ -3145,7 +3145,7 @@ definitions:
See:
https://github.com/tendermint/liquidity/blob/develop/x/liquidity/spec/04_messages.md
https://github.com/gravity-devs/liquidity/blob/develop/x/liquidity/spec/04_messages.md
description: >-
DepositMsgState defines the state of deposit message that contains
state information as it is processed in the next batch or batches.
Expand Down Expand Up @@ -3241,7 +3241,7 @@ definitions:
See:
https://github.com/tendermint/liquidity/blob/develop/x/liquidity/spec/04_messages.md
https://github.com/gravity-devs/liquidity/blob/develop/x/liquidity/spec/04_messages.md
description: >-
DepositMsgState defines the state of deposit message that contains
state information as it is processed in the next batch or batches.
Expand Down Expand Up @@ -3468,9 +3468,9 @@ definitions:
Only the default `swap_type_id` 1 is supported.
See: https://github.com/tendermint/liquidity/tree/develop/doc
See: https://github.com/gravity-devs/liquidity/tree/develop/doc
https://github.com/tendermint/liquidity/blob/develop/x/liquidity/spec/04_messages.md
https://github.com/gravity-devs/liquidity/blob/develop/x/liquidity/spec/04_messages.md
description: >-
SwapMsgState defines the state of the swap message that contains state
information as the message is processed in the next batch or batches.
Expand Down Expand Up @@ -3678,9 +3678,9 @@ definitions:
Only the default `swap_type_id` 1 is supported.
See: https://github.com/tendermint/liquidity/tree/develop/doc
See: https://github.com/gravity-devs/liquidity/tree/develop/doc
https://github.com/tendermint/liquidity/blob/develop/x/liquidity/spec/04_messages.md
https://github.com/gravity-devs/liquidity/blob/develop/x/liquidity/spec/04_messages.md
description: >-
SwapMsgState defines the state of the swap message that contains
state information as the message is processed in the next batch or
Expand Down Expand Up @@ -3792,7 +3792,7 @@ definitions:
See:
https://github.com/tendermint/liquidity/blob/develop/x/liquidity/spec/04_messages.md
https://github.com/gravity-devs/liquidity/blob/develop/x/liquidity/spec/04_messages.md
description: >-
WithdrawMsgState defines the state of the withdraw message that
contains state information as the message is processed in the next
Expand Down Expand Up @@ -3885,7 +3885,7 @@ definitions:
See:
https://github.com/tendermint/liquidity/blob/develop/x/liquidity/spec/04_messages.md
https://github.com/gravity-devs/liquidity/blob/develop/x/liquidity/spec/04_messages.md
description: >-
WithdrawMsgState defines the state of the withdraw message that
contains state information as the message is processed in the next
Expand Down Expand Up @@ -4099,9 +4099,9 @@ definitions:
Only the default `swap_type_id` 1 is supported.
See: https://github.com/tendermint/liquidity/tree/develop/doc
See: https://github.com/gravity-devs/liquidity/tree/develop/doc
https://github.com/tendermint/liquidity/blob/develop/x/liquidity/spec/04_messages.md
https://github.com/gravity-devs/liquidity/blob/develop/x/liquidity/spec/04_messages.md
description: >-
SwapMsgState defines the state of the swap message that contains state
information as the message is processed in the next batch or batches.
Expand Down Expand Up @@ -4184,7 +4184,7 @@ definitions:
See:
https://github.com/tendermint/liquidity/blob/develop/x/liquidity/spec/04_messages.md
https://github.com/gravity-devs/liquidity/blob/develop/x/liquidity/spec/04_messages.md
description: >-
WithdrawMsgState defines the state of the withdraw message that contains
state information as the message is processed in the next batch or
Expand Down
4 changes: 2 additions & 2 deletions cmd/liquidityd/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@ import (
"github.com/tendermint/tendermint/libs/log"
dbm "github.com/tendermint/tm-db"

liquidity "github.com/tendermint/liquidity/app"
"github.com/tendermint/liquidity/app/params"
liquidity "github.com/gravity-devs/liquidity/app"
"github.com/gravity-devs/liquidity/app/params"
)

func NewRootCmd() (*cobra.Command, params.EncodingConfig) {
Expand Down
6 changes: 3 additions & 3 deletions cmd/liquidityd/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ import (
"github.com/cosmos/cosmos-sdk/server"
svrcmd "github.com/cosmos/cosmos-sdk/server/cmd"

liquidity "github.com/tendermint/liquidity/app"
_ "github.com/tendermint/liquidity/client/docs/statik"
"github.com/tendermint/liquidity/cmd/liquidityd/cmd"
liquidity "github.com/gravity-devs/liquidity/app"
_ "github.com/gravity-devs/liquidity/client/docs/statik"
"github.com/gravity-devs/liquidity/cmd/liquidityd/cmd"
)

func main() {
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
go 1.15

module github.com/tendermint/liquidity
module github.com/gravity-devs/liquidity

require (
github.com/cosmos/cosmos-sdk v0.42.5
Expand Down
2 changes: 1 addition & 1 deletion proto/tendermint/liquidity/v1beta1/genesis.proto
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ package tendermint.liquidity.v1beta1;
import "tendermint/liquidity/v1beta1/liquidity.proto";
import "gogoproto/gogo.proto";

option go_package = "github.com/tendermint/liquidity/x/liquidity/types";
option go_package = "github.com/gravity-devs/liquidity/x/liquidity/types";

// records the state of each pool after genesis export or import, used to check variables
message PoolRecord {
Expand Down
2 changes: 1 addition & 1 deletion proto/tendermint/liquidity/v1beta1/liquidity.proto
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "gogoproto/gogo.proto";
import "cosmos_proto/coin.proto";
import "protoc-gen-openapiv2/options/annotations.proto";

option go_package = "github.com/tendermint/liquidity/x/liquidity/types";
option go_package = "github.com/gravity-devs/liquidity/x/liquidity/types";
option (gogoproto.goproto_getters_all) = false;

// Structure for the pool type to distinguish the characteristics of the reserve pools.
Expand Down
2 changes: 1 addition & 1 deletion proto/tendermint/liquidity/v1beta1/query.proto
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import "google/api/annotations.proto";
import "cosmos_proto/pagination.proto";
import "protoc-gen-openapiv2/options/annotations.proto";

option go_package = "github.com/tendermint/liquidity/x/liquidity/types";
option go_package = "github.com/gravity-devs/liquidity/x/liquidity/types";

// Query defines the gRPC query service for the liquidity module.
service Query {
Expand Down
12 changes: 6 additions & 6 deletions proto/tendermint/liquidity/v1beta1/tx.proto
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import "gogoproto/gogo.proto";
import "cosmos_proto/coin.proto";
import "protoc-gen-openapiv2/options/annotations.proto";

option go_package = "github.com/tendermint/liquidity/x/liquidity/types";
option go_package = "github.com/gravity-devs/liquidity/x/liquidity/types";

// Msg defines the liquidity Msg service.
service Msg {
Expand All @@ -25,7 +25,7 @@ service Msg {

// MsgCreatePool defines an sdk.Msg type that supports submitting a create liquidity pool tx.
//
// See: https://github.com/tendermint/liquidity/blob/develop/x/liquidity/spec/04_messages.md
// See: https://github.com/gravity-devs/liquidity/blob/develop/x/liquidity/spec/04_messages.md
message MsgCreatePool {
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;
Expand Down Expand Up @@ -64,7 +64,7 @@ message MsgCreatePoolResponse {}
// This request is stacked in the batch of the liquidity pool, is not processed
// immediately, and is processed in the `endblock` at the same time as other requests.
//
// See: https://github.com/tendermint/liquidity/blob/develop/x/liquidity/spec/04_messages.md
// See: https://github.com/gravity-devs/liquidity/blob/develop/x/liquidity/spec/04_messages.md
message MsgDepositWithinBatch {
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;
Expand Down Expand Up @@ -105,7 +105,7 @@ message MsgDepositWithinBatchResponse {}
// This request is stacked in the batch of the liquidity pool, is not processed
// immediately, and is processed in the `endblock` at the same time as other requests.
//
// See: https://github.com/tendermint/liquidity/blob/develop/x/liquidity/spec/04_messages.md
// See: https://github.com/gravity-devs/liquidity/blob/develop/x/liquidity/spec/04_messages.md
message MsgWithdrawWithinBatch {
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;
Expand Down Expand Up @@ -143,8 +143,8 @@ message MsgWithdrawWithinBatchResponse {}
// You must request the same fields as the pool.
// Only the default `swap_type_id` 1 is supported.
//
// See: https://github.com/tendermint/liquidity/tree/develop/doc
// https://github.com/tendermint/liquidity/blob/develop/x/liquidity/spec/04_messages.md
// See: https://github.com/gravity-devs/liquidity/tree/develop/doc
// https://github.com/gravity-devs/liquidity/blob/develop/x/liquidity/spec/04_messages.md
message MsgSwapWithinBatch {
option (gogoproto.equal) = false;
option (gogoproto.goproto_getters) = false;
Expand Down
2 changes: 1 addition & 1 deletion scripts/protocgen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,5 +26,5 @@ Mgoogle/protobuf/any.proto=github.com/cosmos/cosmos-sdk/codec/types:. \
done

# move proto files to the right places
cp -r github.com/tendermint/liquidity/* ./
cp -r github.com/gravity-devs/liquidity/* ./
rm -rf github.com
4 changes: 2 additions & 2 deletions x/liquidity/abci.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ import (
"github.com/cosmos/cosmos-sdk/telemetry"
sdk "github.com/cosmos/cosmos-sdk/types"

"github.com/tendermint/liquidity/x/liquidity/keeper"
"github.com/tendermint/liquidity/x/liquidity/types"
"github.com/gravity-devs/liquidity/x/liquidity/keeper"
"github.com/gravity-devs/liquidity/x/liquidity/types"
)

// In the Begin blocker of the liquidity module,
Expand Down
10 changes: 5 additions & 5 deletions x/liquidity/client/cli/cli_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ import (
genutilcli "github.com/cosmos/cosmos-sdk/x/genutil/client/cli"
genutiltest "github.com/cosmos/cosmos-sdk/x/genutil/client/testutil"

lapp "github.com/tendermint/liquidity/app"
"github.com/tendermint/liquidity/x/liquidity"
"github.com/tendermint/liquidity/x/liquidity/client/cli"
liquiditytestutil "github.com/tendermint/liquidity/x/liquidity/client/testutil"
liquiditytypes "github.com/tendermint/liquidity/x/liquidity/types"
lapp "github.com/gravity-devs/liquidity/app"
"github.com/gravity-devs/liquidity/x/liquidity"
"github.com/gravity-devs/liquidity/x/liquidity/client/cli"
liquiditytestutil "github.com/gravity-devs/liquidity/x/liquidity/client/testutil"
liquiditytypes "github.com/gravity-devs/liquidity/x/liquidity/types"

tmcli "github.com/tendermint/tendermint/libs/cli"
tmjson "github.com/tendermint/tendermint/libs/json"
Expand Down
2 changes: 1 addition & 1 deletion x/liquidity/client/cli/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ import (
"github.com/cosmos/cosmos-sdk/version"
"github.com/spf13/cobra"

"github.com/tendermint/liquidity/x/liquidity/types"
"github.com/gravity-devs/liquidity/x/liquidity/types"
)

// GetQueryCmd returns the cli query commands for this module
Expand Down
Loading

0 comments on commit c65468c

Please sign in to comment.