Skip to content

Commit

Permalink
Merge pull request #334 from KiraCore/v0.1.27-rc.12
Browse files Browse the repository at this point in the history
V0.1.27 rc.12
  • Loading branch information
asmodat authored May 6, 2022
2 parents e9bd96b + 8229eb5 commit 09e6508
Show file tree
Hide file tree
Showing 7 changed files with 69 additions and 63 deletions.
6 changes: 5 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@ lint:
@golangci-lint run
@go mod verify

containerProtoVer=v0.2
containerProtoImage=tendermintdev/sdk-proto-gen:$(containerProtoVer)
containerProtoGen=cosmos-sdk-proto-gen-$(containerProtoVer)

proto-gen:
docker run --rm -v $(CURDIR):/workspace --workdir /workspace tendermintdev/sdk-proto-gen sh ./scripts/protocgen.sh
docker run --rm --name $(containerProtoGen) -v $(CURDIR):/workspace --workdir /workspace $(containerProtoImage) sh ./scripts/protocgen.sh

proto-gen-local:
./scripts/protogen-local.sh
Expand Down
5 changes: 3 additions & 2 deletions RELEASE.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,6 @@

**Features:**

- Added signature files generation to releases
- Include `env.sh` in releases & rename to `sekai-env.sh`
- updated identity registrar messages for record_ids, verify_request_id
- added metadata endpoint for MsgDeleteIdentityRegistrar
- removed metadata endpoint for MsgEditIdentityRegistrar
6 changes: 3 additions & 3 deletions proto/kira/gov/identity_registrar.proto
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ message MsgRequestIdentityRecordsVerify {
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress",
(gogoproto.moretags) = "yaml:\"verifier\""
];
repeated uint64 recordIds = 3;
repeated uint64 record_ids = 3;
string tip = 4 [
(gogoproto.customtype) = "github.com/cosmos/cosmos-sdk/types.Coin",
(gogoproto.nullable) = false
Expand All @@ -69,13 +69,13 @@ message MsgHandleIdentityRecordsVerifyRequest {
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress",
(gogoproto.moretags) = "yaml:\"verifier\""
];
uint64 verifyRequestId = 2;
uint64 verify_request_id = 2;
bool yes = 3;
}
message MsgCancelIdentityRecordsVerifyRequest {
bytes executor = 1 [
(gogoproto.casttype) = "github.com/cosmos/cosmos-sdk/types.AccAddress",
(gogoproto.moretags) = "yaml:\"executor\""
];
uint64 verifyRequestId = 2;
uint64 verify_request_id = 2;
}
2 changes: 1 addition & 1 deletion scripts/sekai-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -188,7 +188,7 @@ FuncIDMultiSend=2
FuncIDMsgSubmitProposal=10
FuncIDMsgVoteProposal=11
FuncIDMsgRegisterIdentityRecords=12
FuncIDMsgEditIdentityRecord=13
FuncIDMsgDeleteIdentityRecords=13
FuncIDMsgRequestIdentityRecordsVerify=14
FuncIDMsgHandleIdentityRecordsVerifyRequest=15
FuncIDMsgCancelIdentityRecordsVerifyRequest=16
Expand Down
2 changes: 1 addition & 1 deletion types/constants.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@ package types
const (
// we set page iteration limit for safety
PageIterationLimit = 512
SekaiVersion = "v0.1.26-rc.11"
SekaiVersion = "v0.1.27-rc.12"
CosmosVersion = "v0.45.1"
)
19 changes: 10 additions & 9 deletions x/gov/types/codec.go
Original file line number Diff line number Diff line change
Expand Up @@ -150,21 +150,17 @@ func registerIdRecordsCodec(cdc *codec.LegacyAmino) {
}
}`)

cdc.RegisterConcrete(&MsgDeleteIdentityRecords{}, "kiraHub/MsgEditIdentityRecord", nil)
cdc.RegisterConcrete(&MsgDeleteIdentityRecords{}, "kiraHub/MsgDeleteIdentityRecords", nil)
functionmeta.AddNewFunction((&MsgDeleteIdentityRecords{}).Type(), `{
"description": "MsgEditIdentityRecord defines a proposal message to edit an identity record.",
"description": "MsgDeleteIdentityRecords defines a method to delete identity records owned by an address.",
"parameters": {
"record_id": {
"type": "uint64",
"description": "the id of identity record to edit."
},
"address": {
"type": "string",
"description": "the address for the identity record."
"description": "the address of requester."
},
"infos": {
"keys": {
"type": "array",
"description": "key/value array for the mappings of the identity record."
"description": "the array string that defines identity record key values to be deleted."
}
}
}`)
Expand Down Expand Up @@ -203,6 +199,11 @@ func registerIdRecordsCodec(cdc *codec.LegacyAmino) {
"verify_request_id": {
"type": "uint64",
"description": "the id of verification request."
},
"yes": {
"type": "bool",
"optional": true,
"description": "defines approval or rejecting an identity request (default false)"
}
}
}`)
Expand Down
92 changes: 46 additions & 46 deletions x/gov/types/identity_registrar.pb.go

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

0 comments on commit 09e6508

Please sign in to comment.