Skip to content

Commit 1e39391

Browse files
authored
fix: Rename UpdatePassword to RotatePassword (#188)
In PR gnolang/gno#2700, the keybase API method `Update` is renamed to `Rotate` because "Update" is too general. (This method only changes the password.) We want Gno Native Kit to closely follow the core APIs, so this PR renames `UpdatePassword` to `RotatePassword`. * In go.mod, use the latest gnolang/gno . * In the API, rename UpdatePassword to RotatePassword. Run `make regenerate` . * Push to buf the latest API and update expo dependencies. --------- Signed-off-by: Jeff Thompson <[email protected]>
1 parent 4bb275d commit 1e39391

20 files changed

+248
-241
lines changed

api/gen/csharp/Gnonativetypes.cs

+25-25
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,9 @@ static GnonativetypesReflection() {
3333
"R2V0Q2hhaW5JRFJlc3BvbnNlEhkKCGNoYWluX2lkGAEgASgJUgdjaGFpbklk",
3434
"IkoKElNldFBhc3N3b3JkUmVxdWVzdBIaCghwYXNzd29yZBgBIAEoCVIIcGFz",
3535
"c3dvcmQSGAoHYWRkcmVzcxgCIAEoDFIHYWRkcmVzcyIVChNTZXRQYXNzd29y",
36-
"ZFJlc3BvbnNlIlgKFVVwZGF0ZVBhc3N3b3JkUmVxdWVzdBIhCgxuZXdfcGFz",
36+
"ZFJlc3BvbnNlIlgKFVJvdGF0ZVBhc3N3b3JkUmVxdWVzdBIhCgxuZXdfcGFz",
3737
"c3dvcmQYASABKAlSC25ld1Bhc3N3b3JkEhwKCWFkZHJlc3NlcxgCIAMoDFIJ",
38-
"YWRkcmVzc2VzIhgKFlVwZGF0ZVBhc3N3b3JkUmVzcG9uc2UiHwodR2VuZXJh",
38+
"YWRkcmVzc2VzIhgKFlJvdGF0ZVBhc3N3b3JkUmVzcG9uc2UiHwodR2VuZXJh",
3939
"dGVSZWNvdmVyeVBocmFzZVJlcXVlc3QiOAoeR2VuZXJhdGVSZWNvdmVyeVBo",
4040
"cmFzZVJlc3BvbnNlEhYKBnBocmFzZRgBIAEoCVIGcGhyYXNlImQKB0tleUlu",
4141
"Zm8SEgoEdHlwZRgBIAEoDVIEdHlwZRISCgRuYW1lGAIgASgJUgRuYW1lEhcK",
@@ -147,8 +147,8 @@ static GnonativetypesReflection() {
147147
new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.GetChainIDResponse), global::Land.Gno.Gnonative.V1.GetChainIDResponse.Parser, new[]{ "ChainId" }, null, null, null, null),
148148
new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.SetPasswordRequest), global::Land.Gno.Gnonative.V1.SetPasswordRequest.Parser, new[]{ "Password", "Address" }, null, null, null, null),
149149
new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.SetPasswordResponse), global::Land.Gno.Gnonative.V1.SetPasswordResponse.Parser, null, null, null, null, null),
150-
new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.UpdatePasswordRequest), global::Land.Gno.Gnonative.V1.UpdatePasswordRequest.Parser, new[]{ "NewPassword", "Addresses" }, null, null, null, null),
151-
new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.UpdatePasswordResponse), global::Land.Gno.Gnonative.V1.UpdatePasswordResponse.Parser, null, null, null, null, null),
150+
new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.RotatePasswordRequest), global::Land.Gno.Gnonative.V1.RotatePasswordRequest.Parser, new[]{ "NewPassword", "Addresses" }, null, null, null, null),
151+
new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.RotatePasswordResponse), global::Land.Gno.Gnonative.V1.RotatePasswordResponse.Parser, null, null, null, null, null),
152152
new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.GenerateRecoveryPhraseRequest), global::Land.Gno.Gnonative.V1.GenerateRecoveryPhraseRequest.Parser, null, null, null, null, null),
153153
new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.GenerateRecoveryPhraseResponse), global::Land.Gno.Gnonative.V1.GenerateRecoveryPhraseResponse.Parser, new[]{ "Phrase" }, null, null, null, null),
154154
new pbr::GeneratedClrTypeInfo(typeof(global::Land.Gno.Gnonative.V1.KeyInfo), global::Land.Gno.Gnonative.V1.KeyInfo.Parser, new[]{ "Type", "Name", "PubKey", "Address" }, null, null, null, null),
@@ -2054,16 +2054,16 @@ public void MergeFrom(pb::CodedInputStream input) {
20542054
}
20552055

