Skip to content

Commit

Permalink
Merge pull request #66 from AssetMantle/deepanshutr/master
Browse files Browse the repository at this point in the history
Deepanshutr/master
  • Loading branch information
deepanshutr authored Jun 17, 2024
2 parents 59a8832 + e15c9d1 commit b17e7cd
Show file tree
Hide file tree
Showing 247 changed files with 2,110 additions and 2,473 deletions.
File renamed without changes.
9 changes: 7 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ GOLANG_PROTOBUF_VERSION=1.28.0
GOGO_PROTOBUF_VERSION=1.3.2
GRPC_GATEWAY_VERSION=1.16.0

export GO111MODULE = on

#install all dependencies for buf
install-buf-dependencies:
@go install github.com/cosmos/cosmos-proto/cmd/protoc-gen-go-pulsar@latest
Expand All @@ -28,12 +30,15 @@ install-buf-dependencies:
go get github.com/cosmos/[email protected]
rm -rf cosmos-proto protobuf

export GO111MODULE = on
protobuf-generate-go:
@cd proto; buf generate --template buf.gen.yaml
@cp -r github.com/AssetMantle/schema/* ./
@rm -rf github.com

all: build test lintci

# The below include contains the tools and runsim targets.
include simulation/make/Makefile
#include simulation/make/Makefile

########################################
### Build
Expand Down
28 changes: 14 additions & 14 deletions go/codec/schema.go → codec/schema.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@ package codec
import (
"github.com/cosmos/cosmos-sdk/codec"

"github.com/AssetMantle/schema/go/data"
baseData "github.com/AssetMantle/schema/go/data/base"
"github.com/AssetMantle/schema/go/documents"
baseDocuments "github.com/AssetMantle/schema/go/documents/base"
"github.com/AssetMantle/schema/go/ids"
baseIDs "github.com/AssetMantle/schema/go/ids/base"
"github.com/AssetMantle/schema/go/lists"
baseLists "github.com/AssetMantle/schema/go/lists/base"
"github.com/AssetMantle/schema/go/properties"
baseProperties "github.com/AssetMantle/schema/go/properties/base"
"github.com/AssetMantle/schema/go/qualified"
baseQualified "github.com/AssetMantle/schema/go/qualified/base"
typesSchema "github.com/AssetMantle/schema/go/types"
baseTypes "github.com/AssetMantle/schema/go/types/base"
"github.com/AssetMantle/schema/data"
baseData "github.com/AssetMantle/schema/data/base"
"github.com/AssetMantle/schema/documents"
baseDocuments "github.com/AssetMantle/schema/documents/base"
"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/AssetMantle/schema/properties"
baseProperties "github.com/AssetMantle/schema/properties/base"
"github.com/AssetMantle/schema/qualified"
baseQualified "github.com/AssetMantle/schema/qualified/base"
typesSchema "github.com/AssetMantle/schema/types"
baseTypes "github.com/AssetMantle/schema/types/base"
)

func RegisterLegacyAminoCodec(legacyAmino *codec.LegacyAmino) {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ import (

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

"github.com/AssetMantle/schema/go/data"
dataConstants "github.com/AssetMantle/schema/go/data/constants"
"github.com/AssetMantle/schema/go/ids"
baseIDs "github.com/AssetMantle/schema/go/ids/base"
"github.com/AssetMantle/schema/data"
dataConstants "github.com/AssetMantle/schema/data/constants"
"github.com/AssetMantle/schema/ids"
baseIDs "github.com/AssetMantle/schema/ids/base"
)

var _ data.AccAddressData = (*AccAddressData)(nil)
Expand Down

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

Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@ import (
"reflect"
"testing"

"github.com/AssetMantle/schema/go/data"
idsConstants "github.com/AssetMantle/schema/go/data/constants"
"github.com/AssetMantle/schema/go/ids"
baseIDs "github.com/AssetMantle/schema/go/ids/base"
"github.com/AssetMantle/schema/data"
idsConstants "github.com/AssetMantle/schema/data/constants"
"github.com/AssetMantle/schema/ids"
baseIDs "github.com/AssetMantle/schema/ids/base"
sdkTypes "github.com/cosmos/cosmos-sdk/types"
)

Expand Down
8 changes: 4 additions & 4 deletions go/data/base/any_data.go → data/base/any_data.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ package base

import (
"fmt"
"github.com/AssetMantle/schema/go/data"
dataConstants "github.com/AssetMantle/schema/go/data/constants"
"github.com/AssetMantle/schema/go/ids"
baseIDs "github.com/AssetMantle/schema/go/ids/base"
"github.com/AssetMantle/schema/data"
dataConstants "github.com/AssetMantle/schema/data/constants"
"github.com/AssetMantle/schema/ids"
baseIDs "github.com/AssetMantle/schema/ids/base"
sdkTypes "github.com/cosmos/cosmos-sdk/types"
"strings"
)
Expand Down
82 changes: 42 additions & 40 deletions go/data/base/any_data.pb.go → data/base/any_data.pb.go

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

6 changes: 3 additions & 3 deletions go/data/base/any_data_test.go → data/base/any_data_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ import (

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

"github.com/AssetMantle/schema/go/data"
baseIDs "github.com/AssetMantle/schema/go/ids/base"
baseTypes "github.com/AssetMantle/schema/go/types/base"
"github.com/AssetMantle/schema/data"
baseIDs "github.com/AssetMantle/schema/ids/base"
baseTypes "github.com/AssetMantle/schema/types/base"
)

var (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package base
import (
sdkTypes "github.com/cosmos/cosmos-sdk/types"

"github.com/AssetMantle/schema/go/data"
"github.com/AssetMantle/schema/go/ids"
"github.com/AssetMantle/schema/data"
"github.com/AssetMantle/schema/ids"
)

type listableDataGetter interface {
Expand Down
Loading

0 comments on commit b17e7cd

Please sign in to comment.