Skip to content

Commit

Permalink
Merge pull request #453 from AssetMantle/deepanshutr/master
Browse files Browse the repository at this point in the history
Deepanshutr/master
  • Loading branch information
deepanshutr authored Sep 25, 2024
2 parents f7f982d + d67f811 commit f89cd90
Show file tree
Hide file tree
Showing 10 changed files with 8 additions and 848 deletions.
5 changes: 1 addition & 4 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ module github.com/AssetMantle/modules
go 1.23

require (
github.com/AssetMantle/schema v0.0.0-20240206102051-27352b802163
github.com/AssetMantle/schema v1.0.1-0.20240917151727-0814b9bd44b7
github.com/Shopify/sarama v1.19.0
github.com/cometbft/cometbft v0.37.7
github.com/cometbft/cometbft-db v0.8.0
Expand Down Expand Up @@ -41,7 +41,6 @@ require (
github.com/cockroachdb/errors v1.11.1 // indirect
github.com/cockroachdb/logtags v0.0.0-20230118201751-21c54148d20b // indirect
github.com/cockroachdb/redact v1.1.5 // indirect
github.com/coinbase/rosetta-sdk-go v0.7.9 // indirect
github.com/confio/ics23/go v0.9.0 // indirect
github.com/cosmos/btcutil v1.0.5 // indirect
github.com/cosmos/cosmos-proto v1.0.0-beta.5 // indirect
Expand Down Expand Up @@ -148,8 +147,6 @@ require (

replace (
github.com/99designs/keyring => github.com/cosmos/keyring v1.2.0
github.com/dgrijalva/jwt-go => github.com/golang-jwt/jwt/v4 v4.4.2
github.com/gin-gonic/gin => github.com/gin-gonic/gin v1.9.0
github.com/syndtr/goleveldb => github.com/syndtr/goleveldb v1.0.1-0.20210819022825-2ae1ddf74ef7
golang.org/x/exp => golang.org/x/exp v0.0.0-20230711153332-06a737ee72cb
pgregory.net/rapid => pgregory.net/rapid v0.5.5
Expand Down
403 changes: 4 additions & 399 deletions go.sum

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion simulation/utilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
package simulation

import (
"github.com/modern-go/reflect2"
"math/rand"

"github.com/AssetMantle/schema/data"
Expand Down Expand Up @@ -59,5 +60,6 @@ func CalculateBondAmount(immutables qualified.Immutables, mutables qualified.Mut
}

func ExecuteMessage(context sdkTypes.Context, module helpers.Module, message helpers.Message) (*sdkTypes.Result, error) {
return module.GetTransactions().GetTransaction(message.Type()).HandleMessage(sdkTypes.WrapSDKContext(context), message)
//TODO figure out an easier way to pick a transaction handle message from modules
return module.GetTransactions().GetTransaction(reflect2.TypeOf(message).String()).HandleMessage(sdkTypes.WrapSDKContext(context), message)
}
56 changes: 0 additions & 56 deletions x/assets/queries/asset/query_response_test.go

This file was deleted.

55 changes: 0 additions & 55 deletions x/classifications/queries/classification/query_response_test.go

This file was deleted.

138 changes: 0 additions & 138 deletions x/identities/queries/identity/query_response_test.go

This file was deleted.

55 changes: 0 additions & 55 deletions x/maintainers/queries/maintainer/query_response_test.go

This file was deleted.

Loading

0 comments on commit f89cd90

Please sign in to comment.