20562056
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
2057-
public sealed partial class UpdatePasswordRequest : pb::IMessage<UpdatePasswordRequest>
2057+
public sealed partial class RotatePasswordRequest : pb::IMessage<RotatePasswordRequest>
20582058
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
20592059
, pb::IBufferMessage
20602060
#endif
20612061
{
2062-
private static readonly pb::MessageParser<UpdatePasswordRequest> _parser = new pb::MessageParser<UpdatePasswordRequest>(() => new UpdatePasswordRequest());
2062+
private static readonly pb::MessageParser<RotatePasswordRequest> _parser = new pb::MessageParser<RotatePasswordRequest>(() => new RotatePasswordRequest());
20632063
private pb::UnknownFieldSet _unknownFields;
20642064
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20652065
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2066-
public static pb::MessageParser<UpdatePasswordRequest> Parser { get { return _parser; } }
2066+
public static pb::MessageParser<RotatePasswordRequest> Parser { get { return _parser; } }
20672067

20682068
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20692069
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
@@ -2079,24 +2079,24 @@ public sealed partial class UpdatePasswordRequest : pb::IMessage<UpdatePasswordR
20792079

20802080
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20812081
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2082-
public UpdatePasswordRequest() {
2082+
public RotatePasswordRequest() {
20832083
OnConstruction();
20842084
}
20852085

20862086
partial void OnConstruction();
20872087

20882088
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20892089
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2090-
public UpdatePasswordRequest(UpdatePasswordRequest other) : this() {
2090+
public RotatePasswordRequest(RotatePasswordRequest other) : this() {
20912091
newPassword_ = other.newPassword_;
20922092
addresses_ = other.addresses_.Clone();
20932093
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
20942094
}
20952095

20962096
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
20972097
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2098-
public UpdatePasswordRequest Clone() {
2099-
return new UpdatePasswordRequest(this);
2098+
public RotatePasswordRequest Clone() {
2099+
return new RotatePasswordRequest(this);
21002100
}
21012101

21022102
/// <summary>Field number for the "new_password" field.</summary>
@@ -2117,7 +2117,7 @@ public string NewPassword {
21172117
= pb::FieldCodec.ForBytes(18);
21182118
private readonly pbc::RepeatedField<pb::ByteString> addresses_ = new pbc::RepeatedField<pb::ByteString>();
21192119
/// <summary>
2120-
/// The addresses of the account to update the password
2120+
/// The addresses of the account to rotate the password
21212121
/// </summary>
21222122
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21232123
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
@@ -2128,12 +2128,12 @@ public string NewPassword {
21282128
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21292129
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
21302130
public override bool Equals(object other) {
2131-
return Equals(other as UpdatePasswordRequest);
2131+
return Equals(other as RotatePasswordRequest);
21322132
}
21332133

21342134
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
21352135
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2136-
public bool Equals(UpdatePasswordRequest other) {
2136+
public bool Equals(RotatePasswordRequest other) {
21372137
if (ReferenceEquals(other, null)) {
21382138
return false;
21392139
}
@@ -2211,7 +2211,7 @@ public int CalculateSize() {
22112211

22122212
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22132213
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2214-
public void MergeFrom(UpdatePasswordRequest other) {
2214+
public void MergeFrom(RotatePasswordRequest other) {
22152215
if (other == null) {
22162216
return;
22172217
}
@@ -2281,16 +2281,16 @@ public void MergeFrom(pb::CodedInputStream input) {
22812281
}
22822282

22832283
[global::System.Diagnostics.DebuggerDisplayAttribute("{ToString(),nq}")]
2284-
public sealed partial class UpdatePasswordResponse : pb::IMessage<UpdatePasswordResponse>
2284+
public sealed partial class RotatePasswordResponse : pb::IMessage<RotatePasswordResponse>
22852285
#if !GOOGLE_PROTOBUF_REFSTRUCT_COMPATIBILITY_MODE
22862286
, pb::IBufferMessage
22872287
#endif
22882288
{
2289-
private static readonly pb::MessageParser<UpdatePasswordResponse> _parser = new pb::MessageParser<UpdatePasswordResponse>(() => new UpdatePasswordResponse());
2289+
private static readonly pb::MessageParser<RotatePasswordResponse> _parser = new pb::MessageParser<RotatePasswordResponse>(() => new RotatePasswordResponse());
22902290
private pb::UnknownFieldSet _unknownFields;
22912291
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22922292
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2293-
public static pb::MessageParser<UpdatePasswordResponse> Parser { get { return _parser; } }
2293+
public static pb::MessageParser<RotatePasswordResponse> Parser { get { return _parser; } }
22942294

22952295
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
22962296
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
@@ -2306,33 +2306,33 @@ public sealed partial class UpdatePasswordResponse : pb::IMessage<UpdatePassword
23062306

23072307
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23082308
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2309-
public UpdatePasswordResponse() {
2309+
public RotatePasswordResponse() {
23102310
OnConstruction();
23112311
}
23122312

23132313
partial void OnConstruction();
23142314

23152315
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23162316
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2317-
public UpdatePasswordResponse(UpdatePasswordResponse other) : this() {
2317+
public RotatePasswordResponse(RotatePasswordResponse other) : this() {
23182318
_unknownFields = pb::UnknownFieldSet.Clone(other._unknownFields);
23192319
}
23202320

23212321
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23222322
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2323-
public UpdatePasswordResponse Clone() {
2324-
return new UpdatePasswordResponse(this);
2323+
public RotatePasswordResponse Clone() {
2324+
return new RotatePasswordResponse(this);
23252325
}
23262326

23272327
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23282328
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
23292329
public override bool Equals(object other) {
2330-
return Equals(other as UpdatePasswordResponse);
2330+
return Equals(other as RotatePasswordResponse);
23312331
}
23322332

23332333
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23342334
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2335-
public bool Equals(UpdatePasswordResponse other) {
2335+
public bool Equals(RotatePasswordResponse other) {
23362336
if (ReferenceEquals(other, null)) {
23372337
return false;
23382338
}
@@ -2392,7 +2392,7 @@ public int CalculateSize() {
23922392

23932393
[global::System.Diagnostics.DebuggerNonUserCodeAttribute]
23942394
[global::System.CodeDom.Compiler.GeneratedCode("protoc", null)]
2395-
public void MergeFrom(UpdatePasswordResponse other) {
2395+
public void MergeFrom(RotatePasswordResponse other) {
23962396
if (other == null) {
23972397
return;
23982398
}

api/gen/csharp/Rpc.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -83,9 +83,9 @@ static RpcReflection() {
8383
"by5nbm9uYXRpdmUudjEuQWN0aXZhdGVBY2NvdW50UmVzcG9uc2USZAoLU2V0",
8484
"UGFzc3dvcmQSKS5sYW5kLmduby5nbm9uYXRpdmUudjEuU2V0UGFzc3dvcmRS",
8585
"ZXF1ZXN0GioubGFuZC5nbm8uZ25vbmF0aXZlLnYxLlNldFBhc3N3b3JkUmVz",
86-
"cG9uc2USbQoOVXBkYXRlUGFzc3dvcmQSLC5sYW5kLmduby5nbm9uYXRpdmUu",
87-
"djEuVXBkYXRlUGFzc3dvcmRSZXF1ZXN0Gi0ubGFuZC5nbm8uZ25vbmF0aXZl",
88-
"LnYxLlVwZGF0ZVBhc3N3b3JkUmVzcG9uc2USfAoTR2V0QWN0aXZhdGVkQWNj",
86+
"cG9uc2USbQoOUm90YXRlUGFzc3dvcmQSLC5sYW5kLmduby5nbm9uYXRpdmUu",
87+
"djEuUm90YXRlUGFzc3dvcmRSZXF1ZXN0Gi0ubGFuZC5nbm8uZ25vbmF0aXZl",
88+
"LnYxLlJvdGF0ZVBhc3N3b3JkUmVzcG9uc2USfAoTR2V0QWN0aXZhdGVkQWNj",
8989
"b3VudBIxLmxhbmQuZ25vLmdub25hdGl2ZS52MS5HZXRBY3RpdmF0ZWRBY2Nv",
9090
"dW50UmVxdWVzdBoyLmxhbmQuZ25vLmdub25hdGl2ZS52MS5HZXRBY3RpdmF0",
9191
"ZWRBY2NvdW50UmVzcG9uc2USZwoMUXVlcnlBY2NvdW50EioubGFuZC5nbm8u",

0 commit comments

Comments
 (0)