From c4aa7aa4b7243a602f1a3e654827b316c1986726 Mon Sep 17 00:00:00 2001 From: avery <> Date: Tue, 17 Dec 2024 09:23:11 +0100 Subject: [PATCH 1/8] tmp save --- app/sim_test.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/app/sim_test.go b/app/sim_test.go index 1937770d4..eb96f0611 100644 --- a/app/sim_test.go +++ b/app/sim_test.go @@ -216,8 +216,10 @@ func TestAppImportExport(t *testing.T) { ctxA := app.NewContextLegacy(true, tmproto.Header{Height: app.LastBlockHeight()}) ctxB := newApp.NewContextLegacy(true, tmproto.Header{Height: app.LastBlockHeight()}) - newApp.mm.InitGenesis(ctxB, app.AppCodec(), genesisState) - newApp.StoreConsensusParams(ctxB, exported.ConsensusParams) + _, err = newApp.mm.InitGenesis(ctxB, app.AppCodec(), genesisState) + require.NoError(t, err) + err = newApp.StoreConsensusParams(ctxB, exported.ConsensusParams) + require.NoError(t, err) fmt.Printf("comparing stores...\n") From 56aaa546b7739cf0a86bf7a16f44b6f4a429192b Mon Sep 17 00:00:00 2001 From: avery <> Date: Tue, 17 Dec 2024 10:10:21 +0100 Subject: [PATCH 2/8] tmp save --- app/sim_test.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/app/sim_test.go b/app/sim_test.go index eb96f0611..8d03e836a 100644 --- a/app/sim_test.go +++ b/app/sim_test.go @@ -129,7 +129,15 @@ func TestAppImportExport(t *testing.T) { config := simcli.NewConfigFromFlags() config.ChainID = AppChainID - sdk.DefaultBondDenom = iristypes.NativeToken.Symbol + simcli.FlagEnabledValue = true + simcli.FlagVerboseValue = true + config.NumBlocks = 50 + //config.Seed = 89182391 + config.Seed = 4 + config.Commit = true + simcli.FlagPeriodValue = 5 + + //sdk.DefaultBondDenom = iristypes.NativeToken.Symbol db, dir, logger, skip, err := simtestutil.SetupSimulation( config, From 6aa7620b14b3c88c17652412ec8fb5c97ad4aae5 Mon Sep 17 00:00:00 2001 From: avery <> Date: Wed, 18 Dec 2024 08:16:36 +0100 Subject: [PATCH 3/8] tmp save --- app/sim_test.go | 44 +++++++++++++++++--------------------------- 1 file changed, 17 insertions(+), 27 deletions(-) diff --git a/app/sim_test.go b/app/sim_test.go index 8d03e836a..9ec16fda7 100644 --- a/app/sim_test.go +++ b/app/sim_test.go @@ -10,6 +10,7 @@ import ( "testing" capabilitytypes "github.com/cosmos/ibc-go/modules/capability/types" + "github.com/stretchr/testify/assert" "github.com/stretchr/testify/require" coinswaptypes "mods.irisnet.org/modules/coinswap/types" htlctypes "mods.irisnet.org/modules/htlc/types" @@ -33,7 +34,6 @@ import ( dbm "github.com/cosmos/cosmos-db" "github.com/cosmos/cosmos-sdk/baseapp" simtestutil "github.com/cosmos/cosmos-sdk/testutil/sims" - sdk "github.com/cosmos/cosmos-sdk/types" simtypes "github.com/cosmos/cosmos-sdk/types/simulation" authtypes "github.com/cosmos/cosmos-sdk/x/auth/types" banktypes "github.com/cosmos/cosmos-sdk/x/bank/types" @@ -46,7 +46,6 @@ import ( slashingtypes "github.com/cosmos/cosmos-sdk/x/slashing/types" stakingtypes "github.com/cosmos/cosmos-sdk/x/staking/types" ibctransfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types" - ibcexported "github.com/cosmos/ibc-go/v8/modules/core/exported" ) // AppChainID hardcoded chainID for simulation @@ -129,16 +128,6 @@ func TestAppImportExport(t *testing.T) { config := simcli.NewConfigFromFlags() config.ChainID = AppChainID - simcli.FlagEnabledValue = true - simcli.FlagVerboseValue = true - config.NumBlocks = 50 - //config.Seed = 89182391 - config.Seed = 4 - config.Commit = true - simcli.FlagPeriodValue = 5 - - //sdk.DefaultBondDenom = iristypes.NativeToken.Symbol - db, dir, logger, skip, err := simtestutil.SetupSimulation( config, "goleveldb-app-sim", @@ -225,6 +214,13 @@ func TestAppImportExport(t *testing.T) { ctxA := app.NewContextLegacy(true, tmproto.Header{Height: app.LastBlockHeight()}) ctxB := newApp.NewContextLegacy(true, tmproto.Header{Height: app.LastBlockHeight()}) _, err = newApp.mm.InitGenesis(ctxB, app.AppCodec(), genesisState) + if err != nil { + if strings.Contains(err.Error(), "validator set is empty after InitGenesis") { + logger.Info("Skipping simulation as all validators have been unbonded") + logger.Info("err", err, "stacktrace", string(debug.Stack())) + return + } + } require.NoError(t, err) err = newApp.StoreConsensusParams(ctxB, exported.ConsensusParams) require.NoError(t, err) @@ -237,10 +233,11 @@ func TestAppImportExport(t *testing.T) { app.AppKeepers.KvStoreKeys()[stakingtypes.StoreKey], newApp.AppKeepers.KvStoreKeys()[stakingtypes.StoreKey], [][]byte{ stakingtypes.UnbondingQueueKey, stakingtypes.RedelegationQueueKey, stakingtypes.ValidatorQueueKey, - stakingtypes.HistoricalInfoKey, + stakingtypes.HistoricalInfoKey, stakingtypes.UnbondingIDKey, stakingtypes.UnbondingIndexKey, + stakingtypes.UnbondingTypeKey, stakingtypes.ValidatorUpdatesKey, }, }, // ordering may change but it doesn't matter - {app.AppKeepers.KvStoreKeys()[slashingtypes.StoreKey], newApp.AppKeepers.KvStoreKeys()[slashingtypes.StoreKey], [][]byte{}}, + {app.AppKeepers.KvStoreKeys()[slashingtypes.StoreKey], newApp.AppKeepers.KvStoreKeys()[slashingtypes.StoreKey], [][]byte{slashingtypes.ValidatorMissedBlockBitmapKeyPrefix}}, {app.AppKeepers.KvStoreKeys()[minttypes.StoreKey], newApp.AppKeepers.KvStoreKeys()[minttypes.StoreKey], [][]byte{}}, {app.AppKeepers.KvStoreKeys()[distrtypes.StoreKey], newApp.AppKeepers.KvStoreKeys()[distrtypes.StoreKey], [][]byte{}}, { @@ -252,7 +249,6 @@ func TestAppImportExport(t *testing.T) { {app.AppKeepers.KvStoreKeys()[govtypes.StoreKey], newApp.AppKeepers.KvStoreKeys()[govtypes.StoreKey], [][]byte{}}, {app.AppKeepers.KvStoreKeys()[evidencetypes.StoreKey], newApp.AppKeepers.KvStoreKeys()[evidencetypes.StoreKey], [][]byte{}}, {app.AppKeepers.KvStoreKeys()[capabilitytypes.StoreKey], newApp.AppKeepers.KvStoreKeys()[capabilitytypes.StoreKey], [][]byte{}}, - {app.AppKeepers.KvStoreKeys()[ibcexported.StoreKey], newApp.AppKeepers.KvStoreKeys()[ibcexported.StoreKey], [][]byte{}}, {app.AppKeepers.KvStoreKeys()[ibctransfertypes.StoreKey], newApp.AppKeepers.KvStoreKeys()[ibctransfertypes.StoreKey], [][]byte{}}, // check irismod module @@ -288,17 +284,12 @@ func TestAppImportExport(t *testing.T) { skp.A, skp.B, ) - require.Equal( - t, - len(failedKVAs), - 0, - simtestutil.GetSimulationLog( - skp.A.Name(), - app.SimulationManager().StoreDecoders, - failedKVAs, - failedKVBs, - ), - ) + if !assert.Equal(t, 0, len(failedKVAs), simtestutil.GetSimulationLog(skp.A.Name(), app.SimulationManager().StoreDecoders, failedKVAs, failedKVBs)) { + for _, v := range failedKVAs { + t.Logf("store missmatch: %q\n", v) + } + t.FailNow() + } } } @@ -406,7 +397,6 @@ func TestAppStateDeterminism(t *testing.T) { if !simcli.FlagEnabledValue { t.Skip("skipping application simulation") } - sdk.DefaultBondDenom = iristypes.NativeToken.Symbol config := simcli.NewConfigFromFlags() config.InitialBlockHeight = 1 From 4d1e6e7f7ccb0b31962fa012a0f40e178d1292b5 Mon Sep 17 00:00:00 2001 From: avery <> Date: Wed, 18 Dec 2024 09:19:24 +0100 Subject: [PATCH 4/8] add simulate --- app/ante/ante.go | 4 ++++ app/ante/decorators.go | 12 ++++++++++++ app/ante/handler_options.go | 1 + app/app.go | 2 ++ app/sim_bench_test.go | 2 ++ app/sim_test.go | 9 +++++++++ cmd/iris/cmd/root.go | 4 +++- testutil/app.go | 1 + 8 files changed, 34 insertions(+), 1 deletion(-) diff --git a/app/ante/ante.go b/app/ante/ante.go index 7b0884f86..53a26d42a 100644 --- a/app/ante/ante.go +++ b/app/ante/ante.go @@ -21,6 +21,10 @@ func NewAnteHandler(options HandlerOptions) sdk.AnteHandler { defer ethante.Recover(ctx.Logger(), &err) + if options.Simulate { + sim = true + } + txWithExtensions, ok := tx.(authante.HasExtensionOptionsTx) if ok { opts := txWithExtensions.GetExtensionOptions() diff --git a/app/ante/decorators.go b/app/ante/decorators.go index d288b3dee..29efe9c90 100644 --- a/app/ante/decorators.go +++ b/app/ante/decorators.go @@ -10,6 +10,7 @@ import ( ibctransfertypes "github.com/cosmos/ibc-go/v8/modules/apps/transfer/types" coinswaptypes "mods.irisnet.org/modules/coinswap/types" + servicetypes "mods.irisnet.org/modules/service/types" tokenkeeper "mods.irisnet.org/modules/token/keeper" tokentypesv1 "mods.irisnet.org/modules/token/types/v1" tokentypesv1beta1 "mods.irisnet.org/modules/token/types/v1beta1" @@ -76,6 +77,17 @@ func (vsd ValidateServiceDecorator) AnteHandle( simulate bool, next sdk.AnteHandler, ) (sdk.Context, error) { + if simulate { + return next(ctx, tx, simulate) + } + for _, msg := range tx.GetMsgs() { + switch msg := msg.(type) { + case *servicetypes.MsgCallService: + if msg.Repeated { + return ctx, sdkerrors.Wrap(errortypes.ErrInvalidRequest, "currently does not support to create repeatable service invocation") + } + } + } return next(ctx, tx, simulate) } diff --git a/app/ante/handler_options.go b/app/ante/handler_options.go index 38f13e4ae..54f50e825 100644 --- a/app/ante/handler_options.go +++ b/app/ante/handler_options.go @@ -31,6 +31,7 @@ type HandlerOptions struct { FeeMarketKeeper ethante.FeeMarketKeeper BypassMinFeeMsgTypes []string MaxTxGasWanted uint64 + Simulate bool } // newCosmosAnteHandler creates the default ante handler for Ethereum transactions diff --git a/app/app.go b/app/app.go index acdf3686b..7f80fb6b4 100644 --- a/app/app.go +++ b/app/app.go @@ -78,6 +78,7 @@ func NewIrisApp( loadLatest bool, encodingConfig params.EncodingConfig, appOpts servertypes.AppOptions, + simulate bool, baseAppOptions ...func(*baseapp.BaseApp), ) *IrisApp { appCodec := encodingConfig.Marshaler @@ -195,6 +196,7 @@ func NewIrisApp( FeeMarketKeeper: app.FeeMarketKeeper, BypassMinFeeMsgTypes: []string{}, MaxTxGasWanted: maxGasWanted, + Simulate: simulate, }, ) diff --git a/app/sim_bench_test.go b/app/sim_bench_test.go index 0e3524145..0f3555d5f 100644 --- a/app/sim_bench_test.go +++ b/app/sim_bench_test.go @@ -52,6 +52,7 @@ func BenchmarkFullAppSimulation(b *testing.B) { true, encfg, EmptyAppOptions{}, + true, interBlockCacheOpt(), ) @@ -119,6 +120,7 @@ func BenchmarkInvariants(b *testing.B) { true, encfg, EmptyAppOptions{}, + true, interBlockCacheOpt(), ) diff --git a/app/sim_test.go b/app/sim_test.go index 1937770d4..db9f832d3 100644 --- a/app/sim_test.go +++ b/app/sim_test.go @@ -297,6 +297,14 @@ func TestAppSimulationAfterImport(t *testing.T) { config.ChainID = AppChainID encfg := RegisterEncodingConfig() + simcli.FlagEnabledValue = true + simcli.FlagVerboseValue = true + config.NumBlocks = 50 + //config.Seed = 89182391 + config.Seed = 4 + config.Commit = true + simcli.FlagPeriodValue = 5 + db, dir, logger, skip, err := simtestutil.SetupSimulation( config, "goleveldb-app-sim", @@ -495,6 +503,7 @@ func createApp( true, encodingConfig, EmptyAppOptions{}, + true, baseAppOptions..., ) } diff --git a/cmd/iris/cmd/root.go b/cmd/iris/cmd/root.go index 867730312..a867053e4 100644 --- a/cmd/iris/cmd/root.go +++ b/cmd/iris/cmd/root.go @@ -43,7 +43,7 @@ import ( // main function. func NewRootCmd() (*cobra.Command, params.EncodingConfig) { - tempApplication := app.NewIrisApp(log.NewNopLogger(), dbm.NewMemDB(), nil, true, app.RegisterEncodingConfig(), testutil.EmptyAppOptions{}) + tempApplication := app.NewIrisApp(log.NewNopLogger(), dbm.NewMemDB(), nil, true, app.RegisterEncodingConfig(), testutil.EmptyAppOptions{}, false) encodingConfig := app.RegisterEncodingConfig() initClientCtx := client.Context{}. @@ -263,6 +263,7 @@ func (ac appCreator) newApp( true, ac.encCfg, appOpts, + false, baseappOptions..., ) } @@ -295,6 +296,7 @@ func (ac appCreator) appExport( loadLatest, ac.encCfg, appOpts, + false, ) if height != -1 { diff --git a/testutil/app.go b/testutil/app.go index b392347da..75b23b86b 100644 --- a/testutil/app.go +++ b/testutil/app.go @@ -42,6 +42,7 @@ func setup( true, encCdc, appOpts, + true, baseAppOptions..., ) return &AppWrapper{app} From 0410b370608040587007d1ec459e35d6b5d5558e Mon Sep 17 00:00:00 2001 From: avery <> Date: Wed, 18 Dec 2024 09:23:04 +0100 Subject: [PATCH 5/8] remove test code --- app/sim_test.go | 9 --------- 1 file changed, 9 deletions(-) diff --git a/app/sim_test.go b/app/sim_test.go index db9f832d3..1f532e44a 100644 --- a/app/sim_test.go +++ b/app/sim_test.go @@ -296,15 +296,6 @@ func TestAppSimulationAfterImport(t *testing.T) { config := simcli.NewConfigFromFlags() config.ChainID = AppChainID encfg := RegisterEncodingConfig() - - simcli.FlagEnabledValue = true - simcli.FlagVerboseValue = true - config.NumBlocks = 50 - //config.Seed = 89182391 - config.Seed = 4 - config.Commit = true - simcli.FlagPeriodValue = 5 - db, dir, logger, skip, err := simtestutil.SetupSimulation( config, "goleveldb-app-sim", From afe2bab4bc9d80e32b3062a0b8cad185677fc924 Mon Sep 17 00:00:00 2001 From: avery <> Date: Thu, 19 Dec 2024 10:26:20 +0100 Subject: [PATCH 6/8] update simulation test --- app/ante/ante.go | 4 ---- app/ante/decorators.go | 6 ------ app/ante/handler_options.go | 4 ---- app/app.go | 5 ----- app/sim_bench_test.go | 10 ---------- cmd/iris/cmd/root.go | 4 +--- testutil/app.go | 1 - 7 files changed, 1 insertion(+), 33 deletions(-) diff --git a/app/ante/ante.go b/app/ante/ante.go index 53a26d42a..7b0884f86 100644 --- a/app/ante/ante.go +++ b/app/ante/ante.go @@ -21,10 +21,6 @@ func NewAnteHandler(options HandlerOptions) sdk.AnteHandler { defer ethante.Recover(ctx.Logger(), &err) - if options.Simulate { - sim = true - } - txWithExtensions, ok := tx.(authante.HasExtensionOptionsTx) if ok { opts := txWithExtensions.GetExtensionOptions() diff --git a/app/ante/decorators.go b/app/ante/decorators.go index b12a84c0c..9753c7d2a 100644 --- a/app/ante/decorators.go +++ b/app/ante/decorators.go @@ -81,16 +81,10 @@ func (vsd ValidateServiceDecorator) AnteHandle( simulate bool, next sdk.AnteHandler, ) (sdk.Context, error) { -<<<<<<< HEAD - if simulate { - return next(ctx, tx, simulate) - } -======= if vsd.SimulateTest { return next(ctx, tx, simulate) } ->>>>>>> 684f3471c7649a941b8984dde1bebe293375e67a for _, msg := range tx.GetMsgs() { switch msg := msg.(type) { case *servicetypes.MsgCallService: diff --git a/app/ante/handler_options.go b/app/ante/handler_options.go index 52881a6f9..49115cc6a 100644 --- a/app/ante/handler_options.go +++ b/app/ante/handler_options.go @@ -31,11 +31,7 @@ type HandlerOptions struct { FeeMarketKeeper ethante.FeeMarketKeeper BypassMinFeeMsgTypes []string MaxTxGasWanted uint64 -<<<<<<< HEAD - Simulate bool -======= SimulationTest bool ->>>>>>> 684f3471c7649a941b8984dde1bebe293375e67a } // newCosmosAnteHandler creates the default ante handler for Ethereum transactions diff --git a/app/app.go b/app/app.go index 5e7522bbf..8eb1d28c9 100644 --- a/app/app.go +++ b/app/app.go @@ -78,7 +78,6 @@ func NewIrisApp( loadLatest bool, encodingConfig params.EncodingConfig, appOpts servertypes.AppOptions, - simulate bool, baseAppOptions ...func(*baseapp.BaseApp), ) *IrisApp { appCodec := encodingConfig.Marshaler @@ -203,11 +202,7 @@ func NewIrisApp( FeeMarketKeeper: app.FeeMarketKeeper, BypassMinFeeMsgTypes: []string{}, MaxTxGasWanted: maxGasWanted, -<<<<<<< HEAD - Simulate: simulate, -======= SimulationTest: simulationTest, ->>>>>>> 684f3471c7649a941b8984dde1bebe293375e67a }, ) diff --git a/app/sim_bench_test.go b/app/sim_bench_test.go index a5ad9b713..884ac78e3 100644 --- a/app/sim_bench_test.go +++ b/app/sim_bench_test.go @@ -53,14 +53,9 @@ func BenchmarkFullAppSimulation(b *testing.B) { nil, true, encfg, -<<<<<<< HEAD - EmptyAppOptions{}, - true, -======= SimTestAppOptions{ options: map[string]interface{}{params.SimulationTest: true}, }, ->>>>>>> 684f3471c7649a941b8984dde1bebe293375e67a interBlockCacheOpt(), ) @@ -127,14 +122,9 @@ func BenchmarkInvariants(b *testing.B) { nil, true, encfg, -<<<<<<< HEAD - EmptyAppOptions{}, - true, -======= SimTestAppOptions{ options: map[string]interface{}{params.SimulationTest: true}, }, ->>>>>>> 684f3471c7649a941b8984dde1bebe293375e67a interBlockCacheOpt(), ) diff --git a/cmd/iris/cmd/root.go b/cmd/iris/cmd/root.go index a867053e4..867730312 100644 --- a/cmd/iris/cmd/root.go +++ b/cmd/iris/cmd/root.go @@ -43,7 +43,7 @@ import ( // main function. func NewRootCmd() (*cobra.Command, params.EncodingConfig) { - tempApplication := app.NewIrisApp(log.NewNopLogger(), dbm.NewMemDB(), nil, true, app.RegisterEncodingConfig(), testutil.EmptyAppOptions{}, false) + tempApplication := app.NewIrisApp(log.NewNopLogger(), dbm.NewMemDB(), nil, true, app.RegisterEncodingConfig(), testutil.EmptyAppOptions{}) encodingConfig := app.RegisterEncodingConfig() initClientCtx := client.Context{}. @@ -263,7 +263,6 @@ func (ac appCreator) newApp( true, ac.encCfg, appOpts, - false, baseappOptions..., ) } @@ -296,7 +295,6 @@ func (ac appCreator) appExport( loadLatest, ac.encCfg, appOpts, - false, ) if height != -1 { diff --git a/testutil/app.go b/testutil/app.go index 75b23b86b..b392347da 100644 --- a/testutil/app.go +++ b/testutil/app.go @@ -42,7 +42,6 @@ func setup( true, encCdc, appOpts, - true, baseAppOptions..., ) return &AppWrapper{app} From de6cb43a33dbd0197a7080b0d338edc7aed67a6f Mon Sep 17 00:00:00 2001 From: avery <> Date: Thu, 19 Dec 2024 10:30:24 +0100 Subject: [PATCH 7/8] update simulation test --- app/sim_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/app/sim_test.go b/app/sim_test.go index bc7292da4..eb929b9f4 100644 --- a/app/sim_test.go +++ b/app/sim_test.go @@ -297,6 +297,7 @@ func TestAppSimulationAfterImport(t *testing.T) { config := simcli.NewConfigFromFlags() config.ChainID = AppChainID encfg := RegisterEncodingConfig() + db, dir, logger, skip, err := simtestutil.SetupSimulation( config, "goleveldb-app-sim", From 6cf06807c09b221b255752a13f9cfa92e93d8e98 Mon Sep 17 00:00:00 2001 From: avery <> Date: Thu, 19 Dec 2024 10:40:15 +0100 Subject: [PATCH 8/8] update irismod --- go.mod | 20 ++++++++++---------- go.sum | 40 ++++++++++++++++++++-------------------- 2 files changed, 30 insertions(+), 30 deletions(-) diff --git a/go.mod b/go.mod index c131c5db4..07d8516ba 100644 --- a/go.mod +++ b/go.mod @@ -11,16 +11,16 @@ require ( github.com/cosmos/gogoproto v1.7.0 github.com/cosmos/iavl v1.2.0 // indirect github.com/evmos/ethermint v0.22.0 - mods.irisnet.org/modules/coinswap v0.0.0-20241217080151-0ad41be03ac6 - mods.irisnet.org/modules/farm v0.0.0-20241217080151-0ad41be03ac6 - mods.irisnet.org/modules/htlc v0.0.0-20241217080151-0ad41be03ac6 - mods.irisnet.org/modules/mt v0.0.0-20241217080151-0ad41be03ac6 - mods.irisnet.org/modules/nft v0.0.0-20241217080151-0ad41be03ac6 - mods.irisnet.org/modules/oracle v0.0.0-20241217080151-0ad41be03ac6 - mods.irisnet.org/modules/random v0.0.0-20241217080151-0ad41be03ac6 - mods.irisnet.org/modules/record v0.0.0-20241217080151-0ad41be03ac6 - mods.irisnet.org/modules/service v0.0.0-20241217080151-0ad41be03ac6 - mods.irisnet.org/modules/token v0.0.0-20241217080151-0ad41be03ac6 + mods.irisnet.org/modules/coinswap v0.0.0-20241219091434-96f998e7149d + mods.irisnet.org/modules/farm v0.0.0-20241219091434-96f998e7149d + mods.irisnet.org/modules/htlc v0.0.0-20241219091434-96f998e7149d + mods.irisnet.org/modules/mt v0.0.0-20241219091434-96f998e7149d + mods.irisnet.org/modules/nft v0.0.0-20241219091434-96f998e7149d + mods.irisnet.org/modules/oracle v0.0.0-20241219091434-96f998e7149d + mods.irisnet.org/modules/random v0.0.0-20241219091434-96f998e7149d + mods.irisnet.org/modules/record v0.0.0-20241219091434-96f998e7149d + mods.irisnet.org/modules/service v0.0.0-20241219091434-96f998e7149d + mods.irisnet.org/modules/token v0.0.0-20241219091434-96f998e7149d ) require ( diff --git a/go.sum b/go.sum index 559452dc1..5c8a06429 100644 --- a/go.sum +++ b/go.sum @@ -2065,26 +2065,26 @@ honnef.co/go/tools v0.0.1-2020.1.4/go.mod h1:X/FiERA/W4tHapMX5mGpAtMSVEeEUOyHaw9 honnef.co/go/tools v0.1.3/go.mod h1:NgwopIslSNH47DimFoV78dnkksY2EFtX0ajyb3K/las= mods.irisnet.org/api v0.0.0-20241121030837-903540d1123f h1:tJoTbTqFBZUnCLL+juHEuQLNNdftSXwSlqGoKa8OOxw= mods.irisnet.org/api v0.0.0-20241121030837-903540d1123f/go.mod h1:TpMaRRYSpqsXdeX4gDVFRj9ggedQ60Zcjs4iE2DIhsc= -mods.irisnet.org/modules/coinswap v0.0.0-20241217080151-0ad41be03ac6 h1:8QnufoVSKUdiLPqJwByZF6yz5zt9qyhSaT08No50pMA= -mods.irisnet.org/modules/coinswap v0.0.0-20241217080151-0ad41be03ac6/go.mod h1:nv52g5ZDWv/C1ydtxLygP2wSYz6M4OuF6BygKy7RqGA= -mods.irisnet.org/modules/farm v0.0.0-20241217080151-0ad41be03ac6 h1:SA28lvYjEgOylkZJyuRVDIK4uGBHmtMGJvyAshUJJFk= -mods.irisnet.org/modules/farm v0.0.0-20241217080151-0ad41be03ac6/go.mod h1:yYrnhmxDCnvI45u1cpeRZ2GPJUmRK+8KFXDtOJGpENE= -mods.irisnet.org/modules/htlc v0.0.0-20241217080151-0ad41be03ac6 h1:JPzUkLdXY/0YzlgQ4wsmiI35Karrssb77dopt67qvqU= -mods.irisnet.org/modules/htlc v0.0.0-20241217080151-0ad41be03ac6/go.mod h1:2pWkSnxVKCzB3WH+q47rKffY4Plma+mRTGSWd4jfbp8= -mods.irisnet.org/modules/mt v0.0.0-20241217080151-0ad41be03ac6 h1:DyW+fBjjzJ4/h60sfvL0nkewudIZFRFPGvAZPj+8a+c= -mods.irisnet.org/modules/mt v0.0.0-20241217080151-0ad41be03ac6/go.mod h1:Dw1zm350HiRuNjrnwZnV4XGB8PNf1SXmjGJA5Xslg0Q= -mods.irisnet.org/modules/nft v0.0.0-20241217080151-0ad41be03ac6 h1:RHgx9ggA5/lsNKXvQ7ezJpCfJBhKjlBBAfoaOTKNMnU= -mods.irisnet.org/modules/nft v0.0.0-20241217080151-0ad41be03ac6/go.mod h1:VjySqJfECBW8cApFB8W66Yk6tMR2oJEc7FTDaHfeg8I= -mods.irisnet.org/modules/oracle v0.0.0-20241217080151-0ad41be03ac6 h1:1Xj4j7f639GMZ+MAbwNljQb0DZ5IdXDqQYNoDlppVXk= -mods.irisnet.org/modules/oracle v0.0.0-20241217080151-0ad41be03ac6/go.mod h1:XAGzG55xpV01PwvryVPeaHtARZIqEUJcMv/vxaVcVC0= -mods.irisnet.org/modules/random v0.0.0-20241217080151-0ad41be03ac6 h1:ScX6qHG3V49eQHkeQmJ5awp7I8ixou+obxxWd4/wTcU= -mods.irisnet.org/modules/random v0.0.0-20241217080151-0ad41be03ac6/go.mod h1:1ele5fpZ/rFMbwu1LTz2MwDg3sJDYcCtDW5SDfYRpTg= -mods.irisnet.org/modules/record v0.0.0-20241217080151-0ad41be03ac6 h1:PJu+56Be8F+mPj35jqeMvXl/bRZDtwrF9GL6j0w5ivQ= -mods.irisnet.org/modules/record v0.0.0-20241217080151-0ad41be03ac6/go.mod h1:n8gRooDvJ5B44EJRZ+UlDz0GcXQeNwjH2tjpnVx7nd8= -mods.irisnet.org/modules/service v0.0.0-20241217080151-0ad41be03ac6 h1:U6IzrFgN8GXhdNHXxA5isDgQX7DeSfeVDqvLzs6cc4o= -mods.irisnet.org/modules/service v0.0.0-20241217080151-0ad41be03ac6/go.mod h1:B1nKRNYn1VLqpvNbmbDSYagqL56sj0MIceXJi/DKg6s= -mods.irisnet.org/modules/token v0.0.0-20241217080151-0ad41be03ac6 h1:hlzR6ghnSujPC9VCwrpBVU6cBb+M9KyfbJz5SrnIef8= -mods.irisnet.org/modules/token v0.0.0-20241217080151-0ad41be03ac6/go.mod h1:fHJzeEBPhE9vaa4aye90+WFtHjZyGRvkWRpJeBSc9/k= +mods.irisnet.org/modules/coinswap v0.0.0-20241219091434-96f998e7149d h1:9ZYTaFkjlWlNU3+CJSr7GlC+7ym03/Yktuvk2oyWbqQ= +mods.irisnet.org/modules/coinswap v0.0.0-20241219091434-96f998e7149d/go.mod h1:nv52g5ZDWv/C1ydtxLygP2wSYz6M4OuF6BygKy7RqGA= +mods.irisnet.org/modules/farm v0.0.0-20241219091434-96f998e7149d h1:nfIpN3UdLLSKlT6yjDusPFk5d5btLuDR80wattHN6/o= +mods.irisnet.org/modules/farm v0.0.0-20241219091434-96f998e7149d/go.mod h1:yYrnhmxDCnvI45u1cpeRZ2GPJUmRK+8KFXDtOJGpENE= +mods.irisnet.org/modules/htlc v0.0.0-20241219091434-96f998e7149d h1:nJ9QTBaVEY32ll7fFuhBDCaCeZX3zlnr8f4Q7rijIU4= +mods.irisnet.org/modules/htlc v0.0.0-20241219091434-96f998e7149d/go.mod h1:2pWkSnxVKCzB3WH+q47rKffY4Plma+mRTGSWd4jfbp8= +mods.irisnet.org/modules/mt v0.0.0-20241219091434-96f998e7149d h1:BibcvFarK2gl+38ABWc82mBRzDXHTonSaMOjWrsF7qs= +mods.irisnet.org/modules/mt v0.0.0-20241219091434-96f998e7149d/go.mod h1:Dw1zm350HiRuNjrnwZnV4XGB8PNf1SXmjGJA5Xslg0Q= +mods.irisnet.org/modules/nft v0.0.0-20241219091434-96f998e7149d h1:4QA5IADh0E5s13xipzHQjmvCiTh+rwTjYkcHp5FcfoY= +mods.irisnet.org/modules/nft v0.0.0-20241219091434-96f998e7149d/go.mod h1:VjySqJfECBW8cApFB8W66Yk6tMR2oJEc7FTDaHfeg8I= +mods.irisnet.org/modules/oracle v0.0.0-20241219091434-96f998e7149d h1:TJ9ChS7i3eqJvysgB0xsA3f/nZNyDK+3R0581a5xQA8= +mods.irisnet.org/modules/oracle v0.0.0-20241219091434-96f998e7149d/go.mod h1:XAGzG55xpV01PwvryVPeaHtARZIqEUJcMv/vxaVcVC0= +mods.irisnet.org/modules/random v0.0.0-20241219091434-96f998e7149d h1:WrKK3faOWgye3850G4XT3RhcB2kvVmkjlNppf4hU3xc= +mods.irisnet.org/modules/random v0.0.0-20241219091434-96f998e7149d/go.mod h1:1ele5fpZ/rFMbwu1LTz2MwDg3sJDYcCtDW5SDfYRpTg= +mods.irisnet.org/modules/record v0.0.0-20241219091434-96f998e7149d h1:j77bqsJJi0unnUO80sBtHjbAUZlgJ3rPDT7FWQAxegk= +mods.irisnet.org/modules/record v0.0.0-20241219091434-96f998e7149d/go.mod h1:n8gRooDvJ5B44EJRZ+UlDz0GcXQeNwjH2tjpnVx7nd8= +mods.irisnet.org/modules/service v0.0.0-20241219091434-96f998e7149d h1:se/nr3FZXSrqfqozKyFUldjiI0b9koNkNxo2HX0ce8Y= +mods.irisnet.org/modules/service v0.0.0-20241219091434-96f998e7149d/go.mod h1:B1nKRNYn1VLqpvNbmbDSYagqL56sj0MIceXJi/DKg6s= +mods.irisnet.org/modules/token v0.0.0-20241219091434-96f998e7149d h1:hAKlXF0vYjQUkYz/fFz0c7pGPcYYPYFlrsp5l5Mf5nw= +mods.irisnet.org/modules/token v0.0.0-20241219091434-96f998e7149d/go.mod h1:fHJzeEBPhE9vaa4aye90+WFtHjZyGRvkWRpJeBSc9/k= mods.irisnet.org/simapp v0.0.0-20241125071105-d76ae25d05d2 h1:9AGZYpMjpk1gItviL31vsehmen119HtcuOKwv8WWpZo= mods.irisnet.org/simapp v0.0.0-20241125071105-d76ae25d05d2/go.mod h1:t7FSQJkJOgXq1/LdhpBeOu7TS8hLQkAMMx9fL5w53PY= nhooyr.io/websocket v1.8.6 h1:s+C3xAMLwGmlI31Nyn/eAehUlZPwfYZu2JXM621Q5/k=