Skip to content

Commit

Permalink
chore: import formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Deepanshu Tripathi <[email protected]>
  • Loading branch information
deepanshutr committed Sep 2, 2024
1 parent 12d52ea commit 06cfae9
Show file tree
Hide file tree
Showing 188 changed files with 186 additions and 372 deletions.
1 change: 0 additions & 1 deletion helpers/base/cli_flag.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package base

import (
"fmt"

"github.com/spf13/cobra"
"github.com/spf13/viper"

Expand Down
1 change: 0 additions & 1 deletion helpers/base/collection.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package base

import (
"context"

"github.com/AssetMantle/modules/helpers"
)

Expand Down
3 changes: 1 addition & 2 deletions helpers/base/invariants.go
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
package base

import (
sdkTypes "github.com/cosmos/cosmos-sdk/types"

"github.com/AssetMantle/modules/helpers"
sdkTypes "github.com/cosmos/cosmos-sdk/types"
)

type invariants struct {
Expand Down
3 changes: 1 addition & 2 deletions helpers/base/mapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,9 @@ import (
"bytes"
"context"
"fmt"
sdkTypes "github.com/cosmos/cosmos-sdk/types"

prefixStore "github.com/cosmos/cosmos-sdk/store/prefix"
storeTypes "github.com/cosmos/cosmos-sdk/store/types"
sdkTypes "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/kv"

"github.com/AssetMantle/modules/helpers"
Expand Down
1 change: 0 additions & 1 deletion helpers/base/parameter_manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import (
baseLists "github.com/AssetMantle/schema/lists/base"
"github.com/AssetMantle/schema/parameters"
sdkTypes "github.com/cosmos/cosmos-sdk/types"

paramsTypes "github.com/cosmos/cosmos-sdk/x/params/types"
"golang.org/x/net/context"

Expand Down
1 change: 0 additions & 1 deletion helpers/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package helpers

import (
"context"

abciTypes "github.com/cometbft/cometbft/abci/types"
)

Expand Down
1 change: 0 additions & 1 deletion helpers/cli_command.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package helpers

import (
"github.com/cosmos/cosmos-sdk/client"

"github.com/spf13/cobra"
)

Expand Down
1 change: 0 additions & 1 deletion helpers/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package helpers

import (
"context"

"github.com/AssetMantle/schema/lists"
sdkCodec "github.com/cosmos/cosmos-sdk/codec"
"github.com/cosmos/gogoproto/proto"
Expand Down
1 change: 0 additions & 1 deletion helpers/mapper.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package helpers

import (
"context"

storeTypes "github.com/cosmos/cosmos-sdk/store/types"
"github.com/cosmos/cosmos-sdk/types/kv"
)
Expand Down
3 changes: 1 addition & 2 deletions helpers/simulator.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
package helpers

import (
"math/rand"

"github.com/cosmos/cosmos-sdk/types/module"
simulationTypes "github.com/cosmos/cosmos-sdk/types/simulation"
"github.com/cosmos/cosmos-sdk/x/simulation"
"math/rand"
)

type Simulator interface {
Expand Down
5 changes: 2 additions & 3 deletions simulation/schema/types/base/properties.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
package base

import (
"math"
"math/rand"

"github.com/AssetMantle/schema/lists"
baseLists "github.com/AssetMantle/schema/lists/base"
"github.com/AssetMantle/schema/properties"
"math"
"math/rand"
)

func GenerateRandomPropertyList(r *rand.Rand) lists.PropertyList {
Expand Down
5 changes: 2 additions & 3 deletions simulation/schema/types/base/property.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
package base

import (
"math"
"math/rand"

baseIDs "github.com/AssetMantle/schema/ids/base"
"github.com/AssetMantle/schema/properties"
baseProperties "github.com/AssetMantle/schema/properties/base"
simulationTypes "github.com/cosmos/cosmos-sdk/types/simulation"
"math"
"math/rand"

"github.com/AssetMantle/modules/utilities/random"
)
Expand Down
3 changes: 1 addition & 2 deletions utilities/rest/queuing/kafka_types.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,9 @@ package queuing
import (
"github.com/AssetMantle/modules/helpers"
"github.com/Shopify/sarama"
dbm "github.com/cometbft/cometbft-db"
"github.com/cosmos/cosmos-sdk/client"
sdk "github.com/cosmos/cosmos-sdk/types"

dbm "github.com/cometbft/cometbft-db"
)

// TicketID : is a type that implements string
Expand Down
1 change: 0 additions & 1 deletion x/assets/block/block.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package block

import (
"context"

abciTypes "github.com/cometbft/cometbft/abci/types"

"github.com/AssetMantle/modules/helpers"
Expand Down
1 change: 0 additions & 1 deletion x/assets/genesis/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ package genesis
import (
"context"
errorConstants "github.com/AssetMantle/modules/helpers/constants"

"github.com/AssetMantle/schema/lists"
"github.com/AssetMantle/schema/lists/base"
sdkCodec "github.com/cosmos/cosmos-sdk/codec"
Expand Down
3 changes: 1 addition & 2 deletions x/assets/key/key.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
package key

import (
"github.com/AssetMantle/modules/helpers"
errorConstants "github.com/AssetMantle/modules/helpers/constants"
"github.com/AssetMantle/schema/ids"
baseIDs "github.com/AssetMantle/schema/ids/base"

"github.com/AssetMantle/modules/helpers"
)

var _ helpers.Key = (*Key)(nil)
Expand Down
3 changes: 1 addition & 2 deletions x/assets/mappable/mappable.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
package mappable

import (
"github.com/AssetMantle/modules/helpers"
codecUtilities "github.com/AssetMantle/schema/codec/utilities"
"github.com/AssetMantle/schema/documents"
"github.com/AssetMantle/schema/documents/base"
"github.com/cosmos/cosmos-sdk/codec"

"github.com/AssetMantle/modules/helpers"
)

var _ helpers.Mappable = (*Mappable)(nil)
Expand Down
3 changes: 1 addition & 2 deletions x/assets/parameters/burn_enabled/parameter.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
package burn_enabled

import (
baseHelpers "github.com/AssetMantle/modules/helpers/base"
errorConstants "github.com/AssetMantle/modules/helpers/constants"
baseData "github.com/AssetMantle/schema/data/base"
baseParameters "github.com/AssetMantle/schema/parameters/base"
"github.com/AssetMantle/schema/properties/base"
constantProperties "github.com/AssetMantle/schema/properties/constants"

baseHelpers "github.com/AssetMantle/modules/helpers/base"
)

var ID = constantProperties.BurnEnabledProperty.GetKey()
Expand Down
3 changes: 1 addition & 2 deletions x/assets/parameters/mint_enabled/parameter.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
package mint_enabled

import (
baseHelpers "github.com/AssetMantle/modules/helpers/base"
errorConstants "github.com/AssetMantle/modules/helpers/constants"
baseData "github.com/AssetMantle/schema/data/base"
baseParameters "github.com/AssetMantle/schema/parameters/base"
"github.com/AssetMantle/schema/properties/base"
constantProperties "github.com/AssetMantle/schema/properties/constants"

baseHelpers "github.com/AssetMantle/modules/helpers/base"
)

var ID = constantProperties.MintEnabledProperty.GetKey()
Expand Down
3 changes: 1 addition & 2 deletions x/assets/parameters/renumerate_enabled/parameter.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,12 @@
package renumerate_enabled

import (
baseHelpers "github.com/AssetMantle/modules/helpers/base"
errorConstants "github.com/AssetMantle/modules/helpers/constants"
baseData "github.com/AssetMantle/schema/data/base"
baseParameters "github.com/AssetMantle/schema/parameters/base"
"github.com/AssetMantle/schema/properties/base"
constantProperties "github.com/AssetMantle/schema/properties/constants"

baseHelpers "github.com/AssetMantle/modules/helpers/base"
)

var ID = constantProperties.RenumerateEnabledProperty.GetKey()
Expand Down
3 changes: 1 addition & 2 deletions x/assets/parameters/unwrap_allowed_coins/parameter.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@
package unwrap_allowed_coins

import (
baseHelpers "github.com/AssetMantle/modules/helpers/base"
errorConstants "github.com/AssetMantle/modules/helpers/constants"
"github.com/AssetMantle/schema/data"
baseData "github.com/AssetMantle/schema/data/base"
baseParameters "github.com/AssetMantle/schema/parameters/base"
"github.com/AssetMantle/schema/properties/base"
constantProperties "github.com/AssetMantle/schema/properties/constants"
sdkTypes "github.com/cosmos/cosmos-sdk/types"

baseHelpers "github.com/AssetMantle/modules/helpers/base"
)

var ID = constantProperties.UnwrapAllowedCoinsProperty.GetKey()
Expand Down
3 changes: 1 addition & 2 deletions x/assets/parameters/wrap_allowed_coins/parameter.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,14 @@
package wrap_allowed_coins

import (
baseHelpers "github.com/AssetMantle/modules/helpers/base"
errorConstants "github.com/AssetMantle/modules/helpers/constants"
"github.com/AssetMantle/schema/data"
baseData "github.com/AssetMantle/schema/data/base"
baseParameters "github.com/AssetMantle/schema/parameters/base"
"github.com/AssetMantle/schema/properties/base"
constantProperties "github.com/AssetMantle/schema/properties/constants"
sdkTypes "github.com/cosmos/cosmos-sdk/types"

baseHelpers "github.com/AssetMantle/modules/helpers/base"
)

var ID = constantProperties.WrapAllowedCoinsProperty.GetKey()
Expand Down
3 changes: 1 addition & 2 deletions x/assets/queries/asset/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
package asset

import (
"google.golang.org/grpc"

"github.com/AssetMantle/modules/helpers"
baseHelpers "github.com/AssetMantle/modules/helpers/base"
helperConstants "github.com/AssetMantle/modules/helpers/constants"
"google.golang.org/grpc"
)

var Query = baseHelpers.NewQuery(
Expand Down
1 change: 0 additions & 1 deletion x/assets/queries/asset/query_keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package asset

import (
"context"

"github.com/AssetMantle/modules/helpers"
)

Expand Down
3 changes: 1 addition & 2 deletions x/assets/queries/assets/query.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,10 @@
package assets

import (
"google.golang.org/grpc"

"github.com/AssetMantle/modules/helpers"
baseHelpers "github.com/AssetMantle/modules/helpers/base"
helperConstants "github.com/AssetMantle/modules/helpers/constants"
"google.golang.org/grpc"
)

var Query = baseHelpers.NewQuery(
Expand Down
1 change: 0 additions & 1 deletion x/assets/queries/assets/query_keeper.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ package assets

import (
"context"

"github.com/AssetMantle/modules/helpers"
)

Expand Down
7 changes: 3 additions & 4 deletions x/assets/record/record.go
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
package record

import (
"github.com/AssetMantle/schema/documents"
baseIDs "github.com/AssetMantle/schema/ids/base"
sdkTypes "github.com/cosmos/cosmos-sdk/types"

"github.com/AssetMantle/modules/helpers"
"github.com/AssetMantle/modules/helpers/base"
"github.com/AssetMantle/modules/x/assets/key"
"github.com/AssetMantle/modules/x/assets/mappable"
"github.com/AssetMantle/schema/documents"
baseIDs "github.com/AssetMantle/schema/ids/base"
sdkTypes "github.com/cosmos/cosmos-sdk/types"
)

var _ helpers.Record = (*Record)(nil)
Expand Down
3 changes: 1 addition & 2 deletions x/assets/simulator/genesis.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
package simulator

import (
"math/rand"

"github.com/AssetMantle/schema/data"
baseData "github.com/AssetMantle/schema/data/base"
baseDocuments "github.com/AssetMantle/schema/documents/base"
Expand All @@ -16,6 +14,7 @@ import (
baseQualified "github.com/AssetMantle/schema/qualified/base"
sdkTypes "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
"math/rand"

"github.com/AssetMantle/modules/helpers"
baseHelpers "github.com/AssetMantle/modules/helpers/base"
Expand Down
3 changes: 1 addition & 2 deletions x/assets/simulator/operations.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
package simulator

import (
"math/rand"

"github.com/AssetMantle/schema/ids"
baseIDs "github.com/AssetMantle/schema/ids/base"
baseLists "github.com/AssetMantle/schema/lists/base"
Expand All @@ -16,6 +14,7 @@ import (
"github.com/cosmos/cosmos-sdk/types/module"
simulationTypes "github.com/cosmos/cosmos-sdk/types/simulation"
"github.com/cosmos/cosmos-sdk/x/simulation"
"math/rand"

"github.com/AssetMantle/modules/helpers"
"github.com/AssetMantle/modules/helpers/base"
Expand Down
7 changes: 3 additions & 4 deletions x/assets/simulator/proposals.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@
package simulator

import (
govSimulation "github.com/cosmos/cosmos-sdk/x/gov/simulation"
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
"math/rand"

sdkTypes "github.com/cosmos/cosmos-sdk/types"
"github.com/cosmos/cosmos-sdk/types/module"
simulationTypes "github.com/cosmos/cosmos-sdk/types/simulation"
govSimulation "github.com/cosmos/cosmos-sdk/x/gov/simulation"
"github.com/cosmos/cosmos-sdk/x/gov/types/v1beta1"
"github.com/cosmos/cosmos-sdk/x/simulation"
"math/rand"
)

func (simulator) ProposalMessages(_ module.SimulationState) []simulationTypes.WeightedProposalMsg {
Expand Down
3 changes: 1 addition & 2 deletions x/assets/transactions/burn/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,11 @@
package burn

import (
"github.com/AssetMantle/modules/helpers"
"github.com/AssetMantle/schema/ids"
baseIDs "github.com/AssetMantle/schema/ids/base"
"github.com/cosmos/cosmos-sdk/codec/types"
sdkTypes "github.com/cosmos/cosmos-sdk/types"

"github.com/AssetMantle/modules/helpers"
)

var _ helpers.Message = (*Message)(nil)
Expand Down
3 changes: 1 addition & 2 deletions x/assets/transactions/define/message.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@
package define

import (
"github.com/AssetMantle/modules/helpers"
"github.com/AssetMantle/schema/ids"
baseIDs "github.com/AssetMantle/schema/ids/base"
"github.com/AssetMantle/schema/lists"
baseLists "github.com/AssetMantle/schema/lists/base"
"github.com/cosmos/cosmos-sdk/codec/types"
sdkTypes "github.com/cosmos/cosmos-sdk/types"

"github.com/AssetMantle/modules/helpers"
)

var _ helpers.Message = (*Message)(nil)
Expand Down
Loading

0 comments on commit 06cfae9

Please sign in to comment.