From 1cc70d48ff0acc63a26235ac312e46c55dcb174f Mon Sep 17 00:00:00 2001 From: Marston Connell <34043723+TheMarstonConnell@users.noreply.github.com> Date: Fri, 2 Dec 2022 14:02:37 -0500 Subject: [PATCH 1/5] reinstating provider incentives --- app/app.go | 2 +- x/jklmint/keeper/keeper.go | 6 +++--- x/jklmint/keeper/mint.go | 15 ++++++++------- 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/app/app.go b/app/app.go index b136ac64d..6f6cb0fa0 100644 --- a/app/app.go +++ b/app/app.go @@ -452,7 +452,7 @@ func NewJackalApp( app.AccountKeeper, app.BankKeeper, authtypes.FeeCollectorName, - // storagemoduletypes.ModuleName, + storagemoduletypes.ModuleName, ) mintModule := mint.NewAppModule(appCodec, app.MintKeeper, app.AccountKeeper, app.BankKeeper) diff --git a/x/jklmint/keeper/keeper.go b/x/jklmint/keeper/keeper.go index fa543f8bb..4de201f14 100644 --- a/x/jklmint/keeper/keeper.go +++ b/x/jklmint/keeper/keeper.go @@ -21,7 +21,7 @@ type ( stakingKeeper types.StakingKeeper bankKeeper types.BankKeeper feeCollectorName string - // miningName string + miningName string } ) @@ -33,7 +33,7 @@ func NewKeeper( ak types.AccountKeeper, bk types.BankKeeper, feeCollectorName string, - // miningName string, + miningName string, ) Keeper { // ensure mint module account is set if addr := ak.GetModuleAddress(types.ModuleName); addr == nil { @@ -52,7 +52,7 @@ func NewKeeper( stakingKeeper: sk, bankKeeper: bk, feeCollectorName: feeCollectorName, - // miningName: miningName, + miningName: miningName, } } diff --git a/x/jklmint/keeper/mint.go b/x/jklmint/keeper/mint.go index b7dcd3d7c..e837af776 100644 --- a/x/jklmint/keeper/mint.go +++ b/x/jklmint/keeper/mint.go @@ -6,11 +6,12 @@ import ( "github.com/cosmos/cosmos-sdk/telemetry" sdk "github.com/cosmos/cosmos-sdk/types" "github.com/jackalLabs/canine-chain/x/jklmint/types" + storeTypes "github.com/jackalLabs/canine-chain/x/storage/types" ) func (k Keeper) BlockMint(ctx sdk.Context) { var validatorRatio int64 = 4 - // var providerRatio int64 = 6 + var providerRatio int64 = 6 denom := k.GetParams(ctx).MintDenom @@ -32,13 +33,13 @@ func (k Keeper) BlockMint(ctx sdk.Context) { } // mint coins, update supply - // providerCoin := sdk.NewCoin(denom, sdk.NewInt(providerRatio*1000000)) - // providerCoins := sdk.NewCoins(providerCoin) + providerCoin := sdk.NewCoin(denom, sdk.NewInt(providerRatio*1000000)) + providerCoins := sdk.NewCoins(providerCoin) - // err = k.SendToProviders(ctx, providerCoins) - // if err != nil { - // panic(err) - // } + err = k.bankKeeper.SendCoinsFromModuleToModule(ctx, types.ModuleName, storeTypes.ModuleName, providerCoins) + if err != nil { + panic(err) + } if mintedCoin.Amount.IsInt64() { defer telemetry.ModuleSetGauge(types.ModuleName, float32(totalCoin.Amount.Int64()), "minted_tokens") From 985edf20ffc9272c132546cde2e958e021af57d4 Mon Sep 17 00:00:00 2001 From: Marston Connell <34043723+TheMarstonConnell@users.noreply.github.com> Date: Fri, 2 Dec 2022 14:58:35 -0500 Subject: [PATCH 2/5] fixed test for printing new provider tokens --- x/jklmint/keeper/mint.go | 18 +++++++++--------- x/jklmint/keeper/mint_test.go | 5 +++-- 2 files changed, 12 insertions(+), 11 deletions(-) diff --git a/x/jklmint/keeper/mint.go b/x/jklmint/keeper/mint.go index e837af776..05734880d 100644 --- a/x/jklmint/keeper/mint.go +++ b/x/jklmint/keeper/mint.go @@ -15,33 +15,33 @@ func (k Keeper) BlockMint(ctx sdk.Context) { denom := k.GetParams(ctx).MintDenom - totalCoin := sdk.NewCoin(denom, sdk.NewInt((validatorRatio)*1000000)) + totalCoin := sdk.NewCoin(denom, sdk.NewInt((validatorRatio+providerRatio)*1000000)) // mint coins, update supply mintedCoin := sdk.NewCoin(denom, sdk.NewInt(validatorRatio*1000000)) mintedCoins := sdk.NewCoins(mintedCoin) + // mint coins, update supply + providerCoin := sdk.NewCoin(denom, sdk.NewInt(providerRatio*1000000)) + providerCoins := sdk.NewCoins(providerCoin) + err := k.MintCoins(ctx, sdk.NewCoins(totalCoin)) if err != nil { panic(err) } - // send the minted coins to the fee collector account - err = k.AddCollectedFees(ctx, mintedCoins) + err = k.bankKeeper.SendCoinsFromModuleToModule(ctx, types.ModuleName, storeTypes.ModuleName, providerCoins) if err != nil { panic(err) } - // mint coins, update supply - providerCoin := sdk.NewCoin(denom, sdk.NewInt(providerRatio*1000000)) - providerCoins := sdk.NewCoins(providerCoin) - - err = k.bankKeeper.SendCoinsFromModuleToModule(ctx, types.ModuleName, storeTypes.ModuleName, providerCoins) + // send the minted coins to the fee collector account + err = k.AddCollectedFees(ctx, mintedCoins) if err != nil { panic(err) } - if mintedCoin.Amount.IsInt64() { + if totalCoin.Amount.IsInt64() { defer telemetry.ModuleSetGauge(types.ModuleName, float32(totalCoin.Amount.Int64()), "minted_tokens") } diff --git a/x/jklmint/keeper/mint_test.go b/x/jklmint/keeper/mint_test.go index f5f95f750..c49d783ff 100644 --- a/x/jklmint/keeper/mint_test.go +++ b/x/jklmint/keeper/mint_test.go @@ -28,11 +28,12 @@ func (suite *MintTestSuite) TestBlockMint() { Address: feeAccount.GetAddress().String(), Denom: denom, }) + suite.Require().NoError(err) suite.Require().Equal(sdk.NewInt(4000000), feeBalanceAfter.Balance.Amount) supplyAfter, err := app.BankKeeper.TotalSupply(sdk.WrapSDKContext(ctx), &types.QueryTotalSupplyRequest{}) suite.Require().NoError(err) suite.Require().Equal(1, len(supplyAfter.Supply)) - suite.Require().Equal(sdk.NewInt(4000000), supplyAfter.Supply.AmountOf(denom)) - // After BlockMint we now have exactly 4JKL in the fee collector account + suite.Require().Equal(sdk.NewInt(10000000), supplyAfter.Supply.AmountOf(denom)) + // After BlockMint we now have exactly 10JKL in the fee collector account } From 4d3504544248effe006237d2e53b3a78959fa870 Mon Sep 17 00:00:00 2001 From: Marston Connell <34043723+TheMarstonConnell@users.noreply.github.com> Date: Fri, 2 Dec 2022 19:50:45 -0500 Subject: [PATCH 3/5] fixed being able to pick a non-existent block --- x/storage/keeper/msg_server_sign_contract.go | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/x/storage/keeper/msg_server_sign_contract.go b/x/storage/keeper/msg_server_sign_contract.go index 1c5679a51..733a2e2de 100644 --- a/x/storage/keeper/msg_server_sign_contract.go +++ b/x/storage/keeper/msg_server_sign_contract.go @@ -23,6 +23,13 @@ func (k msgServer) SignContract(goCtx context.Context, msg *types.MsgSignContrac return nil, fmt.Errorf("you do not have permission to approve this contract") } + size, ok := sdk.NewIntFromString(contract.Filesize) + if !ok { + return nil, fmt.Errorf("cannot parse size") + } + + pieces := size.Quo(sdk.NewInt(1024)) + deal := types.ActiveDeals{ Cid: contract.Cid, Signee: contract.Signee, @@ -31,7 +38,7 @@ func (k msgServer) SignContract(goCtx context.Context, msg *types.MsgSignContrac Endblock: fmt.Sprintf("%d", ctx.BlockHeight()), Filesize: contract.Filesize, Proofverified: "false", - Blocktoprove: fmt.Sprintf("%d", ctx.BlockHeight()/1024), + Blocktoprove: fmt.Sprintf("%d", ctx.BlockHeight()%pieces.Int64()), Creator: msg.Creator, Proofsmissed: "0", Merkle: contract.Merkle, From 905d64d484b2c956071229ad06a6341faa0e0281 Mon Sep 17 00:00:00 2001 From: Marston Connell <34043723+TheMarstonConnell@users.noreply.github.com> Date: Fri, 2 Dec 2022 21:53:21 -0500 Subject: [PATCH 4/5] fix div by zero --- x/storage/keeper/msg_server_sign_contract.go | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/x/storage/keeper/msg_server_sign_contract.go b/x/storage/keeper/msg_server_sign_contract.go index 733a2e2de..00ecdc2d7 100644 --- a/x/storage/keeper/msg_server_sign_contract.go +++ b/x/storage/keeper/msg_server_sign_contract.go @@ -30,6 +30,12 @@ func (k msgServer) SignContract(goCtx context.Context, msg *types.MsgSignContrac pieces := size.Quo(sdk.NewInt(1024)) + var pieceToStart int64 + + if !pieces.IsZero() { + pieceToStart = ctx.BlockHeight() % pieces.Int64() + } + deal := types.ActiveDeals{ Cid: contract.Cid, Signee: contract.Signee, @@ -38,7 +44,7 @@ func (k msgServer) SignContract(goCtx context.Context, msg *types.MsgSignContrac Endblock: fmt.Sprintf("%d", ctx.BlockHeight()), Filesize: contract.Filesize, Proofverified: "false", - Blocktoprove: fmt.Sprintf("%d", ctx.BlockHeight()%pieces.Int64()), + Blocktoprove: fmt.Sprintf("%d", pieceToStart), Creator: msg.Creator, Proofsmissed: "0", Merkle: contract.Merkle, @@ -53,11 +59,6 @@ func (k msgServer) SignContract(goCtx context.Context, msg *types.MsgSignContrac } } - size, ok := sdk.NewIntFromString(contract.Filesize) - if !ok { - return nil, fmt.Errorf("cannot parse filesize") - } - used, ok := sdk.NewIntFromString(usage.Usage) if !ok { return nil, fmt.Errorf("cannot parse usage") From 0ccd040788be23262189b8fab882f701e6644113 Mon Sep 17 00:00:00 2001 From: Marston Connell <34043723+TheMarstonConnell@users.noreply.github.com> Date: Fri, 2 Dec 2022 23:10:50 -0500 Subject: [PATCH 5/5] Fixed inflation not being properly displayed --- proto/canine_chain/jklmint/query.proto | 4 +- x/jklmint/keeper/keeper.go | 2 +- x/jklmint/module.go | 5 +++ x/jklmint/types/query.pb.go | 51 +++++++++++++------------- x/jklmint/types/query.pb.gw.go | 4 +- 5 files changed, 36 insertions(+), 30 deletions(-) diff --git a/proto/canine_chain/jklmint/query.proto b/proto/canine_chain/jklmint/query.proto index d15fa70ab..d5013684c 100644 --- a/proto/canine_chain/jklmint/query.proto +++ b/proto/canine_chain/jklmint/query.proto @@ -11,12 +11,12 @@ option go_package = "github.com/jackalLabs/canine-chain/x/jklmint/types"; service Query { // Parameters queries the parameters of the module. rpc Params(QueryParamsRequest) returns (QueryParamsResponse) { - option (google.api.http).get = "/jackal-dao/canine-chain/jklmint/params"; + option (google.api.http).get = "/cosmos/mint/v1beta1/params"; } // Inflation returns the current minting inflation value. rpc Inflation(QueryInflationRequest) returns (QueryInflationResponse) { - option (google.api.http).get = "/jackal-dao/canine-chain/jklmint/inflation"; + option (google.api.http).get = "/cosmos/mint/v1beta1/inflation"; } } diff --git a/x/jklmint/keeper/keeper.go b/x/jklmint/keeper/keeper.go index fa543f8bb..b80e25ecf 100644 --- a/x/jklmint/keeper/keeper.go +++ b/x/jklmint/keeper/keeper.go @@ -96,7 +96,7 @@ func (k Keeper) GetInflation(ctx sdk.Context) (sdk.Dec, error) { var blocksPerYearEstiamte int64 = (365 * 24 * 60 * 60) / 6 - printedPerYear := blocksPerYearEstiamte * 4_000_000 + printedPerYear := blocksPerYearEstiamte * 10_000_000 inflate := sdk.NewDec(printedPerYear) diff --git a/x/jklmint/module.go b/x/jklmint/module.go index 508cb76fa..724b2c092 100644 --- a/x/jklmint/module.go +++ b/x/jklmint/module.go @@ -1,6 +1,7 @@ package jklmint import ( + "context" "encoding/json" "fmt" @@ -76,6 +77,10 @@ func (AppModuleBasic) RegisterRESTRoutes(clientCtx client.Context, rtr *mux.Rout // RegisterGRPCGatewayRoutes registers the gRPC Gateway routes for the module. func (AppModuleBasic) RegisterGRPCGatewayRoutes(clientCtx client.Context, mux *runtime.ServeMux) { + err := types.RegisterQueryHandlerClient(context.Background(), mux, types.NewQueryClient(clientCtx)) + if err != nil { + fmt.Println(err) + } } // GetTxCmd returns the capability module's root tx command. diff --git a/x/jklmint/types/query.pb.go b/x/jklmint/types/query.pb.go index 32716a122..ebf78a7c0 100644 --- a/x/jklmint/types/query.pb.go +++ b/x/jklmint/types/query.pb.go @@ -200,31 +200,32 @@ func init() { func init() { proto.RegisterFile("canine_chain/jklmint/query.proto", fileDescriptor_18b2f9a9be818a21) } var fileDescriptor_18b2f9a9be818a21 = []byte{ - // 383 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x52, 0x3f, 0x4f, 0xc2, 0x40, - 0x14, 0x6f, 0x89, 0x92, 0x70, 0x3a, 0x9d, 0xf8, 0x27, 0x0d, 0x29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0x48, 0xbb, 0x0a, 0x48, 0xb9, 0xf3, 0xa2, 0x70, 0xdc, 0x2d, 0x9b, 0x33, 0xcd, 0x8f, - 0x71, 0xf6, 0xc4, 0x71, 0xc3, 0x56, 0xbf, 0x6e, 0xda, 0xcc, 0x47, 0x36, 0xe3, 0x3e, 0xe3, 0xf2, - 0x53, 0xe2, 0x8d, 0x0e, 0x0a, 0x07, 0x01, 0xe1, 0xe6, 0x15, 0xb1, 0x6b, 0x3f, 0x02, 0xd6, 0x6b, - 0x02, 0x6c, 0x0b, 0x23, 0xf8, 0xa8, 0x82, 0x64, 0x94, 0x11, 0xe6, 0xe3, 0x27, 0xf8, 0xbd, 0x12, - 0xad, 0xb0, 0x01, 0x32, 0xca, 0x6d, 0xa0, 0x87, 0xb7, 0xaf, 0xe7, 0x44, 0x01, 0x9e, 0xa2, 0x36, - 0xb6, 0x3b, 0xd8, 0x2b, 0x35, 0x30, 0x43, 0x11, 0xbb, 0x14, 0x77, 0x0a, 0xf8, 0xa2, 0x82, 0xd4, - 0x62, 0x7c, 0x78, 0xfe, 0x87, 0xd3, 0xfa, 0xf6, 0xb4, 0xe2, 0x66, 0x60, 0x99, 0xcc, 0x12, 0xc9, - 0x8a, 0xf0, 0xec, 0xdf, 0x64, 0x8b, 0xbd, 0x95, 0x2b, 0xc3, 0x89, 0xae, 0x8e, 0x26, 0xba, 0xfa, - 0x39, 0xd1, 0xd5, 0xa7, 0xa9, 0xae, 0x8c, 0xa6, 0xba, 0xf2, 0x3e, 0xd5, 0x95, 0x5b, 0x6b, 0xe9, - 0x08, 0x91, 0x5e, 0x05, 0xd7, 0xf9, 0xaa, 0xde, 0xfd, 0x42, 0x51, 0x1c, 0xa5, 0x9e, 0x14, 0xcf, - 0xee, 0xe2, 0x3b, 0x00, 0x00, 0xff, 0xff, 0xcd, 0xb4, 0x53, 0x5d, 0x07, 0x03, 0x00, 0x00, + // 392 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x92, 0x41, 0x4f, 0xe2, 0x40, + 0x14, 0xc7, 0x5b, 0xb2, 0x4b, 0xc2, 0xec, 0x9e, 0x66, 0xd9, 0x5d, 0x53, 0xb1, 0x60, 0x4d, 0x08, + 0x46, 0xe9, 0x04, 0xbc, 0x79, 0x24, 0x5e, 0x4c, 0x38, 0x08, 0x47, 0x2f, 0x66, 0x5a, 0x87, 0x52, + 0x68, 0x67, 0x0a, 0x33, 0x18, 0xb9, 0xf2, 0x01, 0x8c, 0x89, 0x67, 0xbf, 0x0f, 0x47, 0x12, 0x2f, + 0xc6, 0x03, 0x31, 0xe0, 0x07, 0x31, 0x4c, 0x07, 0x44, 0x6c, 0x0c, 0xa7, 0x36, 0x6f, 0xfe, 0xef, + 0xfd, 0x7f, 0xef, 0x9f, 0x07, 0x0a, 0x2e, 0xa6, 0x3e, 0x25, 0x57, 0x6e, 0x1b, 0xfb, 0x14, 0x75, + 0xba, 0x41, 0xe8, 0x53, 0x81, 0x7a, 0x03, 0xd2, 0x1f, 0xda, 0x51, 0x9f, 0x09, 0x06, 0xb3, 0xeb, + 0x0a, 0x5b, 0x29, 0x8c, 0xac, 0xc7, 0x3c, 0x26, 0x05, 0x68, 0xf1, 0x17, 0x6b, 0x8d, 0x9c, 0xc7, + 0x98, 0x17, 0x10, 0x84, 0x23, 0x1f, 0x61, 0x4a, 0x99, 0xc0, 0xc2, 0x67, 0x94, 0xab, 0xd7, 0xfd, + 0x44, 0xaf, 0x08, 0xf7, 0x71, 0xa8, 0x24, 0x56, 0x16, 0xc0, 0xc6, 0xc2, 0xfb, 0x42, 0x16, 0x9b, + 0xa4, 0x37, 0x20, 0x5c, 0x58, 0x0d, 0xf0, 0xe7, 0x53, 0x95, 0x47, 0x8c, 0x72, 0x02, 0x4f, 0x41, + 0x3a, 0x6e, 0xde, 0xd1, 0x0b, 0x7a, 0xe9, 0x57, 0x35, 0x67, 0x27, 0xa1, 0xda, 0x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c9, 0xf0, 0x9d, 0xb4, 0x3c, 0xaf, 0x93, 0xf7, 0x00, 0x00, 0x00, 0xff, 0xff, + 0x3f, 0xfa, 0x1b, 0xa0, 0xef, 0x02, 0x00, 0x00, } // Reference imports to suppress errors if they are not otherwise used. diff --git a/x/jklmint/types/query.pb.gw.go b/x/jklmint/types/query.pb.gw.go index 05a062d5c..f0eaea3ce 100644 --- a/x/jklmint/types/query.pb.gw.go +++ b/x/jklmint/types/query.pb.gw.go @@ -206,9 +206,9 @@ func RegisterQueryHandlerClient(ctx context.Context, mux *runtime.ServeMux, clie } var ( - pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"jackal-dao", "canine-chain", "jklmint", "params"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_Params_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"cosmos", "mint", "v1beta1", "params"}, "", runtime.AssumeColonVerbOpt(false))) - pattern_Query_Inflation_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"jackal-dao", "canine-chain", "jklmint", "inflation"}, "", runtime.AssumeColonVerbOpt(false))) + pattern_Query_Inflation_0 = runtime.MustPattern(runtime.NewPattern(1, []int{2, 0, 2, 1, 2, 2, 2, 3}, []string{"cosmos", "mint", "v1beta1", "inflation"}, "", runtime.AssumeColonVerbOpt(false))) ) var (